joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d6e0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x44e318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
lea eax, [esp]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysReAllocString
mov dword [esp + 0x20], 0
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 str.HPSoftwareUpdate
push esi
mov dword [esp + 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x455020
mov ecx, 0x4666c8
call fcn.00413660
test esi, esi
je 0x41d754
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41e160
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44e410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
call fcn.004222d0
push eax
lea ecx, [esp + 8]
call fcn.004018a0
push str.Updates.dat
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0
call fcn.00401810
lea eax, [esp]
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x14], 1
call fcn.00402820
mov ecx, dword [esp]
test ecx, ecx
mov byte [esp + 0x10], 0
je 0x41e1c0
call fcn.00401c50
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x41e1e0
mov eax, dword [esi + 4]
test eax, eax
jne 0x41e1db
mov ecx, dword [esi]
push ecx
call fcn.0043c3a0
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
jmp 0x41e1e2
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
je 0x41e1f4
mov ecx, esi
call fcn.00401c50
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41e290
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44e360
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
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 + 0x34], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41e39a
push ebx
mov ebx, dword [esp + 4]
push esi
push edi
mov dword [esp + 0x10], ebx
call fcn.004223e0
push eax
lea ecx, [esp + 0x10]
call fcn.004018a0
mov esi, dword [esp + 0xc]
test esi, esi
mov byte [esp + 0x1c], 1
je 0x41e325
mov eax, dword [esi + 4]
test eax, eax
jne 0x41e320
mov edx, dword [esi]
push edx
call fcn.0043c3a0
mov dword [esi + 4], eax
mov edi, dword [esi + 4]
jmp 0x41e327
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push 0
push str.HPSoftwareUpdate
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x41e35c
mov eax, dword [esi + 4]
test eax, eax
jne 0x41e357
mov eax, dword [esi]
push eax
call fcn.0043c3a0
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
jmp 0x41e35e
xor eax, eax
push 0x4535ec
push eax
push str.Resume_install_on_reboot_value_written.
mov ecx, 0x4666c8
call fcn.00413660
mov ecx, eax
call fcn.00413660
mov ecx, eax
call fcn.00413660
test esi, esi
je 0x41e38c
mov ecx, esi
call fcn.00401c50
test ebx, ebx
je 0x41e397
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41efb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44e4d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
call fcn.004222d0
push eax
lea ecx, [esp + 0x10]
call fcn.004018a0
xor esi, esi
push str.SelfUpdate.dat
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.00401810
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.00402820
mov ecx, dword [esp + 8]
cmp ecx, esi
mov byte [esp + 0x30], 0
je 0x41f012
call fcn.00401c50
mov ebx, dword [esp + 0xc]
cmp ebx, esi
je 0x41f02f
cmp dword [ebx + 4], esi
jne 0x41f02a
mov ecx, dword [ebx]
push ecx
call fcn.0043c3a0
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
jmp 0x41f031
xor eax, eax
push 0x5001
push eax
lea ecx, [esp + 0x1c]
call fcn.00443b74
push ebp
mov byte [esp + 0x34], 2
mov dword [esp + 0xc], esi
push edi
jmp 0x41f050
mov edi, dword [esp + 0x40]
mov eax, dword [edi + 8]
test eax, eax
je 0x41f12f
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 0x41f12f
mov edi, dword [edi + 8]
mov al, byte [esi + edi + 3]
test al, al
je 0x41f12f
call fcn.00441da2
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 0x41f0fb
mov eax, dword [esi + ecx + 0x1c]
sub eax, edx
sar eax, 5
cmp ebp, eax
jae 0x41f0fb
mov eax, edx
mov ecx, dword [eax + edi + 4]
add eax, edi
push ecx
lea edx, [esp + 0x1c]
push 0x455260
push edx
call fcn.0040a4a0
mov ebx, dword [esp + 0x24]
add esp, 0xc
push ebx
lea ecx, [esp + 0x20]
call fcn.00443847
inc ebp
add edi, 0x20
jmp 0x41f0b0
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 0x41f11a
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 0x41f050
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.00443a4f
test ebx, ebx
pop edi
pop ebp
je 0x41f177
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41f177
mov eax, dword [ebx]
test eax, eax
je 0x41f15e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx + 4]
test eax, eax
je 0x41f16e
push eax
call fcn.00441c59
add esp, 4
push ebx
call fcn.00441c59
add esp, 4
mov ecx, dword [esp + 0x28]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x421c40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x4655d4]
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 0x421c93
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
je 0x421c9b
mov eax, dword [esp + 0x18]
dec eax
je 0x421caf
dec eax
xor al, al
mov ecx, dword [esp + 0xac]
call fcn.0042d2b8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 4
jne 0x421c9b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x421cc8
cmp eax, 0xa
je 0x421cc8
cmp eax, 0x5a
jne 0x421c9b
mov ecx, dword [esp + 0xac]
mov al, 1
call fcn.0042d2b8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x421ce0
Capabilities:
Shutdown system
Terminate process

Disassembly:
sub esp, 0x144
mov eax, dword [0x4655d4]
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 0x421d6e
pop ebp
mov ecx, dword [esp + 0x140]
call fcn.0042d2b8
add esp, 0x144
ret
push ebx
push esi
mov esi, dword [fcn.00466628]
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 0x421e7d
test ebx, ebx
je 0x421e7d
test edi, edi
je 0x421e7d
push 0
push 2
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x421e7d
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 0x421e52
lea ebx, [ebx]
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
call fcn.00421c40
test al, al
je 0x421e3c
test esi, esi
je 0x421e3c
lea ebx, [ebx]
mov al, byte [esp + esi + 0x4b]
dec esi
cmp al, 0x5c
jne 0x421e00
lea eax, [esp + esi + 0x4d]
push eax
push str.explorer.exe
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x421e3c
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 0x421de0
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.0042d2b8
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.0042d2b8
add esp, 0x144
ret
Function at 0x4226b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44e87c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x4655d4]
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.004018a0
mov dword [esp + 0x128], 0
mov dword [esp + 8], 0
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov byte [esp + 0x128], 1
je 0x422722
mov eax, dword [ebp]
jmp 0x422724
xor eax, eax
push eax
call fcn.004224b0
add esp, 4
push eax
lea ecx, [esp + 0xc]
call fcn.00422250
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x10]
call fcn.00401810
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, eax
mov byte [esp + 0x130], 2
call fcn.00422150
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov byte [esp + 0x128], 4
je 0x42277b
call fcn.00401c50
mov dword [esp + 0xc], 0
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4227f4
mov eax, dword [edi]
test eax, eax
je 0x4227f0
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 0x4227ab
push 0x8007000e
call fcn.0043c1c0
mov ecx, edi
call fcn.00401c50
mov ecx, dword [esp + 0xc]
test ecx, ecx
pop edi
je 0x4227c0
call fcn.00401c50
test ebp, ebp
je 0x4227cb
mov ecx, ebp
call fcn.00401c50
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x118]
pop ebp
call fcn.0042d2b8
add esp, 0x124
ret
xor esi, esi
jmp 0x4227ab
xor esi, esi
jmp 0x4227b2
Function at 0x424cee
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 0x424d41
call fcn.004496cf
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x424d41
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x424d37
xor eax, eax
jmp 0x424e5a
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 0x424d71
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 0x424d71
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x424e57
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x424d9e
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004234e4
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x424e57
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x424de7
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x424de7
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x424de1
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004234e4
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x424e47
and dword [ebp + 0xc], 0
jmp 0x424e47
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x424e47
push 0xc
call fcn.00441c29
mov esi, eax
test esi, esi
pop ecx
je 0x424e29
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 0x424e2b
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x424e42
push dword [ebp - 8]
call fcn.0043ccd1
jmp 0x424e47
call fcn.0043cca8
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x424dac
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42e085
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.0042dca0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42e120
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 [0x468a04]
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 0x42e120
cmp eax, 1
je 0x42e141
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 0x42e120
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42e0ed
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42e11c
xor eax, eax
inc eax
jmp 0x42e160
cmp edi, eax
jae 0x42e124
xor eax, eax
jmp 0x42e160
cmp eax, esi
jae 0x42e12b
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 [0x468a04]
jmp 0x42e144
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 0x42f375
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4587c0
call fcn.0042fc58
mov edi, 0x94
mov eax, edi
call fcn.0042dca0
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 [0x468a04], ecx
mov eax, dword [esi + 4]
mov dword [0x468a10], eax
mov edx, dword [esi + 8]
mov dword [0x468a14], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x468a08], esi
cmp ecx, 2
je 0x42f3d5
or esi, 0x8000
mov dword [0x468a08], esi
shl eax, 8
add eax, edx
mov dword [0x468a0c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42f410
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f410
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42f428
cmp eax, 0x20b
je 0x42f415
mov dword [ebp - 0x1c], esi
jmp 0x42f43c
cmp dword [ecx + 0x84], 0xe
jbe 0x42f410
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42f436
cmp dword [ecx + 0x74], 0xe
jbe 0x42f410
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00433619
pop ecx
test eax, eax
jne 0x42f450
push 0x1c
call fcn.0042f351
pop ecx
call fcn.00432146
test eax, eax
jne 0x42f461
push 0x10
call fcn.0042f351
pop ecx
call fcn.00436b8e
mov dword [ebp - 4], esi
call fcn.00436990
test eax, eax
jge 0x42f47a
push 0x1b
call fcn.0042f32c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46a310], eax
call fcn.0043686e
mov dword [0x4689f4], eax
call fcn.004367cc
test eax, eax
jge 0x42f4a0
push 8
call fcn.0042f32c
pop ecx
call fcn.00436599
test eax, eax
jge 0x42f4b1
push 9
call fcn.0042f32c
pop ecx
push 1
call fcn.0042fffa
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42f4c7
push eax
call fcn.0042f32c
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043653c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42f4e8
movzx eax, word [ebp - 0x40]
jmp 0x42f4eb
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043c85e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42f509
push edi
call fcn.00430127
call fcn.00430149
jmp 0x42f53b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042fc93
ret
Function at 0x42fbcd
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 0x42fbea
call fcn.0042ee13
mov dword [eax], 0x16
xor eax, eax
jmp 0x42fc54
push esi
push 0x8c
push 1
call fcn.00431c2d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x42fc3f
push esi
call fcn.00431f4c
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 0x42fc1d
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x42fb38
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x42fc53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0042e014
test ebx, ebx
pop ecx
je 0x42fc51
push ebx
call fcn.0042ee25
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x430064
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4587f8
call fcn.0042fc58
push 8
call fcn.004335ce
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x468a44], esi
jne 0x430098
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x468a40], esi
mov al, byte [ebp + 0x10]
mov byte [0x468a3c], al
cmp dword [ebp + 0xc], edi
jne 0x4300e2
cmp dword [0x46a308], edi
je 0x4300d2
mov eax, dword [0x46a304]
sub eax, 4
mov dword [0x46a304], eax
cmp eax, dword [0x46a308]
jb 0x4300d2
mov eax, dword [eax]
cmp eax, edi
je 0x4300b3
call eax
jmp 0x4300b3
push 0x4640d4
mov eax, 0x4640cc
call fcn.0042ffe2
pop ecx
push 0x4640e0
mov eax, 0x4640d8
call fcn.0042ffe2
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x430113
cmp dword [ebp + 0x10], edi
jne 0x430121
mov dword [0x468a44], esi
push dword [ebp + 8]
call fcn.0042ffa0
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x430120
push 8
call fcn.00433519
pop ecx
ret
call fcn.0042fc93
ret
Function at 0x432f4c
Capabilities:
Parse pe header

