joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a2f78
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5a30b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404ff4
mov eax, dword [0x5b6d4c]
cmp dword [eax], 0
je 0x5a2ffc
lea eax, [ebp - 0x105]
push eax
push 0
push 0
push esi
push 0
mov eax, dword [0x5b6d4c]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x5a3095
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.0040b07c
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040ee24
jmp 0x5a3095
sub esi, 5
je 0x5a3011
sub esi, 0x1f
je 0x5a301f
dec esi
je 0x5a3054
dec esi
je 0x5a3089
jmp 0x5a3095
mov eax, ebx
mov edx, 0x5a30c8
call fcn.00405048
jmp 0x5a3095
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
test eax, eax
jbe 0x5a3095
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x105]
call fcn.0040b07c
mov eax, dword [ebp - 0x110]
mov edx, ebx
call fcn.0040ee24
jmp 0x5a3095
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
test eax, eax
jbe 0x5a3095
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x105]
call fcn.0040b07c
mov eax, dword [ebp - 0x114]
mov edx, ebx
call fcn.0040ee24
jmp 0x5a3095
mov eax, ebx
mov edx, 0x5a30e4
call fcn.00405048
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a30ba
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00405018
ret

Function at 0x5a310c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5a3183
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jbe 0x5a3163
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.0040b07c
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040ee10
jmp 0x5a316a
mov eax, ebx
call fcn.00404ff4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a318a
lea eax, [ebp - 0x10c]
call fcn.00404ff4
ret

Function at 0x5a3190
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffff4
push 0
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x5a31c4
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
je 0x5a31bd
mov eax, dword [esp]
jmp 0x5a31bf
xor eax, eax
add esp, 0xc
ret
Function at 0x416830
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
jmp 0x41684a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x416851
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x416840
mov eax, 1
add ebx, ebx
jne 0x416863
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x416858
jne 0x416874
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416858
xor ecx, ecx
sub eax, 3
jb 0x416888
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4168fa
mov ebp, eax
add ebx, ebx
jne 0x416893
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4168a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4168c4
inc ecx
add ebx, ebx
jne 0x4168b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4168a5
jne 0x4168c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4168a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4168e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4168d5
jmp 0x416846
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4168e4
add edi, ecx
jmp 0x416846
pop esi
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x41694c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x169f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16a74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x416901
mov ecx, edi
jns 0x416930
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16a7c]
or eax, eax
je 0x416946
mov dword [ebx], eax
add ebx, 4
jmp 0x41691e
call dword [esi + 0x16a78]
mov ebp, dword [esi + 0x16a80]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x416980
sub esp, 0xffffff80
jmp 0x404843

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4043c0
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 0x4043d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4043ed
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 0x40440e
cmp esi, eax
jae 0x4043e7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404400
cmp esi, eax
jae 0x4043e7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4066f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x459598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00405f10
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00405560
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x406782
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407c98
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x407cc9
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x407cd0
cmp ebx, dword [ebp + 8]
jae 0x407cd0
xor eax, eax
jmp 0x407eb6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x407ce1
xor eax, eax
inc eax
jmp 0x407eb5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407cf3
cmp ecx, edx
jae 0x407d57
cmp dword [eax + 4], 0
je 0x407cfc
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x407ce8
cmp dword [ebp + 8], 0
je 0x407d16
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x407d57
cmp eax, esi
jae 0x407d57
mov ecx, dword [0x479ac8]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x407d38
cmp dword [eax*4 + 0x479ad0], esi
je 0x407d5e
inc eax
cmp eax, ecx
jl 0x407d2a
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x407dce
mov eax, dword [ebp + 8]
jmp 0x407dd0
xor eax, eax
jmp 0x407eb5
test eax, eax
jle 0x407cd9
xor edx, edx
mov ebx, 0x479b10
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x407cd9
cmp dword [eax*4 + 0x479ad0], esi
je 0x407dad
lea eax, [ecx - 1]
test eax, eax
jl 0x407d9a
cmp dword [eax*4 + 0x479ad0], esi
je 0x407d96
dec eax
jns 0x407d8a
test eax, eax
jge 0x407dab
cmp ecx, 0x10
jge 0x407da6
inc ecx
mov dword [0x479ac8], ecx
lea eax, [ecx - 1]
jmp 0x407dad
je 0x407dc5
xor edx, edx
test eax, eax
jl 0x407dc5
lea ecx, [edx*4 + 0x479ad0]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x407db3
xor eax, eax
xchg dword [ebx], eax
jmp 0x407cd9
xor eax, eax
test eax, eax
je 0x407eb3
cmp dword [ebp - 8], 0x1000000
jne 0x407eb3
test byte [ebp - 0xc], 0xcc
je 0x407e45
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x407eb3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407eb3
cmp word [eax + 0x18], 0x10b
jne 0x407eb3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x407eb3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x407e45
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x407e45
test byte [ecx + 0x27], 0x80
jne 0x407d57
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x479b10
xchg dword [edx], ecx
test ecx, ecx
jne 0x407eb5
mov ecx, dword [0x479ac8]
test ecx, ecx
mov edx, ecx
jle 0x407e74
lea eax, [ecx*4 + 0x479acc]
cmp dword [eax], esi
je 0x407e74
dec edx
sub eax, 4
test edx, edx
jg 0x407e68
test edx, edx
jne 0x407ea5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x407e81
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x407e99
lea eax, [edx*4 + 0x479ad0]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x407e87
cmp ecx, 0x10
jge 0x407ea5
inc ecx
mov dword [0x479ac8], ecx
xor eax, eax
mov ecx, 0x479b10
xchg dword [ecx], eax
jmp 0x407cd9
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a021
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 esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40a074
call fcn.0044f840
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40a074
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40a06a
xor eax, eax
jmp 0x40a18d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40a0a4
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40a0a4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40a18a
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40a0d1
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00407f32
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40a18a
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40a11a
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40a11a
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40a114
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00407f32
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40a17a
and dword [ebp + 0xc], 0
jmp 0x40a17a
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40a17a
push 0xc
call fcn.00437776
mov esi, eax
test esi, esi
pop ecx
je 0x40a15c
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
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 + 0x10]
mov dword [esi], eax
jmp 0x40a15e
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40a175
push dword [ebp - 8]
call fcn.0043084a
jmp 0x40a17a
call fcn.004307a7
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40a0df
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x417b7d
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 sub.ntdll.dll__alloca_probe
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417c18
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 [0x47bb40]
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 0x417c18
cmp eax, 1
je 0x417c39
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 0x417c18
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x417be5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x417c14
xor eax, eax
inc eax
jmp 0x417c58
cmp edi, eax
jae 0x417c1c
xor eax, eax
jmp 0x417c58
cmp eax, esi
jae 0x417c23
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 [0x47bb40]
jmp 0x417c3c
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 0x418a3a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x464fb8
call fcn.004199f0
mov edi, 0x94
mov eax, edi
call sub.ntdll.dll__alloca_probe
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 [0x47bb40], ecx
mov eax, dword [esi + 4]
mov dword [0x47bb4c], eax
mov edx, dword [esi + 8]
mov dword [0x47bb50], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x47bb44], esi
cmp ecx, 2
je 0x418a9a
or esi, 0x8000
mov dword [0x47bb44], esi
shl eax, 8
add eax, edx
mov dword [0x47bb48], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x418ad5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418ad5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x418aed
cmp eax, 0x20b
je 0x418ada
mov dword [ebp - 0x1c], esi
jmp 0x418b01
cmp dword [ecx + 0x84], 0xe
jbe 0x418ad5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x418afb
cmp dword [ecx + 0x74], 0xe
jbe 0x418ad5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041c392
pop ecx
test eax, eax
jne 0x418b15
push 0x1c
call fcn.004189c0
pop ecx
call fcn.0041c01d
test eax, eax
jne 0x418b26
push 0x10
call fcn.004189c0
pop ecx
call fcn.0041eeeb
mov dword [ebp - 4], esi
call fcn.0041eca1
test eax, eax
jge 0x418b3f
push 0x1b
call fcn.0041899b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x47d510], eax
call fcn.0041eb7f
mov dword [0x47bb2c], eax
call fcn.0041eadd
test eax, eax
jge 0x418b65
push 8
call fcn.0041899b
pop ecx
call fcn.0041e8aa
test eax, eax
jge 0x418b76
push 9
call fcn.0041899b
pop ecx
push 1
call fcn.00419442
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x418b8c
push eax
call fcn.0041899b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041e84d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x418bad
movzx eax, word [ebp - 0x40]
jmp 0x418bb0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042bad0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x418bce
push edi
call fcn.0041956f
call fcn.00419591
jmp 0x418c00
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00419a2b
ret
Function at 0x4194ac
Capabilities:
Terminate process

Disassembly:
push 8
push 0x464ff0
call fcn.004199f0
push 8
call fcn.0041c347
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x47bb80], esi
jne 0x4194e0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x47bb7c], esi
mov al, byte [ebp + 0x10]
mov byte [0x47bb78], al
cmp dword [ebp + 0xc], edi
jne 0x41952a
cmp dword [0x47d508], edi
je 0x41951a
mov eax, dword [0x47d504]
sub eax, 4
mov dword [0x47d504], eax
cmp eax, dword [0x47d508]
jb 0x41951a
mov eax, dword [eax]
cmp eax, edi
je 0x4194fb
call eax
jmp 0x4194fb
push 0x4770b0
mov eax, 0x4770a8
call fcn.0041940c
pop ecx
push 0x4770bc
mov eax, 0x4770b4
call fcn.0041940c
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41955b
cmp dword [ebp + 0x10], edi
jne 0x419569
mov dword [0x47bb80], esi
push dword [ebp + 8]
call fcn.004193ca
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x419568
push 8
call fcn.0041c27a
pop ecx
ret
call fcn.00419a2b
ret

Function at 0x4196a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4196bd
call fcn.0041a46c
mov dword [eax], 0x16
xor eax, eax
jmp 0x419727
push esi
push 0x8c
push 1
call fcn.0041b09f
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x419712
push esi
call fcn.0041be17
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4196f0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41960b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x419726
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00417b0c
test ebx, ebx
pop ecx
je 0x419724
push ebx
call fcn.0041a47e
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41d5b1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x478938]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41d5e2
xor eax, eax
jmp 0x41d76b
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x47c180]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41d61e
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004236ad
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41d6f9
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41d737
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41d682
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41d673
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41d653
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d6c2
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41d6cb
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41d644
jmp 0x41d6cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41d766
cmp dword [ebp - 0x6c], edi
je 0x41d737
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41d72c
call fcn.0041a46c
mov dword [eax], 9
call fcn.0041a475
mov dword [eax], esi
jmp 0x41d761
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d721
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41d6cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41d6cd
push dword [ebp - 0x6c]
call fcn.0041a47e
pop ecx
jmp 0x41d761
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41d74f
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41d74f
xor eax, eax
jmp 0x41d769
call fcn.0041a46c
mov dword [eax], 0x1c
call fcn.0041a475
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41d769
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00418c40
add ebp, 0x3a0
leave
ret
Function at 0x41e4c8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x478938]
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 + 0x478f80]
je 0x41e4fd
inc eax
cmp eax, 0x13
jb 0x41e4ee
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x478f80]
jne 0x41e623
mov eax, dword [0x47bb34]
cmp eax, 1
je 0x41e5fb
cmp eax, edx
jne 0x41e52d
cmp dword [0x478934], 1
je 0x41e5fb
cmp ecx, 0xfc
je 0x41e623
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 0x41e563
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041dcc0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00419020
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41e597
mov eax, edi
push eax
call fcn.00419020
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4655e0
push edi
call fcn.00424050
add esp, 0x10
push edi
call fcn.00419020
push dword [esi + 0x478f84]
mov ebx, eax
call fcn.00419020
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call sub.ntdll.dll__alloca_probe
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041dcc0
push edi
push ebx
call fcn.0041dcd0
push 0x4655c0
push ebx
call fcn.0041dcd0
push dword [esi + 0x478f84]
push ebx
call fcn.0041dcd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00423f50
add esp, 0x2c
jmp 0x41e623
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x478f84]
push dword [esi]
call fcn.00419020
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.00418c40
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret