joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451f04
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x451f2a
mov eax, esp
push eax
push 0x451ecc
call sub.user32.dll_EnumWindows
jmp 0x451f3d
mov eax, esp
push eax
push 0x451eac
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x451fc8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45201c]
test si, 4
je 0x451fdd
or bl, 1
test si, 8
je 0x451fe7
or bl, 4
test si, 1
je 0x451ff1
or bl, 8
test si, 2
je 0x451ffb
or bl, 0x10
test si, 0x10
je 0x452005
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452014
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x452020
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45205c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45203a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452049
or bl, 4
test esi, 0x20000000
je 0x452054
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45a0c8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45a0da
add esp, 0xfffffff0
call fcn.00403ef8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041db98
mov eax, dword [0x4771f8]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a46c
mov eax, dword [0x477204]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a478
mov eax, ebx
call fcn.0045a484
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415948]
call fcn.00403ba4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415948]
call fcn.00403ba4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415948]
call fcn.00403ba4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415948]
call fcn.00403ba4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415948]
call fcn.00403ba4
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, 0x45592c
push eax
push 0
push 0
mov eax, dword [0x477360]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42188c]
call fcn.004230e0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42188c]
call fcn.004230e0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42188c]
call fcn.004230e0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045a8fc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a7cc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a7cc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a7cc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a217
call fcn.00403f50
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45a5b0
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 0x45a75b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a73c
mov dl, 1
mov eax, dword [0x415d6c]
call fcn.00403ba4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404a1c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a72b
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.0044bd20
test al, al
je 0x45a71e
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, 0x45a76c
lea eax, [ebp - 0x254]
call fcn.00409a34
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a71e
xor eax, eax
push ebp
push 0x45a717
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 0x45a7a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a700
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c8c
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 0x45a700
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a71e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45a621
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00419a44
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 0x45a762
lea eax, [ebp - 0x260]
call fcn.00404a1c
ret

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

Disassembly:
push ecx
mov eax, dword [0x47cc98]
cmp byte [eax + 0xad], 0
jne 0x45b145
cmp dword [0x47ccb4], 0
jne 0x45b106
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45b090
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47ccb4], eax
cmp dword [0x47ccb0], 0
jne 0x45b121
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47ccb0], eax
cmp dword [0x47ccb8], 0
jne 0x45b145
push esp
push 0
push 0
push 0x45b034
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47ccb8], eax
pop edx
ret
Function at 0x45b348
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45b35f
add esp, 0xfffffff0
call fcn.00403ef8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041db98
mov eax, dword [0x47734c]
cmp word [eax + 2], 0
jne 0x45b387
mov eax, dword [0x47734c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d038
mov eax, dword [0x4773fc]
cmp word [eax + 2], 0
jne 0x45b3a1
mov eax, dword [0x4773fc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d244
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415948]
call fcn.00403ba4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415948]
call fcn.00403ba4
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x415948]
call fcn.00403ba4
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42239c]
call fcn.00429da4
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45b558
mov eax, dword [0x477268]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a178
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45d918
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x477268]
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.0040d2e0
test eax, eax
je 0x45b4a8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004093ec
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d314
test eax, eax
je 0x45b4bc
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404c8c
mov byte [ebx + 0xd4], 0
push ebx
push 0x45cac4
call fcn.0041ed30
mov dword [ebx + 0xc8], eax
mov eax, dword [0x477148]
cmp byte [eax], 0
jne 0x45b50d
mov eax, ebx
call fcn.0045b69c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045db2c
mov eax, ebx
call fcn.0045e690
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b54d
call fcn.00403f50
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b91c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45b9bb
cmp dword [ebx + 0x94], 0
jne 0x45b9b5
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b8a4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b9b5
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 0x45b97b
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b9b5
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.00417cec
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b98a
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45bbd4
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x47cc98]
cmp dword [eax + 0x30], 0
je 0x45bd31
test bl, bl
jne 0x45bc82
cmp dword [esi + 0x9c], 0
jne 0x45bc77
mov eax, esi
call fcn.0045e50c
push eax
push 0x45bb00
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x45bc48
mov eax, dword [0x47cc98]
call fcn.0045ebec
test al, al
je 0x45bc48
mov eax, dword [0x47ccbc]
call fcn.00405c38
mov edi, eax
cmp edi, 0
jl 0x45bc48
push 0
mov eax, dword [0x47ccbc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45bc32
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45bc77
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00417cec
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45bc57
inc dword [esi + 0x9c]
jmp 0x45bd31
cmp dword [esi + 0x9c], 0
jle 0x45bd31
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45bd31
cmp dword [esi + 0x44], 0
je 0x45bcdd
mov eax, dword [0x47cc98]
call fcn.0045ebec
test al, al
je 0x45bcdd
mov eax, dword [0x47ccbc]
call fcn.00405c38
mov edi, eax
cmp edi, 0
jl 0x45bcdd
push 5
mov eax, dword [0x47ccbc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45bcc7
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45bd0c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00417cec
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45bcec
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x47ccbc
mov ecx, 1
mov edx, dword [0x45bae0]
call fcn.00405dec
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45c818
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45c882
mov eax, ebx
call fcn.0045ebec
test al, al
jne 0x45c882
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.00404b0c
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45c86f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45c88f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404a70
jmp 0x45c88f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404a70
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x45dd10
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45dd7e
mov eax, esi
call fcn.004469b4
test al, al
je 0x45dd7e
mov eax, dword [ebx + 0x84]
call fcn.00446614
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45dd7e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45dd72
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446614
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043e490
jmp 0x45dd7e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045db4c
pop esi
pop ebx
ret

Function at 0x461c20
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x461c4e
mov eax, ebx
call fcn.004626d4
cmp dword [ebx + 0x40], 0
je 0x461c47
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x461cbf
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x461cb1
cmp dword [ebx + 8], 0
je 0x461c70
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 0x461c82
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x461cb1
cmp dword [ebx + 8], 0
je 0x461c63
cmp eax, 3
je 0x461c95
dec eax
jne 0x461c63
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 0x461c63
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x461c63
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x461cdd
cmp dword [ebx + 0x14], 0xcc
je 0x461cdd
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.00461ce8
pop ebx
ret
Function at 0x406990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a6b68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
push 1
push 0x1388
lea ecx, [esp + 0x14]
call fcn.00404620
xor ebx, ebx
push 2
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebx
call fcn.00404820
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push eax
call fcn.00404860
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, ebx
jbe 0x4069fe
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
add ecx, ebx
call fcn.00405da0
mov eax, dword [esi + 0xc]
inc edi
add ebx, 0x10
cmp edi, eax
jb 0x4069e4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00406880
push eax
call fcn.00442200
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004046c0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x406a50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a6b88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 8]
push edi
push eax
push ecx
mov ecx, esi
call fcn.00406880
push eax
call fcn.004421b0
mov edx, dword [esp + 0x14]
add esp, 8
xor edi, edi
lea ecx, [esp + 0x10]
push edi
push eax
push edx
call fcn.00404670
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x34], edi
call fcn.00404880
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x14]
call fcn.004048c0
mov eax, dword [esp + 8]
mov dword [esi + 0xc], edi
cmp eax, edi
ja 0x406ace
mov dword [esi + 4], edi
mov dword [esi], edi
mov byte [esi + 8], 1
jmp 0x406b07
push ebp
mov dword [esi], eax
mov ebp, eax
shl eax, 4
push eax
call fcn.00444830
add esp, 4
cmp eax, edi
je 0x406af9
lea edx, [ebp - 1]
cmp edx, edi
jl 0x406afb
lea ecx, [eax + 0xe]
inc edx
mov word [ecx], di
add ecx, 0x10
dec edx
jne 0x406aee
jmp 0x406afb
xor eax, eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
mov byte [esi + 8], 1
pop ebp
cmp eax, edi
mov dword [esi + 0xc], eax
jbe 0x406b2d
push ebx
xor ebx, ebx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
add ecx, ebx
call fcn.00405d50
mov eax, dword [esp + 0xc]
inc edi
add ebx, 0x10
cmp edi, eax
jb 0x406b11
pop ebx
mov eax, dword [esp + 0xc]
push eax
call fcn.00444840
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.004046c0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x406b60
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push ebx
mov bx, word [ecx + 0x14]
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ax, bx
push edi
add ax, word [esi]
test ax, ax
jge 0x406b7e
xor eax, eax
jmp 0x406b95
cmp ax, word [ecx + 0x10]
jl 0x406b8b
movsx eax, word [ecx + 0x1c]
dec eax
jmp 0x406b95
movsx edi, word [ecx + 0x18]
movsx eax, ax
cdq
idiv edi
mov di, word [ecx + 0x16]
movzx ax, al
mov word [esp + 0x10], ax
mov ax, word [esi + 2]
add ax, di
test ax, ax
jge 0x406bb2
xor eax, eax
jmp 0x406bc9
cmp ax, word [ecx + 0x12]
jl 0x406bbf
movsx eax, word [ecx + 0x1e]
dec eax
jmp 0x406bc9
movsx ebp, word [ecx + 0x1a]
movsx eax, ax
cdq
idiv ebp
movzx bp, al
mov ax, word [esi + 4]
mov word [esp + 0x12], bp
add ax, bx
test ax, ax
jge 0x406be2
xor eax, eax
jmp 0x406bf9
cmp ax, word [ecx + 0x10]
jl 0x406bef
movsx eax, word [ecx + 0x1c]
dec eax
jmp 0x406bf9
movsx ebx, word [ecx + 0x18]
movsx eax, ax
cdq
idiv ebx
xor bx, bx
mov bl, al
mov ax, word [esi + 6]
add ax, di
test ax, ax
jge 0x406c0e
xor eax, eax
jmp 0x406c25
cmp ax, word [ecx + 0x12]
jl 0x406c1b
movsx eax, word [ecx + 0x1e]
dec eax
jmp 0x406c25
movsx esi, word [ecx + 0x1a]
movsx eax, ax
cdq
idiv esi
cmp word [esp + 0x10], bx
movzx ax, al
jle 0x406c3c
mov edx, dword [esp + 0x10]
mov word [esp + 0x10], bx
mov bx, dx
cmp bp, ax
jle 0x406c50
mov edx, dword [esp + 0x12]
mov bp, ax
mov ax, dx
cmp bp, ax
jg 0x406c9f
movsx edi, bp
movsx eax, ax
sub eax, edi
inc eax
mov dword [esp + 0x1c], eax
mov dx, word [esp + 0x10]
cmp dx, bx
jg 0x406c97
movsx edx, dx
movsx esi, bx
sub esi, edx
inc esi
movsx eax, word [ecx + 0x1c]
imul eax, edi
mov ebp, dword [ecx + 0x24]
add eax, edx
shl eax, 4
inc word [eax + ebp + 0xc]
lea eax, [eax + ebp + 0xc]
mov eax, dword [ecx + 0x20]
inc eax
inc edx
dec esi
mov dword [ecx + 0x20], eax
jne 0x406c70
mov eax, dword [esp + 0x1c]
inc edi
dec eax
mov dword [esp + 0x1c], eax
jne 0x406c5d
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x451be0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x3c
test eax, eax
jne 0x451bf0
mov eax, dword [0x4d01e8]
mov dword [0x4d5168], eax
mov eax, dword [0x4d5170]
test eax, eax
mov dword [esp + 0x40], 0
jne 0x451c65
push str.DirectSound___START_n
call fcn.0041ccf0
add esp, 4
push str.dsound.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4d5170], eax
jne 0x451c39
push str.ERROR:_DirectX_not_found___START
call fcn.0041ccf0
add esp, 4
jmp 0x451cdc
push str.DirectSoundCreate
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push 0
push 0x4d516c
push 0
call eax
test eax, eax
jne 0x451cdc
push str.DirectSound___FINISH_n
call fcn.0041ccf0
add esp, 4
mov eax, dword [0x4d516c]
mov edx, dword [0x4d5168]
push 2
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x451cdc
push edi
mov ecx, 9
lea edi, [esp + 0x1c]
lea edx, [esp + 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [0x4d516c]
push 0
push edx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0x24
mov dword [esp + 0x28], 1
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
pop edi
jne 0x451cdc
push 2
lea eax, [esp + 8]
push 0xac44
push eax
call fcn.00451b90
mov eax, dword [esp + 0x4c]
add esp, 0xc
lea edx, [esp + 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x38]
test eax, eax
je 0x451cf3
mov eax, dword [esp + 0x40]
test eax, eax
je 0x451cea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call fcn.00452070
add esp, 0x3c
ret
mov eax, dword [esp + 0x40]
test eax, eax
je 0x451d01
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [0x4d5174]
test eax, eax
jne 0x451d27
lea eax, [esp]
push eax
push 0
push 0
push 0x451d30
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [0x4d5174], eax
add esp, 0x3c
ret

Function at 0x452070
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x4d5174]
push edi
xor edi, edi
cmp eax, edi
je 0x452091
push 1
push eax
call dword [sym.imp.kernel32.dll_TerminateThread]
mov eax, dword [0x4d5174]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [0x4d515c]
push esi
mov dword [0x4d5174], edi
lea esi, [ecx - 1]
cmp esi, edi
jl 0x4520be
mov edx, dword [0x4d5158]
mov eax, dword [edx + esi*4]
cmp eax, edi
je 0x4520bb
push eax
call fcn.00452bf0
add esp, 4
dec esi
jns 0x4520a5
mov eax, dword [0x4d516c]
pop esi
cmp eax, edi
je 0x4520e2
mov edx, dword [0x4d5168]
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [0x4d516c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [0x4d5170]
cmp eax, edi
je 0x4520f8
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [0x4d5170], edi
mov dword [0x4d516c], edi
pop edi
ret
Function at 0x45ab00
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.kernel32.dll_GetCommandLineA]
test eax, eax
je 0x45ac12
mov cl, byte [eax]
mov edx, eax
test cl, cl
mov dword [esp + 0x10], edx
je 0x45ac12
jmp 0x45ab29
mov edx, dword [esp + 0x10]
mov al, byte [edx]
cmp al, 0x20
jne 0x45ab43
test al, al
je 0x45ac12
mov al, byte [edx + 1]
inc edx
cmp al, 0x20
mov dword [esp + 0x10], edx
je 0x45ab2f
mov cl, byte [edx]
lea esi, [edx + 1]
mov ebp, esi
cmp cl, 0x22
mov al, byte [ebp]
jne 0x45ab64
test al, al
je 0x45ab74
cmp al, 0x22
je 0x45ab74
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x45ab56
jmp 0x45ab74
test al, al
je 0x45ab74
cmp al, 0x20
je 0x45ab74
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x45ab68
cmp cl, 0x22
jne 0x45ab7f
mov dword [esp + 0x10], esi
mov edx, esi
mov ebx, ebp
sub ebx, edx
test ebx, ebx
jle 0x45abfc
mov edi, str._map:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jge 0x45abfc
mov edi, str._map:
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._map:
push edx
call fcn.0047f400
add esp, 0xc
test eax, eax
jne 0x45abfc
mov edi, str._map:
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ebx
sub edx, ecx
mov edi, str._map:
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x10]
not ecx
dec ecx
mov esi, ecx
mov ecx, edx
mov eax, ecx
add esi, edi
mov edi, 0x4d5190
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + 0x4d5190], 0
cmp byte [ebp], 0x22
jne 0x45ac03
inc ebp
mov al, byte [ebp]
mov dword [esp + 0x10], ebp
test al, al
jne 0x45ab25
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x45bc80
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
mov eax, dword [0x4d01e8]
push 2
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 4]
push 1
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret