joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a5d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43f296
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4530e4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
lea edi, [esi + 0xc]
mov ecx, 7
xor eax, eax
xor edx, edx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x14], eax
mov word [edi + 4], dx
mov dword [esp + 0x18], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x40], eax
mov word [esi + 0x30], ax
mov byte [esp + 0x18], 1
mov ebx, dword [edi + 0x14]
cmp ebx, 0x40
ja 0x42a661
mov eax, dword [edi + 0x18]
cmp eax, 0x40
je 0x42a661
jae 0x42a64a
push ebx
push 0x40
push edi
call fcn.004081e0
cmp dword [edi + 0x18], 8
mov dword [edi + 0x14], ebx
jb 0x42a658
mov edi, dword [edi + 4]
jmp 0x42a65b
add edi, 4
xor ecx, ecx
mov word [edi + ebx*2], cx
mov ebx, dword [esi + 0x40]
lea edi, [esi + 0x2c]
cmp ebx, 0x100
ja 0x42a69e
mov eax, dword [edi + 0x18]
cmp eax, 0x100
je 0x42a69e
jae 0x42a687
push ebx
push pe_nt_image_headers32
push edi
call fcn.004081e0
cmp dword [edi + 0x18], 8
mov dword [edi + 0x14], ebx
jb 0x42a695
mov edi, dword [edi + 4]
jmp 0x42a698
add edi, 4
xor edx, edx
mov word [edi + ebx*2], dx
mov ecx, dword [esi + 8]
lea eax, [esi + 0x50]
mov dword [ecx + 4], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
sub edx, ecx
sar edx, 1
mov dword [eax], ecx
mov dword [esi + 0x54], edx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x42b82d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4555d8], 0
push esi
jne 0x42b7a0
call fcn.0042b6c6
test eax, eax
je 0x42b7e3
mov eax, dword [0x4555d8]
cmp eax, 1
jne 0x42b7c1
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42b7e3
pop esi
ret
push eax
call dword [0x4555e0]
test eax, eax
jne 0x42b82b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42b7e7
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4555d8]
call dword [0x4555e0]
mov edi, eax
test edi, edi
je 0x42b80c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42b828
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4555d8]
call dword [0x4555dc]
add edi, 0x10
cmp edi, esi
jb 0x42b814
mov eax, edi
pop edi
pop esi
ret
jmp 0x42b78d

Function at 0x42bb57
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4530e4]
jne 0x42bb61
repz ret
jmp fcn.0042f1dd
Function at 0x4353fe
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042f35d
and dword [ebp - 4], 0
cmp dword [0x4561dc], 0
mov ebx, eax
jne 0x4354af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x435560
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x435560
push eax
call fcn.0042f2eb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4561dc], eax
call esi
push eax
call fcn.0042f2eb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4561e0], eax
call esi
push eax
call fcn.0042f2eb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4561e4], eax
call esi
push eax
call fcn.0042f2eb
pop ecx
mov dword [0x4561ec], eax
test eax, eax
je 0x4354af
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042f2eb
pop ecx
mov dword [0x4561e8], eax
mov eax, dword [0x4561e8]
cmp eax, ebx
je 0x435507
cmp dword [0x4561ec], ebx
je 0x435507
push eax
call fcn.0042f366
push dword [0x4561ec]
mov esi, eax
call fcn.0042f366
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x435507
test edi, edi
je 0x435507
call esi
test eax, eax
je 0x4354fe
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4354fe
test byte [ebp - 0xc], 1
jne 0x435507
or dword [ebp + 0x10], 0x200000
jmp 0x435540
mov eax, dword [0x4561e0]
cmp eax, ebx
je 0x435540
push eax
call fcn.0042f366
pop ecx
test eax, eax
je 0x435540
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x435540
mov eax, dword [0x4561e4]
cmp eax, ebx
je 0x435540
push eax
call fcn.0042f366
pop ecx
test eax, eax
je 0x435540
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4561dc]
call fcn.0042f366
pop ecx
test eax, eax
je 0x435560
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x435562
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40110d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40112e
cmp esi, eax
jae 0x401107
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401120
cmp esi, eax
jae 0x401107
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x401440
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x20
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
je 0x4015ac
push ebx
push 0xf01ff
push str.protectorservice
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ecx, dword [0x41c954]
mov ebx, eax
test ebx, ebx
jne 0x40149c
test ecx, ecx
je 0x40148f
mov eax, dword [ecx]
push 3
push str.cleanup_OpenService_failed.
call dword [eax + 4]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
pop esi
add esp, 0x20
ret
test ecx, ecx
je 0x4014ac
mov edx, dword [ecx]
push 3
push str.cleanup_OpenService_OK.
call dword [edx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push edi
call esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x14]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401571
mov ecx, dword [0x41c954]
test ecx, ecx
je 0x4014f2
mov edx, dword [ecx]
push 3
push str.cleanup__Wait_for_the_service_to_stop.
call dword [edx + 4]
mov ecx, dword [0x41c954]
cmp dword [esp + 0x18], 1
je 0x40152f
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop
mov eax, dword [esp + 0x2c]
push eax
call ebp
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401541
call esi
sub eax, edi
cmp eax, 0x1388
ja 0x401559
cmp dword [esp + 0x18], 1
jne 0x401500
mov ecx, dword [0x41c954]
test ecx, ecx
je 0x401592
mov edx, dword [ecx]
push 3
push str.cleanup__SERVICE_STOPPED.
call dword [edx + 4]
jmp 0x401592
mov ecx, dword [0x41c954]
test ecx, ecx
je 0x401592
mov eax, dword [ecx]
push 3
push str.cleanup__Wait_for_the_service_to_stop_:_QueryServiceStatus_failed.
call dword [eax + 4]
jmp 0x401592
mov ecx, dword [0x41c954]
test ecx, ecx
je 0x401592
mov edx, dword [ecx]
push 3
push str.cleanup__Wait_for_the_service_to_stop_time_out.
call dword [edx + 4]
jmp 0x401592
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x41c954]
test ecx, ecx
je 0x401592
mov edx, dword [ecx]
push eax
push str.ControlService__error_code_:__d
push 3
push ecx
call dword [edx + 0xc]
add esp, 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x20
ret
Function at 0x4025a0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x414776
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [esp + 0x140]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.004024f0
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x148], ebx
call fcn.00401f40
push ebx
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
or ebp, 0xffffffff
cmp edi, ebx
mov dword [esp + 0x18], 0x128
je 0x40274b
lea ecx, [esp + 0x18]
push ecx
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40274b
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x14]
call fcn.004024f0
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 4]
mov esi, dword [edx - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, esi
or eax, ecx
mov byte [esp + 0x148], 1
jge 0x402650
push esi
lea ecx, [esp + 0x14]
call fcn.00401940
mov edx, dword [esp + 0x10]
push edx
call fcn.0040529a
add esp, 4
cmp esi, ebx
jl 0x402788
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x402788
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x10]
mov byte [esi + eax], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40270d
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], ebx
jl 0x402711
push eax
push ecx
call fcn.004051e8
add esp, 8
cmp eax, ebx
je 0x40270d
mov ecx, dword [esp + 0x10]
sub eax, ecx
cmp eax, ebp
je 0x402711
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x148], bl
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4026e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x148], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x402709
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
jmp 0x40276f
mov ecx, dword [esp + 0x10]
lea eax, [ecx - 0x10]
mov byte [esp + 0x148], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402731
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x18]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402612
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x148], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40276d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret
push 0x80070057
call fcn.004010c0
int3
Function at 0x403320
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41484c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
push esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
push eax
push esi
push esi
push esi
push SysReAllocString
push esi
push SysReAllocString
push 0xcf0000
push 0x41c888
push 0x41c8f0
push esi
mov dword [0x41c8ec], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, esi
je 0x4034d5
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [ebp - 0xc8]
push eax
mov dword [ebp - 0xc8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xc4], 5
jne 0x403491
cmp dword [ebp - 0xc0], 1
jne 0x403491
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x34]
push ecx
call fcn.004023f0
add esp, 4
mov ecx, dword [eax + 0x18]
mov ebx, 0x10
cmp ecx, ebx
mov dword [ebp - 4], esi
jb 0x4033de
mov eax, dword [eax + 4]
jmp 0x4033e1
add eax, 4
push str.IgLogger.ini
push str.igDaemon
push eax
call dword [sym.imp.dll_logger.dll_public:_static_int___cdecl_QHDllLogger::DefaultDllLogger::GetLogLevelFromIniFile_char_const___char_const___char_const__]
mov edi, eax
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp eax, ebx
jb 0x40340a
mov edx, dword [ebp - 0x30]
push edx
call fcn.0040e4df
add esp, 4
cmp edi, esi
jle 0x403485
push 0x1f4
mov dword [ebp - 4], 1
call fcn.0040e4af
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
mov byte [ebp - 4], 2
je 0x40346f
lea eax, [ebp - 0x34]
push eax
call fcn.004023f0
add esp, 4
cmp dword [eax + 0x18], ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 1
jb 0x403450
mov eax, dword [eax + 4]
jmp 0x403453
add eax, 4
push edi
push str.igDaemon
push 0x4158ec
push eax
mov ecx, esi
call dword [sym.imp.dll_logger.dll_public:_void___thiscall_QHDllLogger::DefaultDllLogger::constructor_char_const___char_const___char_const___enum_QHDllLogger::DllLoggingLevel_]
mov dword [esi], 0x4158d8
jmp 0x403471
xor esi, esi
test byte [ebp - 0x14], 1
mov dword [0x41c954], esi
je 0x403485
lea ecx, [ebp - 0x34]
call fcn.00401d10
mov dword [ebp - 4], 0xffffffff
call fcn.00402e30
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404a38
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.00404d20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404ad3
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 [0x41e8f0]
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 0x404ad3
cmp eax, 1
je 0x404af4
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 0x404ad3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404aa0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404acf
xor eax, eax
inc eax
jmp 0x404b13
cmp edi, eax
jae 0x404ad7
xor eax, eax
jmp 0x404b13
cmp eax, esi
jae 0x404ade
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 [0x41e8f0]
jmp 0x404af7
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 0x40587d
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x405899
call fcn.00406ede
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x40590b
push esi
push 0x8c
push 1
call fcn.004091ae
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4058f1
push esi
call fcn.00408304
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x4057eb
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x4058e9
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x405908
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004049c7
test ebx, ebx
pop ecx
je 0x405903
push ebx
call fcn.00406ef0
pop ecx
or eax, 0xffffffff
jmp 0x40590a
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x405aab
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x416878
call fcn.00406258
mov edi, 0x94
mov eax, edi
call fcn.00404d20
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 [0x41e8f0], ecx
mov eax, dword [esi + 4]
mov dword [0x41e8fc], eax
mov edx, dword [esi + 8]
mov dword [0x41e900], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41e8f4], esi
cmp ecx, 2
je 0x405b0b
or esi, 0x8000
mov dword [0x41e8f4], esi
shl eax, 8
add eax, edx
mov dword [0x41e8f8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x405b46
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405b46
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x405b5e
cmp eax, 0x20b
je 0x405b4b
mov dword [ebp - 0x1c], esi
jmp 0x405b72
cmp dword [ecx + 0x84], 0xe
jbe 0x405b46
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x405b6c
cmp dword [ecx + 0x74], 0xe
jbe 0x405b46
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00407101
pop ecx
test eax, eax
jne 0x405b86
push 0x1c
call fcn.00405a87
pop ecx
call fcn.004084fe
test eax, eax
jne 0x405b97
push 0x10
call fcn.00405a87
pop ecx
call fcn.00409afa
mov dword [ebp - 4], esi
call fcn.004098fc
test eax, eax
jge 0x405bb0
push 0x1b
call fcn.00405a62
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4201a0], eax
call fcn.004097da
mov dword [0x41e8d0], eax
call fcn.00409738
test eax, eax
jge 0x405bd6
push 8
call fcn.00405a62
pop ecx
call fcn.00409505
test eax, eax
jge 0x405be7
push 9
call fcn.00405a62
pop ecx
push 1
call fcn.00406d71
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x405bfd
push eax
call fcn.00405a62
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004094a8
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x405c1e
movzx eax, word [ebp - 0x40]
jmp 0x405c21
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00403510
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x405c3f
push edi
call fcn.00406e9e
call fcn.00406ec0
jmp 0x405c71
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00406293
ret
Function at 0x406ddb
Capabilities:
Terminate process

Disassembly:
push 8
push 0x416900
call fcn.00406258
push 8
call fcn.004070b6
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41e930], esi
jne 0x406e0f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x41e92c], esi
mov al, byte [ebp + 0x10]
mov byte [0x41e928], al
cmp dword [ebp + 0xc], edi
jne 0x406e59
cmp dword [0x41ff6c], edi
je 0x406e49
mov eax, dword [0x41ff68]
sub eax, 4
mov dword [0x41ff68], eax
cmp eax, dword [0x41ff6c]
jb 0x406e49
mov eax, dword [eax]
cmp eax, edi
je 0x406e2a
call eax
jmp 0x406e2a
push 0x41b084
mov eax, 0x41b07c
call fcn.00406d59
pop ecx
push 0x41b090
mov eax, 0x41b088
call fcn.00406d59
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x406e8a
cmp dword [ebp + 0x10], edi
jne 0x406e98
mov dword [0x41e930], esi
push dword [ebp + 8]
call fcn.00406d17
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x406e97
push 8
call fcn.00407001
pop ecx
ret
call fcn.00406293
ret
Function at 0x407c90
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 0x407cbe
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 0x407cc5
cmp ebx, dword [eax + 4]
jae 0x407cc5
xor eax, eax
jmp 0x407eb5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x407cd6
xor eax, eax
inc eax
jmp 0x407eb4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407cec
cmp ecx, edx
jae 0x407e31
cmp dword [eax + 4], 0
je 0x407cf5
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x407cdd
cmp dword [ebp + 8], 0
je 0x407d17
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x407e31
cmp eax, esi
jae 0x407e31
mov eax, dword [0x41ea90]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x407d3c
cmp dword [esi*4 + 0x41ea98], edi
je 0x407e35
inc esi
cmp esi, eax
jl 0x407d2a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407eb1
cmp dword [ebp - 8], 0x1000000
jne 0x407eb1
test byte [ebp - 0xc], 0xcc
je 0x407dba
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x407eb1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407eb1
cmp word [eax + 0x18], 0x10b
jne 0x407eb1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x407eb1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x407dba
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x407dba
test byte [ecx + 0x27], 0x80
jne 0x407e31
push 1
push 0x41ead8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x407cce
mov ecx, dword [0x41ea90]
test ecx, ecx
mov edx, ecx
jle 0x407dee
lea eax, [ecx*4 + 0x41ea94]
cmp dword [eax], edi
je 0x407dee
dec edx
sub eax, 4
test edx, edx
jg 0x407de2
test edx, edx
jne 0x407e1f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x407dfb
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x407e13
lea eax, [edx*4 + 0x41ea98]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x407e01
cmp ecx, 0x10
jge 0x407e1f
inc ecx
mov dword [0x41ea90], ecx
push 0
push 0x41ead8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x407cce
xor eax, eax
jmp 0x407eb4
test esi, esi
jle 0x407cce
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41ead8
call ebx
test eax, eax
jne 0x407cce
cmp dword [esi*4 + 0x41ea98], edi
je 0x407e8b
mov eax, dword [0x41ea90]
lea esi, [eax - 1]
test esi, esi
jl 0x407e79
cmp dword [esi*4 + 0x41ea98], edi
je 0x407e75
dec esi
jns 0x407e69
test esi, esi
jge 0x407e89
cmp eax, 0x10
jge 0x407e84
inc eax
mov dword [0x41ea90], eax
lea esi, [eax - 1]
jmp 0x407e8b
je 0x407ea3
xor ecx, ecx
test esi, esi
jl 0x407ea3
lea eax, [ecx*4 + 0x41ea98]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x407e91
push 0
push 0x41ead8
call ebx
jmp 0x407cce
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret