Function at 0x140002a30
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0xa8
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x98], rdx
mov rcx, qword [rsp + 0xa0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x90]
lea r8, [rsp + 0x88]
call fcn.1400025f0
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140002aaf
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Base64_n
call fcn.140004b20
jmp 0x140002caf
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
lea r8, [rsp + 0x78]
call fcn.140002980
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x80]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
cmp qword [rsp + 0x70], 0
jne 0x140002b06
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x14000c4ae]
call fcn.140004b20
jmp 0x140002caf
mov r8, qword [rsp + 0x98]
mov ecx, 0xfde9
xor edx, edx
mov r9d, 0xffffffff
xor eax, eax
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x6c], eax
movsxd rcx, dword [rsp + 0x6c]
shl rcx, 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x98]
mov r10, qword [rsp + 0x60]
mov eax, dword [rsp + 0x6c]
mov ecx, 0xfde9
xor edx, edx
mov r9d, 0xffffffff
mov qword [rsp + 0x20], r10
mov dword [rsp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r8, qword [rsp + 0x60]
mov ecx, 0xd698
xor edx, edx
mov r9d, 0xffffffff
xor eax, eax
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x5c], eax
movsxd rcx, dword [rsp + 0x5c]
shl rcx, 0
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x60]
mov r10, qword [rsp + 0x50]
mov eax, dword [rsp + 0x5c]
mov ecx, 0xd698
xor edx, edx
mov r9d, 0xffffffff
xor r11d, r11d
mov qword [rsp + 0x20], r10
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rsp + 0x50]
lea rdx, [0x14000c102]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140002c6e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r8, qword [rsp + 0x50]
lea rdx, str.__s_n
call fcn.140004b20
mov rcx, qword [rsp + 0x70]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, qword [rsp + 0x60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, qword [rsp + 0x50]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140002caf
mov rcx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov r9, qword [rsp + 0x48]
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, qword [rsp + 0x48]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, qword [rsp + 0x70]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, qword [rsp + 0x60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, qword [rsp + 0x50]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
add rsp, 0xa8
ret