Function at 0x1800351f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r13
push r15
sub rsp, 0x50
mov rax, qword [r9 + 8]
mov rdi, r9
sub rax, qword [r9]
mov rbp, r8
mov r13, rdx
mov rsi, rcx
test rax, 0xfffffffffffffffc
je 0x1800357b7
mov r15, qword [rsp + 0xa0]
mov rax, qword [r15 + 8]
sub rax, qword [r15]
cmp rax, 0x10
jne 0x1800357b7
cmp qword [0x18026a1e0], 0
mov qword [rsp + 0x80], rbx
jne 0x180035254
call fcn.180045990
mov rbx, qword [0x180260938]
call fcn.180034a30
xor edx, edx
mov dword [rsp + 0x30], edx
shr rbx, 2
nop word [rax + rax]
mov ecx, dword [rax + rdx*4]
add rdx, rbx
or dword [rsp + 0x30], ecx
cmp rdx, 0x100
jb 0x180035270
mov ecx, dword [rax + 0x148]
and dword [rsp + 0x30], ecx
test rbp, rbp
je 0x1800357a3
mov qword [rsp + 0x48], r12
sub r13, rsi
mov qword [rsp + 0x40], r14
lea r14, [rsi + 8]
nop word [rax + rax]
mov rcx, qword [rdi]
mov r8d, dword [r14 - 8]
mov r9d, dword [r14 - 4]
mov r10d, dword [r14]
mov r11d, dword [r14 + 4]
bswap r8d
xor r8d, dword [rcx]
bswap r9d
xor r9d, dword [rcx + 4]
bswap r10d
xor r10d, dword [rcx + 8]
bswap r11d
xor r11d, dword [rcx + 0xc]
mov ecx, dword [rsp + 0x30]
xor r8d, ecx
mov r12, qword [rdi]
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
mov ebx, dword [rax + rcx*4]
mov ecx, r10d
shr ecx, 8
movzx ecx, cl
ror ebx, 8
mov edx, dword [rax + rcx*4]
rol edx, 0x10
xor ebx, edx
movzx ecx, r11b
mov edx, dword [rax + rcx*4]
mov ecx, r8d
shr ecx, 0x18
rol edx, 8
xor ebx, edx
movzx edx, cl
mov ecx, r10d
shr ecx, 0x10
movzx ecx, cl
xor ebx, dword [rax + rdx*4]
xor ebx, dword [r12 + 0x10]
mov edi, dword [rax + rcx*4]
mov ecx, r11d
shr ecx, 8
movzx ecx, cl
ror edi, 8
mov edx, dword [rax + rcx*4]
rol edx, 0x10
xor edi, edx
movzx ecx, r8b
mov edx, dword [rax + rcx*4]
mov ecx, r9d
shr ecx, 0x18
rol edx, 8
xor edi, edx
movzx edx, cl
mov ecx, r8d
shr r8d, 0x10
shr ecx, 8
movzx ecx, cl
xor edi, dword [rax + rdx*4]
xor edi, dword [r12 + 0x14]
mov ebp, dword [rax + rcx*4]
mov ecx, r11d
shr ecx, 0x10
movzx ecx, cl
rol ebp, 0x10
mov edx, dword [rax + rcx*4]
ror edx, 8
xor ebp, edx
movzx ecx, r9b
mov edx, dword [rax + rcx*4]
mov ecx, r10d
rol edx, 8
xor ebp, edx
shr ecx, 0x18
movzx edx, cl
movzx ecx, r8b
xor ebp, dword [rax + rdx*4]
mov esi, dword [rax + rcx*4]
xor ebp, dword [r12 + 0x18]
ror esi, 8
shr r9d, 8
movzx ecx, r9b
shr r11d, 0x18
mov edx, dword [rax + rcx*4]
rol edx, 0x10
xor esi, edx
movzx ecx, r10b
mov edx, dword [rax + rcx*4]
rol edx, 8
xor esi, edx
movzx ecx, r11b
mov rdx, qword [rsp + 0x98]
xor esi, dword [rax + rcx*4]
xor esi, dword [r12 + 0x1c]
mov r12, qword [rdx + 8]
mov rcx, qword [rdx]
sub r12, rcx
sar r12, 2
cmp r12, 8
jbe 0x180035605
add r12, 0xfffffffffffffff7
lea r15, [rcx + 0x28]
shr r12, 3
inc r12
nop word [rax + rax]
mov ecx, ebp
shr ecx, 8
movzx ecx, cl
mov r11d, dword [rax + rcx*4]
mov ecx, edi
shr ecx, 0x10
movzx ecx, cl
rol r11d, 0x10
mov edx, dword [rax + rcx*4]
ror edx, 8
xor r11d, edx
movzx ecx, sil
mov edx, dword [rax + rcx*4]
mov ecx, ebx
shr ecx, 0x18
rol edx, 8
xor r11d, edx
movzx edx, cl
mov ecx, esi
shr ecx, 8
movzx ecx, cl
xor r11d, dword [rax + rdx*4]
xor r11d, dword [r15 - 8]
mov r10d, dword [rax + rcx*4]
mov ecx, ebp
shr ecx, 0x10
movzx ecx, cl
rol r10d, 0x10
mov edx, dword [rax + rcx*4]
ror edx, 8
xor r10d, edx
movzx ecx, bl
mov edx, dword [rax + rcx*4]
mov ecx, edi
shr ecx, 0x18
rol edx, 8
xor r10d, edx
movzx edx, cl
mov ecx, esi
shr esi, 0x18
shr ecx, 0x10
movzx ecx, cl
xor r10d, dword [rax + rdx*4]
xor r10d, dword [r15 - 4]
mov r9d, dword [rax + rcx*4]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
ror r9d, 8
shr ebx, 0x10
mov edx, dword [rax + rcx*4]
rol edx, 0x10
xor r9d, edx
movzx ecx, dil
shr edi, 8
mov edx, dword [rax + rcx*4]
mov ecx, ebp
shr ecx, 0x18
rol edx, 8
xor r9d, edx
movzx edx, cl
movzx ecx, dil
xor r9d, dword [rax + rdx*4]
mov r8d, dword [rax + rcx*4]
xor r9d, dword [r15]
rol r8d, 0x10
movzx ecx, bl
mov edx, dword [rax + rcx*4]
ror edx, 8
xor r8d, edx
movzx ecx, bpl
mov edx, dword [rax + rcx*4]
movzx ecx, sil
rol edx, 8
xor r8d, edx
xor r8d, dword [rax + rcx*4]
mov ecx, r10d
xor r8d, dword [r15 + 4]
shr ecx, 0x10
movzx ecx, cl
mov ebx, dword [rax + rcx*4]
ror ebx, 8
lea r15, [r15 + 0x20]
mov ecx, r9d
shr ecx, 8
movzx ecx, cl
mov edx, dword [rax + rcx*4]
rol edx, 0x10
xor ebx, edx
movzx ecx, r8b
mov edx, dword [rax + rcx*4]
mov ecx, r11d
shr ecx, 0x18
rol edx, 8
xor ebx, edx
movzx edx, cl
mov ecx, r9d
shr ecx, 0x10
movzx ecx, cl
xor ebx, dword [rax + rdx*4]
xor ebx, dword [r15 - 0x18]
mov edi, dword [rax + rcx*4]
mov ecx, r8d
shr ecx, 8
movzx ecx, cl
ror edi, 8
mov edx, dword [rax + rcx*4]
rol edx, 0x10
xor edi, edx
movzx ecx, r11b
mov edx, dword [rax + rcx*4]
mov ecx, r10d
shr ecx, 0x18
rol edx, 8
xor edi, edx
movzx edx, cl
mov ecx, r11d
shr r11d, 0x10
shr ecx, 8
movzx ecx, cl
xor edi, dword [rax + rdx*4]
xor edi, dword [r15 - 0x14]
mov ebp, dword [rax + rcx*4]
mov ecx, r8d
shr ecx, 0x10
movzx ecx, cl
rol ebp, 0x10
shr r8d, 0x18
mov edx, dword [rax + rcx*4]
ror edx, 8
xor ebp, edx
movzx ecx, r10b
shr r10d, 8
mov edx, dword [rax + rcx*4]
mov ecx, r9d
rol edx, 8
xor ebp, edx
shr ecx, 0x18
movzx edx, cl
movzx ecx, r11b
xor ebp, dword [rax + rdx*4]
mov esi, dword [rax + rcx*4]
xor ebp, dword [r15 - 0x10]
ror esi, 8
movzx ecx, r10b
mov edx, dword [rax + rcx*4]
rol edx, 0x10
xor esi, edx
movzx ecx, r9b
mov edx, dword [rax + rcx*4]
rol edx, 8
xor esi, edx
movzx ecx, r8b
xor esi, dword [rax + rcx*4]
xor esi, dword [r15 - 0xc]
sub r12, 1
jne 0x180035410
mov r15, qword [rsp + 0xa0]
mov ecx, ebx
shr ecx, 0x18
movzx ecx, cl
mov edx, dword [rax + rcx*4]
mov rcx, qword [r15]
shr edx, 8
xor dl, byte [rcx]
mov ecx, edi
mov byte [r14 + r13 - 8], dl
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [rax + rcx*4]
mov rcx, qword [r15]
shr edx, 8
xor dl, byte [rcx + 1]
mov ecx, ebp
mov byte [r14 + r13 - 7], dl
shr ecx, 8
movzx ecx, cl
mov edx, dword [rax + rcx*4]
mov rcx, qword [r15]
shr edx, 8
xor dl, byte [rcx + 2]
mov byte [r14 + r13 - 6], dl
movzx ecx, sil
mov edx, dword [rax + rcx*4]
mov rcx, qword [r15]
shr edx, 8
xor dl, byte [rcx + 3]
mov ecx, edi
mov byte [r14 + r13 - 5], dl
shr ecx, 0x18
movzx ecx, cl
mov edx, dword [rax + rcx*4]
mov rcx, qword [r15]
shr edx, 8
xor dl, byte [rcx + 4]
mov ecx, ebp
mov byte [r14 + r13 - 4], dl
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [rax + rcx*4]
mov rcx, qword [r15]
shr edx, 8
xor dl, byte [rcx + 5]
mov ecx, esi
mov byte [r14 + r13 - 3], dl
shr ecx, 8
movzx ecx, cl
mov edx, dword [rax + rcx*4]
mov rcx, qword [r15]
shr edx, 8
xor dl, byte [rcx + 6]
mov byte [r14 + r13 - 2], dl
movzx ecx, bl
mov edx, dword [rax + rcx*4]
mov rcx, qword [r15]
shr edx, 8
xor dl, byte [rcx + 7]
mov ecx, ebp
shr ecx, 0x18
mov byte [r14 + r13 - 1], dl
movzx ecx, cl
mov edx, dword [rax + rcx*4]
mov rcx, qword [r15]
shr edx, 8
xor dl, byte [rcx + 8]
mov ecx, esi
shr ecx, 0x10
mov byte [r14 + r13], dl
movzx ecx, cl
mov edx, dword [rax + rcx*4]
mov rcx, qword [r15]
shr edx, 8
xor dl, byte [rcx + 9]
mov ecx, ebx
shr ecx, 8
mov byte [r14 + r13 + 1], dl
movzx ecx, cl
mov edx, dword [rax + rcx*4]
shr edx, 8
mov rcx, qword [r15]
shr esi, 0x18
shr ebx, 0x10
xor dl, byte [rcx + 0xa]
mov byte [r14 + r13 + 2], dl
movzx ecx, dil
shr edi, 8
mov edx, dword [rax + rcx*4]
mov rcx, qword [r15]
shr edx, 8
xor dl, byte [rcx + 0xb]
mov byte [r14 + r13 + 3], dl
movzx ecx, sil
mov edx, dword [rax + rcx*4]
mov rcx, qword [r15]
shr edx, 8
xor dl, byte [rcx + 0xc]
mov byte [r14 + r13 + 4], dl
movzx ecx, bl
mov edx, dword [rax + rcx*4]
mov rcx, qword [r15]
shr edx, 8
xor dl, byte [rcx + 0xd]
mov byte [r14 + r13 + 5], dl
movzx ecx, dil
mov rdi, qword [rsp + 0x98]
mov edx, dword [rax + rcx*4]
mov rcx, qword [r15]
shr edx, 8
xor dl, byte [rcx + 0xe]
mov byte [r14 + r13 + 6], dl
movzx ecx, bpl
mov edx, dword [rax + rcx*4]
mov rcx, qword [r15]
shr edx, 8
xor dl, byte [rcx + 0xf]
mov byte [r14 + r13 + 7], dl
add r14, 0x10
sub qword [rsp + 0x90], 1
jne 0x1800352b0
mov r14, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r13
pop rdi
pop rsi
pop rbp
ret
lea r9, str.gold
mov dword [rsp + 0x20], 0xbc
lea r8, str.aes_encrypt_n
lea rdx, str.Key_was_set
lea rcx, str.EK.size____ME.size____16
call fcn.1800401f0
int3