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

Disassembly:
push r12
push r14
push r15
sub rsp, 0x10
mov eax, dword [0x14003d8e4]
lea r12, [0x140000000]
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 [0x14003d8e4], eax
mov rax, rcx
shl ebx, 8
movzx ecx, byte [r8 + 2]
or ebx, ecx
mov qword [rsp + 0x40], rsi
movzx ecx, byte [r8 + 3]
shl ebx, 8
or ebx, ecx
mov qword [rsp + 8], rdi
mov dword [rax], ebx
movzx ecx, byte [r8 + 5]
movzx edx, byte [r8 + 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [r8 + 6]
shl edx, 8
or edx, ecx
movzx ecx, byte [r8 + 7]
shl edx, 8
or edx, ecx
mov dword [rax + 4], edx
movzx ecx, byte [r8 + 9]
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
mov dword [rax + 8], edx
movzx ecx, byte [r8 + 0xd]
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 0x140001714
cmp ecx, 0xc
je 0x14000129c
cmp ecx, 0xe
jne 0x140001991
lea rdi, [0x140035250]
lea rsi, [0x14003526c]
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 + 0x35780]
movzx edx, cl
shl r8d, 8
movzx ecx, byte [rdx + r12 + 0x35780]
mov edx, dword [rax + 8]
xor r8d, ecx
shl r8d, 8
movzx ecx, r11b
movzx ecx, byte [rcx + r12 + 0x35780]
xor r8d, ecx
mov ecx, r11d
shr rcx, 0x18
shl r8d, 8
movzx ecx, byte [rcx + r12 + 0x35780]
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 + 0x35780]
mov ecx, r8d
shr ecx, 0x10
movzx edx, cl
shl r9d, 8
movzx ecx, byte [rdx + r12 + 0x35780]
xor r9d, ecx
mov ecx, r8d
shr ecx, 8
movzx edx, cl
shl r9d, 8
movzx ecx, byte [rdx + r12 + 0x35780]
mov edx, dword [rax + 0x18]
xor r9d, ecx
shl r9d, 8
movzx ecx, r8b
movzx ecx, byte [rcx + r12 + 0x35780]
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 0x140001190
jmp 0x140001991
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 + 0x35780]
movzx ecx, al
xor r11d, r15d
shl r11d, 8
movzx eax, byte [rcx + r12 + 0x35780]
xor r11d, eax
movzx eax, dl
shl r11d, 8
movzx eax, byte [rax + r12 + 0x35780]
xor r11d, eax
mov eax, edx
shr rax, 0x18
shl r11d, 8
movzx eax, byte [rax + r12 + 0x35780]
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 + 0x35780]
movzx ecx, al
xor ebx, 2
shl ebx, 8
movzx eax, byte [rcx + r12 + 0x35780]
xor ebx, eax
movzx eax, dl
shl ebx, 8
movzx eax, byte [rax + r12 + 0x35780]
xor ebx, eax
mov eax, edx
shr rax, 0x18
shl ebx, 8
movzx eax, byte [rax + r12 + 0x35780]
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 + 0x35780]
xor r10d, 4
shl r10d, 8
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x35780]
xor r10d, eax
movzx eax, dl
shl r10d, 8
movzx eax, byte [rax + r12 + 0x35780]
xor r10d, eax
mov eax, edx
shr rax, 0x18
shl r10d, 8
movzx eax, byte [rax + r12 + 0x35780]
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 + 0x35780]
movzx ecx, al
xor r11d, 8
shl r11d, 8
movzx eax, byte [rcx + r12 + 0x35780]
xor r11d, eax
movzx eax, dl
shl r11d, 8
movzx eax, byte [rax + r12 + 0x35780]
xor r11d, eax
mov eax, edx
shr rax, 0x18
shl r11d, 8
movzx eax, byte [rax + r12 + 0x35780]
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 + 0x35780]
movzx ecx, al
xor edi, 0x10
shl edi, 8
movzx eax, byte [rcx + r12 + 0x35780]
xor edi, eax
movzx eax, dl
shl edi, 8
movzx eax, byte [rax + r12 + 0x35780]
xor edi, eax
mov eax, edx
shl edi, 8
shr rax, 0x18
movzx eax, byte [rax + r12 + 0x35780]
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 + 0x35780]
movzx ecx, al
xor ebp, 0x20
shl ebp, 8
movzx eax, byte [rcx + r12 + 0x35780]
xor ebp, eax
movzx eax, dl
shl ebp, 8
movzx eax, byte [rax + r12 + 0x35780]
xor ebp, eax
mov eax, edx
shr rax, 0x18
shl ebp, 8
movzx eax, byte [rax + r12 + 0x35780]
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 + 0x35780]
xor esi, 0x40
movzx ecx, al
shl esi, 8
movzx eax, byte [rcx + r12 + 0x35780]
xor esi, eax
movzx eax, dl
shl esi, 8
movzx eax, byte [rax + r12 + 0x35780]
xor esi, eax
mov eax, edx
shl esi, 8
shr rax, 0x18
movzx eax, byte [rax + r12 + 0x35780]
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 + 0x35780]
shl edx, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x35780]
xor edx, eax
movzx eax, r8b
shl edx, 8
movzx eax, byte [rax + r12 + 0x35780]
xor edx, eax
mov eax, r8d
shl edx, 8
shr rax, 0x18
movzx eax, byte [rax + r12 + 0x35780]
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 0x140001991
mov qword [rsp], r13
lea rbp, [0x140035258]
lea r13, [0x140035280]
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 + 0x35780]
movzx edx, cl
shl r10d, 8
movzx ecx, byte [rdx + r12 + 0x35780]
xor r10d, ecx
movzx ecx, r8b
shl r10d, 8
movzx ecx, byte [rcx + r12 + 0x35780]
xor r10d, ecx
mov ecx, r8d
shr rcx, 0x18
shl r10d, 8
movzx ecx, byte [rcx + r12 + 0x35780]
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 + 0x35780]
movzx edx, cl
shl r11d, 8
movzx ecx, byte [rdx + r12 + 0x35780]
xor r11d, ecx
movzx ecx, r8b
shl r11d, 8
movzx ecx, byte [rcx + r12 + 0x35780]
xor r11d, ecx
mov ecx, r8d
shr rcx, 0x18
shl r11d, 8
movzx ecx, byte [rcx + r12 + 0x35780]
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 + 0x35780]
movzx edx, cl
shl ebx, 8
movzx ecx, byte [rdx + r12 + 0x35780]
xor ebx, ecx
movzx ecx, r8b
shl ebx, 8
movzx ecx, byte [rcx + r12 + 0x35780]
xor ebx, ecx
mov ecx, r8d
shr rcx, 0x18
shl ebx, 8
movzx ecx, byte [rcx + r12 + 0x35780]
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 + 0x35780]
movzx edx, cl
shl edi, 8
movzx ecx, byte [rdx + r12 + 0x35780]
xor edi, ecx
movzx ecx, r8b
shl edi, 8
movzx ecx, byte [rcx + r12 + 0x35780]
xor edi, ecx
mov ecx, r8d
shr rcx, 0x18
shl edi, 8
movzx ecx, byte [rcx + r12 + 0x35780]
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 + 0x35780]
movzx edx, cl
shl ebx, 8
movzx ecx, byte [rdx + r12 + 0x35780]
xor ebx, ecx
movzx ecx, r9b
shl ebx, 8
movzx ecx, byte [rcx + r12 + 0x35780]
xor ebx, ecx
mov ecx, r9d
shr rcx, 0x18
shl ebx, 8
movzx ecx, byte [rcx + r12 + 0x35780]
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 0x140001730
mov r13, qword [rsp]
cmp dword [0x14003d8e8], 0
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
jne 0x140001a15
xor r8d, r8d
movzx ecx, byte [r8 + r12 + 0x35780]
lea rdx, [rcx*4]
mov ecx, dword [rdx + r12 + 0x34a50]
mov dword [r12 + r8*4 + 0x3dd10], ecx
mov ecx, dword [rdx + r12 + 0x34e50]
mov dword [r12 + r8*4 + 0x3e510], ecx
mov ecx, dword [rdx + r12 + 0x34650]
mov dword [r12 + r8*4 + 0x3e110], ecx
mov ecx, dword [rdx + r12 + 0x35380]
mov dword [r12 + r8*4 + 0x3d910], ecx
inc r8
cmp r8, 0x100
jl 0x1400019b1
mov dword [0x14003d8e8], 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 0x140001b7b
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 + 0x3dd10]
xor r9d, dword [r12 + rdx*4 + 0x3e510]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r12 + rdx*4 + 0x3e110]
xor r9d, dword [r12 + rcx*4 + 0x3d910]
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 + 0x3dd10]
xor r9d, dword [r12 + rdx*4 + 0x3e510]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r12 + rdx*4 + 0x3e110]
xor r9d, dword [r12 + rcx*4 + 0x3d910]
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 + 0x3dd10]
xor r9d, dword [r12 + rdx*4 + 0x3e510]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r12 + rdx*4 + 0x3e110]
xor r9d, dword [r12 + rcx*4 + 0x3d910]
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 + 0x3dd10]
xor r9d, dword [r12 + rdx*4 + 0x3e510]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r12 + rdx*4 + 0x3e110]
xor r9d, dword [r12 + rcx*4 + 0x3d910]
mov dword [r11 + 0xc], r9d
add r11, 0x10
cmp r15d, dword [r14 + 0x200]
jl 0x140001a50
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