joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e270
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e2a3
push esi
call fcn.00441380
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e29c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e329
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e312
mov eax, dword [esi + 8]
test eax, eax
je 0x43e2c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e30e
cmp eax, 2
je 0x43e312
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e2ba
cmp eax, 3
je 0x43e2ed
cmp eax, 1
jne 0x43e2ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e2ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e2ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e350
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e338
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e350
add esp, 4
pop esi
ret

Function at 0x45cb58
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45cb90
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.0045ac0c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045abe4
jmp 0x45cb9c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45e246
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 0x45e288
call fcn.00463cfa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45e288
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45e27f
xor eax, eax
jmp 0x45e290
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045e296
pop edi
pop esi
pop ebx
ret 4

Function at 0x46422a
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 0x464258
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x464276
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00464190
jmp 0x464276
mov eax, dword [esi + 0x14]
test eax, eax
je 0x464276
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00464190
test edi, edi
mov eax, edi
jne 0x464260
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x65904fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6590500b
cmp byte [esi + ebx - 1], 0xa
je 0x65904fdf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6590a0c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401e10
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 0x401e29
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401e3d
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 0x401e5e
cmp esi, eax
jae 0x401e37
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401e50
cmp esi, eax
jae 0x401e37
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402ed6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x402f29
call fcn.00421220
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x402f29
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x402f1f
xor eax, eax
jmp 0x40303e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x402f58
mov eax, dword [edi]
push ebx
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x402f58
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x40303b
mov edi, dword [eax + 0x40]
and dword [ebp + 0x10], 0
xor eax, eax
cmp edi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], edi
je 0x402f87
mov ecx, dword [edi]
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
cmp dword [ebx + 8], eax
mov dword [ebp - 4], eax
jbe 0x40303b
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x402fc5
mov ecx, dword [ecx + 4]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x402fc5
test edi, edi
mov dword [ebp - 8], edi
je 0x402fbf
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jmp 0x40302b
and dword [ebp + 0x10], 0
jmp 0x40302b
mov ecx, dword [ebx + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40302b
push 0xc
call fcn.0041889e
mov esi, eax
test esi, esi
pop ecx
je 0x40300a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x40300c
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x403026
push dword [ebp - 8]
call fcn.0041846d
jmp 0x40302b
call fcn.00418444
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jb 0x402f93
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40c8ee
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x429398
call fcn.0040d1b0
mov edi, 0x94
mov eax, edi
call fcn.0040c3a0
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 [0x433f6c], ecx
mov eax, dword [esi + 4]
mov dword [0x433f78], eax
mov edx, dword [esi + 8]
mov dword [0x433f7c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x433f70], esi
cmp ecx, 2
je 0x40c94e
or esi, 0x8000
mov dword [0x433f70], esi
shl eax, 8
add eax, edx
mov dword [0x433f74], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40c989
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c989
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40c9a1
cmp eax, 0x20b
je 0x40c98e
mov dword [ebp - 0x1c], esi
jmp 0x40c9b5
cmp dword [ecx + 0x84], 0xe
jbe 0x40c989
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40c9af
cmp dword [ecx + 0x74], 0xe
jbe 0x40c989
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00411c88
pop ecx
test eax, eax
jne 0x40c9c9
push 0x1c
call fcn.0040c8ca
pop ecx
call fcn.0040ed37
test eax, eax
jne 0x40c9da
push 0x10
call fcn.0040c8ca
pop ecx
call fcn.00413189
mov dword [ebp - 4], esi
call fcn.00412f8b
test eax, eax
jge 0x40c9f3
push 0x1b
call fcn.0040c8a5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4357d0], eax
call fcn.00412e69
mov dword [0x433f5c], eax
call fcn.00412dc7
test eax, eax
jge 0x40ca19
push 8
call fcn.0040c8a5
pop ecx
call fcn.00412b94
test eax, eax
jge 0x40ca2a
push 9
call fcn.0040c8a5
pop ecx
call fcn.0040d665
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40ca3d
push eax
call fcn.0040c8a5
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00412b2b
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40ca5e
movzx eax, word [ebp - 0x34]
jmp 0x40ca61
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0041803c
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40ca7f
push edi
call fcn.0040d79d
call fcn.0040d7bf
jmp 0x40cab1
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040d1eb
ret
Function at 0x41400a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4141d0
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x434440]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4141d0
test cl, 0x48
je 0x414070
mov al, byte [eax + 5]
cmp al, 0xa
je 0x414070
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4140c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4140aa
call fcn.0040dc75
mov dword [eax], 9
call fcn.0040dc7e
mov dword [eax], esi
jmp 0x4140ba
cmp eax, 0x6d
je 0x4141d0
push eax
call fcn.0040dc87
pop ecx
or eax, 0xffffffff
jmp 0x4141d2
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4141cb
test edx, edx
je 0x4140e5
cmp byte [ebx], 0xa
jne 0x4140e5
or al, 4
jmp 0x4140e7
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4141c5
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4141b5
cmp al, 0xd
je 0x41411b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4141a7
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x414135
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x414130
add dword [ebp + 0x10], 2
jmp 0x414189
mov dword [ebp + 0x10], eax
jmp 0x4141a3
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41415d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4141a3
cmp dword [ebp - 0xc], 0
je 0x4141a3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41417e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x414189
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4141a6
cmp ebx, dword [ebp + 0xc]
jne 0x41418e
cmp byte [ebp - 1], 0xa
jne 0x41418e
mov byte [ebx], 0xa
jmp 0x4141a6
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004112a5
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4141a7
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4140ff
jmp 0x4141c5
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4141c5
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4141d2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414282
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4310a8]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4142ab
xor eax, eax
jmp 0x414419
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x434440]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4142de
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00416602
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4143b0
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4143eb
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x414339
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41432a
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x41430d
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414379
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x414382
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4142fe
jmp 0x414384
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x414414
cmp dword [ebp - 8], edi
je 0x4143eb
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4143dd
call fcn.0040dc75
mov dword [eax], 9
call fcn.0040dc7e
mov dword [eax], esi
jmp 0x4143e6
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4143d2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x414384
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x414384
push dword [ebp - 8]
call fcn.0040dc87
pop ecx
or eax, 0xffffffff
jmp 0x414417
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x414400
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x414400
xor eax, eax
jmp 0x414417
call fcn.0040dc75
mov dword [eax], 0x1c
call fcn.0040dc7e
mov dword [eax], edi
jmp 0x4143e6
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0040c390
leave
ret
Function at 0x4153db
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040c3a0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415470
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x433f6c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x415470
cmp eax, 1
je 0x415488
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415470
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x415445
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41546c
xor eax, eax
inc eax
jmp 0x4154a4
cmp esi, ebx
jae 0x415474
xor eax, eax
jmp 0x4154a4
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x433f6c]
jmp 0x41548a
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4154ac
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4343a4], ebx
push esi
push edi
jne 0x41552c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x415567
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42a320
push edi
call esi
test eax, eax
mov dword [0x4343a4], eax
je 0x415567
push 0x42a310
push edi
call esi
push 0x42a2fc
push edi
mov dword [0x4343a8], eax
call esi
cmp dword [0x433f6c], 2
mov dword [0x4343ac], eax
jne 0x41552c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4343b4], eax
je 0x41552c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4343b0], eax
mov eax, dword [0x4343b0]
test eax, eax
je 0x415571
call eax
test eax, eax
je 0x415558
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4343b4]
test eax, eax
je 0x415558
test byte [ebp - 8], 1
jne 0x415571
cmp dword [0x433f78], 4
jb 0x41556b
or byte [ebp + 0x12], 0x20
jmp 0x415590
xor eax, eax
jmp 0x4155a0
or byte [ebp + 0x12], 4
jmp 0x415590
mov eax, dword [0x4343a8]
test eax, eax
je 0x415590
call eax
mov ebx, eax
test ebx, ebx
je 0x415590
mov eax, dword [0x4343ac]
test eax, eax
je 0x415590
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4343a4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41597c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x4159a7
cmp eax, 1
je 0x4159a7
jle 0x4159af
cmp eax, 3
jle 0x4159a7
cmp eax, 4
jne 0x4159af
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4159da
call fcn.0040dc75
mov dword [eax], 0x16
call fcn.0040dc7e
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x415b53
inc eax
cmp byte [eax], bl
jne 0x4159c9
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x4159da
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x4159c9
push esi
push edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0040d200
mov dword [ebp - 0x68], esi
mov esi, dword [0x434430]
add esp, 0xc
cmp esi, ebx
je 0x415a21
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + 0x434440]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x415a21
dec esi
dec ecx
cmp esi, ebx
jne 0x415a01
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
movzx eax, ax
push 1
push eax
call fcn.0040eb58
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x415a87
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + 0x434440]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x415a73
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x415a78
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x415a4c
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x415ab8
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x415a9e
mov edi, esi
jmp 0x415aa1
push 3
pop edi
cmp edx, edi
jge 0x415ab1
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x415a95
mov dword [ebp - 0xc], 8
call fcn.0040dc75
mov dword [eax], ebx
call fcn.0040dc7e
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.0040c818
cmp esi, ebx
pop ecx
jne 0x415b08
push edi
call fcn.0040dc87
pop ecx
or eax, 0xffffffff
jmp 0x415b51
cmp dword [ebp + 8], 2
jne 0x415b14
push ebx
call fcn.0040d7ae
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x415b41
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x415b4a
cmp dword [ebp + 8], 4
je 0x415b3a
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415d51
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x415d71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040dc87
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x415d94
test byte [esp + 8], 2
je 0x415d94
call fcn.0040dc75
mov dword [eax], 0xd
call fcn.0040dc7e
mov dword [eax], 5
jmp 0x415d6d
xor eax, eax
ret

Function at 0x416a9e
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040c3a0
mov eax, dword [0x4310a8]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004112a5
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x416bc8
push 2
push esi
push dword [ebp + 8]
call fcn.004112a5
add esp, 0xc
cmp eax, ebx
je 0x416bc8
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x416b6b
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.0040d200
push 0x8000
push dword [ebp + 8]
call fcn.00417581
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x416b24
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00414282
add esp, 0xc
cmp eax, 0xffffffff
je 0x416b44
sub edi, eax
test edi, edi
jg 0x416b1c
jmp 0x416b5c
call fcn.0040dc7e
cmp dword [eax], 5
jne 0x416b59
call fcn.0040dc75
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00417581
pop ecx
pop ecx
jmp 0x416bb3
jge 0x416bb3
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004112a5
push dword [ebp + 8]
call fcn.0040da52
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x416bb3
call fcn.0040dc75
mov dword [eax], 0xd
call fcn.0040dc7e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004112a5
add esp, 0xc
mov eax, esi
pop edi
jmp 0x416bca
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0040c390
leave
ret