Function at 0x18000a170
Capabilities:
Encode data using xor
Encrypt data using aes
Resolve function by parsing pe exports

Disassembly:
push r12
push r14
push r15
sub rsp, 0x10
mov eax, dword [0x1802746b4]
lea r12, [0x180000000]
mov r8, rdx
mov dword [rcx + 0x200], 0xa
mov r14, rcx
mov qword [rsp + 0x30], rbx
movzx ebx, byte [rdx]
test eax, eax
movzx edx, byte [rdx + 1]
mov r15d, 1
cmove eax, r15d
mov qword [rsp + 0x38], rbp
shl ebx, 8
or ebx, edx
mov dword [0x1802746b4], eax
movzx edx, byte [r8 + 4]
mov rax, rcx
movzx ecx, byte [r8 + 2]
shl edx, 8
shl ebx, 8
or ebx, ecx
mov qword [rsp + 0x40], rsi
movzx ecx, byte [r8 + 3]
shl ebx, 8
or ebx, ecx
mov qword [rsp + 8], rdi
movzx ecx, byte [r8 + 5]
or edx, ecx
mov dword [rax], ebx
movzx ecx, byte [r8 + 6]
shl edx, 8
or edx, ecx
movzx ecx, byte [r8 + 7]
shl edx, 8
or edx, ecx
movzx ecx, byte [r8 + 9]
mov dword [rax + 4], edx
movzx edx, byte [r8 + 8]
shl edx, 8
or edx, ecx
movzx ecx, byte [r8 + 0xa]
shl edx, 8
or edx, ecx
movzx ecx, byte [r8 + 0xb]
shl edx, 8
or edx, ecx
movzx ecx, byte [r8 + 0xd]
mov dword [rax + 8], edx
movzx edx, byte [r8 + 0xc]
shl edx, 8
or edx, ecx
movzx ecx, byte [r8 + 0xe]
shl edx, 8
or edx, ecx
movzx ecx, byte [r8 + 0xf]
shl edx, 8
or edx, ecx
mov dword [rax + 0xc], edx
mov ecx, dword [rax + 0x200]
cmp ecx, 0xa
je 0x18000a814
cmp ecx, 0xc
je 0x18000a39c
cmp ecx, 0xe
jne 0x18000aa91
lea rdi, [0x18022a950]
lea rsi, [0x18022a96c]
nop dword [rax]
nop word [rax + rax]
mov r11d, dword [rax + 0x1c]
mov ecx, r11d
shr ecx, 0x10
movzx edx, cl
mov ecx, r11d
shr ecx, 8
movzx r8d, byte [rdx + r12 + 0x22ba80]
movzx edx, cl
shl r8d, 8
movzx ecx, byte [rdx + r12 + 0x22ba80]
mov edx, dword [rax + 8]
xor r8d, ecx
shl r8d, 8
movzx ecx, r11b
movzx ecx, byte [rcx + r12 + 0x22ba80]
xor r8d, ecx
mov ecx, r11d
shr rcx, 0x18
shl r8d, 8
movzx ecx, byte [rcx + r12 + 0x22ba80]
xor r8d, ecx
mov ecx, dword [rax + 4]
xor r8d, dword [rdi]
add rdi, 4
xor r8d, ebx
xor ecx, r8d
mov ebx, r8d
xor edx, ecx
mov dword [rax + 0x24], ecx
mov ecx, dword [rax + 0xc]
xor ecx, edx
mov dword [rax + 0x28], edx
mov r8d, ecx
shr rcx, 0x18
mov dword [rax + 0x20], ebx
mov dword [rax + 0x2c], r8d
movzx r9d, byte [rcx + r12 + 0x22ba80]
mov ecx, r8d
shr ecx, 0x10
movzx edx, cl
shl r9d, 8
movzx ecx, byte [rdx + r12 + 0x22ba80]
xor r9d, ecx
mov ecx, r8d
shr ecx, 8
movzx edx, cl
shl r9d, 8
movzx ecx, byte [rdx + r12 + 0x22ba80]
mov edx, dword [rax + 0x18]
xor r9d, ecx
shl r9d, 8
movzx ecx, r8b
movzx ecx, byte [rcx + r12 + 0x22ba80]
xor r9d, ecx
mov ecx, dword [rax + 0x14]
xor r9d, dword [rax + 0x10]
xor ecx, r9d
mov dword [rax + 0x30], r9d
xor edx, ecx
mov dword [rax + 0x34], ecx
xor r11d, edx
mov dword [rax + 0x38], edx
mov dword [rax + 0x3c], r11d
add rax, 0x20
cmp rdi, rsi
jl 0x18000a290
jmp 0x18000aa91
mov edx, dword [r14 + 0x14]
mov esi, dword [r14 + 4]
mov eax, edx
mov r10d, dword [r14 + 0x10]
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx r11d, byte [rcx + r12 + 0x22ba80]
movzx ecx, al
xor r11d, r15d
shl r11d, 8
movzx eax, byte [rcx + r12 + 0x22ba80]
xor r11d, eax
movzx eax, dl
shl r11d, 8
movzx eax, byte [rax + r12 + 0x22ba80]
xor r11d, eax
mov eax, edx
shr rax, 0x18
shl r11d, 8
movzx eax, byte [rax + r12 + 0x22ba80]
xor r11d, eax
xor r11d, ebx
xor esi, r11d
mov dword [r14 + 0x18], r11d
mov r8d, esi
mov dword [r14 + 0x1c], esi
xor r8d, dword [r14 + 8]
mov r9d, r8d
mov dword [r14 + 0x20], r8d
xor r9d, dword [r14 + 0xc]
xor r10d, r9d
mov dword [r14 + 0x24], r9d
mov eax, r10d
mov dword [r14 + 0x28], r10d
xor eax, edx
mov edx, eax
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
mov dword [r14 + 0x2c], edx
movzx ebx, byte [rcx + r12 + 0x22ba80]
movzx ecx, al
xor ebx, 2
shl ebx, 8
movzx eax, byte [rcx + r12 + 0x22ba80]
xor ebx, eax
movzx eax, dl
shl ebx, 8
movzx eax, byte [rax + r12 + 0x22ba80]
xor ebx, eax
mov eax, edx
shr rax, 0x18
shl ebx, 8
movzx eax, byte [rax + r12 + 0x22ba80]
xor ebx, eax
xor ebx, r11d
xor esi, ebx
mov dword [r14 + 0x30], ebx
mov r11d, esi
mov dword [r14 + 0x34], esi
xor r11d, r8d
mov r8d, r11d
mov dword [r14 + 0x38], r11d
xor r8d, r9d
mov edi, r8d
mov dword [r14 + 0x3c], r8d
xor edi, r10d
mov eax, edi
mov dword [r14 + 0x40], edi
xor eax, edx
mov edx, eax
shr eax, 0x10
movzx ecx, al
mov eax, edx
mov dword [r14 + 0x44], edx
movzx r10d, byte [rcx + r12 + 0x22ba80]
xor r10d, 4
shl r10d, 8
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x22ba80]
xor r10d, eax
movzx eax, dl
shl r10d, 8
movzx eax, byte [rax + r12 + 0x22ba80]
xor r10d, eax
mov eax, edx
shr rax, 0x18
shl r10d, 8
movzx eax, byte [rax + r12 + 0x22ba80]
xor r10d, eax
xor r10d, ebx
xor esi, r10d
mov dword [r14 + 0x48], r10d
mov ebx, esi
mov dword [r14 + 0x4c], esi
xor ebx, r11d
mov r9d, ebx
mov dword [r14 + 0x50], ebx
xor r9d, r8d
xor edi, r9d
mov dword [r14 + 0x54], r9d
xor edx, edi
mov dword [r14 + 0x58], edi
mov eax, edx
mov dword [r14 + 0x5c], edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx r11d, byte [rcx + r12 + 0x22ba80]
movzx ecx, al
xor r11d, 8
shl r11d, 8
movzx eax, byte [rcx + r12 + 0x22ba80]
xor r11d, eax
movzx eax, dl
shl r11d, 8
movzx eax, byte [rax + r12 + 0x22ba80]
xor r11d, eax
mov eax, edx
shr rax, 0x18
shl r11d, 8
movzx eax, byte [rax + r12 + 0x22ba80]
xor r11d, eax
xor r11d, r10d
xor esi, r11d
mov dword [r14 + 0x60], r11d
xor ebx, esi
mov dword [r14 + 0x64], esi
mov r8d, ebx
mov dword [r14 + 0x68], ebx
xor r8d, r9d
mov r9d, r8d
mov dword [r14 + 0x6c], r8d
xor r9d, edi
mov eax, r9d
mov dword [r14 + 0x70], r9d
xor eax, edx
mov edx, eax
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
mov dword [r14 + 0x74], edx
movzx edi, byte [rcx + r12 + 0x22ba80]
movzx ecx, al
xor edi, 0x10
shl edi, 8
movzx eax, byte [rcx + r12 + 0x22ba80]
xor edi, eax
movzx eax, dl
shl edi, 8
movzx eax, byte [rax + r12 + 0x22ba80]
xor edi, eax
mov eax, edx
shl edi, 8
shr rax, 0x18
movzx eax, byte [rax + r12 + 0x22ba80]
xor edi, eax
xor edi, r11d
mov r10d, edi
mov dword [r14 + 0x78], edi
xor r10d, esi
mov r11d, r10d
mov dword [r14 + 0x7c], r10d
xor r11d, ebx
mov ebx, r11d
mov dword [r14 + 0x80], r11d
xor ebx, r8d
mov r8d, ebx
mov dword [r14 + 0x84], ebx
xor r8d, r9d
mov eax, r8d
mov dword [r14 + 0x88], r8d
xor eax, edx
mov edx, eax
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
mov dword [r14 + 0x8c], edx
movzx ebp, byte [rcx + r12 + 0x22ba80]
movzx ecx, al
xor ebp, 0x20
shl ebp, 8
movzx eax, byte [rcx + r12 + 0x22ba80]
xor ebp, eax
movzx eax, dl
shl ebp, 8
movzx eax, byte [rax + r12 + 0x22ba80]
xor ebp, eax
mov eax, edx
shr rax, 0x18
shl ebp, 8
movzx eax, byte [rax + r12 + 0x22ba80]
xor ebp, eax
xor ebp, edi
mov r9d, ebp
mov dword [r14 + 0x90], ebp
xor r9d, r10d
mov r10d, r9d
mov dword [r14 + 0x94], r9d
xor r10d, r11d
mov r11d, r10d
mov dword [r14 + 0x98], r10d
xor r11d, ebx
mov ebx, r11d
mov dword [r14 + 0x9c], r11d
xor ebx, r8d
mov eax, ebx
mov dword [r14 + 0xa0], ebx
xor eax, edx
mov edx, eax
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
mov dword [r14 + 0xa4], edx
movzx esi, byte [rcx + r12 + 0x22ba80]
xor esi, 0x40
movzx ecx, al
shl esi, 8
movzx eax, byte [rcx + r12 + 0x22ba80]
xor esi, eax
movzx eax, dl
shl esi, 8
movzx eax, byte [rax + r12 + 0x22ba80]
xor esi, eax
mov eax, edx
shl esi, 8
shr rax, 0x18
movzx eax, byte [rax + r12 + 0x22ba80]
xor esi, eax
xor esi, ebp
mov edi, esi
mov dword [r14 + 0xa8], esi
xor edi, r9d
mov dword [r14 + 0xac], edi
mov r9d, edi
xor r9d, r10d
mov r10d, r9d
mov dword [r14 + 0xb0], r9d
xor r10d, r11d
mov r11d, r10d
mov dword [r14 + 0xb4], r10d
xor r11d, ebx
mov eax, r11d
mov dword [r14 + 0xb8], r11d
xor eax, edx
mov r8d, eax
shr eax, 0x10
movzx ecx, al
mov eax, r8d
shr eax, 8
mov dword [r14 + 0xbc], r8d
movzx edx, byte [rcx + r12 + 0x22ba80]
shl edx, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x22ba80]
xor edx, eax
movzx eax, r8b
shl edx, 8
movzx eax, byte [rax + r12 + 0x22ba80]
xor edx, eax
mov eax, r8d
shl edx, 8
shr rax, 0x18
movzx eax, byte [rax + r12 + 0x22ba80]
xor edx, eax
lea rax, [r14 + 0xc0]
xor edx, esi
btc edx, 0x1f
mov dword [rax], edx
xor edx, edi
mov dword [r14 + 0xc4], edx
xor edx, r9d
mov dword [r14 + 0xc8], edx
xor edx, r10d
mov dword [r14 + 0xcc], edx
xor edx, r11d
mov dword [r14 + 0xd0], edx
xor edx, r8d
mov dword [r14 + 0xd4], edx
jmp 0x18000aa91
mov qword [rsp], r13
lea rbp, [0x18022a958]
lea r13, [0x18022a980]
nop word [rax + rax]
mov r8d, dword [rax + 0xc]
mov esi, dword [rax + 4]
mov ecx, r8d
shr ecx, 0x10
movzx edx, cl
mov ecx, r8d
mov r9d, dword [rax + 8]
shr ecx, 8
movzx r10d, byte [rdx + r12 + 0x22ba80]
movzx edx, cl
shl r10d, 8
movzx ecx, byte [rdx + r12 + 0x22ba80]
xor r10d, ecx
movzx ecx, r8b
shl r10d, 8
movzx ecx, byte [rcx + r12 + 0x22ba80]
xor r10d, ecx
mov ecx, r8d
shr rcx, 0x18
shl r10d, 8
movzx ecx, byte [rcx + r12 + 0x22ba80]
xor r10d, ecx
xor r10d, dword [rbp - 8]
xor r10d, ebx
xor esi, r10d
mov dword [rax + 0x10], r10d
xor r9d, esi
mov dword [rax + 0x14], esi
mov ecx, r9d
mov dword [rax + 0x18], r9d
xor ecx, r8d
mov r8d, ecx
shr ecx, 0x10
movzx edx, cl
mov ecx, r8d
shr ecx, 8
mov dword [rax + 0x1c], r8d
movzx r11d, byte [rdx + r12 + 0x22ba80]
movzx edx, cl
shl r11d, 8
movzx ecx, byte [rdx + r12 + 0x22ba80]
xor r11d, ecx
movzx ecx, r8b
shl r11d, 8
movzx ecx, byte [rcx + r12 + 0x22ba80]
xor r11d, ecx
mov ecx, r8d
shr rcx, 0x18
shl r11d, 8
movzx ecx, byte [rcx + r12 + 0x22ba80]
xor r11d, ecx
xor r11d, dword [rbp - 4]
xor r11d, r10d
xor esi, r11d
mov dword [rax + 0x20], r11d
mov r10d, esi
mov dword [rax + 0x24], esi
xor r10d, r9d
mov ecx, r10d
mov dword [rax + 0x28], r10d
xor ecx, r8d
mov r8d, ecx
shr ecx, 0x10
movzx edx, cl
mov ecx, r8d
shr ecx, 8
mov dword [rax + 0x2c], r8d
movzx ebx, byte [rdx + r12 + 0x22ba80]
movzx edx, cl
shl ebx, 8
movzx ecx, byte [rdx + r12 + 0x22ba80]
xor ebx, ecx
movzx ecx, r8b
shl ebx, 8
movzx ecx, byte [rcx + r12 + 0x22ba80]
xor ebx, ecx
mov ecx, r8d
shr rcx, 0x18
shl ebx, 8
movzx ecx, byte [rcx + r12 + 0x22ba80]
xor ebx, ecx
xor ebx, dword [rbp]
xor ebx, r11d
xor esi, ebx
mov dword [rax + 0x30], ebx
mov r11d, esi
mov dword [rax + 0x34], esi
xor r11d, r10d
xor r8d, r11d
mov dword [rax + 0x38], r11d
mov ecx, r8d
mov r9d, r8d
shr ecx, 0x10
movzx edx, cl
mov ecx, r8d
shr ecx, 8
mov dword [rax + 0x3c], r9d
movzx edi, byte [rdx + r12 + 0x22ba80]
movzx edx, cl
shl edi, 8
movzx ecx, byte [rdx + r12 + 0x22ba80]
xor edi, ecx
movzx ecx, r8b
shl edi, 8
movzx ecx, byte [rcx + r12 + 0x22ba80]
xor edi, ecx
mov ecx, r8d
shr rcx, 0x18
shl edi, 8
movzx ecx, byte [rcx + r12 + 0x22ba80]
xor edi, ecx
xor edi, dword [rbp + 4]
xor edi, ebx
xor esi, edi
mov dword [rax + 0x40], edi
mov r10d, esi
mov dword [rax + 0x44], esi
xor r10d, r11d
xor r9d, r10d
mov dword [rax + 0x48], r10d
mov ecx, r9d
mov r8d, r9d
shr ecx, 0x10
movzx edx, cl
mov ecx, r9d
shr ecx, 8
mov dword [rax + 0x4c], r8d
movzx ebx, byte [rdx + r12 + 0x22ba80]
movzx edx, cl
shl ebx, 8
movzx ecx, byte [rdx + r12 + 0x22ba80]
xor ebx, ecx
movzx ecx, r9b
shl ebx, 8
movzx ecx, byte [rcx + r12 + 0x22ba80]
xor ebx, ecx
mov ecx, r9d
shr rcx, 0x18
shl ebx, 8
movzx ecx, byte [rcx + r12 + 0x22ba80]
xor ebx, ecx
xor ebx, dword [rbp + 8]
add rbp, 0x14
xor ebx, edi
mov ecx, ebx
mov dword [rax + 0x50], ebx
xor ecx, esi
mov dword [rax + 0x54], ecx
xor ecx, r10d
mov dword [rax + 0x58], ecx
xor ecx, r9d
mov dword [rax + 0x5c], ecx
add rax, 0x50
cmp rbp, r13
jl 0x18000a830
mov r13, qword [rsp]
cmp dword [0x1802746b0], 0
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
jne 0x18000ab15
xor r8d, r8d
movzx ecx, byte [r8 + r12 + 0x22ba80]
lea rdx, [rcx*4]
mov ecx, dword [rdx + r12 + 0x22b580]
mov dword [r12 + r8*4 + 0x2948d0], ecx
mov ecx, dword [rdx + r12 + 0x22b180]
mov dword [r12 + r8*4 + 0x294cd0], ecx
mov ecx, dword [rdx + r12 + 0x22ad80]
mov dword [r12 + r8*4 + 0x2950d0], ecx
mov ecx, dword [rdx + r12 + 0x22a980]
mov dword [r12 + r8*4 + 0x2954d0], ecx
inc r8
cmp r8, 0x100
jl 0x18000aab1
mov dword [0x1802746b0], r15d
mov ecx, dword [rax]
lea r11, [r14 + 0x100]
mov dword [r11], ecx
mov ecx, dword [rax + 4]
mov dword [r11 + 4], ecx
mov ecx, dword [rax + 8]
mov dword [r11 + 8], ecx
mov ecx, dword [rax + 0xc]
add rax, 0x10
mov dword [r11 + 0xc], ecx
add r11, 0x10
cmp dword [r14 + 0x200], r15d
jle 0x18000ac7b
nop dword [rax + rax]
mov r10d, dword [rax - 0x20]
inc r15d
mov ecx, r10d
mov r8d, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr ecx, 8
shr r8, 0x18
mov r9d, dword [r12 + r8*4 + 0x2948d0]
xor r9d, dword [r12 + rdx*4 + 0x294cd0]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r12 + rdx*4 + 0x2950d0]
xor r9d, dword [r12 + rcx*4 + 0x2954d0]
mov dword [r11], r9d
mov r10d, dword [rax - 0x1c]
mov ecx, r10d
mov r8d, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr ecx, 8
shr r8, 0x18
mov r9d, dword [r12 + r8*4 + 0x2948d0]
xor r9d, dword [r12 + rdx*4 + 0x294cd0]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r12 + rdx*4 + 0x2950d0]
xor r9d, dword [r12 + rcx*4 + 0x2954d0]
mov dword [r11 + 4], r9d
mov r10d, dword [rax - 0x18]
mov ecx, r10d
mov r8d, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr ecx, 8
shr r8, 0x18
mov r9d, dword [r12 + r8*4 + 0x2948d0]
xor r9d, dword [r12 + rdx*4 + 0x294cd0]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r12 + rdx*4 + 0x2950d0]
xor r9d, dword [r12 + rcx*4 + 0x2954d0]
mov dword [r11 + 8], r9d
mov r10d, dword [rax - 0x14]
add rax, 0xfffffffffffffff0
mov ecx, r10d
mov r8d, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr ecx, 8
shr r8, 0x18
mov r9d, dword [r12 + r8*4 + 0x2948d0]
xor r9d, dword [r12 + rdx*4 + 0x294cd0]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r12 + rdx*4 + 0x2950d0]
xor r9d, dword [r12 + rcx*4 + 0x2954d0]
mov dword [r11 + 0xc], r9d
add r11, 0x10
cmp r15d, dword [r14 + 0x200]
jl 0x18000ab50
mov ecx, dword [rax - 0x20]
mov dword [r11], ecx
mov ecx, dword [rax - 0x1c]
mov dword [r11 + 4], ecx
mov ecx, dword [rax - 0x18]
mov dword [r11 + 8], ecx
mov ecx, dword [rax - 0x14]
mov dword [r11 + 0xc], ecx
add rsp, 0x10
pop r15
pop r14
pop r12
ret