Function at 0x180038b00
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1a0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
mov rax, qword [0x1801561e0]
xor rax, rsp
mov qword [rbp + 0x50], rax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
xor r15d, r15d
mov qword [rbp - 0x58], r15
cmp qword [0x1801847c8], r15
je 0x18003900d
mov ecx, dword [0x180184604]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x180186398], ecx
jle 0x180038bc8
lea rcx, [0x180186398]
call fcn.180113138
cmp dword [0x180186398], 0xffffffff
jne 0x180038bc8
mov rax, qword [0x1801806f8]
add rax, qword [0x180184778]
mov qword [0x180186098], rax
mov rax, qword [rax]
mov rdx, qword [rax]
mov qword [0x180186390], rdx
lea rcx, [0x180186398]
call fcn.1801130d8
mov edi, r15d
mov rbx, qword [0x180186390]
cmp dword [rbx + 8], r15d
jbe 0x18003900d
mov r14, r15
movabs r13, 0x5f9532f3b5cc2551
movabs r12, 0x22ac59a870e6a669
mov ecx, edi
and ecx, 0x1f
mov eax, edi
test edi, edi
jns 0x180038c04
lea eax, [rdi + 0x1f]
sub ecx, 0x20
sar eax, 5
movsxd rdx, eax
mov rax, qword [rbx + 0x30]
mov r8d, dword [rax + rdx*4]
shr r8d, cl
test r8b, 1
je 0x180038ff8
mov rax, qword [rbx]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x180038ff8
movsd xmm0, qword [rsi + 0x90]
mov eax, dword [rsi + 0x98]
mov dword [rsp + 0x60], eax
mov rax, qword [0x1801847c8]
movss xmm7, dword [rsp + 0x60]
movaps xmm2, xmm7
subss xmm2, dword [rax + 0x98]
movaps xmm6, xmm0
shufps xmm6, xmm6, 0x55
movsd qword [rsp + 0x58], xmm0
movaps xmm1, xmm6
subss xmm1, dword [rax + 0x94]
movss xmm8, dword [rsp + 0x58]
movaps xmm3, xmm8
subss xmm3, dword [rax + 0x90]
mulss xmm3, xmm3
mulss xmm1, xmm1
addss xmm3, xmm1
mulss xmm2, xmm2
addss xmm3, xmm2
xorps xmm0, xmm0
ucomiss xmm0, xmm3
ja 0x180038ca9
xorps xmm0, xmm0
sqrtss xmm0, xmm3
jmp 0x180038cb1
movaps xmm0, xmm3
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
xorps xmm9, xmm9
cvtss2sd xmm9, xmm0
movss xmm0, dword [0x180180b10]
cvtps2pd xmm0, xmm0
comisd xmm0, xmm9
jb 0x180038ff8
movss dword [rbp - 0x78], xmm7
movaps xmm0, xmm8
unpcklps xmm0, xmm6
movsd qword [rsp + 0x70], xmm0
mov eax, dword [rbp - 0x78]
mov dword [rsp + 0x78], eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1800106c0
mov rax, qword [0x1801846d0]
mov rcx, rsi
call rax
mov ebx, eax
xor sil, sil
mov edx, eax
movabs rcx, 0x1bf60a500e28887
call fcn.180044180
movzx esi, sil
test eax, eax
mov eax, 1
cmovne esi, eax
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x30], 0
mov edx, ebx
movabs rcx, 0x9f47b058362c84b5
call fcn.180044180
mov edx, eax
movabs rcx, 0xb215aac32d25d019
call fcn.180044570
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180038d65
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.180040f40
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x50], 0
xor r8d, r8d
lea rdx, [0x18012f3d3]
lea rcx, [rbp - 0x50]
call fcn.180040f40
nop
xor r8d, r8d
mov edx, ebx
mov rcx, r13
call fcn.180043e60
test eax, eax
je 0x180038e15
mov dword [rsp + 0x30], 0xc9cfdefe
mov dword [rsp + 0x34], 0xa4b9d0cc
mov word [rsp + 0x38], 0xa6
mov byte [rsp + 0x3a], 1
mov rcx, r15
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x46]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 9
jb 0x180038de0
mov byte [rsp + 0x3a], 0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180038e01
lea rdx, [rsp + 0x30]
jmp 0x180038ed0
xor r9d, r9d
lea r8d, [r9 - 1]
mov edx, ebx
mov rcx, r12
call fcn.180044cd0
mov rcx, r15
test eax, eax
je 0x180038e82
mov dword [rsp + 0x40], 0xf99cd4f4
mov dword [rsp + 0x44], 0xa4b6d6cc
mov word [rsp + 0x48], 0xb0
mov byte [rsp + 0x4a], 1
nop dword [rax]
lea eax, [rcx - 0x46]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 9
jb 0x180038e50
mov byte [rsp + 0x4a], 0
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180038e71
lea rdx, [rsp + 0x40]
jmp 0x180038ed0
mov dword [rsp + 0x20], 0xc8dfcef5
mov dword [rsp + 0x24], 0xa4dace
mov byte [rsp + 0x28], 1
nop word [rax + rax]
lea eax, [rcx - 0x46]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 7
jb 0x180038ea0
mov byte [rsp + 0x28], 0
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180038ec1
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x50]
call fcn.180040f40
mov qword [rbp - 0x10], r15
mov qword [rbp], r15
mov qword [rbp + 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x10], 0
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x10], 0
xor eax, eax
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x34], ebx
movss xmm0, dword [rsp + 0x50]
movss dword [rbp + 0x38], xmm0
movss xmm1, dword [rsp + 0x54]
movss dword [rbp + 0x3c], xmm1
mov byte [rbp + 0x30], sil
movsd qword [rbp + 0x40], xmm9
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
lea rcx, [rbp - 0x10]
call fcn.180040f40
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
lea rcx, [rbp + 0x10]
call fcn.180040f40
mov rbx, qword [rbp - 0x60]
cmp rbx, qword [rbp - 0x58]
je 0x180038fba
mov qword [rbp - 0x70], rbx
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.18003f330
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp + 0x10]
call fcn.18003f330
movzx eax, byte [rbp + 0x30]
mov byte [rbx + 0x40], al
mov eax, dword [rbp + 0x34]
mov dword [rbx + 0x44], eax
movss xmm0, dword [rbp + 0x38]
movss dword [rbx + 0x48], xmm0
movss xmm1, dword [rbp + 0x3c]
movss dword [rbx + 0x4c], xmm1
movsd xmm0, qword [rbp + 0x40]
movsd qword [rbx + 0x50], xmm0
add qword [rbp - 0x60], 0x58
jmp 0x180038fcb
lea r8, [rbp - 0x10]
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.18004d4f0
nop
lea rcx, [rbp + 0x10]
call fcn.180040e40
lea rcx, [rbp - 0x10]
call fcn.180040e40
nop
lea rcx, [rbp - 0x50]
call fcn.180040e40
nop
lea rcx, [rbp - 0x30]
call fcn.180040e40
mov rbx, qword [0x180186390]
inc edi
add r14, 8
mov ecx, dword [rbx + 8]
movsxd rax, edi
cmp rax, rcx
jb 0x180038bf3
mov rdi, qword [0x180184890]
mov rbx, qword [0x180184888]
cmp rbx, rdi
je 0x180039041
lea rcx, [rbx + 0x20]
call fcn.180040e40
mov rcx, rbx
call fcn.180040e40
add rbx, 0x58
cmp rbx, rdi
jne 0x180039020
mov rbx, qword [0x180184888]
mov qword [0x180184890], rbx
mov r8, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x68]
call fcn.180055430
nop
lea rcx, [rbp - 0x68]
call fcn.18003ed70
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.180112f90
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret