Function at 0x180006bb0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Get common file path
Parse pe header

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x348]
sub rsp, 0x448
mov rax, qword [0x180064040]
xor rax, rsp
mov qword [rbp + 0x310], rax
xor ebx, ebx
lea rcx, [rsp + 0x52]
xor edx, edx
mov word [rsp + 0x50], bx
mov r8d, 0xfe
call fcn.18004b1c0
xor edx, edx
lea rcx, [rbp + 0x100]
mov r8d, 0x208
call fcn.18004b1c0
lea rax, [rbp + 0x100]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0xe]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rcx, [fcn.180006bb0]
mov r8d, 0x5a4d
mov r9d, 0x20b
cmp word [rcx], r8w
jne 0x180006c4b
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
jne 0x180006c4b
test word [rdx + rcx + 0x18], r9w
jne 0x180006c50
dec rcx
jmp 0x180006c30
mov r9d, dword [rdx + rcx + 0x98]
mov rdx, rbx
movzx r10d, word [r9 + rcx + 0xe]
lea r11, [r9 + rcx]
movzx eax, word [r11 + 0xc]
add r10, rax
je 0x180006c9a
nop
mov eax, dword [r11 + rdx*8 + 0x14]
test eax, eax
jns 0x180006c9a
btr eax, 0x1f
add rax, r9
mov r8d, dword [rax + rcx + 0x14]
test r8d, r8d
jns 0x180006c92
cmp word [rax + rcx + 0x10], 0x67
je 0x180006ca1
inc rdx
cmp rdx, r10
jb 0x180006c70
xor eax, eax
jmp 0x1800071c2
mov qword [rsp + 0x460], rsi
btr r8d, 0x1f
add r8, r9
mov qword [rsp + 0x438], r14
mov eax, dword [r8 + rcx + 0x14]
btr eax, 0x1f
add rax, r9
mov esi, dword [rax + rcx]
mov r14d, dword [rax + rcx + 4]
add rsi, rcx
je 0x1800071db
test r14d, r14d
je 0x1800071db
mov qword [rsp + 0x470], r12
mov qword [rsp + 0x440], r13
mov r13d, r14d
mov qword [rsp + 0x430], r15
mov r15, rsi
mov qword [rsp + 0x468], rdi
call fcn.1800069d0
test al, 1
jne 0x180006d62
mov edi, ebx
call fcn.1800069d0
mov r8d, eax
mov eax, 0x66666667
imul r8d
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
sub r8d, ecx
add r8d, 3
test r8d, r8d
jle 0x180006d62
inc edi
call fcn.1800069d0
mov r8d, eax
mov eax, 0x66666667
imul r8d
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
sub r8d, ecx
add r8d, 3
cmp edi, r8d
jl 0x180006d38
movups xmm0, xmmword [r15]
lea rdx, [rbp + 0x100]
mov r8d, 0x80
movups xmm1, xmmword [r15 + 0x10]
lea rcx, [r8 + r15]
add r13d, 0xfffffe9a
movdqa xmm2, xmmword [0x18005b600]
lea rax, [r15 + 0x166]
movups xmmword [rdx], xmm0
mov qword [rsp + 0x30], rax
mov eax, dword [rcx + 0x40]
movups xmm0, xmmword [r15 + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [r15 + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [r15 + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [r15 + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [r15 + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmm1, xmmword [rcx]
movups xmmword [rdx + 0x60], xmm0
add rdx, r8
movups xmm0, xmmword [r15 + 0x70]
movups xmmword [rdx - 0x10], xmm0
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rdx], xmm1
movups xmm1, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x10], xmm0
movups xmm0, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm1
movups xmmword [rdx + 0x30], xmm0
mov dword [rdx + 0x40], eax
movzx eax, byte [rcx + 0x44]
lea rcx, [rbp + 0x50]
mov byte [rdx + 0x44], al
lea rax, [r15 + 0xc5]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx + 0x60], xmm0
add rcx, r8
movups xmm0, xmmword [rax + r8]
movups xmmword [rcx - 0x10], xmm1
movups xmm1, xmmword [rax + r8 + 0x10]
movzx eax, byte [rax + r8 + 0x20]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov byte [rcx + 0x20], al
mov rax, rbx
nop dword [rax]
movdqu xmm0, xmmword [rbp + rax + 0x50]
psubb xmm0, xmm2
movdqu xmmword [rbp + rax + 0x50], xmm0
movdqu xmm1, xmmword [rbp + rax + 0x60]
psubb xmm1, xmm2
movdqu xmmword [rbp + rax + 0x60], xmm1
movdqu xmm0, xmmword [rbp + rax + 0x70]
psubb xmm0, xmm2
movdqu xmmword [rbp + rax + 0x70], xmm0
movdqu xmm0, xmmword [rbp + rax + 0x80]
psubb xmm0, xmm2
movdqu xmmword [rbp + rax + 0x80], xmm0
add rax, 0x40
cmp rax, r8
jl 0x180006e70
mov rax, r8
nop dword [rax]
nop word [rax + rax]
add byte [rbp + rax + 0x50], 0xfd
inc rax
cmp rax, 0xa1
jl 0x180006ed0
mov rcx, rbx
mov eax, 0xc0
nop dword [rax + rax]
movdqu xmm0, xmmword [rbp + rcx + 0x100]
psubb xmm0, xmm2
movdqu xmmword [rbp + rcx + 0x100], xmm0
movdqu xmm1, xmmword [rbp + rcx + 0x110]
psubb xmm1, xmm2
movdqu xmmword [rbp + rcx + 0x110], xmm1
movdqu xmm0, xmmword [rbp + rcx + 0x120]
psubb xmm0, xmm2
movdqu xmmword [rbp + rcx + 0x120], xmm0
movdqu xmm0, xmmword [rbp + rcx + 0x130]
psubb xmm0, xmm2
movdqu xmmword [rbp + rcx + 0x130], xmm0
add rcx, 0x40
cmp rcx, rax
jl 0x180006ef0
add byte [rbp + rax + 0x100], 0xfd
inc rax
cmp rax, 0xc5
jl 0x180006f51
mov rcx, qword [rbp + 0x100]
movsx eax, cl
movd xmm2, eax
mov rax, rbx
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqu xmm0, xmmword [rbp + rax + 0x50]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rbp + rax + 0x50], xmm1
movdqu xmm0, xmmword [rbp + rax + 0x60]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rbp + rax + 0x60], xmm1
movdqu xmm0, xmmword [rbp + rax + 0x70]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rbp + rax + 0x70], xmm1
movdqu xmm0, xmmword [rbp + rax + 0x80]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rbp + rax + 0x80], xmm1
add rax, 0x40
cmp rax, r8
jl 0x180006f82
nop dword [rax]
xor byte [rbp + r8 + 0x50], cl
inc r8
cmp r8, 0xa1
jl 0x180006fe0
movzx ecx, byte [rbp + rbx + 0x50]
mov eax, 1
nop dword [rax + rax]
xor byte [rbp + rax + 0x100], cl
xor byte [rbp + rax + 0x101], cl
xor byte [rbp + rax + 0x102], cl
xor byte [rbp + rax + 0x103], cl
add rax, 4
cmp rax, 0xc5
jl 0x180007000
inc rbx
cmp rbx, 0xa1
jl 0x180006ff1
lea rdx, [rbp + 0x100]
lea rcx, [rsp + 0x50]
call fcn.180001e90
movups xmm2, xmmword [rbp + 0x50]
mov r12d, r13d
movups xmmword [rbp + 0x40], xmm2
mov qword [rsp + 0x38], r12
test r13b, 0xf
jne 0x180007190
mov r14d, r12d
shr r14, 4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r12d
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x180007190
mov rbx, rax
test r14, r14
je 0x18000713d
mov r12, qword [rsp + 0x30]
lea rdi, [rbp + 0x40]
mov r13, rax
movaps xmmword [rsp + 0x420], xmm6
sub r13, r12
sub rdi, rax
add r13, 0xf
sub r12, rax
nop word [rax + rax]
movups xmm6, xmmword [r12 + rbx]
lea rsi, [r12 + rbx]
mov r8, rbx
mov r9, rsi
lea rcx, [rsp + 0x50]
call fcn.1800021b0
lea rax, [rbp + 0x4f]
cmp rbx, rax
ja 0x180007112
lea rax, [rsi + r13]
lea rcx, [rbp + 0x40]
cmp rax, rcx
jb 0x180007112
mov rax, rbx
mov edx, 0x10
nop word [rax + rax]
movzx ecx, byte [rdi + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x180007100
jmp 0x18000711e
movdqu xmm0, xmmword [rbx]
xorps xmm0, xmmword [rbp + 0x40]
movdqu xmmword [rbx], xmm0
add rbx, 0x10
movups xmmword [rbp + 0x40], xmm6
sub rdi, 0x10
sub r14, 1
jne 0x1800070c0
movaps xmm6, xmmword [rsp + 0x420]
mov r12, qword [rsp + 0x38]
call fcn.180006a70
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov rdx, r12
movsxd rcx, dword [rax + 0x3c]
mov ebx, dword [rcx + rax + 0x28]
add rbx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.18004b580
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdi, qword [rsp + 0x468]
xor eax, eax
mov r13, qword [rsp + 0x440]
mov r12, qword [rsp + 0x470]
mov r15, qword [rsp + 0x430]
mov rsi, qword [rsp + 0x460]
mov r14, qword [rsp + 0x438]
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.180024300
add rsp, 0x448
pop rbx
pop rbp
ret
xor eax, eax
jmp 0x1800071b2