Function at 0x140051b90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
movaps xmmword [rsp + 0x140], xmm6
mov rax, qword [0x1400f80c0]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov r14, r8
mov r15, rdx
mov r12, rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov eax, dword [rcx + 0xc]
cmp eax, 4
jle 0x140051e70
movups xmm0, xmmword [0x1400e2428]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [0x1400e2438]
movups xmmword [rbp - 0x18], xmm1
movsd xmm0, qword [0x1400e2448]
movsd qword [rbp - 8], xmm0
mov eax, dword [0x1400e2450]
mov dword [rbp], eax
xor esi, esi
mov ecx, esi
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140051d52
movdqa xmm5, xmmword [0x1400e4650]
movdqa xmm4, xmmword [0x1400e4710]
movdqa xmm6, xmmword [0x1400e4670]
movdqa xmm0, xmmword [0x1400e4720]
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, [rbp - 0x24]
mov r8d, dword [rbp - 0x50]
nop dword [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 0x140051c50
cmp ecx, 0x2c
jge 0x140051d8b
movsxd rax, ecx
lea r8, [rbp - 0x28]
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 0x140051d60
mov rcx, qword [r12]
add rcx, 0x218
lea rax, [rbp - 0x28]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], sil
jne 0x140051da1
mov rax, qword [rcx + 0x18]
cmp rbx, rax
ja 0x140051dd8
mov rdi, rcx
cmp rax, 0xf
jbe 0x140051dbf
mov rdi, qword [rcx]
mov qword [rcx + 0x10], rbx
mov r8, rbx
lea rdx, [rbp - 0x28]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], sil
jmp 0x140051de5
lea r9, [rbp - 0x28]
mov rdx, rbx
call fcn.140053620
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 0xf
jbe 0x140051e1f
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x140051e1a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400522f3
mov rcx, r8
call fcn.1400c6110
mov byte [r15], 0
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov qword [r15 + 0x10], rsi
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x140051e69
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r14]
jb 0x140051e64
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400522fa
mov rcx, r8
call fcn.1400c6110
xor al, al
jmp 0x1400522b4
inc eax
mov dword [rcx + 0xc], eax
mov rdi, qword [rcx]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140006780
mov rbx, rax
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.140006780
nop
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.140070df0
mov rdx, qword [r12]
cmp byte [rdx + 0x210], 0
jne 0x140051f05
mov byte [r12 + 8], 0
mov rdx, qword [r15 + 0x18]
cmp rdx, 0xf
jbe 0x140051efb
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x140051ef6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400522f3
mov rcx, r8
call fcn.1400c6110
xor esi, esi
mov byte [r15], sil
jmp 0x140051e23
add rdx, 0x140
lea rcx, [r12 + 0x10]
call fcn.140053060
lea rax, [rbp - 0x50]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xor esi, esi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
lea r8d, [rsi + 3]
lea rdx, [0x1400e22ec]
lea rcx, [rbp - 0x50]
call fcn.14000c490
nop
lea rax, [rbp + 8]
mov qword [rsp + 0x70], rax
lea rdx, [r12 + 0x10]
lea rcx, [rbp + 8]
call fcn.140006780
mov rbx, rax
lea rax, [rbp - 0x78]
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], rsi
lea r8d, [rsi + 4]
lea rdx, str.user
lea rcx, [rbp - 0x78]
call fcn.14000c490
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea r8d, [rsi + 6]
lea rdx, str.getkey
lea rcx, [rsp + 0x30]
call fcn.14000c490
nop
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x78]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
call fcn.1400527f0
mov rdi, rax
lea rbx, [r12 + 0x30]
cmp rbx, rax
je 0x140052043
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140052017
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140052012
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140052077
mov rcx, r8
call fcn.1400c6110
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140052083
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005207e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005207e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c6110
mov rdx, rbx
lea rcx, [rbp + 8]
call fcn.140006780
mov r8, rax
lea rdx, [rsp + 0x50]
call fcn.140052510
mov rdi, rax
lea rbx, [r12 + 0x50]
cmp rbx, rax
je 0x14005210b
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400520df
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400520da
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005213f
mov rcx, r8
call fcn.1400c6110
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x14005214b
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052146
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052146
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c6110
mov byte [r12 + 8], 1
lea rax, [rbp + 8]
mov qword [rbp - 0x80], rax
mov rdx, r14
lea rcx, [rbp + 8]
call fcn.140006780
mov rdi, rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov r8d, 8
lea rdx, str.password
lea rcx, [rsp + 0x30]
call fcn.14000c490
nop
lea rax, [rbp - 0x28]
mov qword [rsp + 0x78], rax
lea rdx, [r12 + 0x10]
lea rcx, [rbp - 0x28]
call fcn.140006780
mov rbx, rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], rsi
mov r8d, 8
lea rdx, str.username
lea rcx, [rbp - 0x78]
call fcn.14000c490
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.settings.json
lea rcx, [rsp + 0x50]
call fcn.14000c490
nop
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8, rbx
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x50]
call fcn.14004fad0
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 0xf
jbe 0x14005226c
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x140052267
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400522f3
mov rcx, r8
call fcn.1400c6110
mov qword [r15 + 0x10], rsi
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x1400522b2
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x1400522ad
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400522fa
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], rsi
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.1400c60f0
mov rbx, qword [rsp + 0x1a8]
movaps xmm6, xmmword [rsp + 0x140]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
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]
int3