joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e2d4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44e30c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e2ed
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e2fc
or bl, 4
test esi, 0x20000000
je 0x44e307
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4549b4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4549c6
add esp, 0xfffffff0
call fcn.0040356c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004196e4
mov eax, dword [0x468368]
mov dword [eax + 4], ebx
mov dword [eax], 0x454d58
mov eax, dword [0x468374]
mov dword [eax + 4], ebx
mov dword [eax], 0x454d64
mov eax, ebx
call fcn.00454d70
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4119c4]
call fcn.00403218
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4119c4]
call fcn.00403218
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4119c4]
call fcn.00403218
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4119c4]
call fcn.00403218
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4119c4]
call fcn.00403218
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45118c
push eax
push 0
push 0
mov eax, dword [0x4684c4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b16c]
call fcn.0041c8e0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b16c]
call fcn.0041c8e0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b16c]
call fcn.0041c8e0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00455190
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45506c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45506c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45506c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454b03
call fcn.004035c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x454e50
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x454ffb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454fdc
mov dl, 1
mov eax, dword [0x411de0]
call fcn.00403218
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f98
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x454fcb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00442940
test al, al
je 0x454fbe
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45500c
lea eax, [ebp - 0x254]
call fcn.00408d54
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x454fbe
xor eax, eax
push ebp
push 0x454fb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x455044
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x454fa0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404208
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x454fa0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454fbe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454ec1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004158d4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455002
lea eax, [ebp - 0x260]
call fcn.00403f98
ret

Function at 0x455930
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x469bdc]
cmp byte [eax + 0xa5], 0
jne 0x4559a1
cmp dword [0x469bf4], 0
jne 0x455962
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4558ec
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x469bf4], eax
cmp dword [0x469bf0], 0
jne 0x45597d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x469bf0], eax
cmp dword [0x469bf8], 0
jne 0x4559a1
push esp
push 0
push 0
push 0x455890
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x469bf8], eax
pop edx
ret
Function at 0x455a98
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x455aaf
add esp, 0xfffffff0
call fcn.0040356c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004196e4
mov eax, dword [0x4684b0]
cmp word [eax + 2], 0
jne 0x455ad7
mov eax, dword [0x4684b0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457200
mov eax, dword [0x468560]
cmp word [eax + 2], 0
jne 0x455af1
mov eax, dword [0x468560]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004573f8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4119c4]
call fcn.00403218
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4119c4]
call fcn.00403218
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41bc4c]
call fcn.00423330
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x455c78
mov eax, dword [0x4683cc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423700
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4579a8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4683cc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c424
test eax, eax
je 0x455be6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408734
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c44c
test eax, eax
je 0x455bfa
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404208
mov eax, dword [0x4682ac]
cmp byte [eax], 0
jne 0x455c2e
mov eax, ebx
call fcn.00455da0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00457b84
mov eax, ebx
call fcn.00458548
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455c6e
call fcn.004035c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456020
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x469bdc]
cmp dword [eax + 0x30], 0
je 0x4560ca
cmp dword [ebx + 0x94], 0
jne 0x4560c4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455fb0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4560c4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45608a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4560c4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413d2c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456099
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456c2c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x456c61
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404088
jmp 0x456c6e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fec
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457d60
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457da1
mov eax, esi
call fcn.0043df28
test al, al
je 0x457da1
mov eax, dword [ebx + 0x84]
call fcn.0043dc24
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457da1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043dc24
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45aa48
Capabilities:
Hide graphical window

Disassembly:
push 9
mov eax, dword [0x468544]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x468544]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetForegroundWindow
mov eax, dword [0x468544]
mov eax, dword [eax]
cmp byte [eax + 0x5b], 0
jne 0x45aa9d
mov eax, dword [0x468544]
mov eax, dword [eax]
mov byte [eax + 0x5b], 1
mov eax, dword [0x468544]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x45aa9d
mov edx, dword [0x468544]
mov dl, 1
call fcn.0045066c
ret

Function at 0x461ac4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
push 0
push ebx
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
sub ebx, 8
je 0x461af2
sub ebx, 5
je 0x461af2
add ebx, 0xfffffffd
sub ebx, 3
jb 0x461af2
or eax, 0x1000000
push 0xff
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov edx, esi
mov eax, esp
call fcn.004088e4
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x465400
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0
push 0x46544c
push 0
mov eax, dword [0x469d88]
push eax
call sub.user32.dll_FindWindowExA
mov dword [0x469d8c], eax
cmp dword [0x469d8c], 0
je 0x465447
push 9
mov eax, dword [0x469d8c]
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
mov dword [0x469d84], eax
mov eax, dword [0x469d8c]
push eax
mov eax, esi
call fcn.0043dc24
push eax
call dword [0x469d7c]
push 0
push 0
push 0x1a
push 0xffff
call sub.user32.dll_SendMessageA
push 0
push 0
push 0
mov eax, dword [0x469d88]
push eax
call sub.user32.dll_PostMessageA
mov byte [0x469d90], 1
push 9
mov eax, dword [0x469d8c]
push eax
call sub.user32.dll_ShowWindow
push 0
push 0
push 0x7ea
mov eax, dword [0x469d84]
push eax
call sub.user32.dll_SendMessageA
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x465714
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404448
xor eax, eax
push ebp
push 0x4658d1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 4]
call fcn.00408790
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test bx, bx
jne 0x465788
mov eax, dword [ebp - 8]
call fcn.00403f98
jmp 0x4658ab
xor eax, eax
push ebp
push 0x465894
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, bx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x465883
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
movzx eax, bx
push eax
push 0
lea eax, [ebp - 0x118]
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4658e0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46586d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
call fcn.004069bc
movzx eax, ax
lea edx, [ebp - 0x11c]
call fcn.00408094
push dword [ebp - 0x11c]
push 0x4658ec
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 8]
call fcn.00408094
push dword [ebp - 0x120]
push 0x4658ec
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.004069bc
movzx eax, ax
lea edx, [ebp - 0x124]
call fcn.00408094
push dword [ebp - 0x124]
push 0x4658ec
lea edx, [ebp - 0x128]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0xc]
call fcn.00408094
push dword [ebp - 0x128]
mov eax, dword [ebp - 8]
mov edx, 7
call fcn.00404318
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46588a
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4658d8
lea eax, [ebp - 0x128]
mov edx, 4
call fcn.00403fbc
lea eax, [ebp - 4]
call fcn.00403f98
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5e8008], 0x8088405
inc edx
mov dword [ebx + 0x5e8008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cae4
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cb15
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cafd
add dl, dl
jne 0x41cb20
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cb71
xor eax, eax
add dl, dl
jne 0x41cb2d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc0e
add dl, dl
jne 0x41cb3c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cb47
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cb52
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cb5d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cb67
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cb0c
mov eax, 1
add dl, dl
jne 0x41cb7f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cb8a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cb76
sub eax, ebx
mov ebx, 1
jne 0x41cbbd
mov ecx, 1
add dl, dl
jne 0x41cba3
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cbae
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cb9a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cb0c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cbd4
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cbdf
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cbcb
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cb0c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cc2f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cb0c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41d7a8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d7bb
add esp, 0xfffffff0
call fcn.00403da8
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403b30
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d7e1
cmp dword [esi + 0x58], 0x40
jb 0x41d9c7
jmp 0x41d7e7
jl 0x41d9c7
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.00406e80
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041d364
cmp word [ebx + 0xc], 0x5a4d
jne 0x41d9c7
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41d9c7
cmp ecx, 0x10000
jge 0x41d9c7
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d842
cmp eax, dword [esi + 0x58]
ja 0x41d9c7
jmp 0x41d848
jg 0x41d9c7
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.00406e80
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041d364
cmp dword [ebx + 0x4c], 0x4550
jne 0x41d9c7
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.00406e80
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041d364
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41d8ff
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d8c3
cmp eax, dword [esi + 0x58]
ja 0x41d950
jmp 0x41d8c9
jg 0x41d950
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.00406e80
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041d364
mov byte [ebx + 4], 1
jmp 0x41d950
cmp ax, 0x14c
jne 0x41d950
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d920
cmp eax, dword [esi + 0x58]
ja 0x41d950
jmp 0x41d922
jg 0x41d950
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.00406e80
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041d364
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41d9c7
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d981
cmp eax, dword [esi + 0x58]
ja 0x41d9c7
jmp 0x41d983
jg 0x41d9c7
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x5d227c]
call fcn.00405b74
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041d364
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41d9de
call fcn.00403e00
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e6d8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5d3b97
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e789
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e772
test esi, esi
jbe 0x41e789
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088a4
test eax, eax
jne 0x41e764
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e789
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e741
jmp 0x41e789
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e789
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d3b9e
ret
Function at 0x41efb4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x5d4563
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41efef
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41f008
lea eax, [ebp - 0x10]
mov edx, dword [0x5ea208]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41f01b
lea eax, [ebp - 0x10]
mov edx, dword [0x5ea208]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41f027
adc edx, 0
mov edx, dword [edx*4 + 0x5e90ac]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41f135
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f128
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f128
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d94
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f128
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f128
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f128
cmp dx, 0x150
ja 0x41f128
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f128
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f128
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f14d
inc ebx
cmp ebx, 0x19
jne 0x41efe1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d456a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret