Function at 0x100025938
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 sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rsi, rax
cmp rax, r12
jne 0x1000259d5
lea rdi, [0x100005910]
lea r8, [0x1000058e8]
lea edx, [rbx + 0x78]
mov rcx, rdi
call fcn.1000267e8
mov ebx, 0x8007000e
jmp 0x100025ca5
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.100024ffc
lea rdi, [0x100005910]
cmp eax, r12d
mov ebx, eax
jge 0x100025a18
lea r8, [0x100005938]
mov edx, 0x180
mov rcx, rdi
call fcn.1000267e8
jmp 0x100025c86
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 0x100025a69
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 0x100025a0b
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 0x100025ac7
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.1000267e8
jmp 0x100025c82
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 0x100025b32
movzx r9d, byte [rsp + rbp + 0xa8]
movsxd rax, r12d
lea r8, [0x1000059bc]
lea rcx, [rsp + rax + 0x80]
mov edx, 3
call fcn.1000264d8
mov ebx, eax
test eax, eax
js 0x100025b71
inc rbp
add r12d, 2
cmp rbp, r13
jl 0x100025af8
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.1000264d8
cmp eax, r12d
mov ebx, eax
jge 0x100025b8d
lea r8, [0x1000059f8]
mov edx, 0x19d
jmp 0x100025aba
lea r8, [0x1000059c8]
mov edx, 0x195
mov rcx, rdi
call fcn.1000267e8
xor r12d, r12d
jmp 0x100025c82
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, r12d
jne 0x100025be0
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.1000267e8
jmp 0x100025c82
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100025c02
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100005a50]
mov edx, 0x1a3
jmp 0x100025bb2
bt eax, 0xe
jae 0x100025c2c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DecryptFileA]
cmp eax, r12d
jne 0x100025c2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100005a90]
mov edx, 0x1a8
jmp 0x100025bb2
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 0x100025c82
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.1000267e8
mov ebp, dword [rsp + 0x30]
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
cmp ebp, r12d
je 0x100025ca0
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp ebx, r12d
jge 0x100025cd7
lea rdx, [rsp + 0x38]
mov ecx, ebx
mov qword [rsp + 0x38], r12
call fcn.100021dec
mov r11, qword [rsp + 0x38]
lea r8, [0x100001b60]
mov r9d, ebx
mov edx, 0x1b9
mov rcx, rdi
mov qword [rsp + 0x20], r11
call fcn.1000267e8
lea rcx, [rsp + 0x48]
call fcn.100025898
mov eax, ebx
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.100033670
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret