joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e584
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46e6a5
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
mov edx, dword [0x4b2e9c]
mov dword [edx], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4b2e9c]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x46e6bc
call fcn.004090c8
mov eax, dword [ebp - 4]
call fcn.004850d0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x4b2c80]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, dword [0x4b2e68]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x46e6d8
call fcn.004090c8
mov eax, dword [ebp - 0x10]
call fcn.004850d0
call sub.kernel32.dll_GetCurrentThreadId_1
mov esi, eax
push esi
push 0
push 0x46e1a0
push 5
call sub.user32.dll_SetWindowsHookExA
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x46e6f8
call fcn.004090c8
mov eax, dword [ebp - 0x24]
call fcn.004850d0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x46e710
call fcn.004090c8
mov eax, dword [ebp - 0x28]
call fcn.004850d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e6ac
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00403f2c
lea eax, [ebp - 0x10]
call fcn.00403f08
lea eax, [ebp - 4]
call fcn.00403f08
ret

Function at 0x476244
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x47627a
jmp 0x476320
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x4762be
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x144], 0
je 0x4762be
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x144]
mov eax, dword [eax + 0x14]
jmp 0x4762ce
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x140]
test edx, edx
je 0x4762ce
mov eax, dword [edx + 0x14]
test eax, eax
je 0x4762e7
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.00473ab0
jmp 0x476320
mov dl, 1
mov eax, dword [0x41ce48]
call fcn.0041ed8c
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.0041f4d8
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xac]
mov eax, dword [esi + 0x10]
call fcn.0041e93c
mov edx, esp
mov eax, esi
call fcn.0041f164
mov eax, esi
call fcn.00403134
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x477ee0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.00450f80
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x264], 0
pop ebx
ret
Function at 0x47b718
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov esi, edx
mov ebp, eax
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00461404
mov ebx, eax
mov dx, word [esi + 4]
mov eax, ebp
call fcn.0047b440
mov edi, eax
test edi, edi
je 0x47b765
mov al, byte [0x47b7a8]
cmp al, bl
jne 0x47b765
mov edx, edi
mov eax, ebp
call fcn.0047b3e8
mov dword [esi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x47b79b
cmp byte [ebp + 0x165], 2
jne 0x47b78e
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x4b2f04]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
mov edx, 0xb006
call fcn.0044b838
test eax, eax
jne 0x47b79b
xor eax, eax
mov dword [esi + 0xc], eax
mov edx, esi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x47ee48
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47ef02
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404614
mov eax, dword [0x4b2bb8]
cmp byte [eax], 0
je 0x47eeb7
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404924
mov eax, dword [ebx]
call fcn.004047a0
push eax
mov eax, dword [ebx]
call fcn.00404790
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.004047a0
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404924
jmp 0x47eee9
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00408bd8
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404780
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ef09
lea eax, [ebp - 0x3f0]
call fcn.00403f08
ret

Function at 0x47ef10
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00408bd8
add esp, 0x3ec
pop ebx
ret
Function at 0x480394
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
call fcn.0045c51c
mov edi, eax
dec edi
test edi, edi
jl 0x480447
inc edi
xor esi, esi
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0045c52c
mov eax, dword [eax + 0xc]
sub eax, 1
jb 0x4803de
je 0x4803ff
dec eax
je 0x480420
jmp 0x48043f
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0045c52c
cmp byte [ebx + 0x168], 0
setne dl
call fcn.0045c448
jmp 0x48043f
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0045c52c
cmp byte [ebx + 0x168], 1
setne dl
call fcn.0045c448
jmp 0x48043f
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0045c52c
cmp byte [ebx + 0x168], 2
setne dl
call fcn.0045c448
inc esi
dec edi
jne 0x4803bf
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x88]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x8c]
cdq
cmp edx, dword [esp + 4]
jne 0x48046c
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4804db
jmp 0x480470
pop edx
pop eax
jge 0x4804db
mov eax, dword [0x4b2f04]
mov eax, dword [eax]
mov dword [eax + 0x40], 2
mov esi, 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x88], eax
mov eax, dword [ebx + 0x13c]
test byte [eax + 0x4c], 4
je 0x4804b7
cmp byte [ebx + 0x165], 2
je 0x4804b7
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [ebx + 0xf8]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x480500
push 0
mov eax, dword [ebx + 0x130]
push eax
push 0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push esi
mov eax, dword [ebx + 0x108]
push eax
call sub.user32.dll_TrackPopupMenu
jmp 0x480500
cmp dword [ebx + 0x120], 0
je 0x480500
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.0042d4ac
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x130]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x48a310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48a481
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x8c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x48a466
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00408bd8
mov dl, 1
mov eax, dword [0x46c060]
call fcn.0046c0b8
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x412c6c]
call fcn.00403104
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0046c134
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x48a463
mov dl, 1
mov eax, dword [0x46d258]
call fcn.0046d2c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, 0x48a498
call fcn.0046c480
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404214
xor eax, eax
push ebp
push 0x48a45c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0046d5c0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0048a4a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a463
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00403134
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403134
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403134
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a488
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403f2c
ret

