joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1427d51
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x143fd2b
sub esp, 0x24
mov eax, dword [0x14a2154]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0xc], eax
push edi
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x143fd99
mov eax, dword [edi]
lea ecx, [esp + 0x18]
add eax, esi
push eax
call fcn.014284d6
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.0142a5fb
pop ecx
pop ecx
test al, al
jne 0x143fdb0
lea ecx, [esp + 0x18]
add edi, 4
call fcn.0142a57e
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x143fd64
xor esi, esi
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.014299ad
add esp, 0x24
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + esi]
lea ecx, [esp + 0x18]
call fcn.0142a57e
jmp 0x143fd9b

Function at 0x142a7b3
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14407aa
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x144089e
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, 0x14a54f8
mov bl, byte [esi + edi]
push 0x14875c8
push ebp
call fcn.01429660
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
pop ecx
pop ecx
push 0x13e1f3c
push 0x14875d4
mov bh, byte [edx + section..euro]
push 0x14a55e0
xor bh, bl
call fcn.01429660
pop ecx
pop ecx
mov ecx, eax
call fcn.0142c70c
mov bl, byte [esi + edi]
push 0x13e1f3c
push 0x14875e4
push ebp
call fcn.01429660
pop ecx
pop ecx
mov ecx, eax
call fcn.0142c70c
add byte [esi + edi], bh
push 0x13e1f3c
push 0x14875f8
push ebp
call fcn.01429660
pop ecx
pop ecx
mov ecx, eax
call fcn.0142c70c
dec byte [esi + edi]
push 0x1487618
push ebp
call fcn.01429660
add byte [esi + edi], 0xfe
push 0x1487624
push ebp
call fcn.01429660
sub byte [esi + edi], bl
push 0x1487638
push ebp
call fcn.01429660
inc byte [esi + edi]
push 0x1487648
push ebp
call fcn.01429660
inc byte [esi + edi]
push 0x1487654
push ebp
call fcn.01429660
inc byte [esi + edi]
push 0x1487660
push ebp
call fcn.01429660
add esp, 0x30
inc esi
cmp esi, dword [esp + 0x18]
jb 0x14407c3
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x142cb1c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x143fdf6
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x14d5f88], eax
pop edi
pop esi
ret
Function at 0x401520
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 8]
mov dword [esp + 4], 0
push str.GetNativeSystemInfo
rep stosd dword es:[edi], eax
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
je 0x401564
lea ecx, [esp]
push ecx
call eax
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x401980
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
sub esp, 0x24
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
xor ebx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x401aad
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jl 0x401aad
lea eax, [esp + 0x18]
push eax
push 0x403140
push 1
push esi
push 0x403210
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401aad
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push esi
mov ecx, dword [eax]
push esi
push esi
push esi
push esi
push esi
push str.._rootCIMV2
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x401aad
mov eax, dword [esp + 0x14]
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jl 0x401aad
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push esi
mov ecx, dword [eax]
push 0x30
push str.SELECT__FROM_Win32_Processor
push 0x404110
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x401aad
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x401abb
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x10]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [esp + 0x1c], esi
je 0x401aad
cmp eax, esi
jl 0x401aad
mov eax, dword [esp + 0xc]
push esi
lea edx, [esp + 0x24]
push esi
mov ecx, dword [eax]
push edx
push esi
push str.ProcessorId
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x401a8e
inc ebx
lea eax, [esp + 0x20]
push eax
call edi
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], esi
cmp eax, esi
jne 0x401a54
jmp 0x401ac9
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x401abb
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x401ac9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x401ad7
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x401ae5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x401ba0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.HARDWAREDESCRIPTIONSystemCentralProcessor
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c4f
push ebx
push edi
mov ecx, 0x3f
lea edi, [esp + 0x15]
mov byte [esp + 0x14], al
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push esi
push esi
lea ecx, [esp + 0x1c]
push esi
lea edx, [esp + 0x24]
stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x30], 0x100
call ebx
test eax, eax
jne 0x401c38
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14]
push eax
rep stosd dword es:[edi], eax
push eax
push eax
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
inc esi
push ecx
push edx
push esi
push eax
mov dword [esp + 0x30], 0x100
call ebx
test eax, eax
je 0x401c08
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 0x108
ret
mov eax, esi
pop esi
add esp, 0x108
ret

Function at 0x401c60
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor bl, bl
cmp eax, 2
push esi
mov byte [esp + 8], bl
jne 0x401c92
mov eax, dword [esp + 0x14]
push str._WMI
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x401c92
mov bl, 1
mov byte [esp + 8], bl
mov edx, dword [esp + 8]
push edx
call fcn.00401b40
add esp, 4
mov dword [0x4042d8], eax
test eax, eax
jne 0x401caf
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [0x4042dc]
test eax, eax
jne 0x401cdb
test bl, bl
je 0x401cc3
call fcn.00401980
jmp 0x401cc8
call fcn.00401b00
test eax, eax
mov dword [0x4042dc], eax
jne 0x401cdb
mov dword [0x4042dc], 1
call fcn.00401ba0
mov ecx, dword [0x4042d8]
cmp ecx, eax
ja 0x401cf7
call fcn.00401ba0
mov ecx, eax
mov dword [0x4042d8], ecx
mov esi, dword [sym.imp.MSVCRT.dll_printf]
push ecx
push str.Total_Logical_Processor_t__d_n
call esi
mov eax, dword [0x4042dc]
push eax
push str.Total_CPUs_Installed_t__d_n_n
call esi
add esp, 0x10
call fcn.004010e0
test al, al
jne 0x401d25
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret
call fcn.004010a0
test al, al
jne 0x401d3a
call fcn.004011a0
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret
push str.NtQuerySystemInformation
push str.ntdll.dll
call fcn.00401dd0
add esp, 8
test al, al
je 0x401d72
push str.Module_Hooked_n
call esi
push str.ntdll.dll
call fcn.00401e70
add esp, 8
test al, al
je 0x401d72
push str.Module_Restored_n
call esi
add esp, 4
push 1
push str.SeDebugPrivilege
call fcn.004018d0
add esp, 8
call fcn.00401580
call fcn.004018a0
test al, al
jne 0x401da2
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call esi
call fcn.004018a0
test al, al
je 0x401d95
push 0x4042d4
call fcn.00401300
add esp, 4
call fcn.004014a0
call fcn.00401430
call fcn.004010c0
call fcn.004011a0
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40224a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4032d0
push 0x402380
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4042fc], 0xffffffff
or dword [0x404300], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4042f8]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4042f4]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x404304], eax
call fcn.0040237b
cmp dword [0x4042b0], 0
jne 0x4022cd
push 0x402378
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00402366
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4042f0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4042ec]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401c60
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x53f00674
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x72b24be6
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0xe52ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4043b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414b68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov dword [ebp - 0x88], ecx
push 0
mov ecx, dword [ebp - 0x88]
call fcn.00405950
push 0
push 0
lea ecx, [ebp - 0x44]
call fcn.00401ba0
mov eax, dword [0x4164d0]
push eax
push 0
mov ecx, dword [ebp - 0x88]
add ecx, 0x1c
push ecx
lea ecx, [ebp - 0x44]
call fcn.00401f90
mov dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00401ba0
mov edx, dword [0x4164d0]
push edx
push 0
mov eax, dword [ebp - 0x88]
add eax, 0xa8
push eax
lea ecx, [ebp - 0x28]
call fcn.00401f90
cmp dword [ebp - 0x2c], 0x10
jb 0x404448
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x8c], ecx
jmp 0x404451
lea edx, [ebp - 0x40]
mov dword [ebp - 0x8c], edx
cmp dword [ebp - 0x10], 0x10
jb 0x404462
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x90], eax
jmp 0x40446b
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x90], ecx
push 0
mov edx, dword [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401ba0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00401ba0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4044b0
Capabilities:
Copy file
Get disk size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414b90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov dword [ebp - 0x98], ecx
push 0
mov ecx, dword [ebp - 0x98]
call fcn.00405950
push 0
push 0
lea ecx, [ebp - 0x44]
call fcn.00401ba0
mov eax, dword [0x4164d0]
push eax
push 0
mov ecx, dword [ebp - 0x98]
add ecx, 0x38
push ecx
lea ecx, [ebp - 0x44]
call fcn.00401f90
mov dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00401ba0
mov edx, dword [0x4164d0]
push edx
push 0
mov eax, dword [ebp - 0x98]
add eax, 0xc4
push eax
lea ecx, [ebp - 0x28]
call fcn.00401f90
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 0x10
jb 0x40454c
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x9c], ecx
jmp 0x404555
lea edx, [ebp - 0x40]
mov dword [ebp - 0x9c], edx
push 0x80
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0
push 0
push str.ymxs
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push str.kdjfir
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_GetTextCharsetInfo]
cmp dword [ebp - 0x2c], 0x10
jb 0x4045a6
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xa0], ecx
jmp 0x4045af
lea edx, [ebp - 0x40]
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0x10], 0x10
jb 0x4045c0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xa4], eax
jmp 0x4045c9
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xa4], ecx
push 0
mov edx, dword [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x404608
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401ba0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00401ba0
jmp 0x40463c
push 1
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x98]
call fcn.00403a70
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401ba0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00401ba0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4050a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 1
jne 0x4050ed
cmp dword [ebp - 0x94], 4
jne 0x4050ed
cmp dword [ebp - 0x90], 0xa
jne 0x4050ed
mov dword [ebp - 0xa0], 1
jmp 0x4050f7
mov dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa0]
mov esp, ebp
pop ebp
ret
Function at 0x4056d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414deb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
mov dword [ebp - 0xf0], ecx
push 0x416369
lea ecx, [ebp - 0x9c]
call fcn.00402170
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x7c]
push eax
push 0xc
push 0
push 0x416828
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 0x7c]
push ecx
push 0x416824
lea edx, [ebp - 0x74]
push edx
call fcn.0040d625
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
call fcn.0040ceb0
add esp, 4
test eax, eax
jne 0x405855
movzx ecx, byte [0x416642]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xa4], 0
mov edx, dword [ebp - 0xa0]
add edx, 1
push edx
call fcn.0040bb61
add esp, 4
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa0]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0xa4]
push edx
call fcn.0040d280
add esp, 0xc
mov eax, dword [ebp - 0xa0]
push eax
push 0x416634
mov ecx, dword [ebp - 0xa4]
push ecx
call fcn.0040cf40
add esp, 0xc
push 0x4166d4
mov edx, dword [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0xa4]
push eax
call fcn.004086b0
add esp, 0xc
mov ecx, dword [ebp - 0xa4]
push ecx
call fcn.0040ceb0
add esp, 4
push eax
mov edx, dword [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x9c]
call fcn.00402080
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.0040cd29
add esp, 4
cmp dword [ebp - 0x84], 0x10
jb 0x405836
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0xf4], edx
jmp 0x405842
lea eax, [ebp - 0x98]
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0xf4]
push ecx
lea edx, [ebp - 0x74]
push edx
call fcn.0040d2e0
add esp, 8
lea eax, [ebp - 0x74]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x80], 0
cmp dword [ebp - 0x78], 0
je 0x405887
mov dword [ebp - 0x80], 1
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0xb0], edx
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x9c]
call fcn.00401ba0
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40b4d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 1
jne 0x40b51d
cmp dword [ebp - 0x94], 4
jne 0x40b51d
cmp dword [ebp - 0x90], 0xa
jne 0x40b51d
mov dword [ebp - 0xa0], 1
jmp 0x40b527
mov dword [ebp - 0xa0], 0
mov al, byte [ebp - 0xa0]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ce7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040fdd3
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40cea2
test byte [esp + 8], 2
je 0x40cea2
call fcn.0040fdc1
mov dword [eax], 0xd
call fcn.0040fdca
mov dword [eax], 5
jmp 0x40ce7b
xor eax, eax
ret

Function at 0x40dd66
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x416a20
call fcn.0040fad8
mov edi, 0x94
mov eax, edi
call fcn.0040cd30
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 [0x41b9c0], ecx
mov eax, dword [esi + 4]
mov dword [0x41b9cc], eax
mov edx, dword [esi + 8]
mov dword [0x41b9d0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41b9c4], esi
cmp ecx, 2
je 0x40ddc6
or esi, 0x8000
mov dword [0x41b9c4], esi
shl eax, 8
add eax, edx
mov dword [0x41b9c8], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40ddff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ddff
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40de17
cmp eax, 0x20b
je 0x40de04
mov dword [ebp - 0x1c], edi
jmp 0x40de2b
cmp dword [ecx + 0x84], 0xe
jbe 0x40ddff
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40de25
cmp dword [ecx + 0x74], 0xe
jbe 0x40ddff
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00411d43
pop ecx
test eax, eax
jne 0x40de3f
push 0x1c
call fcn.0040dd42
pop ecx
call fcn.0040eaa3
test eax, eax
jne 0x40de50
push 0x10
call fcn.0040dd42
pop ecx
call fcn.00411ca1
mov dword [ebp - 4], edi
call fcn.0040ff68
test eax, eax
jge 0x40de69
push 0x1b
call fcn.0040dd1d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41c080], eax
call fcn.00411b7f
mov dword [0x41b838], eax
call fcn.00411add
test eax, eax
jge 0x40de8f
push 8
call fcn.0040dd1d
pop ecx
call fcn.004118aa
test eax, eax
jge 0x40dea0
push 9
call fcn.0040dd1d
pop ecx
push 1
call fcn.00410535
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40deb6
push eax
call fcn.0040dd1d
pop ecx
mov eax, dword [0x41b9e0]
mov dword [0x41b9e4], eax
push eax
push dword [0x41b9d8]
push dword [0x41b9d4]
call fcn.00401010
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x40dee5
push esi
call fcn.00410662
call fcn.00410684
jmp 0x40df17
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0040fb13
ret
Function at 0x41059f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x416c38
call fcn.0040fad8
push 8
call fcn.004102b9
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41ba00], esi
jne 0x4105d3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x41b9fc], esi
mov al, byte [ebp + 0x10]
mov byte [0x41b9f8], al
cmp dword [ebp + 0xc], edi
jne 0x41061d
cmp dword [0x41bd30], edi
je 0x41060d
mov eax, dword [0x41bd2c]
sub eax, 4
mov dword [0x41bd2c], eax
cmp eax, dword [0x41bd30]
jb 0x41060d
mov eax, dword [eax]
cmp eax, edi
je 0x4105ee
call eax
jmp 0x4105ee
push 0x41a034
mov eax, 0x41a02c
call fcn.0041051d
pop ecx
push 0x41a040
mov eax, 0x41a038
call fcn.0041051d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41064e
cmp dword [ebp + 0x10], edi
jne 0x41065c
mov dword [0x41ba00], esi
push dword [ebp + 8]
call fcn.004104db
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41065b
push 8
call fcn.00410204
pop ecx
ret
call fcn.0040fb13
ret

Function at 0x4109a4
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.0040cd30
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410a3f
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 [0x41b9c0]
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 0x410a3f
cmp eax, 1
je 0x410a60
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 0x410a3f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x410a0c
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x410a3b
xor eax, eax
inc eax
jmp 0x410a7f
cmp edi, eax
jae 0x410a43
xor eax, eax
jmp 0x410a7f
cmp eax, esi
jae 0x410a4a
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 [0x41b9c0]
jmp 0x410a63
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