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

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x110
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov r8d, dword [rsp + 0x120]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x30], 0
jne 0x140016f8f
xor eax, eax
jmp 0x140017225
lea rcx, [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0xd8]
cmp eax, 9
jne 0x140016fb4
mov dword [rsp + 0x40], 0x20
jmp 0x140016fbc
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x4c], eax
movzx eax, word [rsp + 0xd8]
cmp eax, 9
jne 0x140016fdb
mov dword [rsp + 0x44], reloc.WS2_32.dll_WSASetLastError
jmp 0x140016fe3
mov dword [rsp + 0x44], 0x40
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x4c]
add eax, 8
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov ecx, eax
call fcn.140294e08
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x80], rax
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rcx, qword [rsp + 0x80]
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x50]
add eax, 0x10
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov ecx, eax
call fcn.140294e08
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x3c]
mov qword [rsp + 0x88], rax
mov rdi, qword [rsp + 0x68]
xor eax, eax
mov rcx, qword [rsp + 0x88]
rep stosb byte [rdi], al
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x1403528c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x20], 0
mov r9d, 0x30
lea r8, [rsp + 0xa8]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [rsp + 0x90]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x1400170d6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140017225
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140017114
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140017225
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x3c]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140017167
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140017225
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 2]
mov ecx, eax
call fcn.140294e08
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 2]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0x70]
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400171d1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140017225
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 2]
mov ecx, eax
call fcn.14027fa00
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x78], rax
mov r8d, 0xf4240
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call fcn.140295328
mov rcx, qword [rsp + 0x70]
call fcn.140294df4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x110
pop rdi
ret