Function at 0x1800022b0
Capabilities:
Encode data using xor
Get file size
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x180020008]
xor rax, rsp
mov qword [rbp + 0x200], rax
xor r14d, r14d
lea rcx, str.kernel32
mov dword [rsp + 0x48], r14d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x18001d7f0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x180002323
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x48]
call rbx
test eax, eax
jne 0x180002323
mov dword [rsp + 0x48], r14d
jmp 0x180002353
cmp dword [rsp + 0x48], r14d
je 0x180002353
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.Wow64DisableWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002353
lea rcx, [rsp + 0x58]
call rax
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x208
call fcn.180003b80
xor edx, edx
mov dword [rsp + 0x60], r14d
lea rcx, [rsp + 0x68]
lea r8d, [rdx + 0x20]
call qword [0x1800221a8]
movdqa xmm0, xmmword [0x18001dd80]
lea rax, [rbp - 0x60]
movdqa xmm1, xmmword [0x18001dd70]
mov edx, r14d
movdqa xmm2, xmmword [0x18001ddb0]
movdqu xmmword [rbp - 0x70], xmm0
movdqa xmm0, xmmword [0x18001dd60]
movdqu xmmword [rbp - 0x60], xmm1
movdqa xmm1, xmmword [0x18001dd50]
movdqu xmmword [rbp - 0x50], xmm0
movdqa xmm0, xmmword [0x18001dd40]
movdqu xmmword [rbp - 0x40], xmm1
movdqa xmm1, xmmword [0x18001dd90]
movdqu xmmword [rbp - 0x30], xmm0
movdqu xmmword [rbp - 0x20], xmm1
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
lea rax, [rax + 0x40]
add edx, 0x40
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm0, xmm2
movdqu xmmword [rax - 0x30], xmm0
movdqu xmm0, xmmword [rax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp edx, 0x40
jb 0x1800023e0
cmp edx, 0x60
jae 0x18000244e
movsxd rax, edx
lea rcx, [rbp - 0x70]
add rcx, rax
nop
xor byte [rcx], 0xe5
lea rcx, [rcx + 1]
inc edx
cmp edx, 0x60
jb 0x180002440
mov r8d, 0x104
mov qword [rsp + 0x320], rsi
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, 1
mov qword [rsp + 0x30], r14
mov r8d, edx
mov dword [rsp + 0x28], 2
xor r9d, r9d
mov dword [rsp + 0x20], 3
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180002632
xor edx, edx
mov qword [rsp + 0x328], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov r8d, 0x1000
add eax, 0xfffffff0
mov edx, eax
mov dword [rsp + 0x40], eax
lea r9d, [rcx + 4]
call qword [0x1800221b0]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rax
mov qword [rsp + 0x20], r14
mov rcx, rbx
mov rsi, rax
call qword [0x1800221f0]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], r14
mov r8d, 0x10
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [0x1800221f0]
mov r9d, 0x18
mov qword [rsp + 0x50], r14
xor r8d, r8d
mov qword [rsp + 0x58], r14
xor edx, edx
mov qword [rsp + 0x48], r14
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], 0xf0000000
xor dil, dil
call qword [0x180022180]
test eax, eax
je 0x1800025dc
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8004
call qword [0x180022170]
test eax, eax
je 0x1800025dc
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x68]
xor r9d, r9d
lea r8d, [r9 + 0x20]
call qword [0x180022188]
test eax, eax
je 0x1800025dc
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov r9d, 1
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [0x180022190]
test eax, eax
je 0x1800025dc
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rsi
lea r8d, [r9 + 1]
call qword [0x180022198]
test eax, eax
je 0x1800025d7
mov dil, 1
jmp 0x1800025dc
mov dword [rsp + 0x40], r14d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1800025ec
call qword [0x180022168]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800025fc
call qword [0x180022178]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18000260e
xor edx, edx
call qword [0x180022158]
test dil, dil
mov rdi, qword [rsp + 0x328]
je 0x180002632
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x40]
mov rcx, rsi
call fcn.180001ee0
jmp 0x180002634
xor eax, eax
mov rsi, qword [rsp + 0x320]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.180002a50
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret