Function at 0x1800413d0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push r15
sub rsp, 0x70
mov rbp, rcx
xor r15d, r15d
mov rcx, qword [rcx]
mov rsi, rdx
mov dword [rsp + 0x44], r15d
cmp dword [rbp + 0x14], r15d
jle 0x180041ab9
mov qword [rax + 0x10], rbx
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r14
nop
movsxd rax, dword [rbp + 0x1c]
mov r14, rcx
mov r13d, dword [r14]
lea rcx, [rcx + rax*4]
dec r13d
mov qword [rsp + 0x48], rcx
test r13d, r13d
jle 0x180041a8b
mov r8d, dword [rbp + 0xc]
add r14, 4
mov rdx, qword [rsi + 0x48]
add r8d, r15d
movsxd rax, r8d
xor r9d, r9d
mov r10d, dword [r14]
mov dword [rsi + 0x68], r8d
movsxd rcx, dword [rdx + 0x14]
imul rcx, rax
add rcx, qword [rdx]
sub r13d, 1
mov qword [rsi + 0x70], rcx
mov dword [rsp + 0x40], r13d
js 0x18004188e
nop dword [rax]
mov r15d, dword [r14 + 4]
lea r14, [r14 + 8]
mov r12d, dword [r14]
mov eax, r12d
cdq
movzx ebx, dl
add ebx, eax
mov eax, r10d
cdq
sar ebx, 8
movzx edx, dl
add eax, edx
sar eax, 8
mov ebp, eax
cmp ebx, eax
jne 0x1800414ab
mov eax, r12d
sub eax, r10d
imul eax, r15d
add r9d, eax
jmp 0x18004186f
movzx eax, r10b
mov ecx, 0x100
sub ecx, eax
imul ecx, r15d
lea eax, [r9 + rcx]
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov edi, eax
test eax, eax
jle 0x1800416c2
mov r9d, 1
mov r8d, ebp
mov rcx, rsi
cmp eax, 0xff
jl 0x1800415d8
lea rdx, [rsp + 0xa0]
call fcn.1800534d0
mov rax, qword [rsi + 0x48]
mov ecx, ebp
movzx r10d, byte [rsp + 0xa1]
mov edx, 0x100
movzx r9d, byte [rsp + 0xa2]
or r10d, 0xff0000
imul r10d, dword [rsi + 0x58]
imul ecx, dword [rax + 0x18]
shl r9d, 0x10
shr r10d, 8
movsxd r11, ecx
and r10d, 0xff00ff
add r11, qword [rsi + 0x70]
mov eax, r10d
shr eax, 0x10
mov ecx, 0x100
sub edx, eax
movzx eax, byte [rsp + 0xa0]
or r9d, eax
imul r9d, dword [rsi + 0x58]
mov r8d, dword [r11]
mov eax, r8d
and eax, 0xff00ff
shr r8d, 8
imul eax, edx
and r8d, 0xff00ff
imul r8d, edx
mov edx, 0x100
shr r9d, 8
and r9d, 0xff00ff
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
add r9d, eax
and r8d, 0xff00ff
add r10d, r8d
mov eax, r10d
shl r10d, 8
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl edx, 8
shr eax, 8
or edx, r10d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r9d
and ecx, 0xff00ff
xor ecx, edx
mov dword [r11], ecx
jmp 0x1800416c2
lea rdx, [rsp + 0xa8]
call fcn.1800534d0
imul edi, dword [rsi + 0x58]
mov ecx, ebp
mov rax, qword [rsi + 0x48]
movzx r9d, byte [rsp + 0xa9]
movzx r8d, byte [rsp + 0xaa]
or r9d, 0xff0000
shl r8d, 0x10
imul ecx, dword [rax + 0x18]
shr edi, 8
imul r9d, edi
movsxd r10, ecx
mov ecx, 0x100
add r10, qword [rsi + 0x70]
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
mov edx, dword [r10]
shr eax, 0x10
sub ecx, eax
movzx eax, byte [rsp + 0xa8]
or r8d, eax
mov eax, edx
shr edx, 8
and eax, 0xff00ff
imul eax, ecx
and edx, 0xff00ff
imul edx, ecx
mov ecx, 0x100
imul r8d, edi
shr eax, 8
and eax, 0xff00ff
shr edx, 8
and edx, 0xff00ff
shr r8d, 8
add r9d, edx
and r8d, 0xff00ff
add r8d, eax
mov edx, 0x100
mov eax, r9d
shl r9d, 8
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r8d
shl edx, 8
shr eax, 8
or edx, r9d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r8d
and ecx, 0xff00ff
xor ecx, edx
mov dword [r10], ecx
test r15d, r15d
jle 0x180041867
inc ebp
sub ebx, ebp
test ebx, ebx
jle 0x180041867
cmp ebx, dword [rsi + 0x80]
jle 0x180041708
movsxd rdi, ebx
mov qword [rsi + 0x80], rdi
mov rcx, qword [rsi + 0x78]
call fcn.180124068
lea rcx, [rdi + rdi*2]
test rcx, rcx
jne 0x1800416ff
xor eax, eax
jmp 0x180041704
call fcn.180124500
mov qword [rsi + 0x78], rax
mov rdi, qword [rsi + 0x78]
mov r9d, ebx
mov rdx, rdi
mov r8d, ebp
mov rcx, rsi
call fcn.1800534d0
mov rax, qword [rsi + 0x48]
movsxd rcx, dword [rax + 0x18]
mov eax, ecx
imul eax, ebp
mov ebp, r15d
imul ebp, dword [rsi + 0x58]
movsxd r11, eax
add r11, qword [rsi + 0x70]
sar ebp, 8
cmp ebp, 0xfe
jge 0x180041829
mov r13, rcx
nop word [rax + rax]
mov r8d, dword [r11]
mov rcx, rdi
mov edx, 0x100
add rdi, 3
dec ebx
movzx r10d, byte [rcx + 1]
movzx r9d, byte [rcx + 2]
or r10d, 0xff0000
shl r9d, 0x10
imul r10d, ebp
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
sub edx, eax
movzx eax, byte [rcx]
or r9d, eax
mov ecx, 0x100
mov eax, r8d
imul r9d, ebp
and eax, 0xff00ff
shr r8d, 8
imul eax, edx
and r8d, 0xff00ff
imul r8d, edx
mov edx, 0x100
shr r9d, 8
and r9d, 0xff00ff
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
add r9d, eax
and r8d, 0xff00ff
add r10d, r8d
mov eax, r10d
shl r10d, 8
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl edx, 8
shr eax, 8
or edx, r10d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r9d
and ecx, 0xff00ff
xor ecx, edx
mov dword [r11], ecx
add r11, r13
test ebx, ebx
jg 0x180041750
mov r13d, dword [rsp + 0x40]
jmp 0x180041867
mov r8, rcx
nop dword [rax]
mov rax, rdi
dec ebx
add rdi, 3
movzx ecx, byte [rax + 2]
movzx edx, word [rax]
or ecx, 0xffffff00
shl ecx, 8
mov word [rsp + 0x30], dx
movzx eax, byte [rsp + 0x31]
or ecx, eax
movzx eax, dl
shl ecx, 8
or ecx, eax
mov dword [r11], ecx
add r11, r8
test ebx, ebx
jg 0x180041830
movzx r9d, r12b
imul r9d, r15d
sub r13d, 1
mov r10d, r12d
mov dword [rsp + 0x40], r13d
jns 0x180041470
mov r15d, dword [rsp + 0x44]
mov rbp, qword [rsp + 0x90]
mov eax, r9d
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov ebx, eax
test eax, eax
jle 0x180041a86
mov eax, r10d
mov r9d, 1
cdq
mov rcx, rsi
movzx edi, dl
add edi, eax
sar edi, 8
mov r8d, edi
cmp ebx, 0xff
jl 0x1800419aa
lea rdx, [rsp + 0x20]
call fcn.1800534d0
mov rcx, qword [rsi + 0x48]
mov edx, 0x100
movzx r10d, byte [rsp + 0x21]
movzx r9d, byte [rsp + 0x22]
or r10d, 0xff0000
imul r10d, dword [rsi + 0x58]
imul edi, dword [rcx + 0x18]
mov ecx, 0x100
shl r9d, 0x10
shr r10d, 8
and r10d, 0xff00ff
movsxd r11, edi
add r11, qword [rsi + 0x70]
mov eax, r10d
shr eax, 0x10
sub edx, eax
movzx eax, byte [rsp + 0x20]
or r9d, eax
imul r9d, dword [rsi + 0x58]
mov r8d, dword [r11]
mov eax, r8d
and eax, 0xff00ff
shr r8d, 8
imul eax, edx
and r8d, 0xff00ff
imul r8d, edx
mov edx, 0x100
shr r9d, 8
and r9d, 0xff00ff
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
add r9d, eax
and r8d, 0xff00ff
add r10d, r8d
mov eax, r10d
shl r10d, 8
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl edx, 8
shr eax, 8
or edx, r10d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r9d
and ecx, 0xff00ff
xor ecx, edx
mov dword [r11], ecx
jmp 0x180041a86
lea rdx, [rsp + 0x24]
call fcn.1800534d0
imul ebx, dword [rsi + 0x58]
mov ecx, 0x100
mov rax, qword [rsi + 0x48]
movzx r9d, byte [rsp + 0x25]
movzx r8d, byte [rsp + 0x26]
or r9d, 0xff0000
shl r8d, 0x10
imul edi, dword [rax + 0x18]
shr ebx, 8
imul r9d, ebx
movsxd r10, edi
add r10, qword [rsi + 0x70]
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
mov edx, dword [r10]
shr eax, 0x10
sub ecx, eax
movzx eax, byte [rsp + 0x24]
or r8d, eax
mov eax, edx
shr edx, 8
and eax, 0xff00ff
imul eax, ecx
and edx, 0xff00ff
imul edx, ecx
mov ecx, 0x100
imul r8d, ebx
shr eax, 8
and eax, 0xff00ff
shr edx, 8
and edx, 0xff00ff
shr r8d, 8
add r9d, edx
and r8d, 0xff00ff
add r8d, eax
mov edx, 0x100
mov eax, r9d
shl r9d, 8
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r8d
shl edx, 8
shr eax, 8
or edx, r9d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r8d
and ecx, 0xff00ff
xor ecx, edx
mov dword [r10], ecx
mov rcx, qword [rsp + 0x48]
inc r15d
mov dword [rsp + 0x44], r15d
cmp r15d, dword [rbp + 0x14]
jl 0x180041410
mov r14, qword [rsp + 0x50]
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rsi
pop rbp
ret