Function at 0x140022230
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rdi, rdx
mov esi, ecx
xor ebx, ebx
call fcn.1400fe8a0
mov r13, rax
test rax, rax
je 0x1400229b5
lea rdx, str.Content_Type:_application_json
xor ecx, ecx
call fcn.1400fec10
mov r14, rax
mov qword [rbp + 0xc0], rax
cmp qword [rdi + 0x18], 7
jbe 0x1400222a3
mov rdx, qword [rdi]
mov rcx, qword [rdi + 0x10]
lea r8, [rdx + rcx*2]
mov rdi, rdx
jmp 0x1400222ab
mov rax, qword [rdi + 0x10]
lea r8, [rdi + rax*2]
mov rdx, rdi
lea rcx, [rbp + 0x38]
call fcn.140027590
nop
lea rdx, [0x1404e25f0]
mov r8, qword [0x1404e2600]
cmp qword [reloc.WS2_32.dll_ntohs], 0xf
jbe 0x1400222d7
mov rdx, qword [0x1404e25f0]
add r8, rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
cmp rdx, r8
jne 0x140022306
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
jmp 0x140022314
sub r8, rdx
lea rcx, [rsp + 0x30]
call fcn.140008100
nop
mov edx, esi
lea rcx, [rbp + 0x10]
call fcn.14001e290
mov rsi, rax
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 8
jb 0x1400223c1
lea rax, [r8 + 8]
mov qword [rsi + 0x10], rax
mov rdi, rsi
cmp rcx, 0xf
jbe 0x14002234e
mov rdi, qword [rsi]
lea rax, [0x1401f7780]
mov r12d, 8
lea r15, str._type_:
cmp rax, rdi
jbe 0x140022382
lea rax, [rdi + r8]
cmp r15, rax
ja 0x140022382
cmp rdi, r15
ja 0x14002237a
mov r14, rbx
jmp 0x140022385
mov r14, rdi
sub r14, r15
jmp 0x140022385
mov r14, r12
lea rcx, [rdi + 8]
inc r8
mov rdx, rdi
call fcn.1401a2e10
mov r8, r14
mov rdx, r15
mov rcx, rdi
call fcn.1401a2e10
lea rcx, [rdi + r14]
sub r12, r14
lea rdx, [r15 + 8]
add rdx, r14
mov r8, r12
call fcn.1401a2e10
mov r14, qword [rbp + 0xc0]
jmp 0x1400223e9
mov r12d, 8
mov qword [rsp + 0x28], r12
lea r15, str._type_:
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov edx, r12d
mov rcx, rsi
call fcn.14002ebd0
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rbp], xmm1
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov r8d, listen
lea rdx, str.__message_:_
lea rcx, [rbp - 0x10]
call fcn.140007d70
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0xf
cmova rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x48]
lea rcx, [rbp - 0x30]
call fcn.140007d70
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov r8d, send
lea rdx, str.___username_:_
lea rcx, [rbp - 0x50]
call fcn.140007d70
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140007d70
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov r8d, 2
lea rdx, [0x1401f7754]
lea rcx, [rsp + 0x50]
call fcn.140007d70
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1400225b7
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400225b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400229e6
call fcn.14015d5e8
movdqa xmm6, xmmword [0x1401ff430]
movdqu xmmword [rsp + 0x60], xmm6
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140022605
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022600
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400229ec
call fcn.14015d5e8
movdqu xmmword [rbp - 0x60], xmm6
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x140022649
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022644
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400229f2
call fcn.14015d5e8
movdqu xmmword [rbp - 0x40], xmm6
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x14002268d
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022688
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400229f8
call fcn.14015d5e8
movdqu xmmword [rbp - 0x20], xmm6
mov byte [rbp - 0x30], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x1400226d1
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400226cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400229fe
call fcn.14015d5e8
movdqu xmmword [rbp], xmm6
mov byte [rbp - 0x10], 0
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140022715
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022710
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022a04
call fcn.14015d5e8
movups xmm0, xmmword [0x1401f89a0]
movups xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [0x1401f89b0]
movups xmmword [rbp + 0x20], xmm1
mov eax, dword [0x1401f89c0]
mov dword [rbp + 0x30], eax
movzx eax, byte [0x1401f89c4]
mov byte [rbp + 0x34], al
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140022865
movdqa xmm4, xmmword [0x1401ff610]
movdqa xmm3, xmmword [0x1401ffab0]
movdqa xmm5, xmmword [0x1401ff650]
movdqa xmm0, xmmword [0x1401ff750]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rbp + 0x14]
movdqa xmm7, xmmword [0x1401ff6c0]
mov edx, dword [rsp + 0x50]
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
mov eax, ebx
lea rcx, [rcx + 8]
cmp ebx, 0x20
jl 0x140022781
cmp eax, 0x25
jge 0x14002289c
movsxd rax, ebx
lea r8, [rbp + 0x10]
add r8, rax
nop
mov eax, 0x51eb851f
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
sub al, cl
add al, 0x37
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x25
jl 0x140022870
lea r8, [rbp + 0x10]
mov edx, 0x2712
mov rcx, r13
call fcn.140101950
mov r8, r14
mov edx, 0x2727
mov rcx, r13
call fcn.140101950
lea r8, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova r8, qword [rsp + 0x70]
mov edx, 0x271f
mov rcx, r13
call fcn.140101950
mov rcx, r13
call fcn.1400fe910
test eax, eax
sete bl
mov rcx, r13
call fcn.1400fe870
mov rcx, r14
call fcn.1400fecb0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140022933
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002292e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022a0a
call fcn.14015d5e8
movdqu xmmword [rbp - 0x80], xmm6
mov byte [rsp + 0x70], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14002297b
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022975
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022a10
call fcn.14015d5e8
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 0xf
jbe 0x1400229b2
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400229ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400229e0
call fcn.14015d5e8
movzx eax, bl
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140170074
nop
call fcn.140170074
nop
call fcn.140170074
nop
call fcn.140170074
nop
call fcn.140170074
nop
call fcn.140170074
nop
call fcn.140170074
int3
call fcn.140170074
nop
call fcn.140170074
int3