Function at 0x100025968
Capabilities:
Check if file exists
Create directory
Generate random numbers via winapi
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x100036110]
xor rax, rsp
mov qword [rsp + 0xc8], rax
xor r12d, r12d
mov r14, rcx
mov ebx, 0x104
mov rcx, rbx
mov r15, rdx
mov dword [rsp + 0x78], 0x100
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov ebp, r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
call fcn.100033792
mov rsi, rax
cmp rax, r12
jne 0x100025a05
lea rdi, [0x100005910]
lea r8, [0x1000058e8]
lea edx, [rbx + 0x78]
mov rcx, rdi
call fcn.100026818
mov ebx, 0x8007000e
jmp 0x100025cd5
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.10002502c
lea rdi, [0x100005910]
cmp eax, r12d
mov ebx, eax
jge 0x100025a48
lea r8, [0x100005938]
mov edx, 0x180
mov rcx, rdi
call fcn.100026818
jmp 0x100025cb6
lea rcx, [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, r12d
jne 0x100025a99
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100005968]
mov edx, 0x187
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
mov eax, 0x80004005
cmp ebx, r12d
cmovge ebx, eax
jmp 0x100025a3b
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0xa8]
mov edx, 0x10
mov dword [rsp + 0x30], 1
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, r12d
jne 0x100025af7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100005998]
mov edx, 0x18c
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
mov eax, 0x80004005
cmp ebx, r12d
cmovge ebx, eax
mov rcx, rdi
call fcn.100026818
jmp 0x100025cb2
movzx ebx, byte [rsp + 0xa8]
xor edx, edx
lea rcx, [rsp + 0x81]
lea r8d, [rdx + 0x20]
and ebx, 7
mov byte [rsp + 0x80], r12b
add ebx, 9
call sub.msvcrt.dll_memset
movsxd r13, ebx
cmp r13, r12
jle 0x100025b62
movzx r9d, byte [rsp + rbp + 0xa8]
movsxd rax, r12d
lea r8, [0x1000059bc]
lea rcx, [rsp + rax + 0x80]
mov edx, 3
call fcn.100026508
mov ebx, eax
test eax, eax
js 0x100025ba1
inc rbp
add r12d, 2
cmp rbp, r13
jl 0x100025b28
xor r12d, r12d
lea rax, [rsp + 0x80]
mov ebp, 0x104
lea r8, [0x1000059f0]
mov r9, r14
mov rcx, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call fcn.100026508
cmp eax, r12d
mov ebx, eax
jge 0x100025bbd
lea r8, [0x1000059f8]
mov edx, 0x19d
jmp 0x100025aea
lea r8, [0x1000059c8]
mov edx, 0x195
mov rcx, rdi
call fcn.100026818
xor r12d, r12d
jmp 0x100025cb2
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, r12d
jne 0x100025c10
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100005a20]
mov edx, 0x1a0
movzx ebx, ax
mov r9, rsi
mov rcx, rdi
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
mov eax, 0x80004005
cmp ebx, r12d
cmovge ebx, eax
mov dword [rsp + 0x20], ebx
call fcn.100026818
jmp 0x100025cb2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100025c32
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100005a50]
mov edx, 0x1a3
jmp 0x100025be2
bt eax, 0xe
jae 0x100025c5c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DecryptFileA]
cmp eax, r12d
jne 0x100025c5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100005a90]
mov edx, 0x1a8
jmp 0x100025be2
or r9d, 0xffffffff
mov r8, rsi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, r12d
jne 0x100025cb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100005ac0]
mov r9, rsi
movzx ebx, ax
mov edx, 0x1ae
mov rcx, rdi
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
mov eax, 0x80004005
cmp ebx, r12d
cmovge ebx, eax
call fcn.100026818
mov ebp, dword [rsp + 0x30]
mov rcx, rsi
call fcn.10003379e
cmp ebp, r12d
je 0x100025cd0
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp ebx, r12d
jge 0x100025d07
lea rdx, [rsp + 0x38]
mov ecx, ebx
mov qword [rsp + 0x38], r12
call fcn.100021e1c
mov r11, qword [rsp + 0x38]
lea r8, [0x100001b60]
mov r9d, ebx
mov edx, 0x1b9
mov rcx, rdi
mov qword [rsp + 0x20], r11
call fcn.100026818
lea rcx, [rsp + 0x48]
call fcn.1000258c8
mov eax, ebx
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1000336c0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret