joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ebx, ebx
cmp ebp, ebx
jne 0x403fa3
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x403fd0
push eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x20], 0xffffffff
mov byte [ebp + 0x1d], bl
mov byte [ebp + 0x1c], bl
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call fcn.0042e75e
mov ecx, dword [esp + 0x18]
movzx edx, word [esp + 0x14]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x404010
call fcn.0042e75e
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x404018
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [esp + 0x14], ebx
call fcn.0042e75e
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0x14]
push ecx
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
pop edi
jne 0x404084
mov edx, dword [esp + 0x10]
push edx
mov ecx, ebp
call fcn.00403f00
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc

Function at 0x404400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x431a78
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.00404190
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401a00
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 0x404492
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 0x4045c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x441304]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
push esi
push 0x4336e5
mov dword [ebp - 0x14], eax
call fcn.00401e40
push 0x105
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], esi
mov dword [ebp - 4], esi
call fcn.00422e06
add esp, 4
mov ebx, eax
push 0x104
push ebx
push esi
mov dword [ebp - 0x118], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00422e06
add esp, 4
mov esi, eax
push esi
push edi
xor edi, edi
push edi
push ebx
mov dword [ebp - 0x11c], esi
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x120]
push edx
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x124], edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 0x120]
mov eax, dword [eax]
mov ecx, eax
movzx edx, ax
shr ecx, 0x10
push ecx
push edx
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x114]
push str.StringFileInfo_04x_04xPrivateBuild
push eax
call fcn.00414541
add esp, 0x10
lea ecx, [ebp - 0x130]
push ecx
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x114]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404709
mov edi, dword [ebp - 0x12c]
test edi, edi
jne 0x4046dd
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push edi
call fcn.00401e40
jmp 0x404709
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4046e2
mov ecx, dword [ebp + 8]
sub eax, edx
push eax
push edi
call fcn.00401e40
jmp 0x404709
test ebx, ebx
je 0x404716
push ebx
call fcn.00422e0b
add esp, 4
test esi, esi
je 0x404723
push esi
call fcn.00422e0b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00413d31
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404740
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov eax, dword [0x441304]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
push esi
add ecx, 0x134
push 0x4336e5
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x128], ecx
call fcn.00401e40
push 0x105
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], esi
mov dword [ebp - 4], esi
call fcn.00422e06
add esp, 4
mov ebx, eax
push 0x104
push ebx
push esi
mov dword [ebp - 0x118], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00422e06
add esp, 4
mov esi, eax
push esi
push edi
xor edi, edi
push edi
push ebx
mov dword [ebp - 0x11c], esi
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x120]
push edx
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x12c], edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 0x120]
mov eax, dword [eax]
mov ecx, eax
movzx edx, ax
shr ecx, 0x10
push ecx
push edx
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x114]
push str.StringFileInfo_04x_04xComments
push eax
call fcn.00414541
add esp, 0x10
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x114]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40489a
mov edi, dword [ebp - 0x130]
test edi, edi
jne 0x404869
mov ecx, dword [ebp - 0x128]
xor eax, eax
push eax
push edi
call fcn.00401e40
jmp 0x40489a
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404870
mov ecx, dword [ebp - 0x128]
sub eax, edx
push eax
push edi
call fcn.00401e40
jmp 0x40489a
test ebx, ebx
je 0x4048a7
push ebx
call fcn.00422e0b
add esp, 4
test esi, esi
je 0x4048b4
push esi
call fcn.00422e0b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00413d31
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4056f0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x441304]
push ebx
push esi
push edi
mov dword [esp + 0x10c], eax
mov ebx, ecx
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x6c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x6c], 6
jne 0x40576a
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x40576a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push 1
push 0
push 0
push edx
push str.RunAs
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x10c]
call fcn.00413d31
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov dword [esp + 0x20], 0x44
mov edi, dword [eax - 4]
mov ecx, dword [eax - 0xc]
mov eax, dword [eax - 8]
mov edx, 1
sub edx, edi
sub eax, ecx
or edx, eax
jge 0x4057b2
push ecx
mov ecx, esi
call fcn.004019b0
mov esi, dword [esi]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4057fc
lea eax, [ebx + 0xb8]
push eax
lea ecx, [ebx + 0xb4]
push ecx
push 3
mov ecx, ebx
call fcn.004054a0
push 0
push 0
push 0x433c58
call fcn.0042ba13
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x10c]
call fcn.00413d31
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4061e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x431c93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0042ab3f
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], method.CDC.virtual_0
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], 0x434bc0
mov ebx, dword [esp + 0x2c]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
mov byte [esp + 0x24], 1
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x4062a7
mov eax, dword [ebx]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call dword [eax + 0x50]
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0042af5f
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
sub ecx, edx
push eax
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0042b246
test ebp, ebp
je 0x406285
mov ebp, dword [ebp + 4]
mov edx, dword [esi + 4]
push ebp
push edx
call fcn.0042b2cf
mov ecx, dword [edi]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x24]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.0042ac8f
jmp 0x4062b9
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x406c40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x441304]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push esi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406cb4
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.00413d31
add esp, 0x110
ret
Function at 0x4073c0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 8
lea eax, [esp + 0x18]
push eax
push 0x1006
push 0xffff
xor esi, esi
push ebx
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, dword [esp + 0x24]
mov ebp, dword [sym.imp.WS2_32.dll_recv]
mov byte [esp + 0x13], 0
cmp esi, 0x400
jge 0x407441
push 0
push 1
lea ecx, [esp + 0x1b]
push ecx
push ebx
call ebp
mov al, byte [esp + 0x13]
test al, al
jle 0x407441
mov byte [esi + edi], al
inc esi
cmp esi, 4
jl 0x407400
cmp byte [esi + edi - 4], 0xd
jne 0x407400
cmp byte [esi + edi - 3], 0xa
jne 0x407400
cmp byte [esi + edi - 2], 0xd
jne 0x407400
cmp byte [esi + edi - 1], 0xa
jne 0x407400
mov byte [esi + edi], 0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x407450
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx + 0x18]
push edi
push 0x434134
push eax
call fcn.00414842
mov edi, eax
add esp, 8
test edi, edi
jne 0x407472
pop edi
pop ebx
ret 8
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [ebx + 0x1c]
push 0
push esi
push ebp
call fcn.00414f3a
push edi
call fcn.00414e5b
add esp, 0x10
cmp eax, 0xffffffff
je 0x4074b2
push ebp
push eax
call fcn.00414e03
mov eax, dword [ebx + 0x20]
add esp, 8
inc esi
cmp esi, eax
je 0x4074b2
push edi
call fcn.00414e5b
add esp, 4
cmp eax, 0xffffffff
jne 0x407492
push edi
call fcn.00414db2
mov eax, dword [ebx + 0x18]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
ret 8

Function at 0x407630
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi - 0xc]
push edi
mov edi, dword [esp + 0xc]
push 0
push eax
push esi
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x407673
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40766e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
xor eax, eax
pop esi
ret
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40768d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, 1
pop esi
ret

Function at 0x409a00
Capabilities:
Terminate thread

Disassembly:
mov dword [ecx], 0x434278
add ecx, 4
jmp fcn.004021b0
Function at 0x40a64c
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 0x40a69f
call fcn.0042e75e
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40a69f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40a695
xor eax, eax
jmp 0x40a7b8
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 0x40a6cf
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 0x40a6cf
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40a7b5
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40a6fc
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040a245
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40a7b5
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40a745
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40a745
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40a73f
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040a245
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40a7a5
and dword [ebp + 0xc], 0
jmp 0x40a7a5
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40a7a5
push 0xc
call fcn.00422ddb
mov esi, eax
test esi, esi
pop ecx
je 0x40a787
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 0x40a789
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40a7a0
push dword [ebp - 8]
call fcn.0042265c
jmp 0x40a7a5
call fcn.00422633
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40a70a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413ee5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00417205
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x413f08
test byte [esp + 8], 2
je 0x413f08
call fcn.004171f3
mov dword [eax], 0xd
call fcn.004171fc
mov dword [eax], 5
jmp 0x413ee1
xor eax, eax
ret
Function at 0x414035
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 fcn.00414230
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4140d0
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 [0x444388]
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 0x4140d0
cmp eax, 1
je 0x4140f1
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 0x4140d0
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41409d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4140cc
xor eax, eax
inc eax
jmp 0x414110
cmp edi, eax
jae 0x4140d4
xor eax, eax
jmp 0x414110
cmp eax, esi
jae 0x4140db
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 [0x444388]
jmp 0x4140f4
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 0x4152bc
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 0x4152d9
call fcn.004171f3
mov dword [eax], 0x16
xor eax, eax
jmp 0x415343
push esi
push 0x8c
push 1
call fcn.00417b78
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41532e
push esi
call fcn.00418503
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 0x41530c
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x415227
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x415342
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00413fc4
test ebx, ebx
pop ecx
je 0x415340
push ebx
call fcn.00417205
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x415390
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x437600
call fcn.00415b80
mov edi, 0x94
mov eax, edi
call fcn.00414230
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 [0x444388], ecx
mov eax, dword [esi + 4]
mov dword [0x444394], eax
mov edx, dword [esi + 8]
mov dword [0x444398], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44438c], esi
cmp ecx, 2
je 0x4153f0
or esi, 0x8000
mov dword [0x44438c], esi
shl eax, 8
add eax, edx
mov dword [0x444390], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41542b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41542b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x415443
cmp eax, 0x20b
je 0x415430
mov dword [ebp - 0x1c], esi
jmp 0x415457
cmp dword [ecx + 0x84], 0xe
jbe 0x41542b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x415451
cmp dword [ecx + 0x74], 0xe
jbe 0x41542b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004196bc
pop ecx
test eax, eax
jne 0x41546b
push 0x1c
call fcn.0041536c
pop ecx
call fcn.004186fd
test eax, eax
jne 0x41547c
push 0x10
call fcn.0041536c
pop ecx
call fcn.0041ca08
mov dword [ebp - 4], esi
call fcn.0041c80a
test eax, eax
jge 0x415495
push 0x1b
call fcn.00415347
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x445c90], eax
call fcn.0041c6e8
mov dword [0x444378], eax
call fcn.0041c646
test eax, eax
jge 0x4154bb
push 8
call fcn.00415347
pop ecx
call fcn.0041c413
test eax, eax
jge 0x4154cc
push 9
call fcn.00415347
pop ecx
push 1
call fcn.00415d15
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4154e2
push eax
call fcn.00415347
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041c3b6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x415503
movzx eax, word [ebp - 0x40]
jmp 0x415506
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00421db6
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x415524
push edi
call fcn.00415e42
call fcn.00415e64
jmp 0x415556
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00415bbb
ret
Function at 0x415d7f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x437650
call fcn.00415b80
push 8
call fcn.00419671
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4443c8], esi
jne 0x415db3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4443c4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4443c0], al
cmp dword [ebp + 0xc], edi
jne 0x415dfd
cmp dword [0x445c88], edi
je 0x415ded
mov eax, dword [0x445c84]
sub eax, 4
mov dword [0x445c84], eax
cmp eax, dword [0x445c88]
jb 0x415ded
mov eax, dword [eax]
cmp eax, edi
je 0x415dce
call eax
jmp 0x415dce
push 0x4400a4
mov eax, 0x44009c
call fcn.00415cfd
pop ecx
push 0x4400b0
mov eax, 0x4400a8
call fcn.00415cfd
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x415e2e
cmp dword [ebp + 0x10], edi
jne 0x415e3c
mov dword [0x4443c8], esi
push dword [ebp + 8]
call fcn.00415cbb
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x415e3b
push 8
call fcn.004195bc
pop ecx
ret
call fcn.00415bbb
ret