joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x2d477d42
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x429d20d0
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402592
Capabilities:
Read file on windows

Disassembly:
push ecx
push edx
mov eax, dword [esp + 0xc]
mov eax, dword [eax*4 + 0x406786]
cmp eax, 0xffffffff
jne 0x4025a8
xor eax, eax
jmp 0x4025c9
push edx
mov edx, esp
push 0
push edx
push dword [esp + 0x20]
push dword [esp + 0x20]
push eax
call sub.kernel32.dll_ReadFile
pop eax
mov edx, dword [esp + 0x10]
test eax, eax
je 0x4025c9
mov byte [edx + eax], 0
pop edx
pop ecx
ret 0xc

Function at 0x403bde
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ecx
push esi
lea esi, [ebp - 0x24]
mov edx, dword [ebp + 8]
cmp edx, 0xa
ja 0x403c00
push esi
push dword [edx*4 + 0x406786]
call sub.kernel32.dll_GetFileSizeEx
jmp 0x403c0c
push esi
push 0
push edx
call sub.kernel32.dll_GetFileAttributesExA
add esi, 0x20
dec eax
js 0x403c12
lodsd eax, dword [esi]
mov edx, dword [esi]
pop esi
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x403d34
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.00403da0
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0x4028ce
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x425124]
push edi
mov edi, ecx
push 0x42586c
push edi
call esi
push 0x42585c
push edi
mov ebx, eax
call esi
push 0x425848
push edi
mov dword [ebp - 0x18], eax
call esi
push 0x42583c
push edi
mov dword [ebp - 0x10], eax
call esi
push 0x425798
push edi
mov dword [ebp - 0x14], eax
call esi
push 0x4257a8
push edi
mov dword [ebp - 0xc], eax
call esi
push 0x425784
push edi
mov dword [ebp - 0x1c], eax
call esi
push 0x425774
push edi
mov dword [ebp - 8], eax
call esi
xor esi, esi
cmp ebx, esi
je 0x402aad
cmp dword [ebp - 0x18], esi
je 0x402aad
cmp dword [ebp - 0x10], esi
je 0x402aad
cmp dword [ebp - 0x14], esi
je 0x402aad
cmp dword [ebp - 0xc], esi
je 0x402aad
cmp dword [ebp - 8], esi
je 0x402aad
cmp eax, esi
je 0x402aad
cmp dword [ebp - 0x1c], esi
je 0x402aad
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x402aa6
cmp byte [eax], 0
je 0x402aa6
push esi
push eax
call fcn.00421ecf
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4029cb
push dword [ebp + 8]
push 0x425814
call fcn.0040951e
add eax, 0x40
push eax
call fcn.00409378
add esp, 0xc
push 3
pop eax
jmp 0x402ab0
push 0x425800
push 0x3ec
push dword [0x432818]
call dword [0x425294]
call ebx
mov eax, edi
call fcn.004027bf
push 0x400
push esi
mov esi, 0x4302a8
push esi
call fcn.004082c0
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
jle 0x402a2b
mov edi, dword [ebp + 0x10]
mov ebx, esi
sub ebx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
test eax, eax
je 0x402a1e
push eax
call fcn.004022b1
pop ecx
jmp 0x402a20
xor eax, eax
mov dword [ebx + edi], eax
add edi, 4
dec dword [ebp - 0xc]
jne 0x402a0f
push esi
push dword [ebp + 0xc]
call dword [ebp - 0x18]
xor esi, esi
cmp dword [ebp + 0xc], esi
pop ecx
pop ecx
jle 0x402a53
mov eax, dword [esi*4 + 0x4302a8]
test eax, eax
je 0x402a4d
push eax
call fcn.00408b30
pop ecx
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x402a3b
push 3
pop ebx
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 8]
call fcn.00409021
pop ecx
pop ecx
test eax, eax
jne 0x402a96
mov edi, dword [ebp - 0x38]
lea eax, [edi + 5]
call fcn.004096e0
mov esi, esp
push edi
push esi
push dword [ebp - 8]
call fcn.00422b65
add esp, 0xc
test eax, eax
jle 0x402a96
add eax, esi
push esi
mov byte [eax], 0xa
mov byte [eax + 1], 0
call dword [ebp - 0x10]
pop ecx
mov ebx, eax
call dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.00415e4b
pop ecx
mov eax, ebx
jmp 0x402ab0
push 2
jmp 0x4029c5
xor eax, eax
inc eax
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408475
leave
ret
Function at 0x438ca2
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
add edx, 1
or esi, edx
add esi, 0xa6731c12
call fcn.00438ce6
add edx, esi
inc esi
xor dword [eax], ecx
or esi, edx
add eax, 1
sub edx, 0xe0f6d194
add esi, 1
sub edx, esi
cmp eax, edi
jne fcn.00438ca2
mov esi, edx
sub esi, 1
ret
Function at 0x4020b0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4020d9
push 0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
cmp dword [edi + 0x44], 2
je 0x402108
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0x10]
push 0xcc0020
push eax
mov eax, dword [edi + 0x54]
push ecx
mov ecx, dword [edi + 0x50]
push edx
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x402198
mov edx, dword [edi + 0x34]
push ebx
push ebp
push edx
call fcn.00401f30
mov eax, dword [edi + 0x34]
push eax
call fcn.00401f30
mov ebp, dword [edi + 8]
lea eax, [eax + ebp - 1]
cdq
idiv ebp
mov ebx, dword [edi + 4]
add esp, 8
mov dword [esp + 0x24], 0
test eax, eax
jle 0x402196
mov dword [esp + 0x14], eax
lea esp, [esp]
xor esi, esi
mov dword [esp + 0x10], 2
lea ebx, [ebx]
mov ecx, dword [edi + 0x10]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0xcc0020
push 0
push 0
push ecx
push ebp
push ebx
push edx
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
add esi, ebx
dec eax
mov dword [esp + 0x10], eax
jne 0x402150
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
add ecx, ebp
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
jne 0x402140
mov esi, dword [esp + 0x20]
pop ebp
pop ebx
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4021ad
mov ecx, dword [esp + 0x10]
push 0
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
pop edi
pop esi
add esp, 0xc
ret

Function at 0x4037f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x41e248]
test eax, eax
push esi
push edi
je 0x40384b
mov eax, dword [esp + 0x10]
mov edx, dword [0x41d344]
mov ecx, dword [0x41d348]
lea esi, [edx + eax]
cmp esi, ecx
jl 0x403816
sub ecx, edx
mov eax, ecx
test eax, eax
jle 0x4038bf
mov esi, dword [0x41d340]
mov edi, dword [esp + 0xc]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x41d344]
add ecx, eax
pop edi
mov dword [0x41d344], ecx
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push ecx
push 1
push esi
call fcn.00412bce
mov edi, eax
mov eax, dword [0x41e238]
add esp, 0x10
test eax, eax
je 0x4038bd
test edi, edi
jle 0x4038bd
mov edx, dword [0x41e0a4]
mov eax, dword [0x41e088]
lea ecx, [eax + edx]
mov edx, dword [0x41e094]
mov eax, dword [0x41e090]
add eax, edx
and ecx, 0xff
and eax, 0xff
test edi, edi
jle 0x4038bd
mov dl, byte [0x41e09c]
push ebx
push ebp
mov ebp, edi
mov bl, byte [esi]
sub bl, al
xor bl, cl
add dl, bl
mov byte [esi], dl
inc esi
dec ebp
jne 0x4038a7
pop ebp
mov byte [0x41e09c], dl
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x404170
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x41fb14]
mov ecx, dword [0x4206d0]
push 0x100
push 0x41f538
mov word [0x41e258], 0x206
mov word [0x41e25a], 0x19
mov dword [0x41e25c], 0x41fa9c
mov dword [0x41e260], eax
mov dword [0x41e264], ecx
mov dword [0x41e268], 0x42001c
mov dword [0x41e26c], 0x41f500
mov dword [0x41e270], 0x41fadc
mov dword [0x41e274], 0x4206c8
mov dword [0x41e278], 0x41fad0
mov dword [0x41e27c], 0x41e3e0
mov dword [0x41e280], 0x408500
mov dword [0x41e284], 0x408db0
mov dword [0x41e288], 0x408d70
mov dword [0x41e28c], 0x408e10
mov dword [0x41e290], 0x408e70
mov dword [0x41e294], 0x404140
mov dword [0x41e298], 0x403ce0
mov dword [0x41e29c], 0x403e10
mov dword [0x41e2a0], 0x403fb0
mov dword [0x41e2a4], 0x403ff0
mov dword [0x41e2a8], 0x404060
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0x41f3f0
call fcn.00412f4b
add esp, 8
mov dword [0x41f4f4], 0
jmp fcn.004040e0

Function at 0x404280
Capabilities:
Get hostname
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
sub esp, 0xc8
push ebx
push ebp
mov ebp, dword [esp + 0xd4]
mov ebx, eax
test bl, 0x10
push esi
mov esi, 4
mov dword [esp + 0xc], 0x40
je 0x4042af
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test bl, 0x20
je 0x4042d8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
and ebx, 0xf
mov edx, dword [esp + ebx*4 + 0x10]
pop esi
mov dword [ebp], edx
pop ebp
mov eax, 4
pop ebx
add esp, 0xc8
ret
cmp ebx, 0x10
ja case.0x4042e8.3
movzx eax, byte [ebx + 0x404418]
jmp dword [eax*4 + 0x404404]
mov ecx, dword [str.Windows]
mov dword [ebp], ecx
mov edx, dword [0x41a36c]
push edi
mov dword [ebp + 4], edx
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edi, ebp
dec edi
test eax, eax
js 0x404330
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404310
mov cx, word [0x41a364]
mov word [edi], cx
mov dl, byte [0x41a366]
jmp 0x404348
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404330
mov cx, word [0x41a360]
mov word [edi], cx
mov dl, byte [0x41a362]
movzx ecx, ah
push ecx
and eax, 0xff
push eax
mov byte [edi + 2], dl
lea edx, [esp + 0x60]
push str._ver_d._d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x68]
add esp, 0x10
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404370
sub eax, edx
dec ebp
mov edi, ebp
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404380
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 2
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, 2
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
lea ecx, [esp + 0xc]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov esi, 2
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
mov edx, dword [esp + 0x48]
mov eax, esi
pop esi
mov dword [ebp], edx
pop ebp
pop ebx
add esp, 0xc8
ret
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc8
ret
Function at 0x404690
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x40
push ebx
push esi
mov esi, eax
mov ecx, eax
sar eax, 8
push edi
mov edi, dword [esp + 0x50]
and esi, 0xff
mov ebx, dword [edi + esi*4 + 0x1a4]
and eax, 0xf
sar ecx, 0x10
cmp eax, 5
ja case.default.0x4046c1
jmp dword [eax*4 + 0x4047e4]
mov dword [0x41fae4], ebx
mov dword [0x41fce0], 0
jmp 0x4047d1
cmp ecx, 0x400
jne case.default.0x4046c1
mov eax, dword [edi + esi*4 + 0xa4]
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [edi + 0x34]
push 0x40
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
jne 0x404714
mov dword [ebx], eax
jmp 0x4047d1
lea eax, [esp + 0xc]
push eax
call fcn.004127a8
add esp, 4
jmp 0x4047cf
cmp ecx, 0x400
jne case.default.0x4046c1
mov ecx, dword [edi + esi*4 + 0xa4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push 4
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [edi + 0x34]
push eax
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
je 0x404780
mov ecx, dword [edi + esi*4 + 0xa4]
push 0
push 0
push 0xd5
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [edi + esi*4 + 0xa4]
inc eax
push eax
push ebx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4047d1
mov byte [ebx], 0
jmp 0x4047d1
mov eax, dword [edi + esi*4 + 0xa4]
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [edi + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
jmp 0x4047cf
cmp ecx, 9
jne case.default.0x4046c1
mov edx, dword [edi + esi*4 + 0xa4]
push 0
push 0
push 0x147
push edx
jmp 0x4047c9
mov eax, dword [edi + esi*4 + 0xa4]
push 0
push 0
push 0x188
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebx], eax
cmp dword [edi + 0x48], 0x20
jge case.default.0x4046c1
mov dword [0x41fae8], esi
pop edi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x40fa60
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
jl 0x40fb3d
push ebx
push ebp
mov ebp, dword [eax*4 + 0x422698]
mov eax, dword [ebp + 0x30c]
test eax, eax
push esi
push edi
je 0x40fb39
push 0xffffffffffffffff
push ebp
call fcn.00401130
mov esi, eax
add esp, 8
test esi, esi
jl 0x40faa5
cmp byte [esi + ebp + 0x41c], 2
jge 0x40fb39
push 0x10
mov dword [esp + 0x1c], 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, ah
jns 0x40fac1
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x10], 0
lea esp, [esp]
add esi, dword [esp + 0x18]
cmp esi, 0x40
jl 0x40fadd
xor esi, esi
jmp 0x40fae6
test esi, esi
jge 0x40fae6
mov esi, 0x3f
mov edi, dword [ebp + esi*4 + 0xa4]
test edi, edi
je 0x40fb09
movsx ebx, byte [esi + ebp + 0x41c]
cmp ebx, 2
jge 0x40fb09
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x40fb1d
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x40
mov dword [esp + 0x10], eax
jl 0x40fad0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp ebx, 1
jne 0x40fb32
push 0xffffffffffffffff
push 0
push 0xb1
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x412e61
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41d450]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x412eda
push ebx
call fcn.00412e2a
test eax, eax
pop ecx
jne 0x412eac
mov dword [0x4228b4], 0xf
mov dword [0x4228b0], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.00415c99
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x412eec
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x412e9c
inc eax
cmp eax, 0x104
ja 0x412e9c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x412f23
cmp eax, dword [ebp + 0x10]
jg 0x412f07
mov eax, dword [ebp + 0x10]
push eax
call fcn.004128bf
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x412f37
mov dword [0x4228b0], 0xc
jmp 0x412e9c
cmp eax, dword [ebp + 0x10]
jle 0x412f37
mov dword [0x4228b0], 0x22
jmp 0x412e9c
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.00415b70
pop ecx
pop ecx
jmp 0x412e9e
Function at 0x4137db
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41a728
call fcn.00416eec
mov edi, 0x94
mov eax, edi
call fcn.00416f40
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 [0x4228bc], ecx
mov eax, dword [esi + 4]
mov dword [0x4228c8], eax
mov edx, dword [esi + 8]
mov dword [0x4228cc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4228c0], esi
cmp ecx, 2
je 0x41383b
or esi, 0x8000
mov dword [0x4228c0], esi
shl eax, 8
add eax, edx
mov dword [0x4228c4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x413876
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413876
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41388e
cmp eax, 0x20b
je 0x41387b
mov dword [ebp - 0x1c], esi
jmp 0x4138a2
cmp dword [ecx + 0x84], 0xe
jbe 0x413876
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41389c
cmp dword [ecx + 0x74], 0xe
jbe 0x413876
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00413b3f
pop ecx
test eax, eax
jne 0x4138ce
cmp dword [0x4228a4], 1
jne 0x4138bb
call fcn.00416857
push 0x1c
call fcn.004166e0
push 0xff
call fcn.00415035
pop ecx
pop ecx
call fcn.00416e61
mov dword [ebp - 4], esi
call fcn.004159c2
test eax, eax
jge 0x4138e7
push 0x1b
call fcn.004137b6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x424074], eax
call fcn.00416d3f
mov dword [0x42289c], eax
call fcn.00416c9d
test eax, eax
jge 0x41390d
push 8
call fcn.004137b6
pop ecx
call fcn.00416a6a
test eax, eax
jge 0x41391e
push 9
call fcn.004137b6
pop ecx
call fcn.00415065
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x413931
push eax
call fcn.004137b6
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00416a01
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x413952
movzx eax, word [ebp - 0x34]
jmp 0x413955
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00410c40
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x413973
push edi
call fcn.0041518c
call fcn.004151ae
jmp 0x4139a5
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00416f27
ret
Function at 0x4149d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41d450]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x423f20]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x414b60
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x423f40]
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 - 0x18], ebx
je 0x414b60
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x414a2f
xor eax, eax
jmp 0x414b74
test al, 0x20
je 0x414a40
push 2
push edi
push edi
push ecx
call fcn.0041747d
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x414afc
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x414b34
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x414a96
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x414a87
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x414a6c
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414ad6
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x414adf
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x414a60
jmp 0x414ae1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x414b5b
cmp dword [ebp + 8], edi
je 0x414b34
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x414b29
mov dword [0x4228b4], eax
jmp 0x414b67
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414b1e
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x414ae1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x414ae1
push dword [ebp + 8]
call fcn.004161ab
pop ecx
jmp 0x414b71
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x414b49
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x414a28
mov dword [0x4228b0], 0x1c
mov dword [0x4228b4], edi
jmp 0x414b71
sub eax, dword [ebp - 0x14]
jmp 0x414b74
and dword [0x4228b4], 0
mov dword [0x4228b0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00415c99
leave
ret
Function at 0x4150ca
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4228fc], esi
push edi
jne 0x4150ea
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 [0x4228f8], esi
mov byte [0x4228f4], al
jne 0x415150
mov ecx, dword [0x424048]
test ecx, ecx
je 0x415131
mov eax, dword [0x424044]
sub eax, 4
cmp eax, ecx
jmp 0x41512a
mov eax, dword [eax]
test eax, eax
je 0x41511c
call eax
mov eax, dword [0x424044]
sub eax, 4
cmp eax, dword [0x424048]
mov dword [0x424044], eax
jae 0x415114
mov eax, 0x41d020
mov esi, 0x41d028
cmp eax, esi
mov edi, eax
jae 0x415150
mov eax, dword [edi]
test eax, eax
je 0x415149
call eax
add edi, 4
cmp edi, esi
jb 0x415141
mov eax, 0x41d02c
mov esi, 0x41d030
cmp eax, esi
mov edi, eax
jae 0x41516f
mov eax, dword [edi]
test eax, eax
je 0x415168
call eax
add edi, 4
cmp edi, esi
jb 0x415160
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x41518a
push dword [ebp + 8]
mov dword [0x4228fc], 1
call fcn.00415035
pop ecx
pop ebp
ret