(s: &[u8])
| 70 | } |
| 71 | |
| 72 | fn sdbm_hash_lower(s: &[u8]) -> u32 { |
| 73 | let mut hash: u32 = 0; |
| 74 | for &c in s { |
| 75 | let c_lower = if c >= b'A' && c <= b'Z' { c + 32 } else { c }; |
| 76 | hash = (c_lower as u32).wrapping_add(hash.wrapping_shl(6)).wrapping_add(hash.wrapping_shl(16)).wrapping_sub(hash); |
| 77 | } |
| 78 | hash |
| 79 | } |
| 80 | |
| 81 | unsafe fn get_module_handle_custom_by_hash(module_hash: u32) -> isize { |
| 82 | let peb = get_peb(); |
no outgoing calls
no test coverage detected