Function at 0x4348b0
Capabilities:
Get system information on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe60
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], eax
mov byte [ebp - 5], 0
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x24
call fcn.00405114
lea eax, [ebp - 0x68]
push eax
call sub.kernel32.dll_GetNativeSystemInfo
cmp word [ebp - 0x68], 9
sete byte [ebp - 7]
cmp byte [ebp - 7], 0
je 0x43491b
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsWow64Process
test eax, eax
jne 0x43490f
call sub.kernel32.dll_GetLastError
mov dword [0x43d010], eax
jmp 0x434a9c
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
jmp 0x43491f
mov byte [ebp - 6], 1
cmp byte [ebp - 6], 0
je 0x434a9c
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x18
call fcn.00405114
push 0
push 0x18
lea eax, [ebp - 0x44]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ntdll.dll_NtQueryInformationProcess
test eax, eax
jne 0x434a9c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
add dword [ebp - 0x14], 8
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x434a9c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0x40
lea eax, [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x434a9c
cmp word [ebp - 0xa8], 0x5a4d
jne 0x434a9c
cmp dword [ebp - 0x6c], 0
jle 0x434a9c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x6c]
add dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0xf8
lea eax, [ebp - 0x1a0]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x434a9c
cmp dword [ebp - 0x1a0], 0x4550
jne 0x434a9c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x178]
add dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
push 4
push 1
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtectEx
test eax, eax
je 0x434a9c
mov eax, dword [0x43d118]
mov al, byte [eax + 0x10]
mov byte [ebp - 0x25], al
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [ebp - 0x25]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
jne 0x434a72
call sub.kernel32.dll_GetLastError
mov dword [0x43d010], eax
jmp 0x434a9c
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtectEx
push 1
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FlushInstructionCache
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret