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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
lea rbp, [rax - 0x2a8]
sub rsp, 0x390
mov rax, qword [0x140046180]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rdi, rcx
mov ebx, 0x83e8f4c
mov edx, 0xa654d62
mov ecx, ebx
call fcn.140022154
mov r13d, 1
lea rcx, [rbp + 0x10]
mov edx, r13d
call rax
mov edx, 0x4a511bc
mov ecx, ebx
call fcn.140022154
lea rcx, [rbp + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
call rax
xor esi, esi
mov r12d, 0xb9f5b9c
mov ecx, r12d
mov edx, 0x8aed8d5
mov dword [rbp - 0x78], 0x18
mov dword [rbp - 0x68], r13d
mov qword [rbp - 0x70], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
call fcn.140022154
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
xor r9d, r9d
call rax
test eax, eax
jne 0x1400204c9
xor eax, eax
jmp 0x140020737
mov edx, 0x72a627e
mov ecx, r12d
call fcn.140022154
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
mov edx, r13d
call rax
test eax, eax
je 0x1400204c2
xor edx, edx
lea rcx, [rbp - 0x58]
mov dword [rbp - 0x60], esi
lea r8d, [rdx + 0x60]
call fcn.140026400
xor eax, eax
mov edx, 0x5e68937
mov ecx, r12d
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
call fcn.140022154
lea rcx, [rbp - 0x60]
call rax
mov eax, 0xfffffff6
lea rcx, [rbp + 0x50]
mov qword [rbp - 0x10], rax
mov rax, qword [rsp + 0x68]
lea rdx, [0x14003b660]
mov r8d, 0x20
mov dword [rbp - 0x60], 0x68
mov word [rbp - 0x20], si
mov qword [rbp], rax
mov qword [rbp - 8], rax
mov dword [rbp - 0x24], 0x101
call fcn.1400230b0
mov r11d, 0xe
movzx eax, word [rbp + r11*2 + 0x4e]
xor word [rbp + r11*2 + 0x50], ax
sub r11, r13
test r11, r11
jg 0x140020560
mov eax, 0x5091
lea rcx, [rbp + 0x72]
xor edx, edx
xor word [rbp + 0x50], ax
mov r8d, 0x208
mov word [rbp + 0x70], si
call fcn.140026400
lea rcx, [rbp + 0x70]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rax, qword [0x14003b680]
mov ecx, 7
mov qword [rbp + 0x38], rax
mov rax, qword [0x14003b688]
mov qword [rbp + 0x40], rax
movzx eax, word [0x14003b690]
mov word [rbp + 0x48], ax
movzx eax, word [rbp + rcx*2 + 0x36]
xor word [rbp + rcx*2 + 0x38], ax
sub rcx, r13
test rcx, rcx
jg 0x1400205c7
mov eax, 0x4529
lea r8, [rbp + 0x38]
lea rcx, [rbp + 0x70]
xor word [rbp + 0x38], ax
mov edx, 0x105
call fcn.140024148
mov edx, 0x1e16457
mov ecx, r12d
call fcn.140022154
lea rcx, [rsp + 0x70]
lea rdx, [rbp + 0x50]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0x70]
xor r8d, r8d
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r13d
call rax
test eax, eax
je 0x140020734
cmp qword [rsp + 0x70], rsi
je 0x140020734
mov edx, 0x479cab4
mov ecx, r12d
call fcn.140022154
mov rcx, qword [rsp + 0x70]
mov edx, 0xea60
call rax
test eax, eax
jne 0x140020734
mov edx, 0x5057455
mov ecx, r12d
call fcn.140022154
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call rax
mov ecx, dword [rsp + 0x50]
call fcn.140022d0c
mov rbx, rax
cmp dword [rsp + 0x50], esi
jbe 0x1400206f4
mov edx, 0xb78cba5
mov ecx, r12d
mov dword [rsp + 0x54], 0x5000
call fcn.140022154
mov r8d, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x54]
mov rdx, rbx
mov qword [rsp + 0x20], rsi
call rax
mov r11d, dword [rsp + 0x54]
lea r8, [rsp + 0x60]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x60], r11
call fcn.140005560
lea r8, [rsp + 0x60]
lea rdx, [0x14003b640]
mov rcx, rdi
mov qword [rsp + 0x60], r13
call fcn.140005560
mov ebx, 0x9ae7db5
mov edx, ebx
mov ecx, r12d
call fcn.140022154
mov rcx, qword [rsp + 0x78]
call rax
mov edx, ebx
mov ecx, r12d
call fcn.140022154
mov rcx, qword [rsp + 0x70]
call rax
mov eax, r13d
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140022ee0
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret