joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424dc5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00424d41
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x424f34
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x424f34
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424ee9
jg 0x424e21
test eax, eax
je 0x424edf
push 1
push 0x1000
call fcn.0041b7c5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424e44
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424ed6
push 0x8000
push ebx
call fcn.00417285
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x424e6d
jg 0x424e68
cmp ecx, 0x1000
jb 0x424e6d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041a016
add esp, 0x10
cmp eax, 0xffffffff
je 0x424eb2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x424e68
jl 0x424e99
test ecx, ecx
jne 0x424e5a
push dword [ebp - 0xc]
push ebx
call fcn.00417285
push esi
call fcn.00417d9d
add esp, 0xc
xor ebx, ebx
jmp 0x424f42
cmp byte [edi + 0x24], 0
je 0x424ec9
cmp dword [edi + 0x20], 5
jne 0x424ec9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424ed4
mov ebx, dword [edi + 0x18]
jmp 0x424ed6
xor ebx, ebx
push esi
call fcn.00417d9d
pop ecx
jmp 0x424f42
test ecx, ecx
jg 0x424eab
jl 0x424ee9
test eax, eax
jae 0x424eab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004194da
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424f09
cmp byte [edi + 0x1c], 0
je 0x424eab
jmp 0x424f3a
push ebx
call fcn.004158c7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x424eab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424f42
cmp byte [edi + 0x1c], 0
je 0x424f3f
mov ebx, dword [edi + 0x18]
jmp 0x424f42
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004194da
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426bb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426bdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426bdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x409e0c
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.00403520
mov eax, dword [ebp - 0x18]
call fcn.00403520
mov eax, dword [ebp - 0x1c]
call fcn.00403520
xor eax, eax
push ebp
push 0x409f10
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x14]
call fcn.00403530
push eax
mov eax, dword [ebp - 0x18]
call fcn.00403530
mov edx, eax
mov eax, dword [0x40c650]
pop ecx
call fcn.00409d94
pop ecx
test al, al
je 0x409ef5
mov eax, dword [ebp - 0x1c]
call fcn.004048ec
test al, al
je 0x409e86
mov eax, dword [ebp - 0x1c]
call fcn.00403530
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
push ebp
push 0x409eda
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x1c]
call fcn.00403530
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x409ee4
mov eax, dword [ebp - 0x10]
call fcn.00404520
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f17
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403140
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x40410e
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x41d62f
call fcn.00415348
mov eax, 0x1038
call fcn.00415000
push 0x1000
lea eax, [ebp - 0x1044]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x1044]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040162c
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004039c9
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x404164
mov eax, dword [eax + 4]
jmp 0x404167
add eax, 4
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
lea ecx, [ebp - 0x44]
call fcn.004017dc
push 1
lea ecx, [ebp - 0x28]
call fcn.004017dc
push 0
push 0x4040fe
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 0x406465
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 0x4064c1
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
cmp dword [esi + 0x18], 0x10
jb 0x40649c
mov esi, dword [esi + 4]
jmp 0x40649f
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 0x4064b9
or edx, 0xffffffff
mov eax, edx
jmp 0x4064fc
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x4064fc
cmp dword [esi + 0x18], 0x10
jb 0x4064cc
mov esi, dword [esi + 4]
jmp 0x4064cf
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 0x4064b2
mov eax, dword [ebp - 4]
mul dword [ebp - 8]
push 0
push dword [ebp - 0x10]
push edx
push eax
call fcn.00414fc0
pop esi
leave
ret
Function at 0x408c60
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 0x408c9b
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 0x408c78
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x408cb7
dec esi
je 0x408cb0
dec esi
jne 0x408cbc
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 0x40f0f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41cc08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x423354]
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 0x40f17a
push ebp
lea ebp, [edi + 4]
cmp dword [edi + 0x18], 0x10
jb 0x40f14e
mov eax, dword [ebp]
jmp 0x40f150
mov eax, ebp
movsx eax, byte [eax + esi]
push eax
call fcn.00415106
mov byte [esp + 0x4c], al
mov ecx, dword [esp + 0x4c]
add esp, 4
push ecx
push 1
lea ecx, [esp + 0x1c]
call fcn.0040735c
mov eax, dword [edi + 0x14]
inc esi
cmp esi, eax
jb 0x40f143
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.00401695
cmp dword [esp + 0x28], 0x10
jb 0x40f1ae
mov eax, dword [esp + 0x14]
push eax
call fcn.004137e0
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.00414ebd
Function at 0x413504
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 0x4136ca
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x428280]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4136ca
test cl, 0x48
je 0x41356a
mov al, byte [eax + 5]
cmp al, 0xa
je 0x41356a
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 0x4135bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4135a4
call fcn.00417053
mov dword [eax], 9
call fcn.0041705c
mov dword [eax], esi
jmp 0x4135b4
cmp eax, 0x6d
je 0x4136ca
push eax
call fcn.00417065
pop ecx
or eax, 0xffffffff
jmp 0x4136cc
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 0x4136c5
test edx, edx
je 0x4135df
cmp byte [ebx], 0xa
jne 0x4135df
or al, 4
jmp 0x4135e1
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 0x4136bf
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4136af
cmp al, 0xd
je 0x413615
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4136a1
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41362f
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41362a
add dword [ebp + 0x10], 2
jmp 0x413683
mov dword [ebp + 0x10], eax
jmp 0x41369d
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 0x413657
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41369d
cmp dword [ebp - 0xc], 0
je 0x41369d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x413678
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x413683
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4136a0
cmp ebx, dword [ebp + 0xc]
jne 0x413688
cmp byte [ebp - 1], 0xa
jne 0x413688
mov byte [ebx], 0xa
jmp 0x4136a0
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004138ed
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4136a1
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4135f9
jmp 0x4136bf
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4136bf
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4136cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413a0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x423354]
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 0x413a35
xor eax, eax
jmp 0x413ba3
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 + 0x428280]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x413a68
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00417308
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x413b3a
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x413b75
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 0x413ac3
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x413ab4
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 0x413a97
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 0x413b03
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x413b0c
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x413a88
jmp 0x413b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x413b9e
cmp dword [ebp - 8], edi
je 0x413b75
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x413b67
call fcn.00417053
mov dword [eax], 9
call fcn.0041705c
mov dword [eax], esi
jmp 0x413b70
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 0x413b5c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x413b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x413b0e
push dword [ebp - 8]
call fcn.00417065
pop ecx
or eax, 0xffffffff
jmp 0x413ba1
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x413b8a
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x413b8a
xor eax, eax
jmp 0x413ba1
call fcn.00417053
mov dword [eax], 0x1c
call fcn.0041705c
mov dword [eax], edi
jmp 0x413b70
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00414ebd
leave
ret
Function at 0x414143
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x41415f
call fcn.00417053
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x4141d1
push esi
push 0x88
push 1
call fcn.00417ca1
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4141b7
push esi
call fcn.00417674
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x4140a3
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 0x4141af
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4141ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00412be8
test ebx, ebx
pop ecx
je 0x4141c9
push ebx
call fcn.00417065
pop ecx
or eax, 0xffffffff
jmp 0x4141d0
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x41482c
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41e700
call fcn.004169b0
mov edi, 0x94
mov eax, edi
call fcn.00415000
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 [0x425364], ecx
mov eax, dword [esi + 4]
mov dword [0x425370], eax
mov edx, dword [esi + 8]
mov dword [0x425374], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x425368], esi
cmp ecx, 2
je 0x41488c
or esi, 0x8000
mov dword [0x425368], esi
shl eax, 8
add eax, edx
mov dword [0x42536c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4148c7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4148c7
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4148df
cmp eax, 0x20b
je 0x4148cc
mov dword [ebp - 0x1c], esi
jmp 0x4148f3
cmp dword [ecx + 0x84], 0xe
jbe 0x4148c7
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4148ed
cmp dword [ecx + 0x74], 0xe
jbe 0x4148c7
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00415cd8
pop ecx
test eax, eax
jne 0x414907
push 0x1c
call fcn.00414808
pop ecx
call fcn.00417863
test eax, eax
jne 0x414918
push 0x10
call fcn.00414808
pop ecx
call fcn.00418a1c
mov dword [ebp - 4], esi
call fcn.00416b37
test eax, eax
jge 0x414931
push 0x1b
call fcn.004147e3
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4283a4], eax
call fcn.004188fa
mov dword [0x4251fc], eax
call fcn.00418858
test eax, eax
jge 0x414957
push 8
call fcn.004147e3
pop ecx
call fcn.00418625
test eax, eax
jge 0x414968
push 9
call fcn.004147e3
pop ecx
call fcn.0041711a
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x41497b
push eax
call fcn.004147e3
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004185bc
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x41499c
movzx eax, word [ebp - 0x34]
jmp 0x41499f
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004064ff
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4149bd
push edi
call fcn.00417252
call fcn.00417274
jmp 0x4149ef
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004169eb
ret
Function at 0x4169fc
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00415000
mov eax, dword [0x423354]
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.004138ed
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x416b26
push 2
push esi
push dword [ebp + 8]
call fcn.004138ed
add esp, 0xc
cmp eax, ebx
je 0x416b26
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x416ac9
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00413780
push 0x8000
push dword [ebp + 8]
call fcn.00419ca0
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x416a82
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00413a0c
add esp, 0xc
cmp eax, 0xffffffff
je 0x416aa2
sub edi, eax
test edi, edi
jg 0x416a7a
jmp 0x416aba
call fcn.0041705c
cmp dword [eax], 5
jne 0x416ab7
call fcn.00417053
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00419ca0
pop ecx
pop ecx
jmp 0x416b11
jge 0x416b11
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004138ed
push dword [ebp + 8]
call fcn.00416e30
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 0x416b11
call fcn.00417053
mov dword [eax], 0xd
call fcn.0041705c
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.004138ed
add esp, 0xc
mov eax, esi
pop edi
jmp 0x416b28
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00414ebd
leave
ret

Function at 0x41717f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00415e5b
xor esi, esi
inc esi
cmp dword [0x4253a4], esi
pop ecx
jne 0x4171a7
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 [0x4253a0], esi
mov byte [0x42539c], al
jne 0x41720d
mov ecx, dword [0x42826c]
test ecx, ecx
je 0x4171ee
mov eax, dword [0x428268]
sub eax, 4
cmp eax, ecx
jmp 0x4171e7
mov eax, dword [eax]
test eax, eax
je 0x4171d9
call eax
mov eax, dword [0x428268]
sub eax, 4
cmp eax, dword [0x42826c]
mov dword [0x428268], eax
jae 0x4171d1
mov eax, 0x42305c
mov esi, 0x423068
cmp eax, esi
mov edi, eax
jae 0x41720d
mov eax, dword [edi]
test eax, eax
je 0x417206
call eax
add edi, 4
cmp edi, esi
jb 0x4171fe
mov eax, 0x42306c
mov esi, 0x423074
cmp eax, esi
mov edi, eax
jae 0x41722c
mov eax, dword [edi]
test eax, eax
je 0x417225
call eax
add edi, 4
cmp edi, esi
jb 0x41721d
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x41723d
push 8
call fcn.00415dc7
jmp 0x41724f
push dword [ebp + 8]
mov dword [0x4253a4], 1
call fcn.004170d8
pop ecx
pop ebp
ret