Function at 0x1800514fa
Capabilities:
Encode data using xor

Disassembly:
cmp r8d, 0x40
jl 0x18005188a
mov r11, rsp
push rbp
push rbx
push rdi
lea rbp, [r11 - 0x48]
sub rsp, 0x130
mov rax, qword [0x180084088]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov qword [r11 + 0x10], rsi
mov rdi, rdx
mov qword [r11 + 0x18], r14
lea rsi, [rcx + 0x3c]
mov qword [r11 + 0x20], r15
lea r14, [rsp + 0x5c]
neg r14
mov r15d, r8d
shr r15, 6
mov rbx, rcx
nop
lea rax, [rbp - 0x60]
cmp rax, rsi
ja 0x180051552
lea rax, [rbp - 0x24]
cmp rax, rbx
jae 0x18005159a
lea rax, [rdi + 0x3c]
lea rcx, [rbp - 0x60]
cmp rcx, rax
ja 0x180051568
lea rcx, [rbp - 0x24]
cmp rcx, rdi
jae 0x18005159a
cmp rbx, rax
ja 0x180051572
cmp rsi, rdi
jae 0x18005159a
lea rcx, [rsp + 0x5c]
cmp rbx, rcx
ja 0x180051586
lea rcx, [rsp + 0x20]
cmp rsi, rcx
jae 0x18005159a
lea rcx, [rsp + 0x20]
cmp rcx, rax
ja 0x1800515d9
lea rax, [rsp + 0x5c]
cmp rax, rdi
jb 0x1800515d9
lea rax, [rsp + 0x20]
mov r10, rbx
sub r10, rax
xor r8d, r8d
lea r9d, [r8 + 0x10]
nop dword [rax]
lea rdx, [rsp + 0x20]
add rdx, r8
lea rax, [rdx + r14]
mov ecx, dword [rax + rdi + 0x3c]
mov eax, dword [r10 + rdx]
xor eax, ecx
mov dword [rdx], ecx
mov dword [rbp + r8 - 0x60], eax
add r8, 4
sub r9, 1
jne 0x1800515b0
jmp 0x180051604
xor eax, eax
lea ecx, [rax + 4]
nop
movdqu xmm1, xmmword [rax + rdi]
movdqu xmm0, xmmword [rax + rbx]
movdqu xmmword [rsp + rax + 0x20], xmm1
lea rax, [rax + 0x10]
pxor xmm0, xmm1
movdqu xmmword [rbp + rax - 0x70], xmm0
sub rcx, 1
jne 0x1800515e0
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.180051be0
mov r8d, 0x1000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.180051be0
mov r8d, 0x2000000
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.180051be0
mov r8d, 0x3000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.180051be0
mov r8d, 0x4000000
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.180051be0
mov r8d, 0x5000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.180051be0
mov r8d, 0x6000000
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.180051be0
mov r8d, 0x7000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.180051be0
mov r8d, 0x8000000
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.180051be0
mov r8d, 0x9000000
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x60]
call fcn.180051be0
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.180052680
mov r8d, 1
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.180052680
mov r8d, 2
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.180052680
mov r8d, 3
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.180052680
mov r8d, 4
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.180052680
mov r8d, 5
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.180052680
mov r8d, 6
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.180052680
mov r8d, 7
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.180052680
mov r8d, 8
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.180052680
mov r8d, 9
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.180052680
lea rax, [rbp - 0x60]
cmp rax, rsi
ja 0x1800517b1
lea rax, [rbp - 0x24]
cmp rax, rbx
jae 0x1800517c3
lea rax, [rbp + 0x1c]
cmp rbx, rax
ja 0x1800517e7
lea rax, [rbp - 0x20]
cmp rsi, rax
jb 0x1800517e7
xor eax, eax
nop word [rax + rax]
mov ecx, dword [rbp + rax - 0x20]
xor ecx, dword [rbp + rax - 0x60]
xor dword [rax + rbx], ecx
add rax, 4
cmp rax, 0x40
jl 0x1800517d0
jmp 0x180051845
lea rcx, [rbp - 0x20]
mov r8d, 2
sub rcx, rbx
lea rdx, [rbp - 0x60]
sub rdx, rbx
lea rax, [rbx + 0x10]
nop
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rcx + rax]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
pxor xmm2, xmm0
movdqu xmm0, xmmword [rdx + rax - 0x20]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x20], xmm2
sub r8, 1
jne 0x180051800
add dword [rbx + 0x40], 1
jne 0x18005184e
inc dword [rbx + 0x44]
add rdi, 0x40
sub r15, 1
jne 0x180051540
mov r15, qword [rsp + 0x168]
mov r14, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x158]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.18002b180
add rsp, 0x130
pop rdi
pop rbx
pop rbp
ret