Function at 0x1800ae160
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov qword [rbp + 0xa0], 0xfffffffffffffffe
mov rbx, rdx
mov r14, rcx
lea rsi, [rdx + 0x18]
cmp qword [rdx + 0x10], 1
jne 0x1800ae1d2
mov rax, rdx
cmp qword [rsi], 8
jb 0x1800ae1a2
mov rax, qword [rdx]
cmp word [rax], 0x61
jne 0x1800ae1b4
xor edx, edx
call fcn.1800ad77c
jmp 0x1800aeb6c
mov rax, rbx
cmp qword [rsi], 8
jb 0x1800ae1c0
mov rax, qword [rdx]
cmp word [rax], 0x62
jne 0x1800ae1d2
xor edx, edx
call fcn.1800adb60
jmp 0x1800aeb6c
lea rcx, [rbp - 0x40]
call fcn.18000be28
mov rcx, rax
call fcn.18000bd8c
mov ecx, dword [0x180195f94]
mov rax, qword gs:[0x58]
mov edx, 4
mov r15, qword [rax + rcx*8]
or rdi, 0xffffffffffffffff
xor r12d, r12d
mov eax, dword [r15 + rdx]
cmp dword [0x18019ce30], eax
jle 0x1800ae3f2
lea rcx, [0x18019ce30]
call fcn.180157af0
cmp dword [0x18019ce30], edi
jne 0x1800ae3f2
lea rax, [rbp + 0x40]
mov qword [rbp - 0x68], rax
mov dword [rsp + 0x74], 0x67
mov byte [rsp + 0x78], 0x24
mov byte [rsp + 0x79], 0x15
mov byte [rsp + 0x7a], 2
mov byte [rsp + 0x7b], 6
mov byte [rsp + 0x7c], 0x13
mov byte [rsp + 0x7d], 2
mov byte [rsp + 0x7e], 0x21
mov byte [rsp + 0x7f], 0xe
mov byte [rbp - 0x80], 0xb
mov byte [rbp - 0x7f], 2
mov byte [rbp - 0x7e], 0x30
xor eax, eax
mov byte [rbp - 0x7d], al
mov al, byte [rsp + 0x78]
mov edx, r12d
mov al, byte [rsp + rdx + 0x78]
mov ecx, dword [rsp + 0x74]
xor cl, al
mov byte [rsp + rdx + 0x78], cl
inc rdx
cmp rdx, 0xb
jb 0x1800ae27a
mov byte [rbp - 0x7d], r12b
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], r12
lea rax, [rsp + 0x78]
mov r8, rdi
inc r8
cmp byte [rax + r8], r12b
jne 0x1800ae2ac
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x40]
call fcn.18000c7ac
nop
mov byte [rsp + 0x40], 0x71
mov byte [rsp + 0x41], 0x6b
mov byte [rsp + 0x42], 0x78
mov byte [rsp + 0x43], 0x74
mov byte [rsp + 0x44], 0x6b
mov byte [rsp + 0x45], 0x72
mov byte [rsp + 0x46], 0x39
mov byte [rsp + 0x47], 0x38
mov byte [rsp + 0x48], r12b
mov al, byte [rsp + 0x40]
mov rcx, r12
mov al, byte [rsp + rcx + 0x40]
sub al, 6
mov byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 8
jb 0x1800ae2f8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
lea rax, [rsp + 0x40]
mov r8, rdi
inc r8
cmp byte [rax + r8], r12b
jne 0x1800ae322
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.18000c7ac
nop
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0xa8]
call fcn.1800ceb58
nop
mov qword [rsp + 0x20], r12
mov r9b, 1
lea r8, [rbp + 0x40]
mov rdx, rax
lea rcx, [0x18019cec0]
call fcn.18006047c
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x1800ae3a5
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800ae3a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ae3a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180157a14
movdqa xmm0, xmmword [0x180165930]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], r12b
xor edx, edx
lea r8d, [rdx + 9]
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
xor edx, edx
lea r8d, [rdx + 0xc]
lea rcx, [rsp + 0x78]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [0x1801635b4]
call fcn.1801579fc
nop
lea rcx, [0x18019ce30]
call fcn.180157a84
cmp qword [rsi], 8
jb 0x1800ae3fb
mov rbx, qword [rbx]
mov dword [rsp + 0x30], 0x80
mov r9d, 1
mov r8d, 0x80000000
mov rdx, rbx
lea rcx, [0x18019cec0]
call fcn.180041eb8
mov rbx, rax
cmp rax, rdi
jne 0x1800ae433
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x1800aeb6e
mov qword [rbp + 0x168], r12
mov eax, 4
mov eax, dword [r15 + rax]
cmp dword [0x18019cda4], eax
jle 0x1800ae629
lea rcx, [0x18019cda4]
call fcn.180157af0
cmp dword [0x18019cda4], edi
jne 0x1800ae629
lea rax, [rbp + 0x60]
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x7c], 0x6e
mov byte [rbp - 0x78], 0x29
mov byte [rbp - 0x77], 0xb
mov byte [rbp - 0x76], 0x1a
mov byte [rbp - 0x75], 0x28
mov byte [rbp - 0x74], 7
mov byte [rbp - 0x73], 2
mov byte [rbp - 0x72], 0xb
mov byte [rbp - 0x71], 0x3d
mov byte [rbp - 0x70], 7
mov byte [rbp - 0x6f], 0x14
mov byte [rbp - 0x6e], 0xb
mov byte [rbp - 0x6d], 0x2b
mov byte [rbp - 0x6c], 0x16
xor eax, eax
mov byte [rbp - 0x6b], al
mov al, byte [rbp - 0x78]
mov rdx, r12
mov al, byte [rbp + rdx - 0x78]
mov ecx, dword [rbp - 0x7c]
xor cl, al
mov byte [rbp + rdx - 0x78], cl
inc rdx
cmp rdx, 0xd
jb 0x1800ae4b5
mov byte [rbp - 0x6b], r12b
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], r12
lea rax, [rbp - 0x78]
mov r8, rdi
inc r8
cmp byte [rax + r8], r12b
jne 0x1800ae4e5
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x60]
call fcn.18000c7ac
nop
mov byte [rsp + 0x49], 0x77
mov byte [rsp + 0x4a], 0x71
mov byte [rsp + 0x4b], 0x7e
mov byte [rsp + 0x4c], 0x7a
mov byte [rsp + 0x4d], 0x71
mov byte [rsp + 0x4e], 0x78
mov byte [rsp + 0x4f], 0x3f
mov byte [rsp + 0x50], 0x3e
mov byte [rsp + 0x51], r12b
mov al, byte [rsp + 0x49]
mov rcx, r12
mov al, byte [rsp + rcx + 0x49]
sub al, 0xc
mov byte [rsp + rcx + 0x49], al
inc rcx
cmp rcx, 8
jb 0x1800ae530
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
lea rax, [rsp + 0x49]
mov r8, rdi
inc r8
cmp byte [rax + r8], r12b
jne 0x1800ae55a
lea rdx, [rsp + 0x49]
lea rcx, [rbp]
call fcn.18000c7ac
nop
lea rdx, [rbp]
lea rcx, [rbp + 0xc8]
call fcn.1800ceb58
nop
mov qword [rsp + 0x20], r12
mov r9b, 1
lea r8, [rbp + 0x60]
mov rdx, rax
lea rcx, [0x18019cfd0]
call fcn.1800b4ce4
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x1800ae5dd
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800ae5d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ae5d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180157a14
movdqa xmm0, xmmword [0x180165930]
movdqu xmmword [rbp + 0x10], xmm0
mov byte [rbp], r12b
xor edx, edx
lea r8d, [rdx + 9]
lea rcx, [rsp + 0x49]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
xor edx, edx
lea r8d, [rdx + 0xe]
lea rcx, [rbp - 0x78]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [0x1801635a8]
call fcn.1801579fc
nop
lea rcx, [0x18019cda4]
call fcn.180157a84
lea rsi, [0x18019cfe0]
mov rcx, rsi
cmp qword [0x18019cff8], 0x10
cmovae rcx, qword [0x18019cfe0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1800ae679
mov rcx, rsi
cmp qword [0x18019cff8], 0x10
cmovae rcx, qword [0x18019cfe0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18019cfd8], rax
mov r8, rax
mov rdx, rsi
call fcn.1800150f8
lea rdx, [rbp + 0x168]
mov rcx, rbx
call qword [0x18019cfd0]
test eax, eax
jne 0x1800ae6a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800ae42c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r12
mov edx, dword [rbp + 0x168]
add rdx, 0x1000
lea rcx, [rbp - 0x58]
call fcn.180031c80
mov eax, 4
mov eax, dword [r15 + rax]
cmp dword [0x18019cf44], eax
jle 0x1800ae94c
lea rcx, [0x18019cf44]
call fcn.180157af0
cmp dword [0x18019cf44], edi
jne 0x1800ae94c
lea rax, [rbp + 0x80]
mov qword [rbp - 0x60], rax
mov dword [rsp + 0x64], 0x4e
mov eax, dword [rsp + 0x64]
xor al, 0x52
mov byte [rsp + 0x68], al
mov eax, dword [rsp + 0x64]
inc al
mov sil, 0x65
xor al, sil
mov byte [rsp + 0x69], al
mov eax, dword [rsp + 0x64]
add al, 2
xor al, 0x61
mov byte [rsp + 0x6a], al
mov eax, dword [rsp + 0x64]
add al, 3
xor al, 0x64
mov byte [rsp + 0x6b], al
mov eax, dword [rsp + 0x64]
add al, 4
xor al, 0x46
mov byte [rsp + 0x6c], al
mov eax, dword [rsp + 0x64]
add al, 5
xor al, 0x69
mov byte [rsp + 0x6d], al
mov eax, dword [rsp + 0x64]
add al, 6
xor al, 0x6c
mov byte [rsp + 0x6e], al
mov eax, dword [rsp + 0x64]
add al, 7
xor al, sil
mov byte [rsp + 0x6f], al
xor eax, eax
mov byte [rsp + 0x70], al
mov al, byte [rsp + 0x68]
mov rdx, r12
mov al, byte [rsp + rdx + 0x68]
mov ecx, dword [rsp + 0x64]
add cl, dl
xor cl, al
mov byte [rsp + rdx + 0x68], cl
inc rdx
cmp rdx, 8
jb 0x1800ae773
mov byte [rsp + 0x70], r12b
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r12
mov qword [rbp + 0x98], r12
lea rax, [rsp + 0x68]
mov r8, rdi
inc r8
cmp byte [rax + r8], r12b
jne 0x1800ae7b1
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x80]
call fcn.18000c7ac
nop
mov dword [rsp + 0x54], 0x6a
mov eax, dword [rsp + 0x54]
xor al, 0x6b
mov byte [rsp + 0x58], al
mov eax, dword [rsp + 0x54]
inc al
xor al, sil
mov byte [rsp + 0x59], al
mov eax, dword [rsp + 0x54]
add al, 2
xor al, 0x72
mov byte [rsp + 0x5a], al
mov eax, dword [rsp + 0x54]
add al, 3
xor al, 0x6e
mov byte [rsp + 0x5b], al
mov eax, dword [rsp + 0x54]
add al, 4
xor al, sil
mov byte [rsp + 0x5c], al
mov eax, dword [rsp + 0x54]
add al, 5
xor al, 0x6c
mov byte [rsp + 0x5d], al
mov eax, dword [rsp + 0x54]
add al, 6
xor al, 0x33
mov byte [rsp + 0x5e], al
mov eax, dword [rsp + 0x54]
add al, 7
xor al, 0x32
mov byte [rsp + 0x5f], al
xor eax, eax
mov byte [rsp + 0x60], al
mov al, byte [rsp + 0x58]
mov rdx, r12
mov al, byte [rsp + rdx + 0x58]
mov ecx, dword [rsp + 0x54]
add cl, dl
xor cl, al
mov byte [rsp + rdx + 0x58], cl
inc rdx
cmp rdx, 8
jb 0x1800ae841
mov byte [rsp + 0x60], r12b
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
lea rax, [rsp + 0x58]
inc rdi
cmp byte [rax + rdi], r12b
jne 0x1800ae873
mov r8, rdi
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x20]
call fcn.18000c7ac
nop
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0xe8]
call fcn.1800ceb58
nop
mov qword [rsp + 0x20], r12
mov r9b, 1
lea r8, [rbp + 0x80]
mov rdx, rax
lea rcx, [0x18019ce40]
call fcn.1800b46cc
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x1800ae8fc
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800ae8f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ae8f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180157a14
movdqa xmm0, xmmword [0x180165930]
movdqu xmmword [rbp + 0x30], xmm0
mov byte [rbp + 0x20], r12b
mov edi, 9
mov r8d, edi
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
mov r8d, edi
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [0x18016359c]
call fcn.1801579fc
nop
lea rcx, [0x18019cf44]
call fcn.180157a84
mov edi, dword [rbp + 0x168]
lea rsi, [0x18019ce50]
mov rcx, rsi
cmp qword [0x18019ce68], 0x10
cmovae rcx, qword [0x18019ce50]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1800ae9a2
mov rcx, rsi
cmp qword [0x18019ce68], 0x10
cmovae rcx, qword [0x18019ce50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18019ce48], rax
mov r8, rax
mov rdx, rsi
call fcn.1800150f8
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x160]
mov r8d, edi
mov rdi, qword [rbp - 0x58]
mov rdx, rdi
mov rcx, rbx
call qword [0x18019ce40]
test eax, eax
jne 0x1800aea31
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [r14]
mov rcx, qword [rax + 0x1138]
cmp rcx, qword [rax + 0x1140]
je 0x1800ae9e5
mov qword [rax + 0x1140], rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rdi, rdi
je 0x1800ae42c
mov rdx, qword [rbp - 0x48]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x1800aea24
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800aeb5d
mov rcx, rdi
call fcn.180157a14
jmp 0x1800ae42c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r12
mov rsi, qword [rbp - 0x50]
sub rsi, rdi
je 0x1800aea76
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.180031bf8
mov rbx, qword [rbp - 0x40]
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_memmove]
lea rax, [rsi + rbx]
mov qword [rbp - 0x38], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, r14
call fcn.1800acad0
test al, al
jne 0x1800aeb30
mov dword [rbp + 0x158], 0xdeadbeef
mov ecx, dword [rbp + 0x168]
add rcx, 4
mov rax, qword [r14]
mov qword [rax + 0x1150], rcx
mov rcx, qword [r14]
mov rax, qword [rcx + 0x1150]
mov qword [rcx + 0x1158], rax
mov rcx, qword [r14]
mov rax, qword [rcx + 0x1150]
mov qword [rcx + 0x1160], rax
mov rdx, qword [r14]
lea rcx, [rdx + 0x1138]
mov rdx, qword [rdx + 0x1150]
call fcn.1800255bc
mov rax, qword [r14]
mov r8, qword [rax + 0x1150]
mov rdx, rdi
mov rcx, qword [rax + 0x1138]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov rax, qword [r14]
mov ecx, dword [rbp + 0x168]
add rcx, qword [rax + 0x1138]
mov r8d, 4
lea rdx, [rbp + 0x158]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov rax, qword [r14]
mov dword [rax + 0x10d8], 3
test rdi, rdi
je 0x1800aeb6c
mov rdx, qword [rbp - 0x48]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x1800aeb64
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800aeb64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.180157a14
mov al, 1
add rsp, 0x210
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret