Function at 0x18003d980
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
movaps xmmword [rsp + 0x130], xmm6
mov rax, qword [0x18005a080]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rsi, r8
mov r15, rdx
mov r14, rcx
xor edi, edi
movabs r12, 0x7fffffeffffe
cmp qword [0x180060238], rdi
jne 0x18003dfa3
movups xmm0, xmmword [0x1800512a0]
movups xmmword [rbp], xmm0
mov eax, dword [0x1800512b0]
mov dword [rbp + 0x10], eax
cmp byte [0x1800512b3], dil
je 0x18003db7e
mov ecx, edi
cmp dword [0x18005a0d0], 2
jl 0x18003db3a
movdqa xmm5, xmmword [0x180051840]
movdqa xmm4, xmmword [0x180051ae0]
movdqa xmm6, xmmword [0x1800518c0]
movdqa xmm0, xmmword [0x1800518f0]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rbp + 4]
mov r8d, dword [rsp + 0x40]
nop
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
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x1800518d0]
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
paddd xmm1, xmm3
psrad xmm1, 5
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 [0x1800518d0]
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 0x18003da30
cmp ecx, 0x14
jge 0x18003db7e
movsxd rax, ecx
lea r8, [rbp]
add r8, rax
nop dword [rax]
nop dword [rax + 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, 0x14
jl 0x18003db50
movzx eax, word [0x180050114]
mov word [rsp + 0x34], ax
cmp byte [0x180050115], dil
je 0x18003db9d
mov byte [rsp + 0x34], 0x2e
xor byte [rsp + 0x35], 0x35
call fcn.180023160
test rax, rax
je 0x18003dbda
lea rcx, [rax - 0x100000]
cmp rcx, r12
ja 0x18003dbda
mov ecx, dword [rax + 8]
shr ecx, 0x1d
not ecx
bt ecx, 0
jae 0x18003dbda
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.180035f00
jmp 0x18003dc00
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov r8d, 4
lea rdx, str.None
lea rcx, [rbp - 0x40]
call fcn.180004930
nop
movzx eax, word [0x180050114]
mov word [rsp + 0x30], ax
cmp byte [0x180050115], 0
je 0x18003dc1f
mov byte [rsp + 0x30], 0x2e
xor byte [rsp + 0x31], 0x35
call fcn.180023160
mov rcx, qword [rax + 0x20]
test rcx, rcx
je 0x18003dc60
lea rax, [rcx - 0x100000]
cmp rax, r12
ja 0x18003dc60
mov eax, dword [rcx + 8]
shr eax, 0x1d
not eax
bt eax, 0
jae 0x18003dc60
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.180035f00
jmp 0x18003dc86
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
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x18003dc95
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.180004220
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.18000ed10
nop
lea rax, [rsp + 0x34]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x18003dcf0
lea rdx, [rsp + 0x34]
lea rcx, [rbp - 0x20]
call fcn.180004220
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea rax, [rbp]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x18003dd40
mov r8, rbx
lea rdx, [rbp]
lea rcx, [rbp - 0x80]
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], rdi
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rcx, qword [rsp + 0x60]
call fcn.1800137d0
mov rdi, rax
mov r9, rax
mov rcx, qword [0x18005f918]
call fcn.18000ef00
mov rbx, rax
mov edx, 2
mov rcx, rdi
call fcn.18004c45c
mov qword [0x180060238], rbx
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x18003de09
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003de04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003de04
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 - 0x68]
cmp rdx, 0xf
jbe 0x18003de5a
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003de55
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003de55
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 - 8]
cmp rdx, 0xf
jbe 0x18003dea9
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003dea4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003dea4
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 - 0x10], xmm0
mov byte [rbp - 0x20], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x18003defb
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003def5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003def5
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 - 0x48]
cmp rdx, 0xf
jbe 0x18003df39
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003df34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003df34
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
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x18003df88
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003df83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003df83
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
cmp qword [0x180060238], 0
je 0x18003dffa
mov qword [rbp], r14
mov qword [rbp + 8], r15
movups xmm0, xmmword [rsi]
movups xmmword [rbp + 0x10], xmm0
mov rbx, qword [0x180060238]
call fcn.180023160
test rax, rax
je 0x18003dff3
lea rcx, [rax - 0x100000]
cmp rcx, r12
ja 0x18003dff3
mov ecx, dword [rax + 8]
shr ecx, 0x1d
not ecx
bt ecx, 0
jae 0x18003dff3
lea r9, [rbp]
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x18005f910]
call fcn.18000f1b0
movups xmm0, xmmword [rbp + 0x10]
movups xmmword [rsi], xmm0
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.18004c400
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x140
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret