joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1d95
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4a1ead
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a1ead
mov eax, dword [esi + 0x3c]
push eax
call fcn.004e3de3
mov esi, eax
test esi, esi
je 0x4a1ead
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4a1ead
mov ecx, esi
call fcn.004a1d20
cmp edi, eax
jge 0x4a1ead
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4a1e33
mov dword [esp + 0x34], 1
jmp 0x4a1e8e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4a1ead
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004a12d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4a6140
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
push edi
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4a6168
xor eax, eax
pop edi
add esp, 0x10
ret 0xc
push ebx
push ebp
push esi
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, dword [edi]
mov ebx, dword [edi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
mov edi, dword [edi + 0xc]
push 8
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ebp, ebp
jge 0x4a61b4
xor ebp, ebp
mov ecx, dword [esp + 0x24]
test ecx, ecx
jge 0x4a61c4
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x10]
cmp ebx, ecx
jle 0x4a61ce
mov ebx, ecx
cmp edi, eax
jle 0x4a61d4
mov edi, eax
mov edx, dword [esp + 0x24]
sub ebx, ebp
sub edi, edx
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x24]
push 0xcc0020
push edx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
mov eax, dword [esp + 0x28]
pop esi
sub eax, 0
pop ebp
pop ebx
je 0x4a625c
dec eax
jne 0x4a6273
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4a6273
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 4]
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp + 8], 1
jmp 0x4a6273
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [esp + 0x14]
push edx
call fcn.004a6370
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 8]
pop edi
add esp, 0x10
ret 0xc
Function at 0x4a6290
Capabilities:
Capture screenshot

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4a62ac
xor eax, eax
pop edi
add esp, 8
ret 4
push ebx
push ebp
push esi
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, dword [edi]
mov ebx, dword [edi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
mov edi, dword [edi + 0xc]
push 8
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ebp, ebp
jge 0x4a62f8
xor ebp, ebp
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jge 0x4a6308
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x14]
cmp ebx, ecx
jle 0x4a6312
mov ebx, ecx
cmp edi, eax
jle 0x4a6318
mov edi, eax
mov edx, dword [esp + 0x1c]
sub ebx, ebp
sub edi, edx
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push edx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 4
Function at 0x4abaf0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4abb39
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4abfb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f1590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004abb60
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004abbe0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004abbe0
lea ecx, [esi + 0xc]
call fcn.004e2344
lea ecx, [esi + 0x10]
call fcn.004e2344
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004ad170
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004ad170
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004ad170
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004e23b9
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004e23b9
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4ad360
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4ad3c6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4ad3c6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4ad3a7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4b0260
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x72aad8]
xor edx, edx
cmp eax, edx
jne 0x4b0286
xor eax, eax
mov byte [eax + 0x72a9d8], al
inc eax
cmp eax, 0x100
jl 0x4b026e
mov dword [0x72aad8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x72a9d8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4b0317
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 0x4b02ea
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 0x4b02b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4b0390
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 0x4b03e3
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 0x4b03ca
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 0x4b6d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f198e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004b7690
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x60671c
call fcn.004e20fa
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4b6e03
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004e20fa
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4b6dfc
push 0
mov ecx, eax
call fcn.004adea0
mov dword [esi + 0xc], eax
jmp 0x4b6e05
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4b6e05
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4e4787
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e47bf
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e2814
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e27ec
jmp 0x4e47cb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4e5e7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4e5ebe
call fcn.004eb9f6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e5ebe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e5eb5
xor eax, eax
jmp 0x4e5ec6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e5ecc
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ebf26
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ebf54
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ebf72
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ebe8c
jmp 0x4ebf72
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ebf72
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ebe8c
test edi, edi
mov eax, edi
jne 0x4ebf5c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401030
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call fcn.00402180
add esp, 4
test eax, eax
je 0x40105c
push 0x4101b0
call fcn.00402427
add esp, 4
call section..text
push 1
call fcn.004023e7
pop ebp
ret

Function at 0x401060
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00401f30
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4010c3
call fcn.00401f30
sub eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x12
cmp eax, edx
jge 0x4010c3
call fcn.004021c0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4010c1
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp dword [ebp - 8], ecx
je 0x4010b4
cmp dword [ebp - 8], 0
jne 0x4010bf
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x40
jne 0x4010bf
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x4010c1
jmp 0x4010c3
jmp 0x40106e
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
je 0x4010e6
push 0x4101d8
call fcn.00402427
add esp, 4
call section..text
push 1
call fcn.004023e7
mov esp, ebp
pop ebp
ret
Function at 0x402130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
cmp dword [0x414524], 0xffffffff
je 0x402168
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea edx, [ebp - 4]
push edx
mov eax, dword [0x414524]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x40216d
or eax, 0xffffffff
jmp 0x40216f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4021c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
cmp dword [0x414524], 0xffffffff
je 0x4021f9
push 0
lea eax, [ebp - 8]
push eax
push 1
lea ecx, [ebp - 1]
push ecx
mov edx, dword [0x414524]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4021f9
cmp dword [ebp - 8], 1
je 0x4021fe
or eax, 0xffffffff
jmp 0x402202
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x402326
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x414c0c], esi
push edi
jne 0x402346
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x414c08], esi
mov byte [0x414c04], al
jne 0x4023ac
mov ecx, dword [0x41616c]
test ecx, ecx
je 0x40238d
mov eax, dword [0x416168]
sub eax, 4
cmp eax, ecx
jmp 0x402386
mov eax, dword [eax]
test eax, eax
je 0x402378
call eax
mov eax, dword [0x416168]
sub eax, 4
cmp eax, dword [0x41616c]
mov dword [0x416168], eax
jae 0x402370
mov eax, 0x40a020
mov esi, 0x40a028
cmp eax, esi
mov edi, eax
jae 0x4023ac
mov eax, dword [edi]
test eax, eax
je 0x4023a5
call eax
add edi, 4
cmp edi, esi
jb 0x40239d
mov eax, 0x40a02c
mov esi, 0x40a030
cmp eax, esi
mov edi, eax
jae 0x4023cb
mov eax, dword [edi]
test eax, eax
je 0x4023c4
call eax
add edi, 4
cmp edi, esi
jb 0x4023bc
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4023e5
push dword [ebp + 8]
mov dword [0x414c0c], 1
call fcn.0040228c
pop ebp
ret
Function at 0x402795
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x408110
call fcn.004041e4
mov edi, 0x94
mov eax, edi
call fcn.00404340
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x414bcc], ecx
mov eax, dword [esi + 4]
mov dword [0x414bd8], eax
mov edx, dword [esi + 8]
mov dword [0x414bdc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x414bd0], esi
cmp ecx, 2
je 0x4027f5
or esi, 0x8000
mov dword [0x414bd0], esi
shl eax, 8
add eax, edx
mov dword [0x414bd4], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40282e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40282e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402846
cmp eax, 0x20b
je 0x402833
mov dword [ebp - 0x1c], edi
jmp 0x40285a
cmp dword [ecx + 0x84], 0xe
jbe 0x40282e
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x402854
cmp dword [ecx + 0x74], 0xe
jbe 0x40282e
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00404191
pop ecx
test eax, eax
jne 0x402886
cmp dword [0x414c1c], 2
je 0x402873
call fcn.00403bd6
push 0x1c
call fcn.00403a5f
push 0xff
call fcn.0040228c
pop ecx
pop ecx
call fcn.00402a18
mov dword [ebp - 4], edi
call fcn.00403478
test eax, eax
jge 0x40289f
push 0x1b
call fcn.00402770
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x415140], eax
call fcn.00404055
mov dword [0x414c14], eax
call fcn.00403fb3
test eax, eax
jge 0x4028c5
push 8
call fcn.00402770
pop ecx
call fcn.00403d80
test eax, eax
jge 0x4028d6
push 9
call fcn.00402770
pop ecx
push 1
call fcn.004022bc
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x4028ec
push eax
call fcn.00402770
pop ecx
mov eax, dword [0x414bec]
mov dword [0x414bf0], eax
push eax
push dword [0x414be4]
push dword [0x414be0]
call fcn.004010f0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x40291b
push esi
call fcn.004023e7
call fcn.00402409
jmp 0x40294d
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0040421f
ret
Function at 0x403623
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x415024]
mov eax, dword [0x414920]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4037e9
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x415040]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4037e9
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x40368d
xor eax, eax
jmp 0x4037fd
test al, 0x20
je 0x40369e
push 2
push edi
push edi
push ecx
call fcn.004048ba
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x403773
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4037ba
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x403700
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4036f1
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4036d3
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x403740
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40374c
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4036c7
jmp 0x40374e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4037e4
cmp dword [ebp + 0x3a4], edi
je 0x4037ba
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4037ac
mov dword [0x414bc4], eax
jmp 0x4037f0
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40379e
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40374e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40374e
push dword [ebp + 0x3a4]
call fcn.004047a5
pop ecx
jmp 0x4037fa
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4037d2
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x403686
mov dword [0x414bc0], 0x1c
mov dword [0x414bc4], edi
jmp 0x4037fa
sub eax, dword [ebp - 0x7c]
jmp 0x4037fd
and dword [0x414bc4], 0
mov dword [0x414bc0], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00404702
add ebp, 0x39c
leave
ret
Function at 0x403a5f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x414920]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4147d8]
je 0x403a94
inc eax
cmp eax, 0x13
jb 0x403a85
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4147d8]
jne 0x403bba
mov eax, dword [0x414c1c]
cmp eax, 1
je 0x403b92
cmp eax, edx
jne 0x403ac4
cmp dword [0x4147c4], 1
je 0x403b92
cmp ecx, 0xfc
je 0x403bba
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x403afa
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00405640
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004045e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403b2e
mov eax, edi
push eax
call fcn.004045e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4085a0
push edi
call fcn.00405740
add esp, 0x10
push edi
call fcn.004045e0
push dword [esi + 0x4147dc]
mov ebx, eax
call fcn.004045e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404340
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405640
push edi
push ebx
call fcn.00405650
push 0x408580
push ebx
call fcn.00405650
push dword [esi + 0x4147dc]
push ebx
call fcn.00405650
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405544
add esp, 0x2c
jmp 0x403bba
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4147dc]
push dword [esi]
call fcn.004045e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00404702
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x405544
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x414d44], ebx
push esi
push edi
jne 0x4055c4
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4055ff
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x414d44], eax
je 0x4055ff
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x414d48], eax
call esi
cmp dword [0x414bcc], 2
mov dword [0x414d4c], eax
jne 0x4055c4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x414d54], eax
je 0x4055c4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x414d50], eax
mov eax, dword [0x414d50]
test eax, eax
je 0x405609
call eax
test eax, eax
je 0x4055f0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x414d54]
test eax, eax
je 0x4055f0
test byte [ebp - 8], 1
jne 0x405609
cmp dword [0x414bd8], 4
jb 0x405603
or byte [ebp + 0x12], 0x20
jmp 0x405628
xor eax, eax
jmp 0x405638
or byte [ebp + 0x12], 4
jmp 0x405628
mov eax, dword [0x414d48]
test eax, eax
je 0x405628
call eax
mov ebx, eax
test ebx, ebx
je 0x405628
mov eax, dword [0x414d4c]
test eax, eax
je 0x405628
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x414d44]
pop edi
pop esi
pop ebx
leave
ret