Function at 0x140059c90
Capabilities:
Create thread
Encode data using xor
Execute command
Set console window title
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x120
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
mov rax, qword [0x14008fd48]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor edi, edi
lea rcx, str.Color_0A
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.NYProxy____Logs
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
nop
lea r8, str.LOCALAPPDATA
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__dupenv_s]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov rdx, qword [rsp + 0x80]
mov r12, 0xffffffffffffffff
mov r8, r12
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140059d30
lea rcx, [rsp + 0x50]
call fcn.140003360
nop
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rax, 0x1a
jb 0x140059d96
lea rax, [rcx + 0x1a]
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x50]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x50]
add rbx, rcx
mov r8d, 0x1a
lea rdx, str.Growtopiacacheitems.dat
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x1a], 0
lea rax, [rsp + 0x50]
jmp 0x140059db7
mov qword [rsp + 0x20], 0x1a
lea r9, str.Growtopiacacheitems.dat
xor r8d, r8d
lea edx, [r8 + 0x1a]
lea rcx, [rsp + 0x50]
call fcn.140002af0
movups xmm7, xmmword [rax]
movups xmmword [rsp + 0xc0], xmm7
movups xmm6, xmmword [rax + 0x10]
movups xmmword [rsp + 0xd0], xmm6
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140059e1d
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059e18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059e18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140069974
movdqa xmm0, xmmword [0x140072ff0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea r15, [rsp + 0xc0]
movq r14, xmm7
movdqa xmm0, xmm6
psrldq xmm0, 8
movq r13, xmm0
cmp r13, 0x10
cmovae r15, r14
movabs rbx, 0x7fffffffffffffff
movq rsi, xmm6
cmp rsi, rbx
ja 0x14005a385
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
cmp rsi, 0x10
jae 0x140059e9c
mov qword [rsp + 0x40], rsi
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x30], xmm0
jmp 0x140059eea
mov rax, rsi
or rax, 0xf
cmp rax, rbx
ja 0x140059eb7
mov rbx, rax
mov ecx, reloc.WS2_32.dll_shutdown
cmp rax, rcx
cmovb rbx, rcx
mov rdx, rbx
add rdx, 1
cmovb rdx, r12
lea rcx, [rsp + 0x30]
call fcn.140003180
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rbx
lea r8, [rsi + 1]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rsp + 0x30]
lea rcx, [0x140093f50]
call fcn.14004cdc0
nop
cmp r13, 0x10
jb 0x140059f37
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140059f2e
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059f2e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140069974
nop
jmp 0x140059f3f
mov edx, 1
lea rcx, [0x14004fe50]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
movups xmm0, xmmword [0x140079df8]
movups xmmword [rsp + 0x50], xmm0
movzx eax, byte [0x140079e08]
mov byte [rsp + 0x60], al
mov ecx, edi
mov ebx, 4
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14005a0c0
movdqa xmm5, xmmword [0x14007a5c0]
movdqa xmm4, xmmword [0x14007a610]
movd xmm6, ebx
movdqa xmm7, xmmword [0x14007a5e0]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [str.6666666666666666O]
movdqa xmmword [rsp + 0x70], xmm0
lea rdx, [rsp + 0x54]
mov r8d, dword [rsp + 0x70]
nop word [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14007a5f0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14007a5f0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x10
jl 0x140059fc0
cmp ecx, 0x11
jge 0x14005a0fc
movsxd rax, ecx
lea r8, [rsp + 0x50]
add r8, rax
nop dword [rax + rax]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
sub al, dl
add al, 0x36
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x11
jl 0x14005a0d0
lea rdx, [rsp + 0x50]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000a160
call fcn.140003850
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohl
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.Not_Connected.]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x140079e68]
mov dword [rsp + 0x38], eax
movzx eax, word [0x140079e6c]
mov word [rsp + 0x3c], ax
mov byte [rsp + 0x3e], 0
lea rcx, [rsp + 0x30]
call fcn.1400038a0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14005a1a0
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a19b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005a19b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140069974
call fcn.140057160
mov ecx, 8
call fcn.140069938
test rax, rax
je 0x14005a1c0
lea rcx, [0x140057b80]
mov qword [rax], rcx
jmp 0x14005a1c3
mov rax, rdi
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14000d9c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x90], rax
test rax, rax
je 0x14005a373
mov edx, 0xa
lea rcx, str.HTTPS_server_is_running._n
call fcn.140045a10
cmp byte [0x1400936f3], 0
jne 0x14005a23b
mov edx, ebx
lea rcx, str.Failed_to_edit_Hosts_File_n
call fcn.140045a10
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, 0xa
lea rcx, str.Successfully_edited_Hosts_file_n
call fcn.140045a10
cmp dword [rsp + 0x98], 0
je 0x14005a38b
movaps xmm0, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x14005a38b
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x90], xmm0
call fcn.1400099f0
mov rcx, qword [0x1400937b8]
call fcn.140061050
test al, al
je 0x14005a310
mov edx, 0xa
lea rcx, str.Server__client_proxy_is_running._n
call fcn.140045a10
mov edx, 0xa
lea rcx, str.You_can_now_connect_to_Growtopia_n_n
call fcn.140045a10
mov edx, listen
lea rcx, str.If_Proxy_doesnt_connect_restart_Growtopia_n
call fcn.140045a10
nop
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [0x1400937b8]
call fcn.14005f760
mov qword [rsp + 0x80], 1
lea rcx, [rsp + 0x80]
call fcn.140011a60
jmp 0x14005a2d0
mov edx, ebx
lea rcx, str.Failed_to_start_server_or_proxy._n
call fcn.140045a10
nop
cmp dword [rsp + 0x98], 0
je 0x14005a330
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140069a90
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
ret
mov dword [rsp + 0x98], edi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
call fcn.140003160
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3