Function at 0x14000adc0
Capabilities:
Check if file exists
Generate random numbers via winapi
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0x58], 0xffffffff
mov qword [rsp + 0x50], 0
cmp qword [rsp + 0xf8], 0
jne 0x14000b0f0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
xor eax, eax
test eax, eax
jne 0x14000adfd
cmp qword [rsp + 0xf0], 0
jne 0x14000af33
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, eax
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
jne 0x14000ae61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140041ed0
jmp 0x14000b323
mov rax, qword [rsp + 0xb0]
shl rax, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14000ae93
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0xc
jmp 0x14000b323
mov rdx, qword [rsp + 0x68]
mov ecx, dword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov qword [rsp + 0x78], 0
cmp qword [rsp + 0x68], 0
jne 0x14000aec4
mov qword [rsp + 0xc0], 0
jmp 0x14000af0c
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x88], 0xffffffffffffffff
inc qword [rsp + 0x88]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
cmp word [rax + rcx*2], 0
jne 0x14000aedd
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xc0], rax
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.140036cf0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000afb5
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x90], 0xffffffffffffffff
inc qword [rsp + 0x90]
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x90]
cmp byte [rax + rcx], 0
jne 0x14000af4f
mov rax, qword [rsp + 0x90]
mov r8, rax
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x70]
call fcn.140036e90
test eax, eax
jge 0x14000af93
jmp 0x14000b323
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
movzx eax, word [rax + rcx*2 - 2]
cmp eax, 0x2f
je 0x14000afb5
mov dx, 0x2f
lea rcx, [rsp + 0x70]
call fcn.1400362a0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x14000b038
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000afe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140041ed0
jmp 0x14000b323
mov rcx, qword [rsp + 0x70]
call fcn.140041ab0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14000b010
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x14000b323
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x14000b038
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140041ed0
jmp 0x14000b323
mov eax, dword [rsp + 0x40]
and eax, 0x10
test eax, eax
jne 0x14000b054
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x14
jmp 0x14000b323
lea rdx, str.libarchive_
lea rcx, [rsp + 0x70]
call fcn.140036dc0
lea rdx, str.XXXXXXXXXX
lea rcx, [rsp + 0x70]
call fcn.140036dc0
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x48], rax
lea rax, str.XXXXXXXXXX
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x98], 0xffffffffffffffff
inc qword [rsp + 0x98]
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x98]
cmp word [rax + rcx*2], 0
jne 0x14000b0a4
mov rax, qword [rsp + 0x98]
shl rax, 1
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xf8], rax
jmp 0x14000b15a
mov dx, 0x58
mov rcx, qword [rsp + 0xf8]
call sub.VCRUNTIME140.dll_wcschr
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
jne 0x14000b11a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rax
jmp 0x14000b137
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
cmp eax, 0x58
jne 0x14000b148
jmp 0x14000b129
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
test eax, eax
je 0x14000b15a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14000b191
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140041ed0
jmp 0x14000b323
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov r8, qword [rsp + 0x60]
mov edx, eax
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x14000b1e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140041ed0
jmp 0x14000b323
jmp 0x14000b1f1
mov rax, qword [rsp + 0x60]
add rax, 2
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x60], rax
jae 0x14000b227
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
xor edx, edx
mov ecx, 0x3e
div rcx
mov rax, rdx
lea rcx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
mov rdx, qword [rsp + 0x60]
movzx eax, word [rcx + rax*2]
mov word [rdx], ax
jmp 0x14000b1e3
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0xf8]
call fcn.140041ab0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14000b25d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x14000b323
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0xf8], rax
jne 0x14000b276
mov dword [rsp + 0x40], 0x4000100
jmp 0x14000b27e
mov dword [rsp + 0x40], 0x80
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0010000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0xffffffffffffffff
jne 0x14000b2df
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x14000b2d0
jmp 0x14000b191
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140041ed0
jmp 0x14000b323
mov edx, 0x8002
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x14000b31c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140041ed0
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000b323
jmp 0x14000b323
cmp qword [rsp + 0xa8], 0
je 0x14000b33e
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0xf8], rax
jne 0x14000b362
lea rcx, [rsp + 0x70]
call fcn.140036e40
mov eax, dword [rsp + 0x58]
add rsp, 0xe8
ret