Disassembly:
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 0x432f7a
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x432f81
cmp ebx, dword [eax + 4]
jae 0x432f81
xor eax, eax
jmp 0x433171
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x432f92
xor eax, eax
inc eax
jmp 0x433170
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x432fa8
cmp ecx, edx
jae 0x4330ed
cmp dword [eax + 4], 0
je 0x432fb1
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x432f99
cmp dword [ebp + 8], 0
je 0x432fd3
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4330ed
cmp eax, esi
jae 0x4330ed
mov eax, dword [0x468a68]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x432ff8
cmp dword [esi*4 + 0x468a70], edi
je 0x4330f1
inc esi
cmp esi, eax
jl 0x432fe6
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43316d
cmp dword [ebp - 8], 0x1000000
jne 0x43316d
test byte [ebp - 0xc], 0xcc
je 0x433076
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43316d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43316d
cmp word [eax + 0x18], 0x10b
jne 0x43316d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43316d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x433076
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x433076
test byte [ecx + 0x27], 0x80
jne 0x4330ed
push 1
push 0x468ab0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x432f8a
mov ecx, dword [0x468a68]
test ecx, ecx
mov edx, ecx
jle 0x4330aa
lea eax, [ecx*4 + 0x468a6c]
cmp dword [eax], edi
je 0x4330aa
dec edx
sub eax, 4
test edx, edx
jg 0x43309e
test edx, edx
jne 0x4330db
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4330b7
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4330cf
lea eax, [edx*4 + 0x468a70]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4330bd
cmp ecx, 0x10
jge 0x4330db
inc ecx
mov dword [0x468a68], ecx
push 0
push 0x468ab0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x432f8a
xor eax, eax
jmp 0x433170
test esi, esi
jle 0x432f8a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x468ab0
call ebx
test eax, eax
jne 0x432f8a
cmp dword [esi*4 + 0x468a70], edi
je 0x433147
mov eax, dword [0x468a68]
lea esi, [eax - 1]
test esi, esi
jl 0x433135
cmp dword [esi*4 + 0x468a70], edi
je 0x433131
dec esi
jns 0x433125
test esi, esi
jge 0x433145
cmp eax, 0x10
jge 0x433140
inc eax
mov dword [0x468a68], eax
lea esi, [eax - 1]
jmp 0x433147
je 0x43315f
xor ecx, ecx
test esi, esi
jl 0x43315f
lea eax, [ecx*4 + 0x468a70]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x43314d
push 0
push 0x468ab0
call ebx
jmp 0x432f8a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret