Function at 0x140051350
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x48]
sub rsp, 0x148
movaps xmmword [rsp + 0x130], xmm6
mov rax, qword [0x1400f80c0]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov r14, r9
mov r12, r8
mov r13, rdx
mov r9, rcx
mov qword [rsp + 0x30], rcx
mov qword [rbp + 0x10], rdx
mov qword [rbp + 0x18], r8
mov qword [rbp + 0x20], r14
mov eax, dword [rcx + 0xc]
xor r15d, r15d
cmp eax, 4
jle 0x140051690
movups xmm0, xmmword [0x1400e2428]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [0x1400e2438]
movups xmmword [rbp - 0x10], xmm1
movsd xmm0, qword [0x1400e2448]
movsd qword [rbp], xmm0
mov eax, dword [0x1400e2450]
mov dword [rbp + 8], eax
mov ecx, r15d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140051522
movdqa xmm5, xmmword [0x1400e4650]
movdqa xmm4, xmmword [0x1400e4710]
movdqa xmm6, xmmword [0x1400e4670]
movdqa xmm0, xmmword [0x1400e4720]
movdqa xmmword [rbp - 0x30], xmm0
lea rdx, [rbp - 0x1c]
mov r8d, dword [rbp - 0x30]
nop dword [rax]
nop dword [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, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400e4700]
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, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400e4700]
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, 0x28
jl 0x140051420
cmp ecx, 0x2c
jge 0x14005155b
movsxd rax, ecx
lea r8, [rbp - 0x20]
add r8, rax
nop dword [rax]
mov eax, 0x94f2095
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, cl
sub al, dl
add al, 0x34
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x2c
jl 0x140051530
mov rcx, qword [r9]
add rcx, 0x218
lea rax, [rbp - 0x20]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r15b
jne 0x140051570
mov rax, qword [rcx + 0x18]
cmp rbx, rax
ja 0x1400515a7
mov rdi, rcx
cmp rax, 0xf
jbe 0x14005158e
mov rdi, qword [rcx]
mov qword [rcx + 0x10], rbx
mov r8, rbx
lea rdx, [rbp - 0x20]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], r15b
jmp 0x1400515b4
lea r9, [rbp - 0x20]
mov rdx, rbx
call fcn.140053620
nop
mov rdx, qword [r13 + 0x18]
cmp rdx, 0xf
jbe 0x1400515ef
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r13]
jb 0x1400515ea
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140051b6e
mov rcx, r8
call fcn.1400c6110
mov byte [r13], 0
mov qword [r13 + 0x18], reloc.WS2_32.dll_ntohs
mov qword [r13 + 0x10], r15
mov rdx, qword [r12 + 0x18]
cmp rdx, 0xf
jbe 0x14005163c
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r12]
jb 0x140051637
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140051b75
mov rcx, r8
call fcn.1400c6110
mov byte [r12], 0
mov qword [r12 + 0x18], reloc.WS2_32.dll_ntohs
mov qword [r12 + 0x10], r15
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x140051689
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r14]
jb 0x140051684
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140051b7c
mov rcx, r8
call fcn.1400c6110
xor al, al
jmp 0x140051b36
inc eax
mov dword [rcx + 0xc], eax
mov rsi, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rbp - 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
xor r8d, r8d
lea rdx, [0x1400dac75]
lea rcx, [rsp + 0x38]
call fcn.14000c490
nop
lea rax, [rsp + 0x58]
mov qword [rbp - 0x40], rax
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.140006780
mov rdi, rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x38], rax
mov rdx, r12
lea rcx, [rsp + 0x78]
call fcn.140006780
mov rbx, rax
mov rdx, r13
lea rcx, [rbp - 0x68]
call fcn.140006780
nop
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9, rdi
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.140072fa0
mov rdi, qword [rsp + 0x30]
mov rdx, qword [rdi]
cmp byte [rdx + 0x210], 0
jne 0x14005173c
mov byte [rdi + 8], 0
jmp 0x1400515b4
add rdx, 0x140
lea rcx, [rdi + 0x10]
call fcn.140053060
lea rbx, [rdi + 0x30]
cmp rbx, r14
je 0x1400517ad
mov rsi, qword [r14 + 0x10]
mov r9, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x140051766
mov r9, qword [r14]
mov rcx, qword [rbx + 0x18]
cmp rsi, rcx
ja 0x1400517a2
mov rax, rbx
mov qword [rsp + 0x30], rbx
cmp rcx, 0xf
jbe 0x140051785
mov rax, qword [rbx]
mov qword [rsp + 0x30], rax
mov qword [rbx + 0x10], rsi
mov r8, rsi
mov rdx, r9
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [rsp + 0x30]
mov byte [rsi + rax], 0
jmp 0x1400517ad
mov rdx, rsi
mov rcx, rbx
call fcn.140053620
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140006780
mov r8, rax
lea rdx, [rsp + 0x58]
call fcn.140052510
mov rsi, rax
lea rbx, [rdi + 0x50]
cmp rbx, rax
je 0x140051835
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140051809
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140051804
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140051869
mov rcx, r8
call fcn.1400c6110
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
movups xmm0, xmmword [rsi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140051875
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051870
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140051870
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c6110
lea rax, [rsp + 0x38]
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
xor r8d, r8d
lea rdx, [0x1400dac75]
lea rcx, [rsp + 0x38]
call fcn.14000c490
nop
lea rax, [rbp - 0x68]
mov qword [rbp - 0x38], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], r15
xor r8d, r8d
lea rdx, [0x1400dac75]
lea rcx, [rbp - 0x68]
call fcn.14000c490
nop
lea rax, [rbp - 0x20]
mov qword [rbp - 0x40], rax
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.140006780
mov rbx, rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
mov r8d, 8
lea rdx, str.username
lea rcx, [rsp + 0x78]
call fcn.14000c490
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.settings.json
lea rcx, [rsp + 0x58]
call fcn.14000c490
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.14004fad0
lea rax, [rsp + 0x58]
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
xor r8d, r8d
lea rdx, [0x1400dac75]
lea rcx, [rsp + 0x58]
call fcn.14000c490
nop
lea rax, [rsp + 0x78]
mov qword [rbp - 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
xor r8d, r8d
lea rdx, [0x1400dac75]
lea rcx, [rsp + 0x78]
call fcn.14000c490
nop
lea rax, [rbp - 0x20]
mov qword [rbp - 0x40], rax
mov rdx, r12
lea rcx, [rbp - 0x20]
call fcn.140006780
mov rbx, rax
lea rax, [rbp - 0x68]
mov qword [rbp - 0x48], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], r15
mov r8d, 8
lea rdx, str.password
lea rcx, [rbp - 0x68]
call fcn.14000c490
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.settings.json
lea rcx, [rsp + 0x38]
call fcn.14000c490
nop
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rbx
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x38]
call fcn.14004fad0
mov byte [rdi + 8], 1
mov rdx, qword [r13 + 0x18]
cmp rdx, 0xf
jbe 0x140051a9e
mov rcx, qword [r13]
inc rdx
cmp rdx, 0x1000
jb 0x140051a99
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140051b6e
mov rcx, r8
call fcn.1400c6110
mov qword [r13 + 0x10], r15
mov qword [r13 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r13], 0
mov rdx, qword [r12 + 0x18]
cmp rdx, 0xf
jbe 0x140051aeb
mov rcx, qword [r12]
inc rdx
cmp rdx, 0x1000
jb 0x140051ae6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140051b75
mov rcx, r8
call fcn.1400c6110
mov qword [r12 + 0x10], r15
mov qword [r12 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r12], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x140051b34
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140051b2f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140051b7c
mov rcx, r8
call fcn.1400c6110
mov al, 1
mov byte [r14], 0
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov qword [r14 + 0x10], r15
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.1400c60f0
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x148
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3