Function at 0x180007040
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x5f]
sub rsp, 0x98
mov rax, qword [0x18007fcc8]
mov edi, ecx
test rax, rax
jne 0x1800072da
mov qword [r11 + 8], rbx
mov ebx, dword [0x180079018]
mov qword [r11 + 0x18], rsi
lea esi, [rax + 5]
mov qword [r11 - 0x18], r14
lea r14d, [rax + 0x1f]
movaps xmmword [r11 - 0x28], xmm6
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [r11 - 0x48], xmm8
mov qword [rbp + 0x6f], 0x64
lea rcx, [rbp + 0x6f]
call fcn.180009b00
movups xmm0, xmmword [str.jwcn_K]
movzx eax, byte [0x18006ab18]
xor ecx, ecx
mov byte [rbp + 0xf], al
movups xmmword [rbp - 9], xmm0
movsd xmm0, qword [str._8_]
movsd qword [rbp + 7], xmm0
cmp ebx, 2
jl 0x18000720a
movdqa xmm0, xmmword [0x18006d320]
lea rdx, [rbp - 5]
movdqa xmm5, xmmword [0x18006d2b0]
movdqa xmm4, xmmword [0x18006d440]
movdqa xmm7, xmmword [0x18006d2f0]
movdqa xmmword [rbp - 0x19], xmm0
mov r8d, dword [rbp - 0x19]
movd xmm6, esi
movd xmm8, r14d
nop
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x18006d300]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18006d300]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x180007100
cmp ecx, 0x19
jge 0x18000724f
movsxd rax, ecx
lea r8, [rbp - 9]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x92492493
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
inc ecx
sub al, dl
add al, 0x39
xor byte [r8 - 1], al
cmp ecx, 0x19
jl 0x180007220
movzx eax, byte [0x18006aa68]
lea rcx, [rbp - 0x29]
movsd xmm0, qword [0x18006aa60]
xor al, 0x41
movsd qword [rbp - 0x29], xmm0
xor byte [rbp - 0x28], 0x3a
xor byte [rbp - 0x27], 0x3b
xor byte [rbp - 0x26], 0x3c
xor byte [rbp - 0x25], 0x3d
xor byte [rbp - 0x24], 0x3e
xor byte [rbp - 0x23], 0x3f
xor byte [rbp - 0x22], 0x40
mov byte [rbp - 0x21], al
mov byte [rbp - 0x29], 0x53
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18007fcc8], rax
test rax, rax
je 0x180007092
movaps xmm8, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x80]
mov r14, qword [rsp + 0x90]
mov rsi, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xb0]
mov ecx, edi
call rax
add rsp, 0x98
pop rdi
pop rbp
ret