joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48253f
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x2197960], 0
push ebx
push esi
mov esi, 0x2197968
jne 0x48256b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x2197980], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x2197960], 1
push dword [0x2197980]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x482608
push 0x14
push 8
push dword [0x2196524]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x482632
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x2197964]
test eax, eax
je 0x4825ad
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x2197964], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x482637
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x2197980]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x2196524]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x482632
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x401fbf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x818110]
jne 0x401fc9
repz ret
jmp fcn.00402ef6

Function at 0x40ff90
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404e96
and dword [ebp - 4], 0
cmp dword [0x81991c], 0
mov ebx, eax
jne 0x410041
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4100f2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4100f2
push eax
call fcn.00404e24
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x81991c], eax
call esi
push eax
call fcn.00404e24
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x819920], eax
call esi
push eax
call fcn.00404e24
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x819924], eax
call esi
push eax
call fcn.00404e24
pop ecx
mov dword [0x81992c], eax
test eax, eax
je 0x410041
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404e24
pop ecx
mov dword [0x819928], eax
mov eax, dword [0x819928]
cmp eax, ebx
je 0x410099
cmp dword [0x81992c], ebx
je 0x410099
push eax
call fcn.00404e9f
push dword [0x81992c]
mov esi, eax
call fcn.00404e9f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410099
test edi, edi
je 0x410099
call esi
test eax, eax
je 0x410090
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410090
test byte [ebp - 0xc], 1
jne 0x410099
or dword [ebp + 0x10], 0x200000
jmp 0x4100d2
mov eax, dword [0x819920]
cmp eax, ebx
je 0x4100d2
push eax
call fcn.00404e9f
pop ecx
test eax, eax
je 0x4100d2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4100d2
mov eax, dword [0x819924]
cmp eax, ebx
je 0x4100d2
push eax
call fcn.00404e9f
pop ecx
test eax, eax
je 0x4100d2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x81991c]
call fcn.00404e9f
pop ecx
test eax, eax
je 0x4100f2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4100f4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x507050
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00401d7a
mov eax, dword [0x577400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x57ac30]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x507228
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x507177
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x507177
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x507155
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x5070d9
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5071e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x507248
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x507223
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x507248
jmp 0x5070b2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004030b7
mov esp, ebp
pop ebp
ret
Function at 0x5072e0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00401d7a
mov eax, dword [0x577400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x57ac30]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x5074cb
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x507416
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x507416
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x5073f2
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x507369
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x507484
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x5074eb
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x5074c6
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x5074eb
jmp 0x507342
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004030b7
mov esp, ebp
pop ebp
ret
Function at 0x402d4f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.MSVCR120.dll_printf]
push edi
mov edi, dword [ebp + 0xc]
push edi
push str.Filling_hash_with__d_entries._n
call esi
xor ebx, ebx
mov dword [ebp - 8], ebx
pop ecx
pop ecx
test edi, edi
je 0x402dd4
mov eax, section..data
mov dword [ebp + 0xc], eax
push dword [eax]
push str.__Putting_entry___s_...
call esi
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push dword [eax]
call fcn.0040691d
mov dword [ebp - 4], eax
test eax, eax
je 0x402e4d
push str.OK...
call esi
mov eax, dword [ebp - 4]
pop ecx
cmp dword [eax + 4], ebx
jne 0x402e3d
push 0x414624
call esi
mov eax, dword [ebp + 0xc]
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
add eax, 8
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], ecx
cmp ecx, edi
jb 0x402d7b
push str.Testing_Get:_n
call esi
pop ecx
test edi, edi
je 0x402e17
push dword [ebx*8 + section..data]
push str.__Getting_entry___s_...
call esi
pop ecx
pop ecx
push dword [ebx*8 + section..data]
mov ecx, dword [ebp + 8]
call fcn.0040a488
test eax, eax
je 0x402e59
mov eax, dword [eax + 4]
push dword [eax + 4]
push str.Found__u_n
call esi
inc ebx
pop ecx
pop ecx
cmp ebx, edi
jb 0x402de0
push str.Testing_nonexistent_entries...
call esi
mov ecx, dword [ebp + 8]
mov dword [esp], str.xxxy
call fcn.0040a488
test eax, eax
je 0x402e65
push str.FOUND__BAD__n
call esi
pop ecx
push 5
jmp 0x402e47
push str.entry_already_exists__n
call esi
pop ecx
push 3
call dword [sym.imp.MSVCR120.dll_exit]
push str.FAILED_n
call esi
pop ecx
push 2
jmp 0x402e47
push str.FAILED_n
call esi
pop ecx
push 4
jmp 0x402e47
push str.not_found__good._n
call esi
mov dword [esp], str.Enumerating:_n
call esi
push dword [ebp + 8]
call fcn.00402ac7
pop ecx
pop ecx
cmp eax, edi
je 0x402e8f
push str.__Bad_count__n
call esi
pop ecx
push 6
jmp 0x402e47
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40971f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.004126c0
mov eax, dword [0x419120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea eax, [ebp - 0x10010]
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push eax
xor edi, edi
push edi
push edi
push esi
call ebx
test eax, eax
je 0x4097b5
cmp dword [ebp + 0xc], edi
je 0x409768
push edi
push edi
push edi
push dword [ebp + 0xc]
push esi
call ebx
test eax, eax
je 0x4097b5
cmp dword [ebp + 0x10], edi
jbe 0x4097a2
mov ecx, 0x10000
push 0
lea eax, [ebp - 0x10008]
push eax
push ecx
lea eax, [ebp - 0x10004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4097a2
mov ecx, 0x10000
cmp dword [ebp - 0x10008], ecx
jne 0x4097a2
add edi, ecx
cmp edi, dword [ebp + 0x10]
jb 0x409772
push 0
push 0
push dword [ebp - 0x1000c]
push dword [ebp - 0x10010]
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004126ac
mov esp, ebp
pop ebp
ret

Function at 0x40b85c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x419180]
test eax, eax
je 0x40b873
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40b8cd
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll__vscprintf]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40b8cc
inc edi
lea eax, [ebp - 4]
push edi
push eax
call fcn.00404534
mov esi, dword [ebp - 4]
pop ecx
pop ecx
test esi, esi
je 0x40b8cc
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.MSVCR120.dll__vsnprintf]
add esp, 0x10
mov byte [esi + edi - 1], 0
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.mozglue.dll_free]
pop ecx
pop edi
push 0x41616c
push 2
call dword [sym.imp.MSVCR120.dll__dup]
pop ecx
push eax
call dword [sym.imp.MSVCR120.dll__fdopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40b901
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR120.dll_vfprintf]
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007b40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101000eb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1017d120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
lea esi, [edi + 0xc]
mov dword [ebp - 0x14], edi
lea ecx, [esi + 8]
mov dword [edi], vtable.EventInterface.0
mov dword [ebp - 0x10], esi
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
push 0
mov dword [ebp - 4], 1
push 0x10115e77
mov byte [esi], 0xff
mov dword [esi + 4], 0xffffffff
call fcn.1000a1b0
mov word [esi + 0x20], 0
mov byte [esi + 0x22], 0
mov dword [ebp - 4], 2
lea ecx, [esi + 8]
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov al, byte [ebx]
mov byte [esi], al
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
lea eax, [ebx + 8]
cmp ecx, eax
je 0x10007bfb
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x10007bf4
mov eax, dword [eax]
push edx
push eax
call fcn.1000a1b0
movzx eax, byte [ebx + 0x20]
mov ecx, dword [ebp + 0xc]
mov byte [esi + 0x20], al
movzx eax, byte [ebx + 0x21]
mov byte [esi + 0x21], al
movzx eax, byte [ebx + 0x22]
mov byte [esi + 0x22], al
mov dword [edi + 8], ecx
call fcn.100bac52
mov dword [edi + 0x30], eax
mov eax, edi
mov dword [edi + 0x34], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1000a3e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10100320
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1017d120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100d2537
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100bb09e
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001ff70
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.100201d0
mov eax, dword [ebp - 8]
test eax, eax
je 0x1001ffc6
add eax, 0xc
mov esp, ebp
pop ebp
ret 4
push str.invalid_unordered_map_K__T__key
call fcn.100bae1a
int3

Function at 0x10020340
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x1002036b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10020354
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret
Function at 0x100312e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x1003144d
lea eax, [ecx - 1]
mov esi, dword [0x10182398]
or eax, edi
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x101823a0
lea eax, [edi + edi]
push eax
call fcn.10030b90
mov eax, dword [0x10182398]
lea ebx, [edi - 1]
mov dword [0x101823ac], ebx
mov dword [0x101823b0], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10031444
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x101823a0]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x100313a2
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x1003140f
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x100313dc
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x100313d4
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x1003140f
cmp ebx, edx
je 0x100313ec
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10031420
cmp ebx, edx
jne 0x100313e0
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x10031444
mov ebx, dword [0x101823ac]
jmp 0x10031350
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x1003140f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.100badfa
int3
Function at 0x1003b4e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx]
mov edi, dword [ebp + 0xc]
not eax
mov dword [ebp - 4], ebx
cmp edi, 8
jb 0x1003b58f
mov ecx, edi
shr ecx, 3
mov dword [ebp + 8], ecx
mov ebx, dword [esi + 4]
sub edi, 8
mov ecx, dword [esi]
add esi, 8
xor ecx, eax
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, ebx
mov dword [ebp + 0xc], ecx
shr eax, 8
movzx ecx, al
mov eax, dword [edx*4 + 0x10120358]
mov edx, dword [ebp + 0xc]
xor eax, dword [ecx*4 + 0x10120758]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10121358]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10121758]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x1011ff58]
mov ecx, edx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x10120f58]
movzx ecx, bl
xor eax, dword [ecx*4 + 0x10120b58]
movzx ecx, dl
xor eax, dword [ecx*4 + 0x10121b58]
sub dword [ebp + 8], 1
jne 0x1003b507
mov ebx, dword [ebp - 4]
test edi, edi
je 0x1003b5ad
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1011ff58]
sub edi, 1
jne 0x1003b593
pop edi
not eax
pop esi
mov dword [ebx], eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1003b6b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10175b30
push 0x100d3ea0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1017d120]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x1003b753
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x1003b753
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x1003b753
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x1003b753
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1003b75c
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100d24f3
mov esp, ebp
pop ebp
ret