joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40285a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
je 0x4028ed
test edi, edi
je 0x4028ed
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
jbe 0x4028e6
push eax
call fcn.004153d0
mov esi, eax
test esi, esi
pop ecx
jne 0x402895
mov eax, 0x8007000e
jmp 0x4028f2
push esi
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4028df
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x4255e8
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4028df
mov eax, dword [ebp + 8]
test eax, eax
je 0x4028df
mov ecx, dword [eax + 8]
mov dword [edi + 4], ecx
mov eax, dword [eax + 0xc]
push esi
mov dword [edi], eax
call fcn.0040112e
pop ecx
xor eax, eax
jmp 0x4028f2
push esi
call fcn.0040112e
pop ecx
mov eax, 0x80004005
jmp 0x4028f2
mov eax, 0x80070057
pop esi
leave
ret
Function at 0x40533f
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x42206e
call fcn.00418758
sub esp, 0xcc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
push ebx
push esi
push edi
jne 0x405360
xor edi, edi
jmp 0x405362
mov edi, dword [eax]
cmp edi, eax
je 0x4054b7
lea esi, [edi + 8]
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00404c07
and dword [ebp - 4], 0
lea eax, [esi + 0x38]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00404c07
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.00404c07
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0xa0]
push 0
push eax
mov byte [ebp - 4], 2
call fcn.00416810
mov eax, dword [ebp - 0x28]
add esp, 0x24
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x94], str.open
jae 0x4053ce
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x44]
jae 0x4053e0
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x4c], 0x10
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x60]
jae 0x4053f2
lea eax, [ebp - 0x60]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0x84], 5
mov dword [ebp - 0x9c], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40547b
mov ebx, dword [ebp - 0x68]
jmp 0x40543c
cmp dword [ebp - 0x10], 0x103
jne 0x40544d
cmp byte [0x42bd68], 0
jne 0x405460
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x405422
jmp 0x405487
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x405487
cmp byte [esi + 0x54], 0
jne 0x405487
push 1
lea ecx, [ebp - 0x64]
call fcn.004017f4
push 1
lea ecx, [ebp - 0x48]
call fcn.004017f4
push 1
jmp 0x40552e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x54], 0
je 0x4054c8
mov edi, dword [edi]
push 1
lea ecx, [ebp - 0x64]
call fcn.004017f4
push 1
lea ecx, [ebp - 0x48]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.004017f4
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 4]
jne 0x40536a
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xd8]
push str.Failed_to_execute_
push eax
call fcn.004049bf
push 0x4255d4
push eax
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 3
call fcn.00404973
push eax
mov byte [ebp - 4], 4
call fcn.004051cf
xor esi, esi
add esp, 0x1c
inc esi
push esi
lea ecx, [ebp - 0xbc]
call fcn.004017f4
push esi
lea ecx, [ebp - 0xd8]
call fcn.004017f4
push esi
lea ecx, [ebp - 0x64]
call fcn.004017f4
push esi
lea ecx, [ebp - 0x48]
call fcn.004017f4
push esi
lea ecx, [ebp - 0x2c]
call fcn.004017f4
xor al, al
jmp 0x4054b9
Function at 0x40553d
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x421d36
call fcn.00418758
sub esp, 0x38
push esi
push edi
push str._readme.html
mov esi, 0x42a270
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00404973
lea eax, [ebp - 0x28]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00411d80
add esp, 0x10
test al, al
jne 0x4055a1
push str._readme.txt
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00404973
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004016ad
push 1
lea ecx, [ebp - 0x44]
call fcn.004017f4
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x4055ad
lea eax, [ebp - 0x24]
push 1
push edi
push edi
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x28]
push 1
call fcn.004017f4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4055e6
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x422080
call fcn.00418758
mov eax, 0x4038
call fcn.004183c0
push 0x4000
lea eax, [ebp - 0x4044]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x4044]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401644
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00404c07
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x40563c
mov eax, dword [eax + 4]
jmp 0x40563f
add eax, 4
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
lea ecx, [ebp - 0x44]
call fcn.004017f4
push 1
lea ecx, [ebp - 0x28]
call fcn.004017f4
push 0
push 0x4055d6
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x40874a
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4087a6
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
cmp dword [esi + 0x18], 0x10
jb 0x408781
mov esi, dword [esi + 4]
jmp 0x408784
add esi, 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
call eax
test eax, eax
jne 0x40879e
or edx, 0xffffffff
mov eax, edx
jmp 0x4087e1
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x4087e1
cmp dword [esi + 0x18], 0x10
jb 0x4087b1
mov esi, dword [esi + 4]
jmp 0x4087b4
add esi, 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x408797
mov eax, dword [ebp - 4]
mul dword [ebp - 8]
push 0
push dword [ebp - 0x10]
push edx
push eax
call fcn.00418380
pop esi
leave
ret
Function at 0x40b1c8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x40b203
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x40b1e0
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x40b21f
dec esi
je 0x40b218
dec esi
jne 0x40b224
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x412100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x421568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x429364]
xor eax, dword [esp + 0x30]
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x28], eax
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 0x14]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x38], ebx
jbe 0x41218a
push ebp
lea ebp, [edi + 4]
cmp dword [edi + 0x18], 0x10
jb 0x41215e
mov eax, dword [ebp]
jmp 0x412160
mov eax, ebp
movsx eax, byte [eax + esi]
push eax
call fcn.00418515
mov byte [esp + 0x4c], al
mov ecx, dword [esp + 0x4c]
add esp, 4
push ecx
push 1
lea ecx, [esp + 0x1c]
call fcn.004098c4
mov eax, dword [edi + 0x14]
inc esi
cmp esi, eax
jb 0x412153
pop ebp
mov esi, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004016ad
cmp dword [esp + 0x28], 0x10
jb 0x4121be
mov eax, dword [esp + 0x14]
push eax
call fcn.0040112e
add esp, 4
mov ecx, dword [esp + 0x30]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
xor ecx, dword [esp + 0x38]
mov eax, esi
pop esi
pop ebx
add esp, 0x30
jmp fcn.00418247
Function at 0x416594
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 0x41675a
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x42e680]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41675a
test cl, 0x48
je 0x4165fa
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4165fa
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 0x41664c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x416634
call fcn.0041a463
mov dword [eax], 9
call fcn.0041a46c
mov dword [eax], esi
jmp 0x416644
cmp eax, 0x6d
je 0x41675a
push eax
call fcn.0041a475
pop ecx
or eax, 0xffffffff
jmp 0x41675c
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 0x416755
test edx, edx
je 0x41666f
cmp byte [ebx], 0xa
jne 0x41666f
or al, 4
jmp 0x416671
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 0x41674f
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41673f
cmp al, 0xd
je 0x4166a5
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x416731
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4166bf
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4166ba
add dword [ebp + 0x10], 2
jmp 0x416713
mov dword [ebp + 0x10], eax
jmp 0x41672d
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 0x4166e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41672d
cmp dword [ebp - 0xc], 0
je 0x41672d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x416708
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x416713
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x416730
cmp ebx, dword [ebp + 0xc]
jne 0x416718
cmp byte [ebp - 1], 0xa
jne 0x416718
mov byte [ebx], 0xa
jmp 0x416730
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041697d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x416731
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x416689
jmp 0x41674f
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x41674f
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41675c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416a9c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x429364]
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 0x416ac5
xor eax, eax
jmp 0x416c33
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 + 0x42e680]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x416af8
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0041a55e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x416bca
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x416c05
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 0x416b53
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x416b44
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 0x416b27
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 0x416b93
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x416b9c
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x416b18
jmp 0x416b9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x416c2e
cmp dword [ebp - 8], edi
je 0x416c05
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x416bf7
call fcn.0041a463
mov dword [eax], 9
call fcn.0041a46c
mov dword [eax], esi
jmp 0x416c00
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 0x416bec
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x416b9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x416b9e
push dword [ebp - 8]
call fcn.0041a475
pop ecx
or eax, 0xffffffff
jmp 0x416c31
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x416c1a
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x416c1a
xor eax, eax
jmp 0x416c31
call fcn.0041a463
mov dword [eax], 0x1c
call fcn.0041a46c
mov dword [eax], edi
jmp 0x416c00
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00418247
leave
ret
Function at 0x4175ec
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x417608
call fcn.0041a463
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x41767a
push esi
push 0x88
push 1
call fcn.0041b4ff
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x417660
push esi
call fcn.0041aed2
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x41754c
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x417658
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x417677
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00415c78
test ebx, ebx
pop ecx
je 0x417672
push ebx
call fcn.0041a475
pop ecx
or eax, 0xffffffff
jmp 0x417679
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x417a5b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0041926b
xor esi, esi
inc esi
cmp dword [0x42b5a0], esi
pop ecx
jne 0x417a83
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 [0x42b59c], esi
mov byte [0x42b598], al
jne 0x417ae9
mov ecx, dword [0x42e7b0]
test ecx, ecx
je 0x417aca
mov eax, dword [0x42e7ac]
sub eax, 4
cmp eax, ecx
jmp 0x417ac3
mov eax, dword [eax]
test eax, eax
je 0x417ab5
call eax
mov eax, dword [0x42e7ac]
sub eax, 4
cmp eax, dword [0x42e7b0]
mov dword [0x42e7ac], eax
jae 0x417aad
mov eax, 0x42906c
mov esi, 0x429078
cmp eax, esi
mov edi, eax
jae 0x417ae9
mov eax, dword [edi]
test eax, eax
je 0x417ae2
call eax
add edi, 4
cmp edi, esi
jb 0x417ada
mov eax, 0x42907c
mov esi, 0x429084
cmp eax, esi
mov edi, eax
jae 0x417b08
mov eax, dword [edi]
test eax, eax
je 0x417b01
call eax
add edi, 4
cmp edi, esi
jb 0x417af9
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x417b19
push 8
call fcn.004191d7
jmp 0x417b2b
push dword [ebp + 8]
mov dword [0x42b5a0], 1
call fcn.004179b4
pop ecx
pop ebp
ret
Function at 0x417bb7
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x423730
call fcn.00419dc0
mov edi, 0x94
mov eax, edi
call fcn.004183c0
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 [0x42b560], ecx
mov eax, dword [esi + 4]
mov dword [0x42b56c], eax
mov edx, dword [esi + 8]
mov dword [0x42b570], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42b564], esi
cmp ecx, 2
je 0x417c17
or esi, 0x8000
mov dword [0x42b564], esi
shl eax, 8
add eax, edx
mov dword [0x42b568], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x417c52
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417c52
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x417c6a
cmp eax, 0x20b
je 0x417c57
mov dword [ebp - 0x1c], esi
jmp 0x417c7e
cmp dword [ecx + 0x84], 0xe
jbe 0x417c52
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x417c78
cmp dword [ecx + 0x74], 0xe
jbe 0x417c52
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004190e8
pop ecx
test eax, eax
jne 0x417c92
push 0x1c
call fcn.00417b93
pop ecx
call fcn.0041b0c1
test eax, eax
jne 0x417ca3
push 0x10
call fcn.00417b93
pop ecx
call fcn.0041ba28
mov dword [ebp - 4], esi
call fcn.00419f47
test eax, eax
jge 0x417cbc
push 0x1b
call fcn.00417b6e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42e7a4], eax
call fcn.0041bf9e
mov dword [0x42b5a4], eax
call fcn.0041befc
test eax, eax
jge 0x417ce2
push 8
call fcn.00417b6e
pop ecx
call fcn.0041bcc9
test eax, eax
jge 0x417cf3
push 9
call fcn.00417b6e
pop ecx
call fcn.004179f6
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x417d06
push eax
call fcn.00417b6e
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041bc60
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x417d27
movzx eax, word [ebp - 0x34]
jmp 0x417d2a
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004087e4
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x417d48
push edi
call fcn.00417b2e
call fcn.00417b50
jmp 0x417d7a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00419dfb
ret
Function at 0x419e0c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004183c0
mov eax, dword [0x429364]
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.0041697d
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x419f36
push 2
push esi
push dword [ebp + 8]
call fcn.0041697d
add esp, 0xc
cmp eax, ebx
je 0x419f36
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x419ed9
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00416810
push 0x8000
push dword [ebp + 8]
call fcn.0041d380
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x419e92
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00416a9c
add esp, 0xc
cmp eax, 0xffffffff
je 0x419eb2
sub edi, eax
test edi, edi
jg 0x419e8a
jmp 0x419eca
call fcn.0041a46c
cmp dword [eax], 5
jne 0x419ec7
call fcn.0041a463
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0041d380
pop ecx
pop ecx
jmp 0x419f21
jge 0x419f21
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041697d
push dword [ebp + 8]
call fcn.0041a240
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 0x419f21
call fcn.0041a463
mov dword [eax], 0xd
call fcn.0041a46c
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.0041697d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x419f38
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00418247
leave
ret

