joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440d18
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4af5b8]
cmp byte [eax + 0xc], 0
je 0x440e85
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x440e7e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b0b94], 0
jne 0x440d6c
push 0x440e8c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x440e94
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b0b94], eax
cmp dword [0x4adba8], 0
jne 0x440e67
push 0x440ea4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4adba8], eax
cmp dword [0x4adba8], 0
je 0x440e67
push 0x440eb0
mov eax, dword [0x4adba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b0b98], eax
push 0x440ec0
mov eax, dword [0x4adba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b0b9c], eax
push 0x440ed4
mov eax, dword [0x4adba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b0ba0], eax
push 0x440eec
mov eax, dword [0x4adba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b0ba4], eax
push 0x440f04
mov eax, dword [0x4adba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b0ba8], eax
push 0x440f18
mov eax, dword [0x4adba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b0bac], eax
push 0x440f30
mov eax, dword [0x4adba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b0bb0], eax
push 0x440f48
mov eax, dword [0x4adba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b0bb4], eax
push 0x440f64
mov eax, dword [0x4adba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b0bb8], eax
push 0x440f70
mov eax, dword [0x4adba8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b0bbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440e85
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x444d10
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.00403efc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x444d5f
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.0040416c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44c49c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44c4ec]
test si, 4
je 0x44c4b0
or bl, 1
test si, 8
je 0x44c4ba
or bl, 4
test si, 1
je 0x44c4c4
or bl, 8
test si, 2
je 0x44c4ce
or bl, 0x10
test si, 0x10
je 0x44c4d8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c4e7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44c4f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44c528]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c509
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c518
or bl, 4
test esi, 0x20000000
je 0x44c523
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x452bd0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x452be2
add esp, 0xfffffff0
call fcn.0040344c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ae1c
mov eax, dword [0x4af034]
mov dword [eax + 4], ebx
mov dword [eax], 0x452f74
mov eax, dword [0x4af044]
mov dword [eax + 4], ebx
mov dword [eax], 0x452f80
mov eax, ebx
call fcn.00452f8c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411c48]
call fcn.004030f8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411c48]
call fcn.004030f8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411c48]
call fcn.004030f8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411c48]
call fcn.004030f8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411c48]
call fcn.004030f8
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, 0x44f3a8
push eax
push 0
push 0
mov eax, dword [0x4af288]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c880]
call fcn.0041dff4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c880]
call fcn.0041dff4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c880]
call fcn.0041dff4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004533ac
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453288
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453288
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453288
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452d1f
call fcn.004034a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45306c
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 0x453217
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4531f8
mov dl, 1
mov eax, dword [0x4122ac]
call fcn.004030f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403efc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4531e7
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.00441078
test al, al
je 0x4531da
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, 0x453228
lea eax, [ebp - 0x254]
call fcn.00408e34
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4531da
xor eax, eax
push ebp
push 0x4531d3
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 0x453260
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4531bc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040416c
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 0x4531bc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040416c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4531da
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4530dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004169d4
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 0x45321e
lea eax, [ebp - 0x260]
call fcn.00403efc
ret

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

Disassembly:
push ecx
mov eax, dword [0x4b0be0]
cmp byte [eax + 0xa5], 0
jne 0x453bbd
cmp dword [0x4b0bf8], 0
jne 0x453b7e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x453b08
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b0bf8], eax
cmp dword [0x4b0bf4], 0
jne 0x453b99
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b0bf4], eax
cmp dword [0x4b0bfc], 0
jne 0x453bbd
push esp
push 0
push 0
push 0x453aac
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b0bfc], eax
pop edx
ret
Function at 0x453cb4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x453ccb
add esp, 0xfffffff0
call fcn.0040344c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ae1c
mov eax, dword [0x4af260]
cmp word [eax + 2], 0
jne 0x453cf3
mov eax, dword [0x4af260]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045541c
mov eax, dword [0x4af3a0]
cmp word [eax + 2], 0
jne 0x453d0d
mov eax, dword [0x4af3a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455614
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411c48]
call fcn.004030f8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411c48]
call fcn.004030f8
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 [0x41d360]
call fcn.00424a4c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453e94
mov eax, dword [0x4af0f4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424e1c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455bb4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4af0f4]
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.0040c64c
test eax, eax
je 0x453e02
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408814
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c674
test eax, eax
je 0x453e16
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.0040416c
mov eax, dword [0x4aeec8]
cmp byte [eax], 0
jne 0x453e4a
mov eax, ebx
call fcn.00453fbc
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.00455d90
mov eax, ebx
call fcn.00456754
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453e8a
call fcn.004034a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45423c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b0be0]
cmp dword [eax + 0x30], 0
je 0x4542e6
cmp dword [ebx + 0x94], 0
jne 0x4542e0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4541cc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4542e0
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 0x4542a6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4542e0
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.00414300
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4542b5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454e48
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 0x454e7d
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.00403fec
jmp 0x454e8a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f50
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455f6c
Capabilities:
Hide graphical window

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

Function at 0x459674
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4596a2
mov eax, ebx
call fcn.0045a128
cmp dword [ebx + 0x40], 0
je 0x45969b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x459713
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x459705
cmp dword [ebx + 8], 0
je 0x4596c4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4596d6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x459705
cmp dword [ebx + 8], 0
je 0x4596b7
cmp eax, 3
je 0x4596e9
dec eax
jne 0x4596b7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4596b7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4596b7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x459731
cmp dword [ebx + 0x14], 0xcc
je 0x459731
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045973c
pop ebx
ret
Function at 0x477938
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x477940
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x477b32
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x477b48
mov eax, esi
call fcn.004757c4
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00403f50
lea ecx, [ebp - 0x10]
mov edx, 0x477b5c
mov eax, esi
call fcn.004757c4
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00403f50
lea ecx, [ebp - 0x14]
mov edx, 0x477b74
mov eax, esi
call fcn.004757c4
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00403f50
lea ecx, [ebp - 0x18]
mov edx, 0x477b90
mov eax, esi
call fcn.004757c4
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00403f50
lea ecx, [ebp - 0x1c]
mov edx, 0x477bac
mov eax, esi
call fcn.004757c4
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00403f50
lea ecx, [ebp - 0x24]
mov edx, 0x477bc4
mov eax, esi
call fcn.004757c4
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00407ec8
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004082a8
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x477bdc
mov eax, esi
call fcn.004757c4
mov eax, dword [ebp - 0x28]
call fcn.0046f22c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x477bec
mov eax, esi
call fcn.004757c4
mov eax, dword [ebp - 0x2c]
call fcn.0046f22c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x477c04
mov eax, esi
call fcn.004757c4
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004082a8
inc eax
je 0x477ad5
lea ecx, [ebp - 0x34]
mov edx, 0x477c04
mov eax, esi
call fcn.004757c4
mov eax, dword [ebp - 0x34]
call fcn.0040826c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409784
fstp qword [ebp - 0x3c]
wait
call fcn.00409ae8
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x477af0
lea ecx, [ebp - 0x40]
mov edx, 0x477c04
mov eax, esi
call fcn.004757c4
mov eax, dword [ebp - 0x40]
call fcn.0046f22c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x477c14
mov eax, esi
call fcn.004757c4
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00403f50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477b39
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00403f20
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00403f20
ret
Function at 0x47e88c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x47e8e6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0047e87c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0046de98
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0046da98
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e8ed
lea eax, [ebp - 4]
call fcn.00403efc
ret
Function at 0x13972e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x13972ff
mov eax, 1
pop ebx
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x13973ab
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x13973ab
push edi
push ebx
push 0xf8
push eax
lea edi, [esi + 0x40]
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x1397337
pop edi
mov eax, 1
pop ebx
pop ebp
ret
cmp dword [edi], 0x4550
jne 0x13973a2
mov ecx, 0x10b
cmp word [esi + 0x58], cx
jne 0x13973a2
movzx eax, word [esi + 0x46]
test ax, ax
je 0x13973a2
lea edi, [eax + eax*4]
add edi, edi
add edi, edi
add edi, edi
push edi
mov dword [esi + 0x140], edi
call fcn.013bdeb8
add esp, 4
mov dword [esi + 0x138], eax
test eax, eax
jne 0x139737e
pop edi
mov eax, 3
pop ebx
pop ebp
ret
movzx edx, word [esi + 0x54]
mov ecx, dword [esi + 0x3c]
push ebx
lea ecx, [edx + ecx + 0x18]
push edi
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
pop edi
inc eax
pop ebx
pop ebp
ret
pop edi
mov eax, 2
pop ebx
pop ebp
ret
mov eax, 2
pop ebx
pop ebp
ret
Function at 0x13993a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x13993ae
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x139948d
mov esi, edx
shr esi, 3
push edi
jmp 0x13993d0
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b4138]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b4138]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b4138]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b4138]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b4138]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b4138]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b4138]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b4138]
add ecx, 8
sub edx, 8
dec esi
jne 0x13993d0
pop edi
test edx, edx
je 0x13994aa
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x11b4138]
inc ecx
dec edx
jne 0x1399491
not eax
pop esi
pop ebp
ret

Function at 0x13994b0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x11b4138]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x11b4138]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x1399500
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [ebp + 0xc]
shr edx, 8
xor al, dl
mov edx, dword [esi]
push edi
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x11b4138]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x11b4138]
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x13aac20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11ad46b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x11bff00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], 0x11b529c
call fcn.013bc126
push 4
mov dword [ebp - 4], 0
call fcn.013be601
mov edi, eax
add esp, 4
test edi, edi
je 0x13aaca0
call fcn.013bbde4
mov dword [edi], eax
call fcn.013bbba3
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.013bbad8
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x13aac96
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.013bbb00
jmp 0x13aaca2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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