Function at 0x140001000
Capabilities:
Create directory
Generate random numbers via winapi
Write file on windows

Disassembly:
sub rsp, 0xcf8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xce0], rax
mov r8d, 0x104
lea rdx, [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000103d
mov eax, 1
jmp 0x1400012c0
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0x208
jae 0x140001058
jmp 0x14000105e
call fcn.140001418
nop
xor eax, eax
mov rcx, qword [rsp + 0x58]
mov word [rsp + rcx + 0x4a0], ax
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
dec eax
mov dword [rsp + 0x40], eax
jmp 0x140001095
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x1400010c4
movsxd rax, dword [rsp + 0x40]
movzx eax, word [rsp + rax*2 + 0x80]
cmp eax, 0x5c
je 0x1400010c0
movsxd rax, dword [rsp + 0x40]
movzx eax, word [rsp + rax*2 + 0x80]
cmp eax, 0x2f
jne 0x1400010c2
jmp 0x1400010c4
jmp 0x14000108b
cmp dword [rsp + 0x40], 0
jle 0x1400010ed
mov eax, dword [rsp + 0x40]
inc eax
mov r8d, eax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
nop
jmp 0x1400010f7
mov eax, 1
jmp 0x1400012c0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140001134
mov eax, 1
jmp 0x1400012c0
lea r8, [rsp + 0x60]
mov edx, 4
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x140001164
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
jmp 0x1400012c0
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r8d, dword [rsp + 0x60]
lea rdx, str._As_u
lea rcx, [rsp + 0x6b0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x6b0]
lea r8, [rsp + 0x4a0]
lea rdx, str._s_s
lea rcx, [rsp + 0x290]
call qword [sym.imp.USER32.dll_wsprintfW]
nop
xor edx, edx
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400011cf
mov eax, 1
jmp 0x1400012c0
lea r8, [rsp + 0x290]
lea rdx, str._s_source
lea rcx, [rsp + 0x8c0]
call qword [sym.imp.USER32.dll_wsprintfW]
nop
xor edx, edx
lea rcx, [rsp + 0x8c0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000120b
mov eax, 1
jmp 0x1400012c0
lea r8, [rsp + 0x290]
lea rdx, str._sdata.bin
lea rcx, [rsp + 0xad0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0xad0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x14000126e
mov eax, 1
jmp 0x1400012c0
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, dword [0x140003048]
lea rdx, [0x1400020fc]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400012b3
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400012c0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0xce0]
xor rcx, rsp
call fcn.1400012f0
add rsp, 0xcf8
ret