joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413580
Capabilities:
Write file on windows

Disassembly:
push ecx
mov al, byte [ecx + 0x105]
test al, al
push esi
je 0x4135f6
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4135e9
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x10]
push 0
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop edi
push esi
jne 0x4135f0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x415850
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x46453c]
mov edx, dword [esp + 0x120]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x12c], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x4158ba
test ecx, ecx
je 0x4158ac
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x4158c8
test ecx, ecx
je 0x41596b
push ecx
jmp 0x415965
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x415932
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.00415850
mov edi, eax
test edi, edi
jne 0x415984
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], pe_nt_image_headers32
call esi
test eax, eax
je 0x4158f4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x415949
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x128]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x41596b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x118]
call fcn.0042c9b6
add esp, 0x11c
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x415993
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
call fcn.0042c9b6
add esp, 0x11c
ret 4
Function at 0x415e90
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x415ea2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x41d710
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41d755
push esi
mov esi, dword [esp + 4]
push 0x454048
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test esi, esi
je 0x41d754
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret

Function at 0x41e150
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44dad0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
call fcn.00422340
push eax
lea ecx, [esp + 8]
call fcn.004018b0
push str.Updates.dat
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0
call fcn.00401820
lea eax, [esp]
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x14], 1
call fcn.00402830
mov ecx, dword [esp]
test ecx, ecx
mov byte [esp + 0x10], 0
je 0x41e1b0
call fcn.00401c60
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x41e1d0
mov eax, dword [esi + 4]
test eax, eax
jne 0x41e1cb
mov ecx, dword [esi]
push ecx
call fcn.0043baa0
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
jmp 0x41e1d2
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
je 0x41e1e4
mov ecx, esi
call fcn.00401c60
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41e9c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44db60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
call fcn.00422340
push eax
lea ecx, [esp + 0x10]
call fcn.004018b0
xor esi, esi
push str.SelfUpdate.dat
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.00401820
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.00402830
mov ecx, dword [esp + 8]
cmp ecx, esi
mov byte [esp + 0x30], 0
je 0x41ea22
call fcn.00401c60
mov ebx, dword [esp + 0xc]
cmp ebx, esi
je 0x41ea3f
cmp dword [ebx + 4], esi
jne 0x41ea3a
mov ecx, dword [ebx]
push ecx
call fcn.0043baa0
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
jmp 0x41ea41
xor eax, eax
push 0x5001
push eax
lea ecx, [esp + 0x1c]
call fcn.00443274
push ebp
mov byte [esp + 0x34], 2
mov dword [esp + 0xc], esi
push edi
jmp 0x41ea60
mov edi, dword [esp + 0x40]
mov eax, dword [edi + 8]
test eax, eax
je 0x41eb3f
mov ecx, dword [edi + 0xc]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esp + 0x10]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x41eb3f
mov edi, dword [edi + 8]
mov al, byte [esi + edi + 3]
test al, al
je 0x41eb3f
call fcn.004414a2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
xor ebp, ebp
mov byte [esp + 0x38], 3
xor edi, edi
lea esp, [esp]
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 8]
mov edx, dword [esi + ecx + 0x18]
test edx, edx
je 0x41eb0b
mov eax, dword [esi + ecx + 0x1c]
sub eax, edx
sar eax, 5
cmp ebp, eax
jae 0x41eb0b
mov eax, edx
mov ecx, dword [eax + edi + 4]
add eax, edi
push ecx
lea edx, [esp + 0x1c]
push 0x4540a8
push edx
call fcn.0040a510
mov ebx, dword [esp + 0x24]
add esp, 0xc
push ebx
lea ecx, [esp + 0x20]
call fcn.00442f47
inc ebp
add edi, 0x20
jmp 0x41eac0
lea eax, [ebx - 0x10]
mov byte [esp + 0x38], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eb2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x10], ecx
add esi, 0x30
jmp 0x41ea60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.0044314f
test ebx, ebx
pop edi
pop ebp
je 0x41eb87
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41eb87
mov eax, dword [ebx]
test eax, eax
je 0x41eb6e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx + 4]
test eax, eax
je 0x41eb7e
push eax
call fcn.00441359
add esp, 4
push ebx
call fcn.00441359
add esp, 4
mov ecx, dword [esp + 0x28]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x41f3a0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44dc38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysReAllocString
mov dword [esp + 0x38], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41f4d0
push ebp
push edi
mov edi, dword [esp + 8]
mov dword [esp + 0x10], edi
call fcn.00422340
push eax
lea ecx, [esp + 0x10]
call fcn.004018b0
mov ebp, dword [esp + 0xc]
test ebp, ebp
mov byte [esp + 0x1c], 1
je 0x41f422
mov eax, dword [ebp]
jmp 0x41f424
xor eax, eax
push esi
push eax
lea ecx, [esp + 0x10]
call fcn.00405310
mov byte [esp + 0x20], 2
call fcn.00448dcf
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x41f444
xor ecx, ecx
jmp 0x41f459
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x41f450
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00405130
push 4
push str..exe
lea ecx, [esp + 0x14]
call fcn.00405130
mov eax, dword [esp + 0xc]
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push 0x454048
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x20], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop esi
jg 0x41f4b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
je 0x41f4c3
mov ecx, ebp
call fcn.00401c60
test edi, edi
je 0x41f4ce
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x421cb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x46453c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov dword [esp + 0xac], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x421d03
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
je 0x421d0b
mov eax, dword [esp + 0x18]
dec eax
je 0x421d1f
dec eax
xor al, al
mov ecx, dword [esp + 0xac]
call fcn.0042c9b6
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 4
jne 0x421d0b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x421d38
cmp eax, 0xa
je 0x421d38
cmp eax, 0x5a
jne 0x421d0b
mov ecx, dword [esp + 0xac]
mov al, 1
call fcn.0042c9b6
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x421d50
Capabilities:
Shutdown system
Terminate process

Disassembly:
sub esp, 0x144
mov eax, dword [0x46453c]
mov dword [esp + 0x140], eax
push ebp
lea eax, [esp + 4]
push eax
push 0x28
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
jne 0x421dde
pop ebp
mov ecx, dword [esp + 0x140]
call fcn.0042c9b6
add esp, 0x144
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.CreateToolhelp32Snapshot
push ebp
call esi
push str.Process32First
push ebp
mov edi, eax
call esi
push str.Process32Next
push ebp
mov ebx, eax
call esi
test eax, eax
mov dword [esp + 0x14], eax
je 0x421eed
test ebx, ebx
je 0x421eed
test edi, edi
je 0x421eed
push 0
push 2
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x421eed
lea ecx, [esp + 0x28]
push ecx
push edi
mov dword [esp + 0x30], 0x128
call ebx
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x421ec2
lea ebx, [ebx]
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
call fcn.00421cb0
test al, al
je 0x421eac
test esi, esi
je 0x421eac
lea ebx, [ebx]
mov al, byte [esp + esi + 0x4b]
dec esi
cmp al, 0x5c
jne 0x421e70
lea eax, [esp + esi + 0x4d]
push eax
push str.explorer.exe
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x421eac
mov ecx, dword [esp + 0x30]
push ecx
push eax
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
lea edx, [esp + 0x28]
push edx
push edi
mov dword [esp + 0x30], 0x128
call dword [esp + 0x1c]
test eax, eax
jne 0x421e50
push edi
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x140]
call fcn.0042c9b6
add esp, 0x144
ret
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
call fcn.0042c9b6
add esp, 0x144
ret
Function at 0x422720
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44df6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x46453c]
push ebp
mov dword [esp + 0x118], eax
push esi
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x130]
push ecx
lea ecx, [esp + 0x14]
call fcn.004018b0
mov dword [esp + 0x128], 0
mov dword [esp + 8], 0
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov byte [esp + 0x128], 1
je 0x422792
mov eax, dword [ebp]
jmp 0x422794
xor eax, eax
push eax
call fcn.00422520
add esp, 4
push eax
lea ecx, [esp + 0xc]
call fcn.004222c0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x10]
call fcn.00401820
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, eax
mov byte [esp + 0x130], 2
call fcn.004221c0
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov byte [esp + 0x128], 4
je 0x4227eb
call fcn.00401c60
mov dword [esp + 0xc], 0
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x422864
mov eax, dword [edi]
test eax, eax
je 0x422860
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov esi, eax
test esi, esi
jne 0x42281b
push 0x8007000e
call fcn.0043b8c0
mov ecx, edi
call fcn.00401c60
mov ecx, dword [esp + 0xc]
test ecx, ecx
pop edi
je 0x422830
call fcn.00401c60
test ebp, ebp
je 0x42283b
mov ecx, ebp
call fcn.00401c60
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x118]
pop ebp
call fcn.0042c9b6
add esp, 0x124
ret
xor esi, esi
jmp 0x42281b
xor esi, esi
jmp 0x422822
Function at 0x4243f1
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 0x424444
call fcn.00448dcf
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x424444
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x42443a
xor eax, eax
jmp 0x42455d
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 0x424474
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 0x424474
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x42455a
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4244a1
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00422be1
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x42455a
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4244ea
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4244ea
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4244e4
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00422be1
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x42454a
and dword [ebp + 0xc], 0
jmp 0x42454a
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x42454a
push 0xc
call fcn.00441329
mov esi, eax
test esi, esi
pop ecx
je 0x42452c
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 0x42452e
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x424545
push dword [ebp - 8]
call fcn.0043c3d1
jmp 0x42454a
call fcn.0043c3a8
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4244af
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42d785
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.0042d3a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42d820
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 [0x46793c]
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 0x42d820
cmp eax, 1
je 0x42d841
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 0x42d820
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42d7ed
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42d81c
xor eax, eax
inc eax
jmp 0x42d860
cmp edi, eax
jae 0x42d824
xor eax, eax
jmp 0x42d860
cmp eax, esi
jae 0x42d82b
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 [0x46793c]
jmp 0x42d844
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 0x42ea75
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x457540
call fcn.0042f358
mov edi, 0x94
mov eax, edi
call fcn.0042d3a0
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 [0x46793c], ecx
mov eax, dword [esi + 4]
mov dword [0x467948], eax
mov edx, dword [esi + 8]
mov dword [0x46794c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x467940], esi
cmp ecx, 2
je 0x42ead5
or esi, 0x8000
mov dword [0x467940], esi
shl eax, 8
add eax, edx
mov dword [0x467944], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42eb10
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42eb10
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42eb28
cmp eax, 0x20b
je 0x42eb15
mov dword [ebp - 0x1c], esi
jmp 0x42eb3c
cmp dword [ecx + 0x84], 0xe
jbe 0x42eb10
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42eb36
cmp dword [ecx + 0x74], 0xe
jbe 0x42eb10
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00432d19
pop ecx
test eax, eax
jne 0x42eb50
push 0x1c
call fcn.0042ea51
pop ecx
call fcn.00431846
test eax, eax
jne 0x42eb61
push 0x10
call fcn.0042ea51
pop ecx
call fcn.0043628e
mov dword [ebp - 4], esi
call fcn.00436090
test eax, eax
jge 0x42eb7a
push 0x1b
call fcn.0042ea2c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x469210], eax
call fcn.00435f6e
mov dword [0x46792c], eax
call fcn.00435ecc
test eax, eax
jge 0x42eba0
push 8
call fcn.0042ea2c
pop ecx
call fcn.00435c99
test eax, eax
jge 0x42ebb1
push 9
call fcn.0042ea2c
pop ecx
push 1
call fcn.0042f6fa
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42ebc7
push eax
call fcn.0042ea2c
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00435c3c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42ebe8
movzx eax, word [ebp - 0x40]
jmp 0x42ebeb
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043bf5e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42ec09
push edi
call fcn.0042f827
call fcn.0042f849
jmp 0x42ec3b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042f393
ret
Function at 0x42f2cd
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 0x42f2ea
call fcn.0042e513
mov dword [eax], 0x16
xor eax, eax
jmp 0x42f354
push esi
push 0x8c
push 1
call fcn.0043132d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x42f33f
push esi
call fcn.0043164c
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 0x42f31d
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x42f238
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x42f353
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0042d714
test ebx, ebx
pop ecx
je 0x42f351
push ebx
call fcn.0042e525
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x42f764
Capabilities:
Terminate process

Disassembly:
push 8
push 0x457578
call fcn.0042f358
push 8
call fcn.00432cce
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x46797c], esi
jne 0x42f798
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x467978], esi
mov al, byte [ebp + 0x10]
mov byte [0x467974], al
cmp dword [ebp + 0xc], edi
jne 0x42f7e2
cmp dword [0x469208], edi
je 0x42f7d2
mov eax, dword [0x469204]
sub eax, 4
mov dword [0x469204], eax
cmp eax, dword [0x469208]
jb 0x42f7d2
mov eax, dword [eax]
cmp eax, edi
je 0x42f7b3
call eax
jmp 0x42f7b3
push 0x4630d4
mov eax, 0x4630cc
call fcn.0042f6e2
pop ecx
push 0x4630e0
mov eax, 0x4630d8
call fcn.0042f6e2
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42f813
cmp dword [ebp + 0x10], edi
jne 0x42f821
mov dword [0x46797c], esi
push dword [ebp + 8]
call fcn.0042f6a0
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42f820
push 8
call fcn.00432c19
pop ecx
ret
call fcn.0042f393
ret