Function at 0x48c600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov byte [ebp - 5], 0
push 0
mov eax, dword [ebx + 0x44]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x48c66f
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 0x40]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x48c651
mov ecx, dword [edi]
mov edx, esi
mov eax, ebx
call fcn.0048c67c
test al, al
je 0x48c66f
jmp 0x48c617
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
jne 0x48c663
mov byte [ebp - 5], 1
jmp 0x48c66f
cmp eax, 6
je 0x48c66f
mov eax, ebx
call fcn.0048c8f4
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x48ca44
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, dword [ebp + 8]
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [edi + 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 8]
add eax, esi
push eax
mov eax, dword [edi + 0x40]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x48cb00
call sub.kernel32.dll_GetLastError
cmp eax, 6
je 0x48cb12
cmp eax, 0x3e5
je 0x48caa8
mov eax, edi
call fcn.0048cb20
jmp 0x48cb12
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call sub.kernel32.dll_WaitForMultipleObjects
sub eax, 0xffffffff
je 0x48caee
dec eax
je 0x48cb12
dec eax
je 0x48cac4
jmp 0x48caf7
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [edi + 0x40]
push eax
call sub.kernel32.dll_GetOverlappedResult
test eax, eax
jne 0x48cb00
call sub.kernel32.dll_GetLastError
cmp eax, 6
je 0x48cb12
mov eax, edi
call fcn.0048cb20
jmp 0x48cb12
mov eax, edi
call fcn.0048cb20
jmp 0x48cb12
mov eax, edi
call fcn.0048cb20
jmp 0x48cb12
sub ebx, dword [ebp - 0x10]
add esi, dword [ebp - 0x10]
test ebx, ebx
ja 0x48ca72
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x48f9bc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x48f9ea
mov eax, ebx
call fcn.00490470
cmp dword [ebx + 0x40], 0
je 0x48f9e3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x48fa5b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x48fa4d
cmp dword [ebx + 8], 0
je 0x48fa0c
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 0x48fa1e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x48fa4d
cmp dword [ebx + 8], 0
je 0x48f9ff
cmp eax, 3
je 0x48fa31
dec eax
jne 0x48f9ff
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 0x48f9ff
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x48f9ff
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x48fa79
cmp dword [ebx + 0x14], 0xcc
je 0x48fa79
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.0048fa84
pop ebx
ret
Function at 0x4a3644
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, edx
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x4b2e10]
mov eax, dword [eax]
call fcn.0046a060
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp esi, eax
jg 0x4a364f
pop esi
pop ebx
ret

Function at 0x4a366c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, edx
mov esi, dword [0x4b2e10]
call sub.kernel32.dll_GetTickCount
mov edi, eax
mov eax, dword [esi]
call fcn.0046a060
mov eax, dword [esi]
call fcn.0046a060
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [esi]
call fcn.0046a060
mov eax, dword [esi]
call fcn.0046a060
mov eax, dword [0x4b3ca4]
call fcn.004041c8
test eax, eax
jg 0x4a36b6
sub ebx, edi
cmp ebp, ebx
jg 0x4a367f
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x484cf2
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x484a08
and edx, edx
add edx, eax
dec eax
call fcn.00484d33
mov edx, eax
xor dword [ecx], edi
mov eax, 0xf5a25352
add eax, eax
add eax, 0x23a933d1
add ecx, 2
dec edx
mov eax, eax
cmp ecx, ebx
jl fcn.00484cf2
add eax, edx
add eax, 0x8fbcce94
and edx, edx
ret

Function at 0x401464
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.user32.dll_LoadIconW]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.Chicken1
mov dword [ebp - 0x44], 0x401186
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.user32.dll_LoadCursorW]
mov esi, dword [sym.imp.kernel32.dll_GetModuleHandleW]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x4059e0], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.gdi32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.user32.dll_RegisterClassExW]
test ax, ax
je 0x401583
push 1
push dword [0x4059e0]
call dword [sym.imp.user32.dll_LoadBitmapW]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Window
push str.Chicken1
push edi
call dword [sym.imp.user32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x4059e8], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov ecx, dword [0x4059e8]
push ecx
call dword [sym.imp.user32.dll_UpdateWindow]
mov esi, dword [sym.imp.user32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401583
mov edi, dword [sym.imp.user32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.user32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x401566
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4012a0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
push 0x458c80
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [0x458c80]
mov ebx, eax
lea ecx, [ecx*4 + 4]
push ecx
call fcn.00427f68
mov ecx, dword [0x458c80]
add esp, 4
xor edi, edi
mov dword [0x458c8c], eax
test ecx, ecx
jle 0x401327
nop
mov eax, dword [ebx + edi*4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4012e6
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
lea eax, [esi + esi]
push eax
call fcn.00427f68
mov ecx, dword [0x458c8c]
push esi
mov dword [ecx + edi*4], eax
push dword [ebx + edi*4]
push eax
call fcn.0040d66b
mov ecx, dword [0x458c80]
inc edi
add esp, 0x10
cmp edi, ecx
jl 0x4012e0
mov eax, dword [0x458c8c]
push ebx
mov dword [eax + ecx*4], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.XASH3D_GAME
xor esi, esi
call fcn.00427f52
test eax, eax
mov ecx, str.valve
push 0x7f
cmovne ecx, eax
push ecx
push 0x458c90
call fcn.0040cef0
call fcn.004010c0
cmp dword [0x458c84], esi
mov eax, 0x401190
cmovne esi, eax
push esi
push 0
push 0x458c90
push dword [0x458c8c]
push dword [0x458c80]
call dword [0x458c88]
mov ecx, dword [0x458c84]
add esp, 0x24
mov esi, eax
test ecx, ecx
je 0x401396
call ecx
mov ecx, dword [0x458d10]
test ecx, ecx
je 0x4013a7
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x458d10], 0
mov dword [0x458c88], 0
mov dword [0x458c84], 0
cmp edi, dword [0x458c80]
jge 0x4013e9
nop dword [eax]
mov eax, dword [0x458c8c]
push dword [eax + edi*4]
call fcn.00427753
inc edi
add esp, 4
cmp edi, dword [0x458c80]
jl 0x4013d0
push dword [0x458c8c]
call fcn.00427753
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x401fcd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40200c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40200c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40200c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40200c
cmp dword [ecx + 0x74], 0xe
jbe 0x40200c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40cd55
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40cd94
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40cd94
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40cd94
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40cd94
cmp dword [ecx + 0x74], 0xe
jbe 0x40cd94
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4323df
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004322b3
Function at 0x432d48
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x457004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x432d93
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00433120
test al, al
jne 0x432d8d
sub edx, 2
cmp edx, edi
jne 0x432d73
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x432db5
lea eax, [edi + 2]
cmp edx, eax
je 0x432db5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00432a0f
add esp, 0x10
jmp 0x432eaf
push esi
lea ecx, [ebp - 0x255]
call fcn.00433120
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x432df8
push dword [ebp - 0x25c]
jmp 0x432da5
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x432e35
cmp word [ebp - 0x226], 0
je 0x432e56
cmp word [ebp - 0x226], ax
jne 0x432e35
cmp word [ebp - 0x224], 0
je 0x432e56
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00432a0f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x432ea2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x432e0f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x432e8a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x432eaf
push 0x43245f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00440650
add esp, 0x10
jmp 0x432e7f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040140b
leave
ret