joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4717b0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop esi
ret
Function at 0x4783c8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x49c550]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0047835d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004447d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x478417
cmp dword [ebp - 0x1c], 5
jb 0x47842f
jmp 0x47842b
cmp dword [ebp - 0x10], 1
jne 0x47842f
cmp dword [ebp - 0x1c], 4
ja 0x47842b
jne 0x47842f
cmp dword [ebp - 0x18], 0
jbe 0x47842f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x48d160
call fcn.00478231
test eax, eax
jge 0x478450
mov byte [0x4a0cac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00443fd7
add ebp, 0x78
leave
ret
Function at 0x40eb93
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409b6f
mov dword [ebp - 0x14], eax
cmp dword [0x4af620], esi
jne 0x40ec86
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ec13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ed66
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ed66
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ed66
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4af620], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4af624], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4af628], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4af630], eax
test eax, eax
je 0x40ec83
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4af62c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ecab
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ec9e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40ecc0
push 4
pop eax
jmp 0x40ed68
cmp dword [ebp - 0x14], esi
je 0x40ecc0
push dword [0x4af620]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40eca5
mov eax, dword [0x4af62c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40ed1e
cmp dword [0x4af630], edi
je 0x40ed1e
push eax
call ebx
push dword [0x4af630]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40ed1e
test eax, eax
je 0x40ed1e
call ecx
test eax, eax
je 0x40ed13
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40ed13
test byte [ebp - 8], 1
jne 0x40ed1e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40ed4e
mov eax, dword [0x4af624]
cmp eax, edi
je 0x40ed4b
push eax
call ebx
test eax, eax
je 0x40ed4b
call eax
mov esi, eax
test esi, esi
je 0x40ed4b
mov eax, dword [0x4af628]
cmp eax, edi
je 0x40ed4b
push eax
call ebx
test eax, eax
je 0x40ed4b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4af620]
call ebx
test eax, eax
je 0x40ed66
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ed68
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404326
mov esp, ebp
pop ebp
ret
Function at 0x4010c0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4010e2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
neg eax
mov dword [esp + 4], eax
jne 0x40111d
mov eax, dword [esi + 4]
test eax, eax
je 0x40111d
mov eax, dword [esi + 8]
test eax, eax
je 0x4010f7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 8]
push ecx
push 0
push esi
push 0x401180
push 0
push 0
call fcn.0040319e
add esp, 0x18
mov dword [esi + 8], eax
pop esi
add esp, 8
ret

Function at 0x401130
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x401178
mov eax, dword [esi + 4]
test eax, eax
je 0x401148
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401167
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
pop esi
ret
Function at 0x402160
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov dword [esp + 0x10], ecx
jle 0x40217d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
mov ebx, ebp
jmp 0x402185
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push esi
call fcn.004021e0
test esi, esi
mov edi, eax
jle 0x40219d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
test edi, edi
jl 0x4021c0
jg 0x4021c5
test esi, esi
je 0x4021cf
cmp esi, 0xffffffff
je 0x402185
cmp ebx, ebp
jb 0x4021cf
mov eax, ebx
sub eax, ebp
cmp eax, esi
jae 0x4021cf
mov ecx, ebp
sub ecx, ebx
add esi, ecx
jmp 0x402185
cmp edi, 0xfffffff6
je 0x4021cf
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
mov eax, 0xfffffff6
pop ebx
pop ecx
ret 4

Function at 0x4029e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x409f4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00402ee0
lea edi, [esi + 0x10]
mov dword [esp + 0x18], 0
mov ecx, edi
call fcn.00402ee0
lea ebx, [esi + 0x20]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.00402ee0
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
mov byte [esp + 0x1c], 2
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], 0
call fcn.00402f80
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, edi
call fcn.00402f80
mov edx, dword [esp + 0x24]
mov ecx, ebx
push edx
call fcn.00402f80
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 0x64
mov dword [esi + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x40
mov dword [esi + 0x3c], eax
call fcn.004036e1
add esp, 4
mov dword [esi + 0x44], eax
xor eax, eax
mov edx, dword [esi + 0x44]
add eax, 4
cmp eax, 0x40
mov dword [edx + eax - 4], 0
jb 0x402a89
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x100194d5
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xea0
mov eax, dword [0x100400b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x14]
push edi
test esi, esi
jne 0x100194fb
mov eax, 0x80070057
jmp 0x1001970d
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x484]
xor ebx, ebx
push str.SoftwareMicrosoftOffice_i.0Registration
push 0x100
push eax
mov dword [esi], ebx
mov dword [ebp - 0xe9c], ebx
call fcn.1000972c
add esp, 0x10
test eax, eax
je 0x100196fd
lea eax, [ebp - 0xe9c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x484]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100196fd
push 0x40
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0xe9c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push dword [ebp - 0xe9c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x103
je 0x100196fd
test edi, edi
jne 0x1001970a
push 0xffffffffffffffff
lea eax, [ebp - 0x484]
mov edi, 0x100
push eax
lea eax, [ebp - 0x284]
push edi
push eax
call fcn.1000972c
add esp, 0x10
cmp eax, 0x50
je 0x1001970a
push 0xffffffffffffffff
push 0x100393f0
lea eax, [ebp - 0x284]
push edi
push eax
call fcn.1000972c
add esp, 0x10
cmp eax, 0x50
je 0x1001970a
push 0xffffffffffffffff
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x284]
push edi
push eax
call fcn.1000972c
add esp, 0x10
cmp eax, 0x50
je 0x1001970a
lea eax, [ebp - 0xe94]
mov dword [ebp - 0xe98], ebx
push eax
push 1
push ebx
lea eax, [ebp - 0x284]
mov dword [ebp - 0xe94], ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x10019655
lea eax, [ebp - 0xea0]
mov dword [ebp - 0xea0], 0x802
push eax
lea eax, [ebp - 0xe90]
push eax
lea eax, [ebp - 0xe98]
push eax
push ebx
push 0x1003b278
push dword [ebp - 0xe94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp dword [ebp - 0xe94], ebx
je 0x10019669
push dword [ebp - 0xe94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x100196ce
cmp dword [ebp - 0xe98], 1
je 0x1001967f
cmp dword [ebp - 0xe98], 2
jne 0x100196ce
cmp dword [ebp - 0xe98], 2
jne 0x100196d2
push 0x104
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0xe90]
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
ja 0x100196d2
push 0xffffffffffffffff
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0xe90]
push 0x401
push eax
call fcn.1000972c
xor ebx, ebx
add esp, 0x10
cmp eax, 0x50
setne bl
test ebx, ebx
je 0x1001970a
lea eax, [ebp - 0xe90]
push str._no_more_entries_
push eax
call fcn.1000972c
pop ecx
pop ecx
test eax, eax
je 0x1001970a
xor eax, eax
cmp ax, word [ebp - 0xe90]
je 0x1001970a
lea eax, [ebp - 0xe90]
push eax
jmp 0x10019702
push str._no_more_entries_
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001c65c
leave
ret 0x10
Function at 0x4049a0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push 0x429c08
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], eax
push ecx
mov dword [esp + 0x24], eax
call esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x12c]
push eax
call esi
lea ecx, [esp + 0x20]
push 0x2e
push ecx
call fcn.00409160
add esp, 8
push 0x421184
lea edx, [esp + 0x14]
push edx
mov edi, eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
lea eax, [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push edi
mov byte [edi], 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x20]
push edx
call ebp
lea eax, [esp + 0x128]
push 0x2e
push eax
call fcn.00409160
xor ecx, ecx
mov dword [esp + 0x18], ecx
add esp, 8
mov dword [esp + 0x14], ecx
push 0x421180
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], ecx
push edx
mov edi, eax
mov dword [esp + 0x24], ecx
call esi
push edi
lea eax, [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push edi
mov byte [edi], 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x130]
push eax
call esi
push 0
lea ecx, [esp + 0x12c]
push ecx
push 0x429c08
call esi
push 0x429c08
call ebp
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405670
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x10]
push 0x420fd4
push eax
call fcn.00408d18
add esp, 8
test eax, eax
jne 0x40569f
push str.GetFunctionName___Function_string_has_not_been_defined_n
mov ecx, esi
call sub.KERNEL32.dll_OutputDebugStringA
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [esp + 0xc]
push edi
call fcn.00402cd0
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x405f70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ec18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00405ee0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00402800
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x406002
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x408167
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.00408450
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408202
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 [0x42bc8c]
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 0x408202
cmp eax, 1
je 0x408223
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 0x408202
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4081cf
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4081fe
xor eax, eax
inc eax
jmp 0x408242
cmp edi, eax
jae 0x408206
xor eax, eax
jmp 0x408242
cmp eax, esi
jae 0x40820d
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 [0x42bc8c]
jmp 0x408226
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 0x408f86
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x422578
call fcn.0040bc98
mov edi, 0x94
mov eax, edi
call fcn.00408450
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 [0x42bc8c], ecx
mov eax, dword [esi + 4]
mov dword [0x42bc98], eax
mov edx, dword [esi + 8]
mov dword [0x42bc9c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42bc90], esi
cmp ecx, 2
je 0x408fe6
or esi, 0x8000
mov dword [0x42bc90], esi
shl eax, 8
add eax, edx
mov dword [0x42bc94], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x409021
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409021
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x409039
cmp eax, 0x20b
je 0x409026
mov dword [ebp - 0x1c], esi
jmp 0x40904d
cmp dword [ecx + 0x84], 0xe
jbe 0x409021
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x409047
cmp dword [ecx + 0x74], 0xe
jbe 0x409021
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040c8ab
pop ecx
test eax, eax
jne 0x409061
push 0x1c
call fcn.00408f62
pop ecx
call fcn.0040e0eb
test eax, eax
jne 0x409072
push 0x10
call fcn.00408f62
pop ecx
call fcn.0040efcc
mov dword [ebp - 4], esi
call fcn.0040edce
test eax, eax
jge 0x40908b
push 0x1b
call fcn.00408f3d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42d5c0], eax
call fcn.0040ecac
mov dword [0x42bc6c], eax
call fcn.0040ec0a
test eax, eax
jge 0x4090b1
push 8
call fcn.00408f3d
pop ecx
call fcn.0040e9d7
test eax, eax
jge 0x4090c2
push 9
call fcn.00408f3d
pop ecx
push 1
call fcn.0040c5a0
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4090d8
push eax
call fcn.00408f3d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040e97a
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4090f9
movzx eax, word [ebp - 0x40]
jmp 0x4090fc
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401ec0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40911a
push edi
call fcn.0040c6cd
call fcn.0040c6ef
jmp 0x40914c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040bcd3
ret
Function at 0x40c60a
Capabilities:
Terminate process

Disassembly:
push 8
push 0x422890
call fcn.0040bc98
push 8
call fcn.0040c860
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42bccc], esi
jne 0x40c63e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42bcc8], esi
mov al, byte [ebp + 0x10]
mov byte [0x42bcc4], al
cmp dword [ebp + 0xc], edi
jne 0x40c688
cmp dword [0x42d38c], edi
je 0x40c678
mov eax, dword [0x42d388]
sub eax, 4
mov dword [0x42d388], eax
cmp eax, dword [0x42d38c]
jb 0x40c678
mov eax, dword [eax]
cmp eax, edi
je 0x40c659
call eax
jmp 0x40c659
push 0x428108
mov eax, 0x428100
call fcn.0040c588
pop ecx
push 0x428114
mov eax, 0x42810c
call fcn.0040c588
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40c6b9
cmp dword [ebp + 0x10], edi
jne 0x40c6c7
mov dword [0x42bccc], esi
push dword [ebp + 8]
call fcn.0040c546
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40c6c6
push 8
call fcn.0040c7ab
pop ecx
ret
call fcn.0040bcd3
ret
Function at 0x40d43a
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 0x40d468
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 0x40d46f
cmp ebx, dword [eax + 4]
jae 0x40d46f
xor eax, eax
jmp 0x40d65f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40d480
xor eax, eax
inc eax
jmp 0x40d65e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40d496
cmp ecx, edx
jae 0x40d5db
cmp dword [eax + 4], 0
je 0x40d49f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40d487
cmp dword [ebp + 8], 0
je 0x40d4c1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40d5db
cmp eax, esi
jae 0x40d5db
mov eax, dword [0x42be28]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40d4e6
cmp dword [esi*4 + 0x42be30], edi
je 0x40d5df
inc esi
cmp esi, eax
jl 0x40d4d4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d65b
cmp dword [ebp - 8], 0x1000000
jne 0x40d65b
test byte [ebp - 0xc], 0xcc
je 0x40d564
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40d65b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40d65b
cmp word [eax + 0x18], 0x10b
jne 0x40d65b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40d65b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40d564
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40d564
test byte [ecx + 0x27], 0x80
jne 0x40d5db
push 1
push 0x42be70
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40d478
mov ecx, dword [0x42be28]
test ecx, ecx
mov edx, ecx
jle 0x40d598
lea eax, [ecx*4 + 0x42be2c]
cmp dword [eax], edi
je 0x40d598
dec edx
sub eax, 4
test edx, edx
jg 0x40d58c
test edx, edx
jne 0x40d5c9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40d5a5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40d5bd
lea eax, [edx*4 + 0x42be30]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40d5ab
cmp ecx, 0x10
jge 0x40d5c9
inc ecx
mov dword [0x42be28], ecx
push 0
push 0x42be70
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40d478
xor eax, eax
jmp 0x40d65e
test esi, esi
jle 0x40d478
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42be70
call ebx
test eax, eax
jne 0x40d478
cmp dword [esi*4 + 0x42be30], edi
je 0x40d635
mov eax, dword [0x42be28]
lea esi, [eax - 1]
test esi, esi
jl 0x40d623
cmp dword [esi*4 + 0x42be30], edi
je 0x40d61f
dec esi
jns 0x40d613
test esi, esi
jge 0x40d633
cmp eax, 0x10
jge 0x40d62e
inc eax
mov dword [0x42be28], eax
lea esi, [eax - 1]
jmp 0x40d635
je 0x40d64d
xor ecx, ecx
test esi, esi
jl 0x40d64d
lea eax, [ecx*4 + 0x42be30]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40d63b
push 0
push 0x42be70
call ebx
jmp 0x40d478
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret