Function at 0x180034bd0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [r9 + 8]
mov r14, r9
sub rax, qword [r9]
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
test rax, 0xfffffffffffffffc
je 0x1800351b9
mov r15, qword [rsp + 0xb0]
mov rax, qword [r15 + 8]
sub rax, qword [r15]
cmp rax, 0x10
jne 0x1800351b9
cmp qword [0x18026a1e0], 0
mov qword [rsp + 0x90], rbx
jne 0x180034c34
call fcn.180045990
mov rbx, qword [0x180260938]
call fcn.1800349c0
xor edx, edx
mov r9, rbx
mov dword [rsp + 0x30], edx
mov r8d, edx
shr r9, 2
mov ecx, dword [rax + r8*4]
add r8, r9
or dword [rsp + 0x30], ecx
cmp r8, 0x100
jb 0x180034c50
lea r8, [0x1801bac00]
nop dword [rax + rax]
movzx ecx, byte [rdx + r8]
add rdx, rbx
or dword [rsp + 0x30], ecx
cmp rdx, 0x100
jb 0x180034c70
mov ecx, dword [rax + 0x18c]
and dword [rsp + 0x30], ecx
test rbp, rbp
je 0x1800351a5
mov qword [rsp + 0x58], r12
lea r10, [rsi + 8]
lea r12, [rdi + 2]
mov qword [rsp + 0x50], r13
sub rdi, rsi
mov qword [rsp + 0x38], r10
lea rcx, [rdi - 8]
mov qword [rsp + 0x40], rcx
nop dword [rax + rax]
mov rcx, qword [r14]
mov r11d, dword [r10 - 8]
mov r9d, dword [r10 - 4]
mov r8d, dword [r10]
mov r10d, dword [r10 + 4]
bswap r11d
xor r11d, dword [rcx]
bswap r9d
xor r9d, dword [rcx + 4]
bswap r8d
xor r8d, dword [rcx + 8]
bswap r10d
xor r10d, dword [rcx + 0xc]
mov ecx, dword [rsp + 0x30]
xor r11d, ecx
mov r13, qword [r14]
mov ecx, r10d
shr ecx, 0x10
movzx ecx, cl
mov ebp, dword [rax + rcx*4]
mov ecx, r8d
shr ecx, 8
movzx ecx, cl
ror ebp, 8
mov edx, dword [rax + rcx*4]
rol edx, 0x10
xor ebp, edx
movzx ecx, r9b
mov edx, dword [rax + rcx*4]
mov ecx, r11d
shr ecx, 0x18
rol edx, 8
xor ebp, edx
movzx edx, cl
mov ecx, r10d
shr ecx, 8
movzx ecx, cl
xor ebp, dword [rax + rdx*4]
xor ebp, dword [r13 + 0x10]
mov ebx, dword [rax + rcx*4]
mov ecx, r11d
shr ecx, 0x10
movzx ecx, cl
rol ebx, 0x10
mov edx, dword [rax + rcx*4]
ror edx, 8
xor ebx, edx
movzx ecx, r8b
mov edx, dword [rax + rcx*4]
mov ecx, r9d
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 [r13 + 0x14]
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, r10b
mov edx, dword [rax + rcx*4]
mov ecx, r8d
rol edx, 8
xor edi, edx
shr ecx, 0x18
shr r8d, 0x10
movzx edx, cl
movzx ecx, r8b
xor edi, dword [rax + rdx*4]
mov esi, dword [rax + rcx*4]
xor edi, dword [r13 + 0x18]
ror esi, 8
shr r9d, 8
mov r14, qword [r14 + 8]
movzx ecx, r9b
sub r14, r13
shr r10d, 0x18
sar r14, 2
mov edx, dword [rax + rcx*4]
rol edx, 0x10
xor esi, edx
movzx ecx, r11b
mov edx, dword [rax + rcx*4]
rol edx, 8
xor esi, edx
movzx ecx, r10b
xor esi, dword [rax + rcx*4]
xor esi, dword [r13 + 0x1c]
cmp r14, 8
jbe 0x180034ffe
add r14, 0xfffffffffffffff7
add r13, 0x28
shr r14, 3
inc r14
nop dword [rax + rax]
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
mov r11d, dword [rax + rcx*4]
mov ecx, edi
shr ecx, 8
movzx ecx, cl
ror r11d, 8
mov edx, dword [rax + rcx*4]
rol edx, 0x10
xor r11d, edx
movzx ecx, bl
mov edx, dword [rax + rcx*4]
mov ecx, ebp
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 [r13 - 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, dil
mov edx, dword [rax + rcx*4]
mov ecx, ebx
shr ecx, 0x18
rol edx, 8
xor r10d, edx
movzx edx, cl
mov ecx, ebx
shr ebx, 8
shr ecx, 0x10
movzx ecx, cl
xor r10d, dword [rax + rdx*4]
xor r10d, dword [r13 - 4]
mov r9d, dword [rax + rcx*4]
mov ecx, ebp
shr ecx, 8
movzx ecx, cl
ror r9d, 8
mov edx, dword [rax + rcx*4]
rol edx, 0x10
xor r9d, edx
movzx ecx, sil
shr esi, 0x18
mov edx, dword [rax + rcx*4]
mov ecx, edi
shr ecx, 0x18
rol edx, 8
xor r9d, edx
shr edi, 0x10
movzx edx, cl
movzx ecx, dil
xor r9d, dword [rax + rdx*4]
mov r8d, dword [rax + rcx*4]
xor r9d, dword [r13]
ror r8d, 8
movzx ecx, bl
mov edx, dword [rax + rcx*4]
rol edx, 0x10
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]
xor r8d, dword [r13 + 4]
mov ecx, r8d
shr ecx, 0x10
movzx ecx, cl
mov ebp, dword [rax + rcx*4]
ror ebp, 8
lea r13, [r13 + 0x20]
mov ecx, r9d
shr ecx, 8
movzx ecx, cl
mov edx, dword [rax + rcx*4]
rol edx, 0x10
xor ebp, edx
movzx ecx, r10b
mov edx, dword [rax + rcx*4]
mov ecx, r11d
shr ecx, 0x18
rol edx, 8
xor ebp, edx
movzx edx, cl
mov ecx, r8d
shr ecx, 8
movzx ecx, cl
xor ebp, dword [rax + rdx*4]
xor ebp, dword [r13 - 0x18]
mov ebx, dword [rax + rcx*4]
mov ecx, r11d
shr ecx, 0x10
movzx ecx, cl
rol ebx, 0x10
mov edx, dword [rax + rcx*4]
ror edx, 8
xor ebx, edx
movzx ecx, r9b
mov edx, dword [rax + rcx*4]
mov ecx, r10d
shr ecx, 0x18
rol edx, 8
xor ebx, edx
movzx edx, cl
mov ecx, r10d
shr r10d, 8
shr ecx, 0x10
movzx ecx, cl
xor ebx, dword [rax + rdx*4]
xor ebx, dword [r13 - 0x14]
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
shr r8d, 0x18
mov edx, dword [rax + rcx*4]
mov ecx, r9d
rol edx, 8
xor edi, edx
shr ecx, 0x18
movzx edx, cl
shr r9d, 0x10
movzx ecx, r9b
xor edi, dword [rax + rdx*4]
xor edi, dword [r13 - 0x10]
mov esi, dword [rax + rcx*4]
ror esi, 8
movzx ecx, r10b
mov edx, dword [rax + rcx*4]
rol edx, 0x10
xor esi, edx
movzx ecx, r11b
mov edx, dword [rax + rcx*4]
rol edx, 8
xor esi, edx
movzx ecx, r8b
xor esi, dword [rax + rcx*4]
xor esi, dword [r13 - 0xc]
sub r14, 1
jne 0x180034e10
mov r10, qword [rsp + 0x38]
lea r8, [0x1801bac00]
mov ecx, ebp
shr ecx, 0x18
movzx edx, cl
mov rcx, qword [r15]
movzx edx, byte [rdx + r8]
xor dl, byte [rcx]
mov rcx, qword [rsp + 0x40]
mov byte [r10 + rcx], dl
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov rcx, qword [r15]
movzx edx, byte [rdx + r8]
xor dl, byte [rcx + 1]
mov ecx, edi
mov byte [r12 - 1], dl
shr ecx, 8
movzx edx, cl
mov rcx, qword [r15]
movzx edx, byte [rdx + r8]
xor dl, byte [rcx + 2]
mov byte [r12], dl
mov rcx, qword [r15]
movzx edx, bl
movzx edx, byte [rdx + r8]
xor dl, byte [rcx + 3]
mov ecx, ebx
mov byte [r12 + 1], dl
shr ecx, 0x18
movzx edx, cl
mov rcx, qword [r15]
movzx edx, byte [rdx + r8]
xor dl, byte [rcx + 4]
mov ecx, ebp
mov byte [r12 + 2], dl
shr ecx, 0x10
movzx edx, cl
mov rcx, qword [r15]
movzx edx, byte [rdx + r8]
xor dl, byte [rcx + 5]
mov ecx, esi
mov byte [r12 + 3], dl
shr ecx, 8
movzx edx, cl
mov rcx, qword [r15]
movzx edx, byte [rdx + r8]
xor dl, byte [rcx + 6]
mov byte [r12 + 4], dl
mov rcx, qword [r15]
movzx edx, dil
movzx edx, byte [rdx + r8]
xor dl, byte [rcx + 7]
mov ecx, edi
mov byte [r12 + 5], dl
shr ecx, 0x18
movzx edx, cl
mov rcx, qword [r15]
movzx edx, byte [rdx + r8]
xor dl, byte [rcx + 8]
mov ecx, ebx
mov byte [r12 + 6], dl
shr ecx, 0x10
movzx edx, cl
mov rcx, qword [r15]
movzx edx, byte [rdx + r8]
xor dl, byte [rcx + 9]
mov ecx, ebp
mov byte [r12 + 7], dl
shr ecx, 8
movzx edx, cl
mov rcx, qword [r15]
movzx edx, byte [rdx + r8]
xor dl, byte [rcx + 0xa]
mov byte [r12 + 8], dl
mov rcx, qword [r15]
movzx edx, sil
movzx edx, byte [rdx + r8]
xor dl, byte [rcx + 0xb]
mov byte [r12 + 9], dl
mov rcx, qword [r15]
add r10, 0x10
mov r14, qword [rsp + 0xa8]
shr esi, 0x18
movzx edx, sil
shr edi, 0x10
shr ebx, 8
mov qword [rsp + 0x38], r10
movzx edx, byte [rdx + r8]
xor dl, byte [rcx + 0xc]
mov byte [r12 + 0xa], dl
mov rcx, qword [r15]
movzx edx, dil
movzx edx, byte [rdx + r8]
xor dl, byte [rcx + 0xd]
mov byte [r12 + 0xb], dl
mov rcx, qword [r15]
movzx edx, bl
movzx edx, byte [rdx + r8]
xor dl, byte [rcx + 0xe]
mov byte [r12 + 0xc], dl
mov rcx, qword [r15]
movzx edx, bpl
movzx edx, byte [rdx + r8]
xor dl, byte [rcx + 0xf]
mov byte [r12 + 0xd], dl
add r12, 0x10
sub qword [rsp + 0xa0], 1
jne 0x180034cc0
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea r9, str.gold
mov dword [rsp + 0x20], 0x105
lea r8, str.aes_decrypt_n
lea rdx, str.Key_was_set
lea rcx, str.DK.size____MD.size____16
call fcn.1800401f0
int3