joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d0f4
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push 0x3c
xor esi, esi
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.00422330
xor eax, eax
mov dword [ebp - 0x4c], 0x7c
inc eax
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
push eax
push esi
push dword [ebp + 8]
call fcn.00424953
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x47d14b
xor al, al
jmp 0x47d203
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push edi
push dword [ebp - 0x44]
push esi
push dword [ebp - 0x48]
call fcn.00406e90
push dword [ebp - 0x38]
lea ecx, [ebx + 0x10]
push esi
push dword [ebp - 0x3c]
call fcn.00406e90
push dword [ebp - 0x2c]
lea ecx, [ebx + 0x20]
push esi
push dword [ebp - 0x30]
call fcn.00406e90
push dword [ebp - 0x24]
lea ecx, [ebx + 0x30]
push esi
push dword [ebp - 0x28]
call fcn.00406e90
push dword [ebp - 0x1c]
lea ecx, [ebx + 0x40]
push esi
push dword [ebp - 0x20]
call fcn.00406e90
push dword [ebp - 0x14]
lea esi, [ebx + 0x50]
push 0
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00406e90
push esi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x40]
call fcn.00404a88
lea ecx, [ebx + 0x60]
cmp ecx, eax
je 0x47d1c6
push eax
call fcn.0040a8c7
lea ecx, [ebp - 0x10]
call fcn.0040988f
mov ax, word [ebp - 0x34]
mov word [ebx + 0x78], ax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x74], eax
sub eax, 1
je 0x47d1f8
sub eax, 1
je 0x47d1ef
mov dword [ebx + 0x70], 3
jmp 0x47d1ff
mov dword [ebx + 0x70], 2
jmp 0x47d1ff
mov dword [ebx + 0x70], 1
pop edi
mov al, 1
pop ebx
pop esi
leave
ret 8

Function at 0x47d208
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
je 0x47d244
cmp byte [ebp + 8], 0
je 0x47d244
sub esp, 0x10
lea ecx, [esi + 0xd4]
call fcn.0047c118
push esi
push 0
push 0x47d2d8
call fcn.0042d1be
add esp, 0xc
cmp dword [esi + 0x18], 0
sete al
jmp 0x47d24c
push dword [ebp + 8]
call fcn.0047c364
pop esi
pop ebp
ret 4
Function at 0x48304e
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push 2
pop ecx
mov word [eax], cx
lea ecx, [ebp - 0x14]
call fcn.00409ad3
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.0048335b
push dword [ebp - 0x14]
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov edi, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.0040988f
cmp edi, 0xffffffff
jne 0x4830f1
mov ebx, dword [ebx + 4]
mov edi, str.255.255.255.255
push edi
call fcn.00424953
pop ecx
cmp ebx, eax
jne 0x4830ca
test ebx, ebx
je 0x4830c4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
sub eax, edi
movzx ecx, word [eax + edi]
movzx edx, word [edi]
cmp cx, dx
jne 0x4830e6
add edi, 2
sub ebx, 1
jne 0x4830b0
xor eax, eax
test eax, eax
je 0x4830ee
mov eax, dword [esi]
mov ecx, dword [eax + 4]
cmp byte [ecx + esi + 0xd], 0
mov eax, dword [ecx + esi + 8]
je 0x4830dd
mov eax, dword [eax + 0x38]
mov dword [eax + 0x14], 1
jmp 0x48312e
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x4830c6
mov edi, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebx + 4], edi
test eax, eax
jle 0x483114
cmp eax, 0xffff
jg 0x483114
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebx + 2], ax
mov al, 1
jmp 0x483142
mov eax, dword [esi]
mov ecx, dword [eax + 4]
cmp byte [ecx + esi + 0xd], 0
mov eax, dword [ecx + esi + 8]
je 0x483127
mov eax, dword [eax + 0x38]
mov dword [eax + 0x14], 2
cmp byte [ecx + esi + 0xd], 0
mov eax, dword [ecx + esi + 8]
je 0x48313c
mov eax, dword [eax + 0x38]
mov byte [eax + 0x18], 0
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4950d4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0040abdf
test al, al
je 0x49515a
mov ecx, dword [ebp - 4]
mov eax, dword [0x4d1910]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp + 8], eax
mov eax, dword [0x4d1924]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp + 0xc]
mov edi, dword [eax]
mov esi, dword [edi]
mov bl, byte [edi + 0x90]
mov dword [ebp - 8], esi
call fcn.00419bd8
cmp dword [edi + 0x48], 0
jl 0x49512f
push dword [edi + 0x48]
call fcn.00496fba
cmp bl, 0x12
ja 0x4951dc
je 0x49519d
test bl, bl
je 0x495191
cmp bl, 4
jbe 0x495220
cmp bl, 8
je 0x495175
cmp bl, 0x10
je 0x495163
cmp bl, 0x11
je 0x495230
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp + 0xc], 0
jl 0x49515a
push dword [ebp + 0xc]
push 0
push 0x111d
jmp 0x495185
cmp dword [ebp + 0xc], 0
jl 0x49515a
push dword [ebp + 0xc]
push 0
push 0x2001
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4952a3
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x49515a
jmp 0x495269
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jl 0x49515a
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00419700
test byte [edi + 0x92], 0x20
jne 0x4952a3
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi]
call esi
push 5
push dword [edi]
call esi
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x4952a3
cmp bl, 0x13
je 0x495255
cmp bl, 0x14
je 0x495230
cmp bl, 0x17
je 0x495220
cmp bl, 0x18
je 0x495200
jbe 0x49515a
cmp bl, 0x1b
jbe 0x495220
jmp 0x49515a
cmp dword [ebp + 0xc], 0
jl 0x49515a
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0xb
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebp + 0xc]
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00419700
jmp 0x495298
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x49515a
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00419700
push 1
push 0
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4952a3
cmp dword [ebp + 0xc], 0xfffffffe
je 0x49515a
mov eax, 0xfe000000
cmp dword [ebp + 0xc], eax
jne 0x495276
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00419700
jmp 0x4952a3
push dword [ebp + 0xc]
push 0
push 0x1001
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
push dword [ebp + 0xc]
push 0
push 0x1026
push dword [ebp - 8]
call esi
push 1
push edi
push dword [ebp + 8]
call fcn.00497e35
cmp dword [0x4d1390], 0
je 0x4952b9
cmp bl, 8
jne 0x4952b9
or eax, 0xffffffff
jmp 0x49515c
xor eax, eax
inc eax
jmp 0x49515c
Function at 0x496b76
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0040abdf
test al, al
je 0x496bea
mov ecx, dword [ebp - 8]
mov eax, dword [0x4d1910]
mov esi, dword [ebp + 0xc]
mov edx, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [0x4d1924]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax]
mov ecx, dword [edi]
mov dword [ebp + 8], ecx
cmp esi, 0xffffffff
je 0x496c3e
movzx eax, byte [edi + 0x90]
dec eax
sub eax, 1
je 0x496c05
sub eax, 1
je 0x496c08
sub eax, 3
je 0x496c00
sub eax, 1
je 0x496bfb
sub eax, 3
je 0x496bf3
sub eax, 0xc
jne 0x496c29
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
or esi, 0x4000000
jmp 0x496c29
or esi, 3
jmp 0x496c29
or esi, 0xe
jmp 0x496c29
or esi, 4
push 0
test esi, 0x800
je 0x496c16
push 1
jmp 0x496c1e
or esi, 0x10000
push 0
push 0xcf
push ecx
call edx
mov ecx, dword [ebp + 8]
or esi, 0x50000000
push esi
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
je 0x496c7b
push esi
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov eax, dword [0x4d1924]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
cmp byte [eax + 0x90], 0x13
jne 0x496c7b
push esi
push 0
push 0x1036
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov al, byte [edi + 0x93]
mov ecx, dword [ebp - 8]
cmp al, 0xff
je 0x496ca0
movzx eax, al
cmp eax, dword [ecx + 0x190]
je 0x496ca0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x496ca9
push 1
push edi
push ecx
call fcn.00497e35
mov al, byte [edi + 0x90]
cmp al, 2
je 0x496cbc
cmp al, 3
je 0x496cbc
cmp esi, 0xffffffff
je 0x496ccd
push 0x27
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
test ebx, ebx
setne al
jmp 0x496bec
Function at 0x498193
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x44
push 0
mov ebx, 0x4d3018
push ebx
call fcn.00422330
push 0x10
push 0
mov esi, 0x4d305c
push esi
call fcn.00422330
add esp, 0x18
mov dword [0x4d3018], 0x44
xor eax, eax
inc eax
mov dword [0x4d3044], eax
push esi
push ebx
mov word [0x4d3048], ax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop esi
pop ebx
test eax, eax
je 0x4981f8
push dword [0x4d305c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret 4

Function at 0x4981fc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 3
pop esi
mov edx, dword [edi + 4]
mov dword [ebp + 8], edx
cmp dword [edi + 0x190], ebx
je 0x4982ae
mov ebx, esi
cmp dword [0x4d1934], esi
jl 0x4982a5
mov eax, dword [0x4d1924]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x49829c
cmp dword [ecx + 4], edx
jne 0x49829c
mov dl, byte [ecx + 0x90]
cmp dl, 0xb
je 0x498299
mov dh, byte [ecx + 0x93]
movzx eax, dh
cmp eax, dword [edi + 0x190]
je 0x498269
cmp byte [edi + 0x198], 0
je 0x498299
cmp dh, 0xff
je 0x498299
cmp dl, 0xa
je 0x498299
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d1924]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x498299
cmp byte [eax + 0x90], 0x1a
jne 0x498299
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc ebx
cmp ebx, dword [0x4d1934]
jle 0x498227
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x190], ebx
cmp dword [0x4d1934], esi
jl 0x498342
mov eax, dword [0x4d1924]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x498332
cmp dword [ecx + 4], edx
jne 0x498332
cmp byte [ecx + 0x90], 0xb
je 0x498332
movzx eax, byte [ecx + 0x93]
cmp eax, dword [edi + 0x190]
jne 0x498332
test byte [ecx + 0x92], 0x20
jne 0x498332
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d1924]
push 4
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d1924]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x498332
cmp byte [eax + 0x90], 0x1a
jne 0x498332
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [0x4d1934]
jle 0x4982ba
push 0
push ebx
push 0x130c
push dword [edi + 0x188]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x498590
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0x4986a9
push edi
push edi
push 3
push edi
push edi
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4985e1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4985e8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4986d8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4985e1
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x49fc38
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4985e1
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x498686
mov eax, edi
cmp dword [ecx], edi
jne 0x498686
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [edx]
push 0x2000
push dword [ecx]
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0x4986ae
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x4986c3
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x498fea
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x4d18b0
push edi
call fcn.00419ba1
mov ecx, dword [0x4d1910]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax]
cmp dword [ebp + 0xc], edi
jne 0x49903f
xor esi, esi
cmp dword [ebx + 0x1a0], esi
je 0x4990a1
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push esi
push edi
push dword [ebp - 4]
push dword [ebp - 8]
push esi
push dword [ebx + 0x1a0]
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x4990bb
push dword [ebp + 0xc]
call fcn.00419944
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x4990a1
mov ecx, dword [0x4d1924]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx]
mov cl, byte [eax + 0x90]
cmp cl, 0xe
je 0x4990a1
cmp cl, 0xf
je 0x4990a1
cmp cl, 0x13
je 0x4990a1
cmp cl, 0x10
je 0x4990a1
xor esi, esi
cmp dword [eax + 0xc], esi
je 0x4990a1
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4d1924]
mov ecx, dword [ebp + 8]
push esi
push dword [ebx]
push dword [ebp - 4]
mov eax, dword [eax + ecx*4]
push dword [ebp - 8]
push esi
mov eax, dword [eax]
push dword [eax + 0xc]
jmp 0x499037
movzx ecx, word [ebp + 0x14]
movzx eax, word [ebp + 0x10]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp + 0xc]
push 0x7b
push edi
call dword [sym.imp.USER32.dll_DefDlgProcW]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x403600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403619
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40362d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40364e
cmp esi, eax
jae 0x403627
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403640
cmp esi, eax
jae 0x403627
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4095a1
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x425ab0
call fcn.00409ea0
mov edi, 0x94
mov eax, edi
call fcn.004093e0
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 [0x435d38], ecx
mov eax, dword [esi + 4]
mov dword [0x435d44], eax
mov edx, dword [esi + 8]
mov dword [0x435d48], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x435d3c], esi
cmp ecx, 2
je 0x409601
or esi, 0x8000
mov dword [0x435d3c], esi
shl eax, 8
add eax, edx
mov dword [0x435d40], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40963a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40963a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x409652
cmp eax, 0x20b
je 0x40963f
mov dword [ebp - 0x1c], edi
jmp 0x409666
cmp dword [ecx + 0x84], 0xe
jbe 0x40963a
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x409660
cmp dword [ecx + 0x74], 0xe
jbe 0x40963a
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040e448
pop ecx
test eax, eax
jne 0x40967a
push 0x1c
call fcn.0040957d
pop ecx
call fcn.0040b51c
test eax, eax
jne 0x40968b
push 0x10
call fcn.0040957d
pop ecx
call fcn.0040f93c
mov dword [ebp - 4], edi
call fcn.0040f73e
test eax, eax
jge 0x4096a4
push 0x1b
call fcn.00409558
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x437754], eax
call fcn.0040f61c
mov dword [0x435d24], eax
call fcn.0040f57a
test eax, eax
jge 0x4096ca
push 8
call fcn.00409558
pop ecx
call fcn.0040f347
test eax, eax
jge 0x4096db
push 9
call fcn.00409558
pop ecx
push 1
call fcn.0040a914
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x4096f1
push eax
call fcn.00409558
pop ecx
mov eax, dword [0x435d58]
mov dword [0x435d5c], eax
push eax
push dword [0x435d50]
push dword [0x435d4c]
call fcn.00406560
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x409720
push esi
call fcn.0040aa41
call fcn.0040aa63
jmp 0x409752
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00409edb
ret
Function at 0x40a21a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004093e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a2b5
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x435d38]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40a2b5
cmp eax, 1
je 0x40a2d6
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a2b5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40a282
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40a2b1
xor eax, eax
inc eax
jmp 0x40a2f5
cmp edi, eax
jae 0x40a2b9
xor eax, eax
jmp 0x40a2f5
cmp eax, esi
jae 0x40a2c0
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x435d38]
jmp 0x40a2d9
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a97e
Capabilities:
Terminate process

