Function at 0x4029e2
Capabilities:
Create process on windows
Read file via mapping

Disassembly:
push 0x7c
push 0x42a438
call fcn.0041fd50
mov ebx, edx
mov dword [ebp - 0x24], ebx
cmp ebx, 0x1664
jae 0x402a02
xor eax, eax
jmp 0x402c96
push ecx
xor esi, esi
push esi
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x4029fb
push ebx
push esi
push esi
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
jne 0x402a35
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4029fb
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], edx
mov edi, edx
mov dword [ebp - 0x50], edi
mov ebx, edx
mov dword [ebp - 0x4c], ebx
mov ecx, dword [esi + 0x165c]
lea eax, [ecx + 0x166c]
cmp dword [ebp - 0x24], eax
jb 0x402ae5
mov eax, dword [ecx + esi + 0x1664]
test eax, eax
je 0x402ae5
shr eax, 2
mov dword [ebp - 0x2c], eax
cmp eax, 0x2000
jae 0x402ca6
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
add ecx, 0x1668
add ecx, esi
mov dword [ebp - 0x40], ecx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x28], edx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x48], edx
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x44], edx
xor edx, edx
cmp dword [esi + 0x1640], edx
je 0x402ac7
push ecx
lea eax, [esi + 0x214]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x48]
call fcn.00402cbc
mov eax, dword [ebp - 0x3c]
xor edx, edx
cmp dword [esi + 0x1644], edx
je 0x402ae5
push eax
lea eax, [esi + 0xa14]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x48]
call fcn.00402cbc
xor edx, edx
mov eax, dword [esi + 0x1640]
test eax, eax
je 0x402b13
mov edi, dword [ebp - 0x38]
test edi, edi
jne 0x402afc
lea edi, [esi + 0x214]
mov dword [ebp - 0x50], edi
test eax, eax
je 0x402b13
mov ebx, dword [ebp - 0x34]
test ebx, ebx
jne 0x402b10
lea ebx, [esi + 0xa14]
mov dword [ebp - 0x4c], ebx
cmp dword [ebp + 8], 0
je 0x402c06
mov dword [ebp - 0x8c], 0x3c
push 0x38
push edx
lea eax, [ebp - 0x88]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [esi + 0x1634]
mov dword [ebp - 0x5c], eax
mov edx, dword [esi + 4]
mov dword [ebp - 0x88], edx
mov ecx, dword [esi + 0x1638]
mov dword [ebp - 0x58], ecx
mov eax, dword [esi + 0x1630]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [esi + 8]
mov dword [ebp - 0x84], eax
mov eax, dword [esi + 0x141c]
mov dword [ebp - 0x70], eax
xor ecx, ecx
cmp dword [esi + 0x164c], ecx
je 0x402b85
lea eax, [esi + 0x1428]
mov dword [ebp - 0x64], eax
cmp dword [esi + 0x1648], ecx
je 0x402b96
lea eax, [esi + 0x1214]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], edi
cmp dword [esi + 0x1658], ecx
je 0x402baa
lea eax, [esi + 0x1660]
mov dword [ebp - 0x68], eax
cmp dword [esi + 0x163c], ecx
je 0x402bb8
lea eax, [esi + 0xc]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], ebx
or edx, 0x1000
mov dword [ebp - 0x88], edx
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [esi + 0x1654], eax
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x1420], eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [esi + 0x1650], eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1654]
mov dword [ebp - 0x1c], eax
jmp 0x402c4b
mov edx, dword [esi + 0x1648]
lea eax, [esi + 0x1214]
neg edx
sbb edx, edx
and edx, eax
mov ecx, dword [esi + 0x163c]
lea eax, [esi + 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
push dword [esi + 0x141c]
push edx
push ebx
push edi
push ecx
push dword [esi + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [esi + 0x1420], eax
xor ecx, ecx
cmp eax, 0x20
setg cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
jmp 0x402c65
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x402c74
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x402c83
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov dword [ebp - 0x24], str.buffer_too_large
push 0x42b238
lea eax, [ebp - 0x24]
push eax
call sub.msvcrt.dll__CxxThrowException
int3