Function at 0x180017a10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x18009d7c0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov ecx, 0x100
mov qword [rbp + 7], r9
mov r13, r9
mov rbx, r8
mov rdi, rdx
call fcn.18007aa30
xor edx, edx
mov qword [rbp + 0xf], rax
mov r8d, 0x100
mov rcx, rax
lea rsi, [rax + 0x100]
mov qword [rbp + 0x1f], rsi
call fcn.18007bae8
mov rcx, qword [rdi]
mov qword [rbp + 0x17], rsi
add rcx, rbx
movzx eax, byte [rcx]
movzx edx, byte [rcx + 1]
shl eax, 8
or edx, eax
movzx eax, byte [rcx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 3]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax], edx
mov rcx, qword [rdi]
add rcx, rbx
movzx eax, byte [rcx + 5]
movzx edx, byte [rcx + 4]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 6]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 7]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax + 4], edx
mov rcx, qword [rdi]
add rcx, rbx
movzx eax, byte [rcx + 9]
movzx edx, byte [rcx + 8]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0xa]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0xb]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax + 8], edx
mov rcx, qword [rdi]
add rcx, rbx
movzx eax, byte [rcx + 0xd]
movzx edx, byte [rcx + 0xc]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0xe]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0xf]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax + 0xc], edx
mov rcx, qword [rdi]
add rcx, rbx
movzx eax, byte [rcx + 0x11]
movzx edx, byte [rcx + 0x10]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x12]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x13]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax + 0x10], edx
mov rcx, qword [rdi]
add rcx, rbx
movzx eax, byte [rcx + 0x15]
movzx edx, byte [rcx + 0x14]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x16]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x17]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax + 0x14], edx
mov rcx, qword [rdi]
add rcx, rbx
movzx eax, byte [rcx + 0x19]
movzx edx, byte [rcx + 0x18]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x1a]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x1b]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax + 0x18], edx
mov rcx, qword [rdi]
add rcx, rbx
movzx eax, byte [rcx + 0x1d]
movzx edx, byte [rcx + 0x1c]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x1e]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x1f]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax + 0x1c], edx
mov rcx, qword [rdi]
add rcx, rbx
movzx eax, byte [rcx + 0x21]
movzx edx, byte [rcx + 0x20]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x22]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x23]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax + 0x20], edx
mov rcx, qword [rdi]
add rcx, rbx
movzx eax, byte [rcx + 0x25]
movzx edx, byte [rcx + 0x24]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x26]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x27]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax + 0x24], edx
mov rcx, qword [rdi]
add rcx, rbx
movzx eax, byte [rcx + 0x29]
movzx edx, byte [rcx + 0x28]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x2a]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x2b]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax + 0x28], edx
mov rcx, qword [rdi]
add rcx, rbx
movzx eax, byte [rcx + 0x2d]
movzx edx, byte [rcx + 0x2c]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x2e]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x2f]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax + 0x2c], edx
mov rcx, qword [rdi]
add rcx, rbx
movzx eax, byte [rcx + 0x31]
movzx edx, byte [rcx + 0x30]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x32]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x33]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax + 0x30], edx
mov rcx, qword [rdi]
add rcx, rbx
movzx eax, byte [rcx + 0x35]
movzx edx, byte [rcx + 0x34]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x36]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x37]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax + 0x34], edx
mov rcx, qword [rdi]
add rcx, rbx
movzx eax, byte [rcx + 0x39]
movzx edx, byte [rcx + 0x38]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x3a]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x3b]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax + 0x38], edx
mov rcx, qword [rdi]
add rcx, rbx
mov ebx, 6
movzx eax, byte [rcx + 0x3d]
movzx edx, byte [rcx + 0x3c]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x3e]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x3f]
shl edx, 8
or edx, eax
mov rax, qword [rbp + 0xf]
mov dword [rax + 0x3c], edx
mov eax, 4
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rbp + 0xf]
mov edx, dword [rax + r10]
mov r9d, edx
mov r8d, dword [rax + r10 + 0x34]
mov ecx, edx
ror r9d, 0x12
shr edx, 3
ror ecx, 7
xor r9d, ecx
mov ecx, r8d
xor r9d, edx
ror ecx, 0x11
mov edx, r8d
shr r8d, 0xa
ror edx, 0x13
xor edx, ecx
xor edx, r8d
add r9d, edx
add r9d, dword [rax + r10 - 4]
add r9d, dword [rax + r10 + 0x20]
mov dword [rax + r10 + 0x3c], r9d
mov r10, qword [rbp + 0xf]
mov edx, dword [rax + r10 + 0x38]
mov r9d, edx
mov r8d, dword [rax + r10 + 4]
mov ecx, edx
shr edx, 0xa
ror r9d, 0x13
ror ecx, 0x11
xor r9d, ecx
mov ecx, r8d
xor r9d, edx
ror ecx, 7
mov edx, r8d
shr r8d, 3
ror edx, 0x12
xor edx, ecx
xor edx, r8d
add r9d, edx
add r9d, dword [rax + r10 + 0x24]
add r9d, dword [rax + r10]
mov dword [rax + r10 + 0x40], r9d
mov r10, qword [rbp + 0xf]
mov edx, dword [rax + r10 + 0x3c]
mov r9d, edx
mov r8d, dword [rax + r10 + 8]
mov ecx, edx
shr edx, 0xa
ror r9d, 0x13
ror ecx, 0x11
xor r9d, ecx
mov ecx, r8d
xor r9d, edx
ror ecx, 7
mov edx, r8d
shr r8d, 3
ror edx, 0x12
xor edx, ecx
xor edx, r8d
add r9d, edx
add r9d, dword [rax + r10 + 0x28]
add r9d, dword [rax + r10 + 4]
mov dword [rax + r10 + 0x44], r9d
mov r10, qword [rbp + 0xf]
mov edx, dword [rax + r10 + 0x40]
mov r9d, edx
mov r8d, dword [rax + r10 + 0xc]
mov ecx, edx
shr edx, 0xa
ror ecx, 0x11
ror r9d, 0x13
xor r9d, ecx
mov ecx, r8d
xor r9d, edx
ror ecx, 7
mov edx, r8d
shr r8d, 3
ror edx, 0x12
xor edx, ecx
xor edx, r8d
add r9d, edx
add r9d, dword [rax + r10 + 0x2c]
add r9d, dword [rax + r10 + 8]
mov dword [rax + r10 + 0x48], r9d
mov r10, qword [rbp + 0xf]
mov edx, dword [rax + r10 + 0x44]
mov r9d, edx
mov r8d, dword [rax + r10 + 0x10]
mov ecx, edx
ror r9d, 0x13
shr edx, 0xa
ror ecx, 0x11
xor r9d, ecx
mov ecx, r8d
xor r9d, edx
ror ecx, 7
mov edx, r8d
shr r8d, 3
ror edx, 0x12
xor edx, ecx
xor edx, r8d
add r9d, edx
add r9d, dword [rax + r10 + 0x30]
add r9d, dword [rax + r10 + 0xc]
mov dword [rax + r10 + 0x4c], r9d
mov r10, qword [rbp + 0xf]
mov edx, dword [rax + r10 + 0x48]
mov r9d, edx
mov r8d, dword [rax + r10 + 0x14]
mov ecx, edx
ror r9d, 0x13
shr edx, 0xa
ror ecx, 0x11
xor r9d, ecx
mov ecx, r8d
xor r9d, edx
ror ecx, 7
mov edx, r8d
shr r8d, 3
ror edx, 0x12
xor edx, ecx
xor edx, r8d
add r9d, edx
add r9d, dword [rax + r10 + 0x34]
add r9d, dword [rax + r10 + 0x10]
mov dword [rax + r10 + 0x50], r9d
mov r10, qword [rbp + 0xf]
mov edx, dword [rax + r10 + 0x4c]
mov r9d, edx
mov r8d, dword [rax + r10 + 0x18]
mov ecx, edx
ror r9d, 0x13
shr edx, 0xa
ror ecx, 0x11
xor r9d, ecx
mov ecx, r8d
xor r9d, edx
ror ecx, 7
mov edx, r8d
shr r8d, 3
ror edx, 0x12
xor edx, ecx
xor edx, r8d
add r9d, edx
add r9d, dword [rax + r10 + 0x38]
add r9d, dword [rax + r10 + 0x14]
mov dword [rax + r10 + 0x54], r9d
mov r10, qword [rbp + 0xf]
mov edx, dword [rax + r10 + 0x50]
mov r9d, edx
mov r8d, dword [rax + r10 + 0x1c]
mov ecx, edx
ror ecx, 0x11
shr edx, 0xa
ror r9d, 0x13
xor r9d, ecx
mov ecx, r8d
xor r9d, edx
ror ecx, 7
mov edx, r8d
ror edx, 0x12
xor edx, ecx
shr r8d, 3
lea rax, [rax + 0x20]
xor edx, r8d
add r9d, edx
add r9d, dword [rax + r10 + 0x1c]
add r9d, dword [rax + r10 - 8]
mov dword [rax + r10 + 0x38], r9d
sub rbx, 1
jne 0x180017d50
mov r12, qword [r13]
lea rcx, [0x180091268]
mov qword [rbp - 1], r12
lea r13, [0x180091260]
mov qword [rbp - 0x29], 8
mov eax, dword [r12]
mov ebx, eax
mov r11d, dword [r12 + 4]
mov r9d, dword [r12 + 8]
mov r10d, dword [r12 + 0xc]
mov r15d, dword [r12 + 0x10]
mov r14d, dword [r12 + 0x14]
mov edi, dword [r12 + 0x18]
mov esi, dword [r12 + 0x1c]
lea r12, [0x180091264]
mov dword [rbp - 0x31], eax
mov rax, qword [rbp + 0xf]
sub rcx, rax
sub r13, rax
mov qword [rbp - 0x21], rcx
sub r12, rax
lea rcx, [0x18009126c]
sub rcx, rax
lea rdx, [rax + 8]
mov qword [rbp - 0x19], rcx
lea rcx, [0x180091270]
sub rcx, rax
mov qword [rbp - 0x39], rdx
mov qword [rbp - 0x11], rcx
lea rcx, [0x180091274]
sub rcx, rax
mov qword [rbp - 9], rcx
mov eax, r15d
mov r8d, r15d
ror eax, 0xb
mov ecx, r15d
not ecx
ror r8d, 0x19
xor r8d, eax
and ecx, edi
mov eax, r15d
ror eax, 6
xor r8d, eax
mov eax, r14d
and eax, r15d
xor ecx, eax
mov eax, ebx
add r8d, ecx
ror eax, 0xd
add r8d, dword [rdx + r13 - 8]
mov ecx, r11d
add r8d, dword [rdx - 8]
xor ecx, ebx
add r8d, esi
and ecx, r9d
add r10d, r8d
mov esi, ebx
ror esi, 0x16
xor esi, eax
mov eax, ebx
ror eax, 2
xor esi, eax
mov eax, r11d
and eax, ebx
xor ecx, eax
mov eax, r10d
ror eax, 0xb
add esi, ecx
add esi, r8d
mov ecx, r10d
not ecx
mov r8d, r10d
ror r8d, 0x19
and ecx, r14d
xor r8d, eax
mov eax, r10d
ror eax, 6
xor r8d, eax
mov eax, r15d
and eax, r10d
xor ecx, eax
mov rax, qword [rbp - 0x39]
add r8d, ecx
mov ecx, ebx
xor ecx, esi
and ecx, r11d
add r8d, dword [r12 + rax - 8]
add r8d, dword [rax - 4]
mov eax, esi
add r8d, edi
ror eax, 0xd
add r9d, r8d
mov edi, esi
ror edi, 0x16
xor edi, eax
mov eax, esi
ror eax, 2
xor edi, eax
mov eax, ebx
and eax, esi
xor ecx, eax
mov eax, r9d
add edi, ecx
ror eax, 0xb
add edi, r8d
mov ecx, r9d
ror ecx, 0x19
mov r8d, r9d
xor ecx, eax
not r8d
mov eax, r9d
ror eax, 6
xor ecx, eax
and r8d, r15d
mov eax, r10d
and eax, r9d
xor r8d, eax
lea eax, [r14 + rcx]
add r8d, eax
mov ecx, esi
mov rax, qword [rbp - 0x39]
xor ecx, edi
and ecx, ebx
mov r14d, edi
ror r14d, 0x16
add r8d, dword [rax + r13]
add r8d, dword [rax]
mov eax, edi
ror eax, 0xd
add r11d, r8d
xor r14d, eax
mov eax, edi
ror eax, 2
xor r14d, eax
mov eax, esi
and eax, edi
xor ecx, eax
mov eax, r11d
ror eax, 0xb
add r14d, ecx
add r14d, r8d
mov ecx, r11d
not ecx
mov r8d, r11d
ror r8d, 0x19
and ecx, r10d
xor r8d, eax
mov eax, r11d
ror eax, 6
xor r8d, eax
mov eax, r9d
and eax, r11d
xor ecx, eax
mov rax, qword [rbp - 0x39]
add r8d, ecx
mov ecx, edi
xor ecx, r14d
and ecx, esi
add r8d, dword [rax + 4]
add r8d, dword [r12 + rax]
mov eax, r14d
add r8d, r15d
ror eax, 0xd
add ebx, r8d
mov r15d, r14d
ror r15d, 0x16
xor r15d, eax
mov eax, r14d
ror eax, 2
xor r15d, eax
mov eax, edi
and eax, r14d
xor ecx, eax
mov eax, ebx
add r15d, ecx
ror eax, 0xb
add r15d, r8d
mov ecx, ebx
not ecx
mov r8d, ebx
ror r8d, 0x19
and ecx, r9d
xor r8d, eax
mov eax, ebx
ror eax, 6
xor r8d, eax
mov eax, r11d
and eax, ebx
xor ecx, eax
mov rax, qword [rbp - 0x21]
add r8d, ecx
mov rcx, qword [rbp - 0x39]
add r8d, dword [rax + rcx]
add r8d, dword [rcx + 8]
add r8d, r10d
mov eax, r15d
ror eax, 0xd
add esi, r8d
mov ecx, r14d
mov r10d, r15d
xor ecx, r15d
ror r10d, 0x16
xor r10d, eax
and ecx, edi
mov eax, r15d
ror eax, 2
xor r10d, eax
mov eax, r14d
and eax, r15d
xor ecx, eax
mov eax, esi
ror eax, 0xb
add r10d, ecx
add r10d, r8d
mov ecx, esi
not ecx
mov r8d, esi
ror r8d, 0x19
and ecx, r11d
xor r8d, eax
mov eax, esi
ror eax, 6
xor r8d, eax
mov eax, ebx
and eax, esi
xor ecx, eax
mov rax, qword [rbp - 0x19]
add r8d, ecx
mov rcx, qword [rbp - 0x39]
add r8d, dword [rax + rcx]
mov eax, r10d
add r8d, dword [rcx + 0xc]
mov ecx, r15d
add r8d, r9d
ror eax, 0xd
add edi, r8d
xor ecx, r10d
and ecx, r14d
mov r9d, r10d
ror r9d, 0x16
xor r9d, eax
mov eax, r10d
ror eax, 2
xor r9d, eax
mov eax, r15d
and eax, r10d
xor ecx, eax
mov eax, edi
ror eax, 0xb
add r9d, ecx
add r9d, r8d
mov ecx, edi
not ecx
mov r8d, edi
ror r8d, 0x19
and ecx, ebx
xor r8d, eax
mov eax, edi
ror eax, 6
xor r8d, eax
mov eax, esi
and eax, edi
xor ecx, eax
mov rax, qword [rbp - 0x11]
add r8d, ecx
mov rcx, qword [rbp - 0x39]
add r8d, dword [rax + rcx]
mov eax, r9d
add r8d, dword [rcx + 0x10]
add r8d, r11d
ror eax, 0xd
mov r11d, r9d
ror r11d, 0x16
xor r11d, eax
mov eax, r9d
mov rdx, qword [rbp - 0x39]
add r14d, r8d
ror eax, 2
mov ecx, r10d
xor r11d, eax
xor ecx, r9d
and ecx, r15d
mov eax, r10d
and eax, r9d
add rdx, 0x20
xor ecx, eax
mov eax, r14d
ror eax, 0xb
add r11d, ecx
add r11d, r8d
mov ecx, r14d
not ecx
mov r8d, r14d
ror r8d, 0x19
and ecx, esi
xor r8d, eax
mov eax, r14d
ror eax, 6
xor r8d, eax
mov eax, edi
and eax, r14d
xor ecx, eax
mov rax, qword [rbp - 9]
add r8d, ecx
mov rcx, qword [rbp - 0x39]
mov qword [rbp - 0x39], rdx
add r8d, dword [rax + rcx]
mov eax, r11d
add r8d, dword [rcx + 0x14]
mov ecx, r9d
add r8d, ebx
ror eax, 0xd
xor ecx, r11d
mov ebx, r11d
ror ebx, 0x16
and ecx, r10d
xor ebx, eax
add r15d, r8d
mov eax, r11d
ror eax, 2
xor ebx, eax
mov eax, r9d
and eax, r11d
xor ecx, eax
add ebx, ecx
add ebx, r8d
sub qword [rbp - 0x29], 1
jne 0x180018040
mov r13, qword [rbp + 7]
mov eax, dword [rbp - 0x31]
mov r12, qword [rbp - 1]
add eax, ebx
mov dword [r12], eax
mov rax, qword [r13]
add dword [rax + 4], r11d
mov rax, qword [r13]
add dword [rax + 8], r9d
mov rax, qword [r13]
add dword [rax + 0xc], r10d
mov rax, qword [r13]
add dword [rax + 0x10], r15d
mov rax, qword [r13]
add dword [rax + 0x14], r14d
mov rax, qword [r13]
add dword [rax + 0x18], edi
mov rax, qword [r13]
add dword [rax + 0x1c], esi
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x180018427
mov rdx, qword [rbp + 0x1f]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x180018422
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180018422
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18007aa74
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18007aa10
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret