Function at 0x1400222e0
Capabilities:
Decode data using base64 via winapi
Write file on windows

Disassembly:
push r14
sub rsp, 0x80
mov rax, qword [0x1400a3100]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, rcx
lea rcx, [0x1400a3e40]
call fcn.14002d5dc
test eax, eax
jne 0x14002257f
cmp dword [0x1400a3e8c], 0x7fffffff
je 0x14002258a
mov qword [rsp + 0x98], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0xa0], rbp
lea rbx, [0x1400a6538]
mov qword [rsp + 0xa8], rsi
mov rcx, rbx
mov qword [rsp + 0x78], rdi
mov r8d, 1
mov qword [rsp + 0x70], r12
xor r12d, r12d
cmp qword [0x1400a6550], 0xf
mov qword [rsp + 0x30], r12
cmova rcx, qword [0x1400a6538]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x14002241a
mov ebx, r12d
mov edi, r12d
xor bpl, bpl
test rbx, rbx
je 0x1400223d1
sub rdi, rbx
cmp rdi, 0x1000
jb 0x1400223c6
mov rcx, qword [rbx - 8]
add rdi, 0x27
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140022579
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.14002f6d8
lea rcx, [0x1400a3e40]
call fcn.14002d5e4
mov rdi, qword [rsp + 0x78]
movzx eax, bpl
mov rbp, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x98]
mov r12, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002f0b0
add rsp, 0x80
pop r14
ret
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x48]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
call fcn.1400201a0
cmp qword [0x1400a6550], 0xf
lea rax, [rsp + 0x40]
mov r9, qword [rsp + 0x48]
mov r8d, 1
cmova rbx, qword [0x1400a6538]
xor edx, edx
mov qword [rsp + 0x30], r12
mov rcx, rbx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x1400224c0
mov rcx, qword [rsp + 0x48]
mov rbx, r12
mov rdi, r12
test rcx, rcx
je 0x140022396
mov rdx, qword [rsp + 0x58]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400224b6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022573
call fcn.14002f6d8
jmp 0x140022396
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rbx, rsi
mov rdi, qword [rsp + 0x58]
cmp rsi, rbp
je 0x140022396
cmp qword [r14 + 0x18], 7
jbe 0x1400224e5
mov r14, qword [r14]
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, qword [rsp + 0x58]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140022396
mov r8d, ebp
mov qword [rsp + 0x20], r12
sub r8d, esi
lea r9, [rsp + 0x44]
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002255d
mov eax, dword [rsp + 0x44]
sub rbp, rsi
cmp rax, rbp
jne 0x14002255d
mov rcx, r14
mov bpl, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140022399
xor bpl, bpl
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x58]
jmp 0x140022399
call fcn.14003501c
int3
call fcn.14003501c
int3
mov ecx, 5
call fcn.14002d594
int3
mov ecx, 6
mov dword [0x1400a3e8c], 0x7ffffffe
call fcn.14002d594
int3