Function at 0x4096a0
Capabilities:
Get system information on windows
Patch process command line

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x489c58
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
xor esi, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, ebx
je 0x409941
lea ecx, [ebp - 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
xor ecx, ecx
mov ax, word [ebp - 0x8c]
cmp ax, 9
setne cl
dec ecx
and ecx, 0x10
add ecx, 0x10
mov dword [ebp - 0x24], ecx
cmp ax, 9
setne bl
dec ebx
and ebx, 0x30
add ebx, 0x40
lea esi, [ecx + 8]
push esi
call fcn.0043e793
mov dword [ebp - 0x20], eax
push esi
push 0
push eax
call fcn.004416b0
lea eax, [ebx + 0x10]
push eax
call fcn.0043e793
mov esi, eax
mov dword [ebp - 0x38], esi
lea eax, [ebx + 0x10]
push eax
push 0
push esi
call fcn.004416b0
add esp, 0x20
cmp dword [ebp - 0x30], 0
je 0x409877
push 0x30
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.004416b0
add esp, 0xc
push str.NtWow64ReadVirtualMemory64
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
push str.NtWow64QueryInformationProcess64
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x30
lea ecx, [ebp - 0x68]
push ecx
push 0
push edi
call eax
test eax, eax
jne 0x40993f
push eax
push eax
mov eax, dword [ebp - 0x24]
add eax, 8
push eax
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
push edi
call dword [ebp - 0x28]
test eax, eax
jne 0x40993f
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov eax, dword [edx + eax]
push 0
push 0
lea ecx, [ebx + 0x10]
push ecx
push esi
cdq
push edx
push eax
push edi
call dword [ebp - 0x28]
test eax, eax
jne 0x40993f
movzx ecx, word [ebx + esi + 2]
push ecx
call fcn.0043e793
add esp, 4
mov ecx, eax
mov dword [ebp - 0x1c], ecx
push 0
movzx eax, word [ebx + esi + 2]
cdq
push edx
push eax
push ecx
mov edx, dword [ebx + esi + 0xc]
push edx
mov eax, dword [ebx + esi + 8]
push eax
push edi
call dword [ebp - 0x28]
test eax, eax
jne 0x40993f
cmp dword [ebp - 0x1c], eax
je 0x40993f
push 0x207
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x208
mov edx, dword [ebp + 0xc]
push edx
jmp 0x409930
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
push str.NtQueryInformationProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x18
lea ecx, [ebp - 0x50]
push ecx
push 0
push edi
call eax
test eax, eax
jne 0x40993f
push eax
mov eax, dword [ebp - 0x24]
add eax, 8
push eax
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x40993f
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov eax, dword [ecx + edx]
push 0
lea ecx, [ebx + 0x10]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x40993f
movzx eax, word [ebx + esi + 2]
push eax
call fcn.0043e793
add esp, 4
mov dword [ebp - 0x1c], eax
push 0
movzx ecx, word [ebx + esi + 2]
push ecx
push eax
mov edx, dword [ebx + esi + 4]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x40993f
cmp dword [ebp - 0x1c], 0
je 0x40993f
push 0x207
mov eax, dword [ebp - 0x1c]
push eax
push 0x208
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0043e9ba
mov dword [ebp - 0x2c], 1
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0040996a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret