joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bd04
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43bd20
cmp dword [esi + 4], 0
je 0x43bd4d
test byte [ebx + 0x55], 1
jne 0x43bd3f
mov eax, ebx
call fcn.0043a8a4
test eax, eax
jne 0x43bd3f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43be5d
mov edx, esi
mov eax, ebx
call fcn.0043b828
jmp 0x43be5d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43be56
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043db74
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00438540
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043bd04
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043db74
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43be5d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442530
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x466568]
cmp byte [eax + 0xc], 0
je 0x44269d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x442696
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x467b64], 0
jne 0x442584
push 0x4426a4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4426ac
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b64], eax
cmp dword [0x463c28], 0
jne 0x44267f
push 0x4426bc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x463c28], eax
cmp dword [0x463c28], 0
je 0x44267f
push 0x4426c8
mov eax, dword [0x463c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b68], eax
push 0x4426d8
mov eax, dword [0x463c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b6c], eax
push 0x4426ec
mov eax, dword [0x463c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b70], eax
push 0x442704
mov eax, dword [0x463c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b74], eax
push 0x44271c
mov eax, dword [0x463c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b78], eax
push 0x442730
mov eax, dword [0x463c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b7c], eax
push 0x442748
mov eax, dword [0x463c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b80], eax
push 0x442760
mov eax, dword [0x463c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b84], eax
push 0x44277c
mov eax, dword [0x463c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b88], eax
push 0x442788
mov eax, dword [0x463c28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44269d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404058
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x446577
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004042c8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44dcb4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44dd04]
test si, 4
je 0x44dcc8
or bl, 1
test si, 8
je 0x44dcd2
or bl, 4
test si, 1
je 0x44dcdc
or bl, 8
test si, 2
je 0x44dce6
or bl, 0x10
test si, 0x10
je 0x44dcf0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44dcff
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44dd08
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44dd40]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44dd21
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44dd30
or bl, 4
test esi, 0x20000000
je 0x44dd3b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4543e8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4543fa
add esp, 0xfffffff0
call fcn.004035b0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419790
mov eax, dword [0x466230]
mov dword [eax + 4], ebx
mov dword [eax], 0x45478c
mov eax, dword [0x46623c]
mov dword [eax + 4], ebx
mov dword [eax], 0x454798
mov eax, ebx
call fcn.004547a4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411a88]
call fcn.0040325c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411a88]
call fcn.0040325c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411a88]
call fcn.0040325c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411a88]
call fcn.0040325c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411a88]
call fcn.0040325c
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, 0x450bc0
push eax
push 0
push 0
mov eax, dword [0x466380]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b1e4]
call fcn.0041c958
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b1e4]
call fcn.0041c958
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b1e4]
call fcn.0041c958
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00454bc4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454aa0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454aa0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454aa0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454537
call fcn.00403608
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x454884
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 0x454a2f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454a10
mov dl, 1
mov eax, dword [0x411ea4]
call fcn.0040325c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404058
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4549ff
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.00442890
test al, al
je 0x4549f2
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, 0x454a40
lea eax, [ebp - 0x254]
call fcn.00408ec4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4549f2
xor eax, eax
push ebp
push 0x4549eb
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 0x454a78
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4549d4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042c8
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 0x4549d4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4549f2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4548f5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415980
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 0x454a36
lea eax, [ebp - 0x260]
call fcn.00404058
ret

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

Disassembly:
push ecx
mov eax, dword [0x467bb0]
cmp byte [eax + 0xa5], 0
jne 0x4553d5
cmp dword [0x467bc8], 0
jne 0x455396
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x455320
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x467bc8], eax
cmp dword [0x467bc4], 0
jne 0x4553b1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x467bc4], eax
cmp dword [0x467bcc], 0
jne 0x4553d5
push esp
push 0
push 0
push 0x4552c4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x467bcc], eax
pop edx
ret
Function at 0x4554cc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4554e3
add esp, 0xfffffff0
call fcn.004035b0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419790
mov eax, dword [0x46636c]
cmp word [eax + 2], 0
jne 0x45550b
mov eax, dword [0x46636c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456c34
mov eax, dword [0x466418]
cmp word [eax + 2], 0
jne 0x455525
mov eax, dword [0x466418]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456e2c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411a88]
call fcn.0040325c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411a88]
call fcn.0040325c
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 [0x41bcc4]
call fcn.00423098
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4556ac
mov eax, dword [0x466290]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423468
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4573cc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x466290]
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.0040c604
test eax, eax
je 0x45561a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004088a4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c62c
test eax, eax
je 0x45562e
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.004042c8
mov eax, dword [0x466188]
cmp byte [eax], 0
jne 0x455662
mov eax, ebx
call fcn.004557d4
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.004575a8
mov eax, ebx
call fcn.00457f6c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4556a2
call fcn.00403608
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455a54
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x467bb0]
cmp dword [eax + 0x30], 0
je 0x455afe
cmp dword [ebx + 0x94], 0
jne 0x455af8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4559e4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455af8
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 0x455abe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455af8
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.00413df0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455acd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456660
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 0x456695
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.00404148
jmp 0x4566a2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040ac
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457784
Capabilities:
Hide graphical window

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

Function at 0x45a598
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x45a5bb
neg ecx
je 0x45a5bb
sub edx, ecx
push ebx
mov ebx, 0
mov bl, al
xor bl, byte [ecx + edx]
shr eax, 8
xor eax, dword [ebx*4 + 0x467be8]
inc ecx
jne 0x45a5a8
pop ebx
ret

Function at 0x45a618
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x467be8
mov eax, esi
mov edx, 8
test al, 1
je 0x45a634
shr eax, 1
xor eax, 0xedb88320
jmp 0x45a636
shr eax, 1
dec edx
jne 0x45a627
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x45a620
pop esi
ret
Function at 0x45beb8
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffbf0
mov edi, ecx
mov ebx, eax
mov dword [ebx + 0x44], 1
push edx
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
jne 0x45beec
mov dword [ebx + 0x44], 6
jmp 0x45c095
xor eax, eax
mov dword [esp + 4], eax
push esp
push 2
lea eax, [esp + 0xc]
push eax
push edi
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x45bf17
mov dword [ebx + 0x44], 7
jmp 0x45c095
cmp dword [esp + 4], 0x5a4d
je 0x45bf2d
mov dword [ebx + 0x44], 4
jmp 0x45c095
push esp
push 4
lea eax, [esp + 0xc]
push eax
lea eax, [edi + 0x3c]
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x45bf55
mov dword [ebx + 0x44], 7
jmp 0x45c095
push esp
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
add eax, edi
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x45bf80
mov dword [ebx + 0x44], 7
jmp 0x45c095
cmp dword [esp + 8], 0x4550
je 0x45bf96
mov dword [ebx + 0x44], 5
jmp 0x45c095
push esp
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
add eax, edi
add eax, 0x50
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x45bfc4
mov dword [ebx + 0x44], 7
jmp 0x45c095
mov eax, dword [esp + 8]
push eax
call fcn.004057d4
pop ecx
mov ebp, eax
mov dword [ebx + 0x10], ebp
test ebp, ebp
jne 0x45bfe4
mov dword [ebx + 0x44], 8
jmp 0x45c095
push esp
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [ebx + 0x10]
push eax
push edi
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x45c00f
mov eax, dword [esp + 8]
push eax
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.0045ce0c
mov eax, ebx
call fcn.0045c7b4
xor eax, eax
mov dword [ebx + 8], eax
push 0x400
lea ecx, [esp + 0x10]
mov edx, edi
mov eax, esi
call fcn.0045a9f8
lea eax, [ebx + 4]
lea edx, [esp + 0xc]
mov ecx, 0x401
call fcn.004042c8
cmp dword [ebx + 4], 0
je 0x45c092
push 0
push 0xa2
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebx + 4]
call fcn.00404518
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
mov dword [ebx + 0xc], esi
cmp esi, 0xffffffff
je 0x45c095
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0xc]
call fcn.0045a5bc
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x14], edi
add esp, 0x410
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45c364
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404508
xor eax, eax
push ebp
push 0x45c559
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx + 0x44], 1
mov eax, dword [ebp - 4]
call fcn.00408674
test al, al
jne 0x45c3a9
mov dword [ebx + 0x44], 2
jmp 0x45c543
mov eax, esi
sub eax, 0x80000000
je 0x45c3c2
sub eax, 0x40000000
je 0x45c3d4
sub eax, 0x80000000
je 0x45c3cb
jmp 0x45c3dd
mov dword [ebp - 8], 1
jmp 0x45c3e9
mov dword [ebp - 8], 2
jmp 0x45c3e9
mov dword [ebp - 8], 3
jmp 0x45c3e9
mov dword [ebx + 0x44], 9
jmp 0x45c543
push 0
push 0xa2
push 3
push 0
mov eax, dword [ebp - 8]
push eax
push esi
mov eax, dword [ebp - 4]
call fcn.00404518
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
mov dword [ebx + 0xc], edi
cmp edi, 0xffffffff
jne 0x45c41d
mov dword [ebx + 0x44], 3
jmp 0x45c543
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.004040ac
push 0
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebx + 8], eax
push 0
push 0
push 0
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 0xc], 0x5a4d
je 0x45c474
mov dword [ebx + 0x44], 4
jmp 0x45c543
push 0
push 0
push 0x3c
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_ReadFile
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 0x10], 0x4550
je 0x45c4d0
mov dword [ebx + 0x44], 5
jmp 0x45c543
push 0
push 0
mov eax, dword [ebp - 0xc]
add eax, 0x50
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0x10]
push eax
call fcn.004057d4
pop ecx
mov dword [ebx + 0x10], eax
push 0
push 0
push 0
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebx + 0xc]
call fcn.0045a5bc
mov dword [ebx + 0x4c], eax
xor eax, eax
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.0045c7b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c560
lea eax, [ebp - 4]
call fcn.00404058
ret
Function at 0x45c7b4
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov dword [ebx + 0x44], 1
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x18], eax
cmp word [eax], 0x5a4d
je 0x45c7e0
mov eax, ebx
call fcn.0045bb68
mov dword [ebx + 0x44], 4
jmp 0x45c8a9
mov eax, dword [ebx + 0x10]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov ecx, eax
mov dword [ebx + 0x1c], ecx
cmp dword [ecx], 0x4550
je 0x45c818
mov eax, ebx
call fcn.0045bb68
mov dword [ebx + 0x44], 5
jmp 0x45c8a9
mov eax, dword [ebx + 0x1c]
lea edx, [eax + 0x18]
movzx eax, word [eax + 0x14]
add edx, eax
mov dword [ebx + 0x20], edx
mov eax, dword [ebx + 0x1c]
movzx edx, word [eax + 6]
dec edx
test edx, edx
jl 0x45c84f
inc edx
xor eax, eax
lea ecx, [eax + eax*4]
mov esi, dword [ebx + 0x20]
mov esi, dword [esi + ecx*8 + 0xc]
mov edi, dword [ebx + 0x1c]
cmp esi, dword [edi + 0x54]
jae 0x45c84b
mov dword [edi + 0x54], esi
inc eax
dec edx
jne 0x45c836
mov eax, dword [ebx + 0x1c]
movzx edx, word [eax + 6]
dec edx
test edx, edx
jl 0x45c88b
inc edx
xor eax, eax
lea esi, [eax + eax*4]
mov edi, dword [ebx + 0x20]
cmp dword [edi + esi*8 + 0x14], 0
jne 0x45c887
mov ecx, dword [ebx + 0x20]
cmp dword [ecx + esi*8 + 0x10], 0
je 0x45c887
mov ecx, dword [ebx + 0x20]
push dword [ecx + esi*8 + 0x10]
pop ecx
mov dword [edi + esi*8 + 8], ecx
xor ecx, ecx
mov dword [edi + esi*8 + 0x10], ecx
inc eax
dec edx
jne 0x45c85e
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x38]
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x1c]
mov ax, word [eax + 0x16]
and ax, 0x2000
cmp ax, 0x2000
sete al
mov byte [ebx + 0x40], al
pop edi
pop esi
pop ebx
ret