Function at 0x140001070
Capabilities:
Check if file exists
Encode data using xor

Disassembly:
push rbp
push r12
sub rsp, 0xa8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [0x140004378]
movzx eax, byte [0x140004388]
xor ebp, ebp
cmp dword [0x140006050], 2
mov r12, rcx
movups xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x50], al
mov r8d, ebp
jl 0x1400011ff
movdqa xmm0, xmmword [str.1111111111111111]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x140004390]
movdqa xmm4, xmmword [0x1400043d0]
movdqa xmmword [rsp + 0x60], xmm0
mov edx, dword [rsp + 0x60]
movaps xmmword [rsp + 0x80], xmm6
movdqa xmm6, xmmword [str.5555]
nop dword [rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400043b0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400043b0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x1400010f0
movaps xmm6, xmmword [rsp + 0x80]
cmp r8d, 0x11
jge 0x140001241
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop word [rax + rax]
mov eax, 0x4d4873ed
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0x11
jl 0x140001210
test r12, r12
jne 0x140001250
lea eax, [r12 - 1]
jmp 0x140001466
mov qword [rsp + 0xc8], rbx
mov ecx, 0x20
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x98], r14
mov r14, rbp
mov qword [rsp + 0x90], r15
mov dword [rsp + 0x70], ebp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140001439
mov r9d, 0x12
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
test rax, rax
je 0x140001414
xor r9d, r9d
mov dword [rsi], 0x20
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
xor edx, edx
mov rcx, rax
mov ebx, ebp
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x140001414
mov r15d, ebx
mov qword [rsp + 0x20], rsi
inc ebx
lea r8, [rsp + 0x40]
mov r9d, ebx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x1400012e0
test ebx, ebx
je 0x140001414
mov r9d, r15d
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
mov ebx, dword [rsp + 0x70]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x140001414
mov dword [rax], 8
mov r9d, ebx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
mov r8, r14
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x140001414
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x40000080
lea rcx, [r14 + 4]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r12], rax
test eax, eax
js 0x1400013d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400013ff
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x40000080
lea rcx, [r14 + 4]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r12], rax
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [r12], ebp
setge bpl
mov eax, ebp
jmp 0x14000143e
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
je 0x14000142b
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rdi, rdi
je 0x140001439
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002700
add rsp, 0xa8
pop r12
pop rbp
ret