Function at 0x180037c60
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x18005a080]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r12d, r8d
mov r15, rdx
mov r14, rcx
xor ebx, ebx
test rcx, rcx
je 0x180038293
lea rax, [rcx - 0x100000]
movabs rdi, 0x7fffffeffffe
cmp rax, rdi
ja 0x180038293
mov eax, dword [rcx + 8]
shr eax, 0x1d
not eax
bt eax, 0
jae 0x180038293
cmp qword [0x180060280], rbx
jne 0x180038259
movsd xmm0, qword [str.sPBuWW_u_P___TQD8]
movsd qword [rbp], xmm0
mov eax, dword [0x180050f38]
mov dword [rbp + 8], eax
cmp byte [0x180050f3b], bl
je 0x180037e3e
mov ecx, ebx
cmp dword [0x18005a0d0], 2
jl 0x180037e03
movdqa xmm4, xmmword [0x180051ae0]
movdqa xmm2, xmmword [0x180051840]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800518c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800518d0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800518f0]
movd xmm0, dword [str.sPBuWW_u_P___TQD8]
xorps xmm2, xmm0
movd dword [rbp], xmm2
movdqa xmm3, xmmword [0x180051850]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800518c0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800518d0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800518f0]
movd xmm0, dword [rbp + 4]
xorps xmm2, xmm0
movd dword [rbp + 4], xmm2
mov ecx, 8
movsxd rax, ecx
lea r8, [rbp]
add r8, rax
nop dword [rax]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
sub al, dl
add al, 0x34
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xc
jl 0x180037e10
movzx eax, word [0x180050114]
mov word [rsp + 0x30], ax
cmp byte [0x180050115], bl
je 0x180037e5c
mov byte [rsp + 0x30], 0x2e
xor byte [rsp + 0x31], 0x35
call fcn.1800228d0
mov rcx, rax
test rax, rax
je 0x180037e9b
add rax, 0xfffffffffff00000
cmp rax, rdi
ja 0x180037e9b
mov eax, dword [rcx + 8]
shr eax, 0x1d
not eax
bt eax, 0
jae 0x180037e9b
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x38]
call fcn.180035f00
jmp 0x180037ec1
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov r8d, 4
lea rdx, str.None
lea rcx, [rbp - 0x60]
call fcn.180004930
nop
movzx eax, word [0x180050114]
mov word [rsp + 0x34], ax
cmp byte [0x180050115], 0
je 0x180037ee0
mov byte [rsp + 0x34], 0x2e
xor byte [rsp + 0x35], 0x35
call fcn.1800228d0
mov rcx, qword [rax + 0x20]
test rcx, rcx
je 0x180037f21
lea rax, [rcx - 0x100000]
cmp rax, rdi
ja 0x180037f21
mov eax, dword [rcx + 8]
shr eax, 0x1d
not eax
bt eax, 0
jae 0x180037f21
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.180035f00
jmp 0x180037f47
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
mov r8d, 4
lea rdx, str.None
lea rcx, [rbp - 0x80]
call fcn.180004930
nop
lea rax, [rsp + 0x34]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x180037f56
lea rdx, [rsp + 0x34]
lea rcx, [rbp - 0x80]
call fcn.180004220
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call fcn.18000ed10
nop
lea rax, [rsp + 0x30]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x180037fa6
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x40]
call fcn.180004220
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea rax, [rbp]
inc rdi
cmp byte [rax + rdi], 0
jne 0x180037ff3
mov r8, rdi
lea rdx, [rbp]
lea rcx, [rsp + 0x60]
call fcn.180004220
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rcx, qword [rsp + 0x40]
call fcn.1800137d0
mov rsi, rax
mov r9, rax
mov rcx, qword [0x18005f918]
call fcn.18000ef00
mov rdi, rax
mov edx, 2
mov rcx, rsi
call fcn.18004c45c
mov qword [0x180060280], rdi
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1800380bd
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800380b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800380b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004c45c
movdqa xmm0, xmmword [0x180051830]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x180038110
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003810b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003810b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004c45c
movdqa xmm0, xmmword [0x180051830]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x180038161
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003815c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003815c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004c45c
movdqa xmm0, xmmword [0x180051830]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x1800381b1
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800381ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800381ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004c45c
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x1800381ef
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800381ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800381ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004c45c
movdqa xmm0, xmmword [0x180051830]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x18003823e
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180038239
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180038239
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004c45c
movdqa xmm0, xmmword [0x180051830]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], 0
cmp qword [0x180060280], 0
je 0x180038293
mov qword [rbp + 4], rbx
mov dword [rbp], r12d
mov ecx, dword [r14 + 8]
shr ecx, 0x1d
not ecx
bt ecx, 0
jae 0x18003828e
lea r9, [rbp]
mov r8, qword [0x180060280]
mov rdx, r14
mov rcx, qword [0x18005f910]
call fcn.18000f1b0
mov rbx, qword [rbp + 4]
mov qword [r15], rbx
jmp 0x180038298
xor eax, eax
mov qword [r15], rax
mov rax, r15
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.18004c400
add rsp, 0x120
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret