Function at 0x140093594
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
xor edi, edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x58], 0x32415352
mov dword [rsp + 0x5c], 0x400
mov eax, dword [rcx]
bswap eax
mov eax, eax
lea rdx, [rax + rcx + 4]
mov r9d, dword [rdx]
bswap r9d
mov dword [r11 - 0x74], r9d
add rdx, 4
mov qword [rsp + 0x98], rdx
mov r12d, r9d
add rdx, r12
mov r8d, dword [rdx]
bswap r8d
mov dword [r11 - 0x78], r8d
add rdx, 4
mov qword [rsp + 0xf0], rdx
mov r13d, r8d
add rdx, r13
mov eax, dword [rdx]
bswap eax
mov eax, eax
lea rcx, [rdx + rax + 4]
mov eax, dword [rcx]
bswap eax
mov eax, eax
lea rdx, [rcx + rax + 4]
mov eax, dword [rdx]
bswap eax
mov dword [rsp + 0x68], eax
add rdx, 4
mov qword [rsp + 0x70], rdx
mov r14d, eax
mov r15d, dword [rdx + r14]
bswap r15d
mov dword [r11 - 0x6c], r15d
lea rcx, [rdx + r14 + 4]
mov qword [rsp + 0x90], rcx
add eax, r15d
add eax, r8d
lea ecx, [rax + r9 + 0x18]
mov dword [r11 + 8], ecx
mov edx, ecx
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140093917
lea rcx, [rsp + 0x58]
mov rax, qword [rcx]
mov qword [rsi], rax
mov rax, qword [rcx + 8]
mov qword [rsi + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rsi + 0x10], rax
lea rbx, [rsi + 0x18]
mov r8, r13
mov rdx, qword [rsp + 0xf0]
mov rcx, rbx
call sub.msvcrt.dll_memcpy
add rbx, r13
mov r8, r12
mov rdx, qword [rsp + 0x98]
mov rcx, rbx
call sub.msvcrt.dll_memcpy
add rbx, r12
mov r8, r14
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
call sub.msvcrt.dll_memcpy
lea rcx, [r14 + rbx]
mov r8d, r15d
mov rdx, qword [rsp + 0x90]
call sub.msvcrt.dll_memcpy
nop
xor r9d, r9d
lea r8, str.Microsoft_Primitive_Provider
lea rdx, [0x1400e02c8]
lea rcx, [rsp + 0x50]
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
xor r13d, r13d
cmp eax, r13d
jl 0x1400938f7
mov dword [rsp + 0x30], r13d
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xf8]
lea r8, str.RSAPRIVATEBLOB
xor edx, edx
mov rcx, qword [rsp + 0x50]
call sub.bcrypt.dll_BCryptImportKeyPair
cmp eax, r13d
jl 0x1400938dd
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, str.RSAFULLPRIVATEBLOB
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call sub.bcrypt.dll_BCryptExportKey
cmp eax, r13d
jl 0x1400938c0
mov edx, dword [rsp + 0xe0]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
cmp rax, r13
je 0x1400938ce
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, str.RSAFULLPRIVATEBLOB
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call sub.bcrypt.dll_BCryptExportKey
cmp eax, r13d
jl 0x1400938a7
lea r8, [rsp + 0x80]
mov rdx, rbx
lea ecx, [rdi + 0x53]
call fcn.140087c00
cmp eax, r13d
je 0x1400938b5
mov edi, dword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
mov dword [rsp + 0xf0], r13d
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x80000001
mov edx, edi
mov rcx, r12
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
cmp eax, r13d
je 0x140093858
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, edi
mov rdx, r12
lea rcx, str.RSA_PRIVATE_KEY
call fcn.140013768
mov edi, eax
mov dword [rsp + 0x40], eax
jmp 0x140093860
mov edi, r13d
mov dword [rsp + 0x40], r13d
cmp edi, r13d
je 0x140093883
mov rdx, qword [rsp + 0x48]
lea rcx, [0x140100238]
call fcn.14000c020
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140093897
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_dpapi_ssh_getRSAfromRAW___kull_m_string_EncodeB64_headers__0x_08x__n
call fcn.14000c020
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400938b5
mov edx, eax
lea rcx, str.ERROR_kuhl_m_dpapi_ssh_getRSAfromRAW___BCryptExportKey_data_:_0x_08x_n
call fcn.14000c020
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400938ce
mov edx, eax
lea rcx, str.ERROR_kuhl_m_dpapi_ssh_getRSAfromRAW___BCryptExportKey_init_:_0x_08x_n
call fcn.14000c020
mov rcx, qword [rsp + 0xf8]
call sub.bcrypt.dll_BCryptDestroyKey
jmp 0x1400938eb
mov edx, eax
lea rcx, str.ERROR_kuhl_m_dpapi_ssh_getRSAfromRAW___BCryptImportKeyPair:_0x_08x_n
call fcn.14000c020
xor edx, edx
mov rcx, qword [rsp + 0x50]
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
jmp 0x14009390e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret