Function at 0x140002a77
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x48]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
mov r8, rcx
mov rcx, rax
call fcn.140002665
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140002ae1
mov ecx, 2
mov rax, qword [fcn.14000e790]
call rax
mov rcx, rax
lea rax, str.Base64_n
mov rdx, rax
call fcn.140001450
jmp 0x140002d00
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x50]
mov rax, qword [rbp - 0x10]
mov r8, rcx
mov rcx, rax
call fcn.1400029e4
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_free
cmp qword [rbp - 0x18], 0
jne 0x140002b34
mov ecx, 2
mov rax, qword [fcn.14000e790]
call rax
mov rcx, rax
lea rax, [0x1400103c6]
mov rdx, rax
call fcn.140001450
jmp 0x140002d00
mov rax, qword [rbp + 0x18]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, rax
mov edx, 0
mov ecx, 0xfde9
mov rax, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call rax
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
cdqe
add rax, rax
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x28], rax
mov rdx, qword [rbp + 0x18]
mov eax, dword [rbp - 0x1c]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rdx
mov edx, 0
mov ecx, 0xfde9
mov rax, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call rax
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, rax
mov edx, 0
mov ecx, 0xd698
mov rax, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call rax
mov dword [rbp - 0x2c], eax
mov eax, dword [rbp - 0x2c]
cdqe
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x38], rax
mov rdx, qword [rbp - 0x28]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rbp - 0x2c]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rdx
mov edx, 0
mov ecx, 0xd698
mov rax, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call rax
mov rax, qword [rbp - 0x38]
lea rdx, [0x14001003c]
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x40], rax
cmp qword [rbp - 0x40], 0
jne 0x140002cb0
mov ecx, 2
mov rax, qword [fcn.14000e790]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x38]
mov r8, rax
lea rax, str.__s_n
mov rdx, rax
call fcn.140001450
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sub.msvcrt.dll_free
jmp 0x140002d00
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sub.msvcrt.dll_free
nop
add rsp, 0x90
pop rbp
ret