joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52a7e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x657114]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00504c70
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x52a844
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [ebp - 0x108], 0
je 0x52a844
lea eax, [ebp - 0x108]
push eax
call dword [0x65802c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004682d0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004682d0
mov esp, ebp
pop ebp
ret

Function at 0x52a860
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052a7e0
Function at 0x52d9e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x52e690
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x658020]
mov edi, eax
add esp, 4
test edi, edi
jne 0x52e6bd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x52e704
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x52e70a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x52e76b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x52e730
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x52e797
mov eax, dword [esi + 4]
push 1
push 0x63d2fc
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x63d2fd
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x52e770
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x52e7c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x52e7f3
push 0x2e
push edi
call fcn.004e41e0
add esp, 8
test eax, eax
je 0x52e7f1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4065e5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d448]
jne 0x4065ef
repz ret
jmp fcn.004085db

Function at 0x407bf3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004052ef
and dword [ebp - 0x14], 0
cmp dword [0x43c1d0], 0
mov dword [ebp - 0x18], eax
jne 0x407ca6
push 0x402190
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407d4e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402184
push ebx
call edi
test eax, eax
je 0x407d4e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402174
push ebx
mov dword [0x43c1d0], eax
call edi
push eax
call esi
push 0x402160
push ebx
mov dword [0x43c1d4], eax
call edi
push eax
call esi
push 0x402144
push ebx
mov dword [0x43c1d8], eax
call edi
push eax
call esi
mov dword [0x43c1e0], eax
test eax, eax
je 0x407ca6
push 0x40212c
push ebx
call edi
push eax
call esi
mov dword [0x43c1dc], eax
mov eax, dword [0x43c1dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407cff
cmp dword [0x43c1e0], ecx
je 0x407cff
push eax
call esi
push dword [0x43c1e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407cff
test ebx, ebx
je 0x407cff
call edi
test eax, eax
je 0x407cf6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407cf6
test byte [ebp - 8], 1
jne 0x407cff
or dword [ebp + 0x10], 0x200000
jmp 0x407d32
mov eax, dword [0x43c1d4]
cmp eax, dword [ebp - 0x18]
je 0x407d32
push eax
call esi
test eax, eax
je 0x407d32
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407d32
mov eax, dword [0x43c1d8]
cmp eax, dword [ebp - 0x18]
je 0x407d32
push eax
call esi
test eax, eax
je 0x407d32
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43c1d0]
call esi
test eax, eax
je 0x407d4e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407d50
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065e5
leave
ret
Function at 0x409ed0
Capabilities:
Copy file
Get uefi variable

Disassembly:
sub esp, 0xc18
cmp dword [0x4b7d40], 0x37
jne 0x409f40
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0
lea eax, [esp + 0x41c]
push eax
push 0x402a48
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov ecx, dword [0x4b7d44]
mov eax, dword [0x4b7424]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0xc18
ret
Function at 0x404120
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x47f97c]
mov ecx, dword [0x4563ec]
shr eax, 3
sub esp, 0x408
test eax, eax
je 0x4041b8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x47f97c], 0x5d
jne 0x40419f
push 0
push 0
push 0
push 0
push 0
push 0
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 0x403ad8
call ebx
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
call esi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00403c90
add dword [esp + 0x10], 8
dec dword [esp + 0x14]
jne 0x404160
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret
Function at 0x404ab0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
cmp dword [0x47f97c], 0xc
jne 0x404aee
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp]
call fcn.00404b4c
lea ecx, [esp]
call fcn.00404b88
push 0
push 0
call fcn.00404eeb
add esp, 8
mov eax, dword [0x4337e4]
push 0x4773d8
mov dword [0x47f97c], eax
mov dword [0x4773d8], 0x73006d
mov dword [0x4773dc], 0x6d0069
mov dword [0x4773e0], 0x330067
mov dword [0x4773e4], 0x2e0032
mov dword [0x4773e8], 0x6c0064
mov dword [0x4773ec], 0x6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call fcn.004041c0
xor eax, eax
add esp, 0xc
ret 0x10

Function at 0x408ecc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4235e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407723
and dword [ebp - 0x14], 0
cmp dword [0x4343e4], 0
mov dword [ebp - 0x18], eax
jne 0x408f7f
push 0x402694
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409027
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402688
push ebx
call edi
test eax, eax
je 0x409027
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402678
push ebx
mov dword [0x4343e4], eax
call edi
push eax
call esi
push 0x402664
push ebx
mov dword [0x4343e8], eax
call edi
push eax
call esi
push 0x402648
push ebx
mov dword [0x4343ec], eax
call edi
push eax
call esi
mov dword [0x4343f4], eax
test eax, eax
je 0x408f7f
push 0x402630
push ebx
call edi
push eax
call esi
mov dword [0x4343f0], eax
mov eax, dword [0x4343f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408fd8
cmp dword [0x4343f4], ecx
je 0x408fd8
push eax
call esi
push dword [0x4343f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408fd8
test ebx, ebx
je 0x408fd8
call edi
test eax, eax
je 0x408fcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408fcf
test byte [ebp - 8], 1
jne 0x408fd8
or dword [ebp + 0x10], 0x200000
jmp 0x40900b
mov eax, dword [0x4343e8]
cmp eax, dword [ebp - 0x18]
je 0x40900b
push eax
call esi
test eax, eax
je 0x40900b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40900b
mov eax, dword [0x4343ec]
cmp eax, dword [ebp - 0x18]
je 0x40900b
push eax
call esi
test eax, eax
je 0x40900b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4343e4]
call esi
test eax, eax
je 0x409027
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409029
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409237
leave
ret

Function at 0x409237
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4235e8]
jne 0x409241
repz ret
jmp fcn.0040c013
Function at 0x40a41d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430ba0]
jne 0x40a427
repz ret
jmp fcn.0040d4e2

Function at 0x40c27e
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.004086e0
and dword [ebp - 4], 0
cmp dword [0x432d38], 0
mov ebx, eax
jne 0x40c32f
push 0x401ac8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c3e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401abc
push edi
call esi
test eax, eax
je 0x40c3e0
push eax
call fcn.0040866e
mov dword [esp], 0x401aac
push edi
mov dword [0x432d38], eax
call esi
push eax
call fcn.0040866e
mov dword [esp], 0x401a98
push edi
mov dword [0x432d3c], eax
call esi
push eax
call fcn.0040866e
mov dword [esp], 0x401a7c
push edi
mov dword [0x432d40], eax
call esi
push eax
call fcn.0040866e
pop ecx
mov dword [0x432d48], eax
test eax, eax
je 0x40c32f
push 0x401a64
push edi
call esi
push eax
call fcn.0040866e
pop ecx
mov dword [0x432d44], eax
mov eax, dword [0x432d44]
cmp eax, ebx
je 0x40c387
cmp dword [0x432d48], ebx
je 0x40c387
push eax
call fcn.004086e9
push dword [0x432d48]
mov esi, eax
call fcn.004086e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c387
test edi, edi
je 0x40c387
call esi
test eax, eax
je 0x40c37e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c37e
test byte [ebp - 0xc], 1
jne 0x40c387
or dword [ebp + 0x10], 0x200000
jmp 0x40c3c0
mov eax, dword [0x432d3c]
cmp eax, ebx
je 0x40c3c0
push eax
call fcn.004086e9
pop ecx
test eax, eax
je 0x40c3c0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c3c0
mov eax, dword [0x432d40]
cmp eax, ebx
je 0x40c3c0
push eax
call fcn.004086e9
pop ecx
test eax, eax
je 0x40c3c0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x432d38]
call fcn.004086e9
pop ecx
test eax, eax
je 0x40c3e0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c3e2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401934
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d050]
jne 0x40193e
repz ret
jmp fcn.00403144

Function at 0x403813
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40d208]
je 0x40382e
inc edi
cmp edi, 0x17
jb 0x40381f
cmp edi, 0x17
jae 0x4039ae
push ebp
push 3
call fcn.00407a79
cmp eax, 1
pop ecx
je 0x40397a
push 3
call fcn.00407a79
test eax, eax
pop ecx
jne 0x403862
cmp dword [0x40d060], 1
je 0x40397a
cmp ebx, 0xfc
je 0x4039ad
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40e388
push ebp
call fcn.00404b3a
add esp, 0xc
test eax, eax
je 0x403898
push esi
push esi
push esi
push esi
push esi
call fcn.00402fa5
add esp, 0x14
push 0x104
mov esi, 0x40e3a1
push esi
push 0
mov byte [0x40e4a5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4038dc
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00404b3a
add esp, 0xc
test eax, eax
je 0x4038dc
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00402fa5
add esp, 0x14
push esi
call fcn.00404ba0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403921
push esi
call fcn.00404ba0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40e69c
push 0x40a984
sub ecx, eax
push ecx
push eax
call fcn.004079c6
add esp, 0x14
test eax, eax
je 0x403921
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00402fa5
add esp, 0x14
jmp 0x403923
xor esi, esi
push 0x40a980
push ebx
push ebp
call fcn.00407955
add esp, 0xc
test eax, eax
je 0x403943
push esi
push esi
push esi
push esi
push esi
call fcn.00402fa5
add esp, 0x14
push dword [edi*8 + 0x40d20c]
push ebx
push ebp
call fcn.00407955
add esp, 0xc
test eax, eax
je 0x403965
push esi
push esi
push esi
push esi
push esi
call fcn.00402fa5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00407798
add esp, 0xc
jmp 0x4039ad
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4039ad
cmp ebp, 0xffffffff
je 0x4039ad
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40d20c]
push dword [esi]
call fcn.00404ba0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x407798
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040430e
xor ebx, ebx
cmp dword [0x40e99c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40786e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40794e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40794e
push eax
call fcn.004042a0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e99c], eax
call esi
push eax
call fcn.004042a0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e9a0], eax
call esi
push eax
call fcn.004042a0
mov dword [0x40e9a4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004035a0
test eax, eax
pop ecx
pop ecx
je 0x40783c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402fa5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40786e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004042a0
cmp eax, ebx
pop ecx
mov dword [0x40e9ac], eax
je 0x40786e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004042a0
pop ecx
mov dword [0x40e9a8], eax
mov eax, dword [0x40e9a8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4078f3
cmp dword [0x40e9ac], ecx
je 0x4078f3
push eax
call fcn.00404317
push dword [0x40e9ac]
mov esi, eax
call fcn.00404317
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4078f3
cmp edi, ebx
je 0x4078f3
call esi
cmp eax, ebx
je 0x4078c0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4078c0
test byte [ebp - 0x18], 1
jne 0x4078f3
lea eax, [ebp - 0x10]
push eax
call fcn.004035d7
test eax, eax
pop ecx
je 0x4078db
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402fa5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4078ea
or dword [ebp + 0x10], 0x200000
jmp 0x40792e
or dword [ebp + 0x10], 0x40000
jmp 0x40792e
mov eax, dword [0x40e9a0]
cmp eax, dword [ebp - 8]
je 0x40792e
push eax
call fcn.00404317
cmp eax, ebx
pop ecx
je 0x40792e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40792e
mov eax, dword [0x40e9a4]
cmp eax, dword [ebp - 8]
je 0x40792e
push eax
call fcn.00404317
cmp eax, ebx
pop ecx
je 0x40792e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e99c]
call fcn.00404317
cmp eax, ebx
pop ecx
je 0x40794e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407950
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403fa0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d81b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x44d100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x410
mov dword [ebp - 0x23c], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x404170
lea eax, [ebp - 0x234]
push eax
push 4
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x404170
mov eax, dword [ebp - 0x234]
mov ecx, 4
shr eax, 2
mul ecx
mov esi, eax
mov eax, 0xffffffff
cmovb esi, eax
push esi
call fcn.0042bdd3
mov edi, eax
add esp, 4
test edi, edi
je 0x404051
push esi
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x404053
xor edi, edi
mov dword [ebp - 0x240], edi
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x234]
push edi
push ebx
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x404163
xor esi, esi
test dword [ebp - 0x234], 0xfffffffc
jbe 0x404163
nop
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push eax
push dword [edi + esi*4]
push ebx
call sub.KERNEL32.dll_K32GetModuleFileNameExW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402000
mov eax, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 7
push 0
mov byte [ebp - 4], 1
lea ecx, [eax + eax]
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x238]
push eax
call fcn.00404bb0
mov ecx, dword [ebp - 0x238]
push 0
push 2
push 0x441640
call fcn.00404bb0
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x404151
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404147
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40418c
push ecx
push edx
call fcn.0042bdc5
add esp, 8
mov eax, dword [ebp - 0x234]
inc esi
shr eax, 2
cmp esi, eax
jb 0x404090
test edi, edi
je 0x404170
push edi
call fcn.0042bddc
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042bc6d
mov esp, ebp
pop ebp
ret
call fcn.0042cfa0
int3
Function at 0x40b200
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43dff5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x44d100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.00408b60
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x40b293
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 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 8
cmp dword [edi + 8], 0x15555555
je 0x40b3e1
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.0042bd95
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ecx
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
inc eax
movss xmm3, dword [edi]
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4438c0]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x4438c0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x40b383
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
fstp qword [esp]
call sub.msvcrt.dll_ceil
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.0042c070
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x40b365
cmp ebx, 0x200
jae 0x40b363
shl ebx, 3
cmp ebx, ecx
jae 0x40b365
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.004141d0
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00408b60
mov edx, dword [eax]
jmp 0x40b386
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
inc dword [edi + 8]
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x10]
jne 0x40b3b1
mov dword [ecx + eax*8], esi
jmp 0x40b3c0
cmp edi, edx
jne 0x40b3ba
mov dword [ecx + eax*8], esi
jmp 0x40b3c4
cmp dword [ecx + eax*8 + 4], ebx
jne 0x40b3c4
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
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
push str.unordered_map_set_too_long
call fcn.0042a2b9
int3