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

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbx
push rsi
push rdi
push r14
sub rsp, 0xa8
xor edi, edi
mov dword [rsp + 0x40], edi
mov qword [rax + 8], rcx
mov dword [rax - 0x80], 0x32415352
mov dword [rax - 0x7c], 0x400
and dword [rax - 0x78], edi
and dword [rax - 0x74], edi
and dword [rax - 0x70], edi
and dword [rax - 0x6c], edi
xor r8d, r8d
xor edx, edx
lea rcx, [rax + 8]
call fcn.140097000
lea r8, [rsp + 0x54]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xd0]
call fcn.140097000
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xd0]
call fcn.140097000
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.140097000
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.140097000
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xd0]
call fcn.140097000
lea r8, [rsp + 0x5c]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xd0]
call fcn.140097000
mov edx, dword [rsp + 0x5c]
add edx, dword [rsp + 0x58]
add edx, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x50]
add ecx, 0x18
add ecx, edx
mov dword [rsp + 0xd8], ecx
mov edx, ecx
lea r14d, [rdi + 0x40]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x140096fef
lea r8d, [rdi + 0x18]
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.1400cac20
lea rbx, [rsi + 0x18]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call fcn.1400cac20
mov eax, dword [rsp + 0x50]
add rbx, rax
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.1400cac20
mov eax, dword [rsp + 0x54]
add rbx, rax
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x78]
mov rcx, rbx
call fcn.1400cac20
mov ecx, dword [rsp + 0x58]
add rcx, rbx
mov r8d, dword [rsp + 0x5c]
mov rdx, qword [rsp + 0x80]
call fcn.1400cac20
nop
xor r9d, r9d
lea r8, str.Microsoft_Primitive_Provider
lea rdx, [0x140148ce8]
lea rcx, [rsp + 0x60]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x140096fcc
and dword [rsp + 0x30], edi
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xe0]
lea r8, str.RSAPRIVATEBLOB
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.bcrypt.dll_BCryptImportKeyPair]
test eax, eax
js 0x140096fb1
and dword [rsp + 0x30], edi
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, str.RSAFULLPRIVATEBLOB
xor edx, edx
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.bcrypt.dll_BCryptExportKey]
test eax, eax
js 0x140096f93
mov edx, dword [rsp + 0xd8]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140096fa1
and dword [rsp + 0x30], edi
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, str.RSAFULLPRIVATEBLOB
xor edx, edx
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.bcrypt.dll_BCryptExportKey]
test eax, eax
js 0x140096f7a
lea r8, [rsp + 0x90]
mov rdx, rbx
lea ecx, [rdi + 0x53]
call fcn.14008baa8
test eax, eax
je 0x140096f88
mov edi, dword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
and dword [rsp + 0xd0], 0
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x80000001
mov edx, edi
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x140096f28
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xe8]
mov r8d, edi
mov rdx, r14
lea rcx, str.RSA_PRIVATE_KEY
call fcn.1400171a0
mov edi, eax
mov dword [rsp + 0x40], eax
jmp 0x140096f2e
xor edi, edi
mov dword [rsp + 0x40], edi
test edi, edi
je 0x140096f56
mov rdx, qword [rsp + 0xe8]
lea rcx, [0x140165e08]
call fcn.14000d9f0
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140096f6a
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.14000d9f0
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140096f88
mov edx, eax
lea rcx, str.ERROR_kuhl_m_dpapi_ssh_getRSAfromRAW___BCryptExportKey_data_:_0x_08x_n
call fcn.14000d9f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140096fa1
mov edx, eax
lea rcx, str.ERROR_kuhl_m_dpapi_ssh_getRSAfromRAW___BCryptExportKey_init_:_0x_08x_n
call fcn.14000d9f0
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
jmp 0x140096fbf
mov edx, eax
lea rcx, str.ERROR_kuhl_m_dpapi_ssh_getRSAfromRAW___BCryptImportKeyPair:_0x_08x_n
call fcn.14000d9f0
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x140096fe6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
add rsp, 0xa8
pop r14
pop rdi
pop rsi
pop rbx
ret