Function at 0x41b295
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41b2b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041a475
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41b2d8
test byte [esp + 8], 2
je 0x41b2d8
call fcn.0041a463
mov dword [eax], 0xd
call fcn.0041a46c
mov dword [eax], 5
jmp 0x41b2b1
xor eax, eax
ret
Function at 0x41bab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x429364]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x429af8]
je 0x41badd
inc eax
cmp eax, 0x12
jb 0x41bace
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x429af8]
jne 0x41bc11
mov eax, dword [0x42b5ac]
cmp eax, 1
je 0x41bbec
cmp eax, edx
jne 0x41bb0d
cmp dword [0x42934c], 1
je 0x41bbec
cmp ecx, 0xfc
je 0x41bc11
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41bb46
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004161d0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00416140
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41bb88
lea eax, [ebp - 0x10c]
push eax
call fcn.00416140
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x423db0
push edi
call fcn.00416470
add esp, 0x10
push edi
call fcn.00416140
push dword [esi + 0x429afc]
mov ebx, eax
call fcn.00416140
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004183c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004161d0
push edi
push ebx
call fcn.004161e0
push 0x423d90
push ebx
call fcn.004161e0
push dword [esi + 0x429afc]
push ebx
call fcn.004161e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041e352
add esp, 0x2c
jmp 0x41bc11
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x429afc]
push dword [esi]
call fcn.00416140
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00418247
pop edi
pop esi
pop ebx
leave
ret