Disassembly:
push 8
push 0x425b18
call fcn.00409ea0
push 8
call fcn.0040bb29
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x435d78], esi
jne 0x40a9b2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x435d74], esi
mov al, byte [ebp + 0x10]
mov byte [0x435d70], al
cmp dword [ebp + 0xc], edi
jne 0x40a9fc
cmp dword [0x43774c], edi
je 0x40a9ec
mov eax, dword [0x437748]
sub eax, 4
mov dword [0x437748], eax
cmp eax, dword [0x43774c]
jb 0x40a9ec
mov eax, dword [eax]
cmp eax, edi
je 0x40a9cd
call eax
jmp 0x40a9cd
push 0x431084
mov eax, 0x43107c
call fcn.0040a8fc
pop ecx
push 0x431090
mov eax, 0x431088
call fcn.0040a8fc
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40aa2d
cmp dword [ebp + 0x10], edi
jne 0x40aa3b
mov dword [0x435d78], esi
push dword [ebp + 8]
call fcn.0040a8ba
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40aa3a
push 8
call fcn.0040ba74
pop ecx
ret
call fcn.00409edb
ret
Function at 0x40f033
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x431884]
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 + 0x4320a8]
je 0x40f068
inc eax
cmp eax, 0x13
jb 0x40f059
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4320a8]
jne 0x40f18e
mov eax, dword [0x435d2c]
cmp eax, 1
je 0x40f166
cmp eax, edx
jne 0x40f098
cmp dword [0x4318c4], 1
je 0x40f166
cmp ecx, 0xfc
je 0x40f18e
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 0x40f0ce
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040b730
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00409d30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40f102
mov eax, edi
push eax
call fcn.00409d30
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x425c24
push edi
call fcn.004106b0
add esp, 0x10
push edi
call fcn.00409d30
push dword [esi + 0x4320ac]
mov ebx, eax
call fcn.00409d30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004093e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040b730
push edi
push ebx
call fcn.0040b740
push 0x425c20
push ebx
call fcn.0040b740
push dword [esi + 0x4320ac]
push ebx
call fcn.0040b740
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004105ad
add esp, 0x2c
jmp 0x40f18e
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4320ac]
push dword [esi]
call fcn.00409d30
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.00408d70
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret