Function at 0x1800b3670
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x78
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movsd xmm0, qword [0x18012dd68]
mov rdx, rax
ucomisd xmm0, qword [0x180114690]
jp 0x1800b36c9
jne 0x1800b36c9
lea rcx, [rax + 0xb5022d4]
lea r9, [rax + 0xb501e68]
mov qword [0x18012f780], rcx
lea rcx, [rax + 0xb4d1e04]
mov qword [0x18012f778], r9
mov qword [0x18012f790], rcx
mov qword [0x18012f788], r9
jmp 0x1800b3a2c
ucomisd xmm0, qword [0x180114648]
jp 0x1800b3711
jne 0x1800b3711
lea r9, [rax + 0x6ad0958]
add rax, 0x6ad0be4
mov qword [0x18012f780], rax
lea rcx, [rdx + 0x6ab25bc]
lea rax, [rdx + 0x6ad09d8]
mov qword [0x18012f778], r9
mov qword [0x18012f788], rax
mov qword [0x18012f790], rcx
jmp 0x1800b3a2c
ucomisd xmm0, qword [0x180114628]
jp 0x1800b3759
jne 0x1800b3759
lea r9, [rax + 0x5cd2b88]
add rax, 0x5cd2e90
mov qword [0x18012f780], rax
lea rcx, [rdx + 0x5cbc4ac]
lea rax, [rdx + 0x5cd2cb8]
mov qword [0x18012f778], r9
mov qword [0x18012f788], rax
mov qword [0x18012f790], rcx
jmp 0x1800b3a2c
cmp dword [0x18012dd70], 0x13
jne 0x1800b3953
mov eax, dword [0x1801105e0]
xor r8d, r8d
cmp dword [0x18012c090], 2
movups xmm0, xmmword [0x1801105c0]
mov dword [rsp + 0x50], eax
movups xmm1, xmmword [0x1801105d0]
movzx eax, byte [0x1801105e4]
movups xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x54], al
movups xmmword [rsp + 0x40], xmm1
jl 0x1800b38ce
movdqa xmm0, xmmword [0x1801149e0]
lea rcx, [rsp + 0x34]
movdqa xmm4, xmmword [0x1801148f0]
movdqa xmm3, xmmword [0x180114d90]
movdqa xmm5, xmmword [0x180114920]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
movaps xmmword [rsp + 0x60], xmm7
movdqa xmm7, xmmword [0x180114990]
nop
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x20
jl 0x1800b37e0
movaps xmm7, xmmword [rsp + 0x60]
cmp r8d, 0x25
jge 0x1800b3911
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop dword [rax]
mov eax, 0x51eb851f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x38
xor byte [r9 - 1], al
cmp r8d, 0x25
jl 0x1800b38e0
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.180026720
mov rcx, rax
mov r9, qword [rax]
test r9, r9
je 0x1800b393f
movsxd rax, dword [r9 + 1]
add r9, 5
add r9, rax
mov qword [rcx], r9
movsd xmm0, qword [0x18012dd68]
mov qword [0x18012f778], r9
jmp 0x1800b3a25
ucomisd xmm0, qword [0x180114608]
jp 0x1800b399b
jne 0x1800b399b
lea r9, [rax + 0x416a840]
add rax, 0x416aab8
mov qword [0x18012f780], rax
lea rcx, [rdx + 0x41624c8]
lea rax, [rdx + 0x416a93c]
mov qword [0x18012f778], r9
mov qword [0x18012f788], rax
mov qword [0x18012f790], rcx
jmp 0x1800b3a2c
ucomisd xmm0, qword [0x180114600]
jp 0x1800b39e0
jne 0x1800b39e0
lea r9, [rax + 0x3e5496c]
add rax, 0x3e54bcc
mov qword [0x18012f780], rax
lea rcx, [rdx + 0x3e4d768]
lea rax, [rdx + 0x3e54a68]
mov qword [0x18012f778], r9
mov qword [0x18012f788], rax
mov qword [0x18012f790], rcx
jmp 0x1800b3a2c
ucomisd xmm0, qword [0x1801145f0]
jp 0x1800b3a1e
jne 0x1800b3a1e
lea r9, [rax + 0x3decfc8]
add rax, 0x3ded158
lea rcx, [rdx + 0x3de5ce8]
mov qword [0x18012f780], rax
mov qword [0x18012f778], r9
mov qword [0x18012f788], r9
mov qword [0x18012f790], rcx
jmp 0x1800b3a2c
mov r9, qword [0x18012f778]
mov rcx, qword [0x18012f790]
test r9, r9
je 0x1800b3a5e
xor r8d, r8d
lea rdx, [fcn.18009adb0]
mov rcx, r9
call fcn.1800cfba4
mov rcx, qword [0x18012f778]
call fcn.1800cfe48
movsd xmm0, qword [0x18012dd68]
mov rcx, qword [0x18012f790]
mov rax, qword [0x18012f780]
test rax, rax
je 0x1800b3a97
xor r8d, r8d
lea rdx, [fcn.18009adb0]
mov rcx, rax
call fcn.1800cfba4
mov rcx, qword [0x18012f780]
call fcn.1800cfe48
movsd xmm0, qword [0x18012dd68]
mov rcx, qword [0x18012f790]
mov rax, qword [0x18012f788]
test rax, rax
je 0x1800b3ad0
xor r8d, r8d
lea rdx, [fcn.18009adb0]
mov rcx, rax
call fcn.1800cfba4
mov rcx, qword [0x18012f788]
call fcn.1800cfe48
movsd xmm0, qword [0x18012dd68]
mov rcx, qword [0x18012f790]
test rcx, rcx
je 0x1800b3b19
comisd xmm0, xmmword [0x180114690]
lea rdx, [0x1800b3250]
jb 0x1800b3af6
mov qword [0x18012f7a0], rcx
lea r8, [0x18012f7a0]
jmp 0x1800b3b04
mov qword [0x18012f798], rcx
lea r8, [0x18012f798]
call fcn.1800cfba4
mov rcx, qword [0x18012f790]
add rsp, 0x78
jmp fcn.1800cfe48
add rsp, 0x78
ret