Function at 0x180173618
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rbx, rcx
xor edi, edi
cmp byte [rcx + 0x409], dil
je 0x180173678
cmp byte [rcx + 0x48a], dil
je 0x180173662
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x400], rax
mov al, 1
jmp 0x1801738f5
mov rax, qword [rcx + 0x400]
dec rax
cmp rax, 0xfffffffffffffffd
setbe al
jmp 0x1801738f5
mov rax, qword [rcx + 0x400]
dec rax
cmp rax, 0xfffffffffffffffd
jbe 0x18017365b
mov ecx, dword [0x1802bccdc]
mov rax, qword gs:[0x58]
mov r8d, 4
mov rdx, qword [rax + rcx*8]
mov eax, dword [r8 + rdx]
cmp dword [0x1802c503c], eax
jle 0x180173885
lea rcx, [0x1802c503c]
call fcn.1802696f0
cmp dword [0x1802c503c], 0xffffffff
jne 0x180173885
lea rax, [rbp + 7]
mov qword [rbp + 0x67], rax
mov dword [rbp - 0x39], 0x6c
mov byte [rbp - 0x35], 0x2f
mov byte [rbp - 0x34], 0x1e
mov byte [rbp - 0x33], 9
mov byte [rbp - 0x32], 0xd
mov byte [rbp - 0x31], 0x18
mov byte [rbp - 0x30], 9
mov byte [rbp - 0x2f], 0x2a
mov byte [rbp - 0x2e], 5
mov byte [rbp - 0x2d], dil
mov byte [rbp - 0x2c], 9
mov byte [rbp - 0x2b], 0x2d
xor eax, eax
mov byte [rbp - 0x2a], al
mov al, byte [rbp - 0x35]
mov rdx, rdi
mov al, byte [rbp + rdx - 0x35]
mov ecx, dword [rbp - 0x39]
xor cl, al
mov byte [rbp + rdx - 0x35], cl
inc rdx
cmp rdx, 0xb
jb 0x180173710
mov byte [rbp - 0x2a], dil
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], rdi
lea rax, [rbp - 0x35]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x180173741
lea rdx, [rbp - 0x35]
lea rcx, [rbp + 7]
call fcn.18007b70c
nop
mov dword [rbp - 0x29], 0x75
mov byte [rbp - 0x25], 0x1e
mov byte [rbp - 0x24], 0x10
mov byte [rbp - 0x23], 7
mov byte [rbp - 0x22], 0x1b
mov byte [rbp - 0x21], 0x10
mov byte [rbp - 0x20], 0x19
mov byte [rbp - 0x1f], 0x46
mov byte [rbp - 0x1e], 0x47
xor eax, eax
mov byte [rbp - 0x1d], al
mov al, byte [rbp - 0x25]
mov rdx, rdi
mov al, byte [rbp + rdx - 0x25]
mov ecx, dword [rbp - 0x29]
xor cl, al
mov byte [rbp + rdx - 0x25], cl
inc rdx
cmp rdx, 8
jb 0x18017378a
mov byte [rbp - 0x1d], dil
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
lea rax, [rbp - 0x25]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x1801737bb
lea rdx, [rbp - 0x25]
lea rcx, [rbp - 0x19]
call fcn.18007b70c
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x2f]
call fcn.180188b20
nop
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp + 7]
mov rdx, rax
lea rcx, [0x1802c50e0]
call fcn.180181d3c
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x18017383a
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180173835
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180173835
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
movdqa xmm0, xmmword [0x180280de0]
movdqu xmmword [rbp - 9], xmm0
mov byte [rbp - 0x19], dil
xor edx, edx
lea r8d, [rdx + 9]
lea rcx, [rbp - 0x25]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
xor edx, edx
lea r8d, [rdx + 0xc]
lea rcx, [rbp - 0x35]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [0x18027dd38]
call fcn.18026951c
nop
lea rcx, [0x1802c503c]
call fcn.180269690
lea rdx, [rbx + 0x10]
cmp byte [rbx + 3], dil
je 0x1801738a7
cmp qword [rdx + 0x18], 0x10
jb 0x180173899
mov rdx, qword [rdx]
mov r9d, 1
mov r8d, 0x80000000
jmp 0x1801738bd
cmp qword [rdx + 0x18], 0x10
jb 0x1801738b1
mov rdx, qword [rdx]
mov r9d, 3
mov r8d, 0xc0000000
call fcn.180182920
mov qword [rbx + 0x400], rax
cmp rax, 0xffffffffffffffff
je 0x1801738dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18017365b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r8d, 0x204
mov rcx, rbx
call fcn.1801728a8
xor al, al
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret