joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4204e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42ca68
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xc
cmp dword [ecx + 0x80], 0
mov dword [ebp - 0x14], ecx
je 0x420640
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_4
and dword [ebp - 4], 0
call sub.MFC42u.DLL_AfxGetModuleState
movzx ecx, word [ebp + 8]
mov eax, dword [eax + 0xc]
push 0x17
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42061e
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42061e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42061e
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp + 8], esi
mov dword [ebp - 0x18], edi
shr edi, 1
cmp edi, 1
jl 0x4205f8
mov ax, word [esi]
cmp ax, 0xfeff
jne 0x420587
add esi, 2
dec edi
jmp 0x4205d3
cmp edi, 5
jl 0x4205f8
cmp ax, 0x3c
jne 0x4205f8
mov ax, word [esi + 2]
mov ebx, dword [sym.imp.MSVCRT.dll_towupper]
push eax
call ebx
cmp ax, 0x48
pop ecx
jne 0x4205f8
mov ax, word [esi + 4]
push eax
call ebx
cmp ax, 0x54
pop ecx
jne 0x4205f8
mov ax, word [esi + 6]
push eax
call ebx
cmp ax, 0x4d
pop ecx
jne 0x4205f8
mov ax, word [esi + 8]
push eax
call ebx
cmp ax, 0x4c
pop ecx
jne 0x4205f8
mov esi, dword [ebp + 8]
push edi
push esi
lea ecx, [ebp + 8]
call fcn.00428966
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_1
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
jmp 0x42061e
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
lea edi, [ebx + 1]
push edi
call sub.MFC42u.DLL_CString::GetBufferSetLength
push edi
push eax
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov ecx, dword [ebp - 0x14]
call fcn.0042081f
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.0042064e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x421414
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x42cc6c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_4
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::LoadStringW
test eax, eax
je 0x421451
push 0xa
push ebx
push dword [ebp - 0x10]
lea eax, [edi + 4]
push eax
call sub.MFC42u.DLL_AfxExtractSubString
lea esi, [edi + 4]
push str._Class
mov ecx, esi
call fcn.00428990
push dword [esi]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4214aa
mov esi, dword [esi]
push ebx
push esi
push ebx
push ebx
mov dword [edi], ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
cmp esi, ebx
je 0x421521
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x421521
push 0x28
lea eax, [ebp - 0x38]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x38], 0xb
call sub.MFC42u.DLL_AfxGetAfxWndProc
mov dword [ebp - 0x34], eax
call sub.MFC42u.DLL_AfxGetModuleState
movzx ecx, word [ebp + 8]
mov eax, dword [eax + 8]
push ecx
push eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
mov dword [ebp - 0x24], eax
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [esi]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x1c], 6
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
call sub.MFC42u.DLL_AfxRegisterClass
test eax, eax
jne 0x42151e
push ebx
push 0x10
push str.Failed_to_register_window_class_
call sub.MFC42u.DLL_AfxMessageBox
jmp 0x421521
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x423061
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x42cf88
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
cmp eax, dword [esi + 0x50]
jne 0x4230d0
xor ebx, ebx
mov dword [ebp - 0x14], vtable.CMenu.0
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call fcn.00422f07
mov edi, eax
cmp edi, ebx
jne 0x423097
mov dword [ebp - 0x14], vtable.CMenu.0
mov dword [ebp - 4], 1
jmp 0x4231eb
cmp word [ebp + 0xc], 0x205
jne 0x423130
push ebx
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.MFC42u.DLL_CMenu::FromHandle
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x4230d7
mov dword [ebp - 0x14], vtable.CMenu.0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 2
call sub.MFC42u.DLL_CMenu::DestroyMenu
xor eax, eax
jmp 0x4231f5
push dword [esi + 0x12c]
push dword [esi + 0x128]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
mov eax, dword [ebp + 0xc]
push dword [edi + 0x20]
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push ebx
push ebx
push ebx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CMenu::DestroyMenu
jmp 0x4231da
cmp word [ebp + 0xc], 0x203
jne 0x4231c1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x42315f
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x42315f
push ebx
push ebx
push 0x471
jmp 0x4231d1
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [esi + 0x12c], ebx
je 0x4231af
push ebx
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.MFC42u.DLL_CMenu::FromHandle
cmp eax, ebx
jne 0x423194
mov dword [ebp - 0x14], vtable.CMenu.0
mov dword [ebp - 4], 3
jmp 0x4231eb
push dword [esi + 0x128]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetMenuItemID]
lea ecx, [ebp - 0x14]
mov esi, eax
call sub.MFC42u.DLL_CMenu::DestroyMenu
jmp 0x4231b5
mov esi, dword [esi + 0x128]
push ebx
push esi
push 0x111
push dword [edi + 0x20]
jmp 0x4231d4
cmp word [ebp + 0xc], 0x201
jne 0x4231da
push ebx
push 4
push 0x46e
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x14], vtable.CMenu.0
push 1
mov dword [ebp - 4], 4
pop ebx
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CMenu::DestroyMenu
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x423300
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x423338
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp + 8]
push 0x423273
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
jmp 0x4233be
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x24
push eax
push 5
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x42339b
mov eax, dword [ebp - 0x18]
sub eax, 0
je 0x42337f
dec eax
je 0x423360
dec eax
je 0x42337f
dec eax
jne 0x4233be
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
mov dword [eax + 8], ecx
jmp 0x4233be
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edx
jmp 0x42337a
mov esi, dword [ebp + 8]
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esi + 8]
sub eax, 0x96
mov dword [esi], eax
mov eax, dword [esi + 0xc]
sub eax, 0x1e
mov dword [esi + 4], eax
pop esi
leave
ret
Function at 0x42850a
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov eax, 0x42d894
call sub.MSVCRT.dll__EH_prolog
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], esi
xor eax, eax
cmp dword [ebp + 0x10], esi
mov dword [ebp + 0x10], esi
setne al
add eax, 0x80000001
push 0x2001f
push 0x4339e4
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.0040f26f
mov edi, eax
cmp edi, esi
jne 0x428592
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x428554
mov ebx, dword [eax]
jmp 0x428556
xor ebx, ebx
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x428561
mov edi, dword [eax]
jmp 0x428563
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push esi
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp + 0x10], esi
mov edi, eax
je 0x428590
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x10], esi
cmp edi, esi
sete bl
cmp dword [ebp + 0x10], esi
je 0x4285a6
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x10], esi
mov ecx, dword [ebp + 8]
cmp ecx, esi
je 0x4285b2
call fcn.0040172d
mov ecx, dword [ebp + 0xc]
cmp ecx, esi
je 0x4285be
call fcn.0040172d
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4285cf
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebx
cmp dword [ebp + 0xc], eax
push esi
lea ecx, [ebp + 0xc]
push edi
setne al
and dword [ebp + 0xc], 0
add eax, 0x80000001
push ecx
push 0x4339e4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edi, dword [ebp + 8]
mov esi, eax
test esi, esi
jne 0x42861e
test edi, edi
je 0x428607
mov eax, dword [edi]
jmp 0x428609
xor eax, eax
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
test edi, edi
je 0x42862e
mov ecx, edi
call fcn.0040172d
pop edi
mov al, bl
pop esi
pop ebx
pop ebp
ret
Function at 0x4070ef
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x4071a0
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x40b12b
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x40b14d
mov eax, 0xfffffffd
jmp 0x40b22a
mov ebx, dword [0x6fd760]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x40b1f8
mov ebx, dword [0x6fd760]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x40b19c
mov ebx, dword [0x6fd760]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x40b19c
mov eax, 1
jmp 0x40b19e
xor eax, eax
test eax, eax
je 0x40b1ca
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x40b1b3
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x6fd760]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x40b220
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x40b22a
mov esp, ebp
pop ebp
ret 4

Function at 0x40bd29
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.004070ef
test eax, eax
je 0x40bd6c
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x40bd6c
cmp word [eax], 0x5a4d
jne 0x40bd6c
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x40bd6c
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.004071d9
mov eax, dword [ebp + 8]
jmp 0x40bd85
mov esp, ebp
pop ebp
ret 4

Function at 0x410682
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
and eax, 1
leave
ret
Function at 0x442960
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x709f90]
xor edx, edx
cmp eax, edx
jne 0x442986
xor eax, eax
mov byte [eax + 0x709e90], al
inc eax
cmp eax, 0x100
jl 0x44296e
mov dword [0x709f90], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x709e90
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x442a17
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4429ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4429b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x442a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x442ae3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x442aca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446d80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x446fa1
cmp eax, 8
jg 0x446fa1
cmp dword [esp + 0x8c], 2
jl 0x446fa1
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x446fa1
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x446fa1
mov eax, dword [esp + 0x80]
test eax, eax
je 0x446e07
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x446f8a
mov ebp, dword [fcn.0049f4f8]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x446e39
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x446f71
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x446e59
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [fcn.0049f508]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x446e98
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [fcn.0049f504]
lea ecx, [esp + 0x28]
push ecx
call dword [fcn.0049f4c4]
test eax, eax
jne 0x446f58
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.00446390
cmp eax, 1
jne 0x446f82
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00446c40
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x446e4d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x446f8a
jmp 0x446e24
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00445f90
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x449940
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x449ad8
cmp ebp, ebx
jle 0x449ad8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x44999e
dec eax
or eax, 0xfffffff8
inc eax
je 0x4499a5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x4499b4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4499bb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0048dd2a
add esp, 4
cmp eax, ebx
je 0x4499dc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0048dd2a
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x449ace
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x449ab5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x449aa1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x449a96
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x449aa4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x449aa4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x449a40
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x449a31
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x4512a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x49cfd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00451e20
lea edx, [esp + 0x18]
push eax
push edx
call dword [fcn.0049f6b0]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [fcn.0049f4c4]
test eax, eax
je 0x451349
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00450f30
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [fcn.0049f4f8]
push edi
lea ecx, [esp + 0x4c]
call fcn.00494ad8
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.00460930
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x49f184]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [fcn.0049f49c]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [fcn.0049f504]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.00494b4a
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14