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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x14018d800]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
movdqa xmm1, xmmword [0x140173890]
movdqu xmmword [rbp - 0x18], xmm1
mov word [rbp - 0x28], ax
mov r8d, dword [rdx]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
lea rcx, [rbp - 8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov ecx, 0x20
mov r13d, reloc.WS2_32.dll_recv
cmp word [rbp - 8], 9
cmove r13d, ecx
mov esi, 0x40
mov ecx, reloc.WS2_32.dll_WSASetLastError
cmove esi, ecx
mov dword [rsp + 0x38], esi
lea eax, [r13 + 8]
mov r12d, eax
mov ecx, eax
call fcn.1400fc6b4
mov rdi, rax
mov r8d, r12d
xor edx, edx
mov rcx, rax
call fcn.140125410
lea eax, [rsi + 0x10]
mov r14d, eax
mov qword [rsp + 0x30], r14
mov ecx, eax
call fcn.1400fc6b4
mov rsi, rax
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.140125410
xorps xmm0, xmm0
lea rcx, str.ntdll.dll
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
cmp dword [rbp - 0x30], 0
je 0x140007b84
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtWow64QueryInformationProcess64
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea r9d, [r14 + 0x58]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, r15
call rax
test eax, eax
je 0x140007a15
xor r9d, r9d
xor r8d, r8d
lea rdx, str.NtQueryInformationProcess_failed
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
jmp 0x140007d2c
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtWow64ReadVirtualMemory64
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
xor ecx, ecx
mov qword [rsp + 0x20], rcx
mov r9, r12
mov r8, rdi
mov rdx, qword [rbp - 0x80]
mov rcx, r15
call r14
test eax, eax
je 0x140007a8a
lea rdx, str.PEB_NtWow64ReadVirtualMemory64_failed
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
jmp 0x140007d2c
mov eax, r13d
xor r13d, r13d
mov qword [rsp + 0x20], r13
mov r9, qword [rsp + 0x30]
mov r8, rsi
mov rdx, qword [rax + rdi]
mov rcx, r15
call r14
test eax, eax
je 0x140007ae4
lea rdx, str.processParameters_NtWow64ReadVirtualMemory64_failed
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
jmp 0x140007d2c
mov edi, dword [rsp + 0x38]
movzx ecx, word [rdi + rsi + 2]
call fcn.1400fc6b4
mov r12, rax
movzx r9d, word [rdi + rsi + 2]
mov qword [rsp + 0x20], r13
mov r8, rax
mov rdx, qword [rdi + rsi + 8]
mov rcx, r15
call r14
test eax, eax
je 0x140007b1b
lea rdx, str.pCommandLine_NtWow64ReadVirtualMemory64_failed
jmp 0x140007ab2
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov r14, 0xffffffffffffffff
nop word [rax + rax]
inc r14
cmp word [r12 + r14*2], r13w
jne 0x140007b30
movabs rdi, 0x7ffffffffffffffe
cmp r14, rdi
ja 0x140007d66
cmp r14, 7
ja 0x140007cb3
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
lea rdi, [r14 + r14]
mov r8, rdi
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.140124d70
mov word [rsp + rdi + 0x40], r13w
jmp 0x140007d12
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtQueryInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov qword [rsp + 0x20], rcx
lea r9d, [rcx + 0x30]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, r15
call rax
test eax, eax
je 0x140007bc1
lea rdx, str.NtQueryInformationProcess_failed
jmp 0x140007a57
xor eax, eax
mov qword [rsp + 0x20], rax
mov r9, r12
mov r8, rdi
mov rdx, qword [rsp + 0x78]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140007bec
lea rdx, str.PEB_ReadProcessMemory_failed
jmp 0x140007a57
mov eax, r13d
xor r13d, r13d
mov qword [rsp + 0x20], r13
mov r9, r14
mov r8, rsi
mov rdx, qword [rax + rdi]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140007c1a
lea rdx, str.processParameters_ReadProcessMemory_failed
jmp 0x140007ab2
mov edi, dword [rsp + 0x38]
movzx ecx, word [rdi + rsi + 2]
call fcn.1400fc6b4
mov r12, rax
movzx r9d, word [rdi + rsi + 2]
mov qword [rsp + 0x20], r13
mov r8, rax
mov rdx, qword [rdi + rsi + 8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140007c57
lea rdx, str.pCommandLine_ReadProcessMemory_failed
jmp 0x140007ab2
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov r14, 0xffffffffffffffff
inc r14
cmp word [r12 + r14*2], r13w
jne 0x140007c66
movabs rdi, 0x7ffffffffffffffe
cmp r14, rdi
ja 0x140007d60
cmp r14, 7
ja 0x140007cb3
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
lea rdi, [r14 + r14]
mov r8, rdi
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.140124d70
mov word [rsp + rdi + 0x40], r13w
jmp 0x140007d12
mov rax, r14
or rax, 7
cmp rax, rdi
ja 0x140007cce
mov ecx, 0xa
mov rdi, rax
cmp rax, rcx
cmovb rdi, rcx
inc rdi
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14000e1b0
lea rcx, [rdi - 1]
mov rsi, rax
lea rdi, [r14 + r14]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x40], rax
mov r8, rdi
mov rdx, r12
mov rcx, rax
call fcn.140124d70
mov word [rsi + rdi], r13w
movups xmm7, xmmword [rsp + 0x50]
movups xmm6, xmmword [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmmword [rbx], xmm6
movups xmmword [rbx + 0x10], xmm7
mov rax, rbx
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.1400f3d30
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140002050
nop
call fcn.140002050
int3