Function at 0x18004b9f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push r13
sub rsp, 0x58
mov r13, qword [rcx + 0x10]
mov rbx, rdx
movsxd rax, dword [rcx + 0x1c]
shl rax, 4
add rax, r13
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x20], rax
cmp r13, rax
je 0x18004bcde
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
nop
movsxd r14, dword [r13 + 4]
mov eax, dword [r13 + 0xc]
mov r8d, dword [r13]
add eax, r14d
mov r12d, dword [r13 + 8]
mov dword [rsp + 0x80], r8d
cmp r14d, eax
jge 0x18004bca9
mov r15, r14
mov r13d, eax
nop word [rax + rax]
mov rdi, qword [rbx]
mov eax, r14d
sub eax, dword [rbx + 0x18]
mov r11d, r8d
mov r10, qword [rbx + 8]
mov esi, r12d
sub r11d, dword [rbx + 0x14]
movsxd rdx, dword [rdi + 0x14]
movsxd rbp, eax
imul rdx, r15
add rdx, qword [rdi]
mov qword [rbx + 0x20], rdx
movsxd rax, dword [r10 + 0x14]
imul rbp, rax
add rbp, qword [r10]
mov qword [rbx + 0x28], rbp
movsxd r9, dword [rdi + 0x18]
mov eax, r9d
imul eax, r8d
cdqe
add rax, rdx
cmp dword [rbx + 0x10], 0xfe
jge 0x18004bba1
mov rdi, r9
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
mov edx, r11d
inc r11d
dec esi
imul edx, dword [rcx + 0x18]
mov rcx, qword [rbx + 0x28]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
mov edx, 0x100
mov r10d, r8d
shl r10d, 0x10
or r10d, r8d
mov r8d, 0x100
imul r10d, dword [rbx + 0x10]
shr r10d, 8
and r10d, 0xff00ff
mov ecx, r10d
shr ecx, 0x10
sub edx, ecx
mov ecx, dword [rax]
mov r9d, ecx
shr ecx, 8
and ecx, 0xff00ff
and r9d, 0xff00ff
imul ecx, edx
imul r9d, edx
mov edx, 0x100
shr ecx, 8
and ecx, 0xff00ff
shr r9d, 8
and r9d, 0xff00ff
add r9d, r10d
add r10d, ecx
mov ecx, r10d
shl r10d, 8
shr ecx, 8
and ecx, 0xff00ff
sub r8d, ecx
mov ecx, r9d
shl r8d, 8
shr ecx, 8
or r8d, r10d
and ecx, 0xff00ff
and r8d, 0xff00ff00
sub edx, ecx
or edx, r9d
and edx, 0xff00ff
xor edx, r8d
mov dword [rax], edx
add rax, rdi
test esi, esi
jg 0x18004bad0
jmp 0x18004bc8a
movsxd r8, dword [r10 + 0x18]
mov ecx, r8d
imul ecx, r11d
movsxd r11, ecx
add r11, rbp
cmp r9d, r8d
jne 0x18004bbdb
cmp dword [r10 + 0x10], 1
jne 0x18004bbdb
cmp dword [rdi + 0x10], 1
jne 0x18004bbdb
imul r8d, r12d
mov rdx, r11
mov rcx, rax
movsxd r8, r8d
call fcn.18037edb0
jmp 0x18004bc8a
mov rdi, r9
mov rbp, r8
movzx ecx, byte [r11]
mov edx, 0x100
mov r9d, dword [rax]
sub edx, ecx
mov r10d, r9d
mov r8d, ecx
shr r9d, 8
and r10d, 0xff00ff
imul r10d, edx
and r9d, 0xff00ff
imul r9d, edx
add r11, rbp
shl r8d, 0x10
mov edx, 0x100
or r8d, ecx
dec esi
shr r10d, 8
shr r9d, 8
and r10d, 0xff00ff
add r10d, r8d
and r9d, 0xff00ff
add r9d, r8d
mov r8d, 0x100
mov ecx, r9d
shl r9d, 8
shr ecx, 8
and ecx, 0xff00ff
sub r8d, ecx
mov ecx, r10d
shl r8d, 8
shr ecx, 8
or r8d, r9d
and ecx, 0xff00ff
and r8d, 0xff00ff00
sub edx, ecx
or edx, r10d
and edx, 0xff00ff
xor edx, r8d
mov dword [rax], edx
add rax, rdi
test esi, esi
jg 0x18004bbe1
mov r8d, dword [rsp + 0x80]
inc r14d
inc r15
cmp r14d, r13d
jl 0x18004ba70
mov r13, qword [rsp + 0x88]
add r13, 0x10
mov qword [rsp + 0x88], r13
cmp r13, qword [rsp + 0x20]
jne 0x18004ba40
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x78]
add rsp, 0x58
pop r13
pop rbx
ret