Function at 0x14006f170
Capabilities:
Accept command line arguments
Create thread
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
lea rcx, str.PB_DEBUGGER_Communication
xor r15d, r15d
mov dword [0x140106bc4], r15d
call sub.msvcrt.dll_getenv
lea rsi, [0x1400cda90]
mov rdi, rax
test rax, rax
je 0x14006f2b5
lea edx, [r15 + 0x3b]
mov rcx, rax
call sub.msvcrt.dll_strchr
mov r11, rax
test rax, rax
je 0x14006f1c8
mov byte [rax], r15b
inc r11
jmp 0x14006f1cb
mov r11, rsi
lea r14, [0x1401021b0]
mov ebx, r15d
mov r9, r14
nop dword [rax + rax]
mov r10, qword [r9]
mov r8, rdi
mov rax, qword [r10]
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14006f203
inc rax
test ecx, ecx
jne 0x14006f1f0
test edx, edx
je 0x14006f21b
inc ebx
add r9, 8
movsxd rax, ebx
cmp rax, 4
jb 0x14006f1e0
jmp 0x14006f65d
mov qword [0x140107468], r10
test r11, r11
je 0x14006f677
mov rcx, r11
call qword [r10 + reloc.WS2_32.dll_recv]
test eax, eax
je 0x14006f677
movsxd rax, ebx
mov dword [0x140106bc4], 1
mov rax, qword [r14 + rax*8]
cmp dword [rax + 8], r15d
jne 0x14006f2a6
lea rcx, str.PB_DEBUGGER_Options
call sub.msvcrt.dll_getenv
test rax, rax
je 0x14006f2a6
lea rdx, [0x140107444]
lea r9, [0x140106bcc]
lea r8, [0x140106bc8]
mov qword [rsp + 0x28], rdx
lea rdx, [0x140106bd0]
mov rcx, rax
mov qword [rsp + 0x20], rdx
lea rdx, str._d__d__d__d
call sub.msvcrt.dll_sscanf
lea rcx, str.PB_DEBUGGER_Options
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rcx, str.PB_DEBUGGER_Communication
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov qword [0x140107870], r15
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
test rax, rax
je 0x14006f568
mov rdx, qword [0x14010c700]
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rax]
lea rdx, [rdx + 1]
lea rax, [rax + 1]
mov byte [rdx - 1], cl
test cl, cl
jne 0x14006f2e0
mov rbx, qword [0x14010c700]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rbx + rax], r15b
jne 0x14006f300
lea rsi, [rbx + 1]
add rsi, rax
mov byte [rsi], r15b
cmp byte [rbx], r15b
je 0x14006f568
mov qword [rsp + 0x58], rbp
lea r14, str.NetworkClient
lea rbp, str.NetworkServer
nop
cmp byte [rbx], 0x20
jne 0x14006f33d
inc rbx
cmp byte [rbx], 0x20
je 0x14006f335
cmp byte [rbx], r15b
je 0x14006f563
mov rdi, rbx
nop dword [rax]
cmp byte [rbx], 0x20
je 0x14006f35d
inc rbx
cmp byte [rbx], r15b
jne 0x14006f350
cmp byte [rbx], r15b
je 0x14006f368
mov byte [rbx], r15b
inc rbx
lea rdx, [0x1400d2708]
mov rcx, rdi
call sub.msvcrt.dll__stricmp
test eax, eax
je 0x14006f553
lea rdx, [0x1400d2718]
mov rcx, rdi
call sub.msvcrt.dll__stricmp
test eax, eax
je 0x14006f553
lea rdx, str._DEBUGLISTEN
mov r8d, reloc.WS2_32.dll_listen
mov rcx, rdi
call sub.msvcrt.dll__strnicmp
test eax, eax
jne 0x14006f3d4
lea rcx, [rdi + 0xd]
mov rdx, rsi
mov qword [0x140107870], rbp
sub rdx, rcx
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x14006f3c0
jmp 0x14006f55a
lea rdx, str.__debuglisten
mov r8d, reloc.WS2_32.dll_ntohl
mov rcx, rdi
call sub.msvcrt.dll__strnicmp
test eax, eax
jne 0x14006f414
lea rcx, [rdi + 0xe]
mov rdx, rsi
mov qword [0x140107870], rbp
sub rdx, rcx
nop
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x14006f400
jmp 0x14006f55a
lea rdx, str._DEBUGCONNECT
mov r8d, reloc.WS2_32.dll_ntohl
mov rcx, rdi
call sub.msvcrt.dll__strnicmp
test eax, eax
jne 0x14006f454
lea rcx, [rdi + 0xe]
mov rdx, rsi
mov qword [0x140107870], r14
sub rdx, rcx
nop
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x14006f440
jmp 0x14006f55a
lea rdx, str.__debugconnect
mov r8d, reloc.WS2_32.dll_ntohs
mov rcx, rdi
call sub.msvcrt.dll__strnicmp
test eax, eax
jne 0x14006f494
lea rcx, [rdi + 0xf]
mov rdx, rsi
mov qword [0x140107870], r14
sub rdx, rcx
nop
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x14006f480
jmp 0x14006f55a
lea rdx, str._PASSWORD
mov r8d, 0xa
mov rcx, rdi
call sub.msvcrt.dll__strnicmp
test eax, eax
jne 0x14006f4f3
lea rcx, [rsi - 1]
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x14006f4b1
movzx eax, word [0x1400d2774]
mov word [rcx], ax
lea rcx, [rsi - 1]
nop dword [rax]
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x14006f4d0
xor edx, edx
nop dword [rax]
movzx eax, byte [rdi + rdx + 0xa]
lea rdx, [rdx + 1]
mov byte [rcx + rdx - 1], al
test al, al
jne 0x14006f4e0
jmp 0x14006f55a
lea rdx, str.__password
mov r8d, reloc.WS2_32.dll_inet_addr
mov rcx, rdi
call sub.msvcrt.dll__strnicmp
test eax, eax
jne 0x14006f55a
lea rcx, [rsi - 1]
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x14006f510
movzx eax, word [0x1400d2774]
mov word [rcx], ax
lea rcx, [rsi - 1]
nop dword [rax + rax]
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x14006f530
xor edx, edx
nop dword [rax]
movzx eax, byte [rdi + rdx + 0xb]
lea rdx, [rdx + 1]
mov byte [rcx + rdx - 1], al
test al, al
jne 0x14006f540
jmp 0x14006f55a
mov qword [0x140107870], rbp
cmp byte [rbx], r15b
jne 0x14006f330
mov rbp, qword [rsp + 0x58]
mov rax, qword [0x140107870]
test rax, rax
je 0x14006f59c
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_recv]
test eax, eax
je 0x14006f691
mov rax, qword [0x140107870]
mov dword [0x140106bc4], 1
mov qword [0x140107468], rax
jmp 0x14006f5a9
cmp dword [0x140106bc4], r15d
je 0x14006f649
mov eax, dword [0x140107444]
mov dword [0x140107440], eax
mov eax, r15d
cmp dword [0x140106bc8], eax
setne al
inc eax
mov dword [0x14011cc00], eax
call fcn.140071ab0
lea rcx, [0x14010bee0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14011cbc0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14010c760]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [rsp + 0x50]
lea r8, [0x14006e810]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, [0x14006e7a0]
xor r9d, r9d
mov qword [0x140107458], rax
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140107460], rax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
lea rcx, str._Fatal_Debugger_Error__No_communication_plugin_found_for___s_._n_n
mov rdx, rdi
call sub.msvcrt.dll_printf
mov ecx, 1
call sub.msvcrt.dll_exit
int3
lea rcx, str._Fatal_Debugger_Error__Communication_plugin_failed_to_connect:___s_._n_n
mov rdx, rdi
call sub.msvcrt.dll_printf
mov ecx, 1
call sub.msvcrt.dll_exit
int3
mov ecx, 1
call sub.msvcrt.dll_exit
int3