joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412f60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427e38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ax, word [esp + 0x34]
push ebx
mov bx, word [esp + 0x40]
push esi
mov esi, ecx
movzx cx, ah
movzx dx, bh
mov ch, al
mov dh, bl
push 0x2000
mov word [esp + 0xc], 0x3412
mov word [esp + 0x12], 0
mov word [esp + 0xe], cx
lea ecx, [esp + 0x14]
mov word [esp + 0x10], dx
call fcn.0041b1f0
push 8
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0
call fcn.0041b290
mov edx, dword [esp + 0x40]
movzx ecx, bx
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.0041b290
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00412dd0
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call fcn.0041b470
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14

Function at 0x413820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
push 0
mov esi, ecx
push 0x42a46c
mov ecx, edi
call fcn.00401b80
push 0
lea ecx, [esp + 0x10]
call fcn.0041b3f0
push 0
push 1
push 4
push 9
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x4c], 0
call fcn.00413030
mov ebp, eax
test ebp, ebp
jne 0x4138d0
cmp dword [esp + 0x10], 0xa
jb 0x4138d0
mov ecx, dword [esp + 0xc]
add ecx, 2
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.004132e0
push 0xffffffffffffffff
push ebp
push eax
mov ecx, edi
mov byte [esp + 0x44], 1
call fcn.00401310
cmp dword [esp + 0x2c], 0x10
jb 0x4138bb
mov eax, dword [esp + 0x18]
push eax
call fcn.0041e69d
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.0041b440
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x413900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
push 0
mov esi, ecx
push 0x42a46c
mov ecx, edi
call fcn.00401b80
push 0
lea ecx, [esp + 0x10]
call fcn.0041b3f0
push 0
push 1
push 0x17f
push 0x28
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x4c], 0
call fcn.00413030
mov ebp, eax
test ebp, ebp
jne 0x4139b5
mov eax, dword [esp + 0x10]
cmp eax, 1
jbe 0x4139b5
mov ecx, dword [esp + 0xc]
dec eax
push eax
inc ecx
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00413410
push 0xffffffffffffffff
push ebp
push eax
mov ecx, edi
mov byte [esp + 0x44], 1
call fcn.00401310
cmp dword [esp + 0x2c], 0x10
jb 0x4139a0
mov eax, dword [esp + 0x18]
push eax
call fcn.0041e69d
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.0041b440
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 4

Function at 0x4139e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
push edi
mov edi, dword [esp + 0x48]
push 0
mov esi, ecx
push 0x42a46c
mov ecx, edi
call fcn.00401b80
push 0
lea ecx, [esp + 0x10]
call fcn.0041b3f0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x48], 0
call fcn.00412dd0
mov ebp, eax
test ebp, ebp
jne 0x413a9c
movzx ecx, word [esp + 0x4c]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jbe 0x413a9c
sub eax, ecx
push eax
mov eax, dword [esp + 0x10]
add ecx, eax
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00413410
push 0xffffffffffffffff
push ebp
push eax
mov ecx, edi
mov byte [esp + 0x44], 1
call fcn.00401310
cmp dword [esp + 0x2c], 0x10
jb 0x413a87
mov edx, dword [esp + 0x18]
push edx
call fcn.0041e69d
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.0041b440
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 0x10
Function at 0x413ad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
push edi
mov edi, dword [esp + 0x48]
push 0
mov esi, ecx
push 0x42a46c
mov ecx, edi
call fcn.00401b80
push 0
lea ecx, [esp + 0x10]
call fcn.0041b3f0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x48], 0
call fcn.00412dd0
mov ebp, eax
test ebp, ebp
jne 0x413b8e
movzx ecx, word [esp + 0x4c]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jbe 0x413b8e
sub eax, ecx
shr eax, 1
push eax
mov eax, dword [esp + 0x10]
add ecx, eax
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004134d0
push 0xffffffffffffffff
push ebp
push eax
mov ecx, edi
mov byte [esp + 0x44], 1
call fcn.00401310
cmp dword [esp + 0x2c], 0x10
jb 0x413b79
mov edx, dword [esp + 0x18]
push edx
call fcn.0041e69d
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.0041b440
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 0x10

Function at 0x414190
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x427fa9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x408
push esi
push edi
mov edi, ecx
lea esi, [edi + 8]
mov dword [edi], 0x42b95c
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov dword [esp + 8], edi
mov byte [esi + 4], 0
mov eax, dword [esp + 0x420]
push 0x3e8
lea ecx, [esp + 0x2c]
push ecx
push eax
mov dword [esp + 0x424], 0
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.004140a0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [esp + 0x424], 1
call fcn.00401310
cmp dword [esp + 0x24], 0x10
jb 0x41422e
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041e69d
add esp, 4
mov ecx, dword [esp + 0x410]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x414
ret 4
Function at 0x414820
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42805a
push eax
mov dword fs:[0], esp
sub esp, 0x4ec
push ebx
push esi
mov esi, dword [esp + 0x504]
push edi
push 0xff
lea eax, [esp + 0x14]
push eax
push esi
xor edi, edi
call dword [sym.imp.USER32.dll_GetClassNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.SysTabControl32
lea ecx, [esp + 0x14]
push ecx
call ebx
test eax, eax
jne 0x414898
push 0x34
call fcn.0041e212
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov dword [esp + 0x500], edi
je 0x414918
push esi
mov ecx, eax
call fcn.00414450
jmp 0x41491e
push str.ComboBox
lea edx, [esp + 0x14]
push edx
call ebx
test eax, eax
jne 0x4148cf
push 0x34
call fcn.0041e212
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov dword [esp + 0x500], 1
je 0x414918
push esi
mov ecx, eax
call fcn.004145c0
jmp 0x41491e
push 0x3e8
lea eax, [esp + 0x114]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jle 0x41491c
cmp byte [esp + 0x110], 0x7e
jne 0x41491c
push 0x24
call fcn.0041e212
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov dword [esp + 0x500], 2
je 0x414918
push esi
mov ecx, eax
call fcn.00414190
jmp 0x41491e
xor eax, eax
jmp 0x41491e
mov eax, edi
mov ecx, dword [esp + 0x4f8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4f8
ret 4
Function at 0x414b40
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b9b8
push 0x41eca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
test edi, edi
je 0x414b98
push edi
call dword [sym.imp.GDI32.dll_SaveDC]
mov ebx, eax
mov eax, dword [esi]
push edi
push edi
push 0x14
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x1c]
push ebx
push edi
call dword [sym.imp.GDI32.dll_RestoreDC]
jmp 0x414c43
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x40]
push edx
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], ecx
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov edx, dword [ebp - 0x1c]
push edx
push ebx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x20], eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x20]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
push edi
mov ecx, esi
call fcn.00414b00
push 0xcc0020
push 0
push 0
push edi
mov ecx, dword [ebp - 0x1c]
push ecx
push ebx
push 0
push 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [ebp - 4], 0xffffffff
call fcn.00414c5e
lea edx, [ebp - 0x80]
push edx
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.USER32.dll_EndPaint]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41abb0
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edx, dword [esp + 0x10]
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push eax
push 1
push 3
push 1
mov esi, ecx
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x104]
push 0xf01ff
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [esi + 0x108], eax
jne 0x41ac1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 5
je 0x41ac10
push edi
push str.service_creation_error__d
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret 0xc
push str.service_creation_denied
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, edi
pop edi
pop esi
ret 0xc
Function at 0x41ac30
Capabilities:
Start service

Disassembly:
push esi
push edi
xor esi, esi
push esi
mov edi, ecx
mov eax, dword [edi + 0x108]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x41ac84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 5
je 0x41ac78
cmp esi, 0x420
je 0x41ac73
push esi
push str.service_start_error__d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
mov eax, esi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
push str.service_start_denied
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
mov eax, esi
pop esi
ret

Function at 0x41ac90
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
push ebp
push esi
push edi
xor esi, esi
push esi
push 0x20
push 4
push esi
push 1
push 0x40000000
mov edi, ecx
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41acd0
push str.error_creating_driver_file
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 0x10
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41ad0d
mov eax, dword [esp + 0x10]
push str.driver_resource_not_found
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 0x10
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebp
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 0x10
Function at 0x41ad60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push esi
push edi
mov esi, ecx
push str.start_driver_generic_error
xor edi, edi
push esi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0041ab00
test eax, eax
jne 0x41ae60
mov edi, dword [esp + 0x118]
push ebx
push edi
mov ecx, esi
call fcn.0041ab50
cmp eax, 0x424
jne 0x41ae1f
push ebp
push 0x105
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.drivers_
lea ecx, [esp + 0x18]
push ecx
call ebp
mov ebx, dword [esp + 0x130]
push ebx
lea edx, [esp + 0x18]
push edx
call ebp
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x128]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x128]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0041ac90
test eax, eax
pop ebp
je 0x41ae43
push ebx
lea ecx, [esp + 0x14]
push str.system32drivers_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push edi
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.0041abb0
test eax, eax
jne 0x41ae43
mov ecx, esi
call fcn.0041ac30
test eax, eax
jne 0x41ae36
mov dword [esp + 0xc], 1
mov eax, dword [esi + 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esi + 0x104]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop ebx
pop edi
pop esi
add esp, 0x10c
ret 0x14
mov eax, edi
pop edi
pop esi
add esp, 0x10c
ret 0x14

Function at 0x41bfa0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4288e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
push ebx
push 0x42a46c
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00401b80
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push ebx
push esi
push edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x28], ebx
call ebp
test eax, eax
jne 0x41c058
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041b3f0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push ebx
push esi
push edi
mov byte [esp + 0x58], 1
call ebp
test eax, eax
jne 0x41c04b
mov edx, dword [esp + 0x14]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41c037
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00401b80
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], bl
call fcn.0041b440
mov esi, dword [esp + 0x48]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x24]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401310
cmp dword [esp + 0x34], 0x10
jb 0x41c08c
mov edx, dword [esp + 0x20]
push edx
call fcn.0041e69d
add esp, 4
mov ecx, dword [esp + 0x38]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x41f67b
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42c210
call fcn.00421ac8
mov edi, 0x94
mov eax, edi
call fcn.0041f070
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 [0x436518], ecx
mov eax, dword [esi + 4]
mov dword [0x436524], eax
mov edx, dword [esi + 8]
mov dword [0x436528], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43651c], esi
cmp ecx, 2
je 0x41f6db
or esi, 0x8000
mov dword [0x43651c], esi
shl eax, 8
add eax, edx
mov dword [0x436520], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41f716
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f716
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41f72e
cmp eax, 0x20b
je 0x41f71b
mov dword [ebp - 0x1c], esi
jmp 0x41f742
cmp dword [ecx + 0x84], 0xe
jbe 0x41f716
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41f73c
cmp dword [ecx + 0x74], 0xe
jbe 0x41f716
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00421f8a
pop ecx
test eax, eax
jne 0x41f76e
cmp dword [0x43649c], 1
jne 0x41f75b
call fcn.00423178
push 0x1c
call fcn.00423001
push 0xff
call fcn.00420ffb
pop ecx
pop ecx
call fcn.00423776
mov dword [ebp - 4], esi
call fcn.00422dca
test eax, eax
jge 0x41f787
push 0x1b
call fcn.0041f656
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x437ab4], eax
call fcn.00423654
mov dword [0x436494], eax
call fcn.004235b2
test eax, eax
jge 0x41f7ad
push 8
call fcn.0041f656
pop ecx
call fcn.0042337f
test eax, eax
jge 0x41f7be
push 9
call fcn.0041f656
pop ecx
push 1
call fcn.0042102b
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41f7d4
push eax
call fcn.0041f656
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00423322
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41f7f5
movzx eax, word [ebp - 0x40]
jmp 0x41f7f8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040fbe0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41f816
push edi
call fcn.00421156
call fcn.00421178
jmp 0x41f848
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00421b03
ret
Function at 0x420778
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 0x4207a6
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 0x4207ad
cmp ebx, dword [eax + 4]
jae 0x4207ad
xor eax, eax
jmp 0x42099d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4207be
xor eax, eax
inc eax
jmp 0x42099c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4207d4
cmp ecx, edx
jae 0x420919
cmp dword [eax + 4], 0
je 0x4207dd
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4207c5
cmp dword [ebp + 8], 0
je 0x4207ff
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x420919
cmp eax, esi
jae 0x420919
mov eax, dword [0x4364c0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x420824
cmp dword [esi*4 + 0x4364c8], edi
je 0x42091d
inc esi
cmp esi, eax
jl 0x420812
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x420999
cmp dword [ebp - 8], 0x1000000
jne 0x420999
test byte [ebp - 0xc], 0xcc
je 0x4208a2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x420999
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x420999
cmp word [eax + 0x18], 0x10b
jne 0x420999
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x420999
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4208a2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4208a2
test byte [ecx + 0x27], 0x80
jne 0x420919
push 1
push 0x436508
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4207b6
mov ecx, dword [0x4364c0]
test ecx, ecx
mov edx, ecx
jle 0x4208d6
lea eax, [ecx*4 + 0x4364c4]
cmp dword [eax], edi
je 0x4208d6
dec edx
sub eax, 4
test edx, edx
jg 0x4208ca
test edx, edx
jne 0x420907
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4208e3
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4208fb
lea eax, [edx*4 + 0x4364c8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4208e9
cmp ecx, 0x10
jge 0x420907
inc ecx
mov dword [0x4364c0], ecx
push 0
push 0x436508
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4207b6
xor eax, eax
jmp 0x42099c
test esi, esi
jle 0x4207b6
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x436508
call ebx
test eax, eax
jne 0x4207b6
cmp dword [esi*4 + 0x4364c8], edi
je 0x420973
mov eax, dword [0x4364c0]
lea esi, [eax - 1]
test esi, esi
jl 0x420961
cmp dword [esi*4 + 0x4364c8], edi
je 0x42095d
dec esi
jns 0x420951
test esi, esi
jge 0x420971
cmp eax, 0x10
jge 0x42096c
inc eax
mov dword [0x4364c0], eax
lea esi, [eax - 1]
jmp 0x420973
je 0x42098b
xor ecx, ecx
test esi, esi
jl 0x42098b
lea eax, [ecx*4 + 0x4364c8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x420979
push 0
push 0x436508
call ebx
jmp 0x4207b6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret