Function at 0x18003d9aa
Capabilities:
Encode data using xor

Disassembly:
cmp r8d, 0x40
jl 0x18003dd49
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x58]
sub rsp, 0x148
mov rax, qword [0x18006d210]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov qword [r11 + 0x10], rsi
lea rax, [rsp + 0x20]
mov qword [r11 + 0x18], rdi
mov rsi, rcx
mov qword [r11 - 0x18], r12
lea rdi, [rdx + 0x3c]
mov qword [r11 - 0x20], r14
sub rsi, rax
lea r14, [rsp + 0x5c]
mov r12d, r8d
neg r14
mov qword [r11 - 0x28], r15
shr r12, 6
lea r15, [rcx + 0x3c]
mov rbx, rcx
lea rax, [rbp - 0x60]
cmp rax, r15
ja 0x18003da13
lea rax, [rbp - 0x24]
cmp rax, rbx
jae 0x18003da5f
lea rcx, [rbp - 0x60]
lea rax, [rdi - 0x3c]
cmp rcx, rdi
ja 0x18003da29
lea rcx, [rbp - 0x24]
cmp rcx, rax
jae 0x18003da5f
cmp rbx, rdi
ja 0x18003da33
cmp r15, rax
jae 0x18003da5f
lea rax, [rsp + 0x5c]
cmp rbx, rax
ja 0x18003da47
lea rax, [rsp + 0x20]
cmp r15, rax
jae 0x18003da5f
lea rax, [rsp + 0x20]
cmp rax, rdi
ja 0x18003da97
lea rax, [rdi - 0x3c]
lea rcx, [rsp + 0x5c]
cmp rcx, rax
jb 0x18003da97
xor r8d, r8d
lea r9d, [r8 + 0x10]
nop word [rax + rax]
lea rax, [r14 + rdi]
lea rdx, [rsp + 0x20]
add rdx, r8
mov ecx, dword [rax + rdx]
mov eax, dword [rsi + rdx]
xor eax, ecx
mov dword [rdx], ecx
mov dword [rbp + r8 - 0x60], eax
add r8, 4
sub r9, 1
jne 0x18003da70
jmp 0x18003dace
xor edx, edx
lea r8d, [rdx + 4]
nop dword [rax]
lea rcx, [rsp + 0x20]
add rcx, rdx
movdqu xmm0, xmmword [rsi + rcx]
lea rax, [rcx + r14]
movdqu xmm1, xmmword [rax + rdi]
pxor xmm0, xmm1
movdqu xmmword [rbp + rdx - 0x60], xmm0
add rdx, 0x10
movdqu xmmword [rcx], xmm1
sub r8, 1
jne 0x18003daa0
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.18003cef0
mov r8d, 0x1000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.18003cef0
mov r8d, 0x2000000
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.18003cef0
mov r8d, 0x3000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.18003cef0
mov r8d, 0x4000000
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.18003cef0
mov r8d, 0x5000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.18003cef0
mov r8d, 0x6000000
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.18003cef0
mov r8d, 0x7000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.18003cef0
mov r8d, 0x8000000
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.18003cef0
mov r8d, 0x9000000
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x60]
call fcn.18003cef0
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.18003c4e0
mov r8d, 1
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.18003c4e0
mov r8d, 2
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.18003c4e0
mov r8d, 3
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.18003c4e0
mov r8d, 4
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.18003c4e0
mov r8d, 5
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.18003c4e0
mov r8d, 6
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.18003c4e0
mov r8d, 7
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.18003c4e0
mov r8d, 8
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.18003c4e0
mov r8d, 9
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.18003c4e0
lea rax, [rbp - 0x60]
cmp rax, r15
ja 0x18003dc7b
lea rax, [rbp - 0x24]
cmp rax, rbx
jae 0x18003dc8d
lea rax, [rbp + 0x1c]
cmp rbx, rax
ja 0x18003dca7
lea rax, [rbp - 0x20]
cmp r15, rax
jb 0x18003dca7
xor eax, eax
nop
mov ecx, dword [rbp + rax - 0x20]
xor ecx, dword [rbp + rax - 0x60]
xor dword [rax + rbx], ecx
add rax, 4
cmp rax, 0x40
jl 0x18003dc90
jmp 0x18003dcf5
movdqu xmm0, xmmword [rbx]
pxor xmm0, xmmword [rbp - 0x20]
pxor xmm0, xmmword [rbp - 0x60]
movdqu xmmword [rbx], xmm0
movdqu xmm0, xmmword [rbx + 0x10]
pxor xmm0, xmmword [rbp - 0x10]
pxor xmm0, xmmword [rbp - 0x50]
movdqu xmmword [rbx + 0x10], xmm0
movdqu xmm0, xmmword [rbx + 0x20]
pxor xmm0, xmmword [rbp]
pxor xmm0, xmmword [rbp - 0x40]
movdqu xmmword [rbx + 0x20], xmm0
movdqu xmm0, xmmword [rbx + 0x30]
pxor xmm0, xmmword [rbp + 0x10]
pxor xmm0, xmmword [rbp - 0x30]
movdqu xmmword [rbx + 0x30], xmm0
add dword [rbx + 0x40], 1
jne 0x18003dcfe
inc dword [rbx + 0x44]
add rdi, 0x40
sub r12, 1
jne 0x18003da01
mov r15, qword [rsp + 0x130]
mov r14, qword [rsp + 0x138]
mov r12, qword [rsp + 0x140]
mov rdi, qword [rsp + 0x170]
mov rsi, qword [rsp + 0x168]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.180043e10
add rsp, 0x148
pop rbx
pop rbp
ret