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

Disassembly:
mov dword [rsp + 0x10], edx
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 + 0x50], 0x32415352
mov dword [rsp + 0x54], 0x400
mov edx, dword [rcx]
bswap edx
mov edx, edx
add rdx, rcx
mov r9d, dword [rdx + 4]
bswap r9d
mov dword [r11 - 0x7c], r9d
add rdx, 8
mov qword [r11 - 0x48], rdx
mov r14d, r9d
add rdx, r14
mov r8d, dword [rdx]
bswap r8d
mov dword [r11 - 0x80], r8d
add rdx, 4
mov qword [r11 + 8], rdx
mov r15d, r8d
add rdx, r15
mov ecx, dword [rdx]
bswap ecx
mov ecx, ecx
add rcx, 4
add rcx, rdx
mov edx, dword [rcx]
bswap edx
mov edx, edx
add rdx, rcx
mov eax, dword [rdx + 4]
bswap eax
mov dword [rsp + 0x60], eax
add rdx, 8
mov qword [r11 - 0x70], rdx
mov r12d, eax
mov r13d, dword [rdx + r12]
bswap r13d
mov dword [r11 - 0x74], r13d
lea rcx, [rdx + 4]
add rcx, r12
mov qword [r11 - 0x50], rcx
add eax, r13d
add eax, r8d
lea ecx, [r9 + 0x18]
add ecx, eax
mov dword [r11 + 0x10], ecx
mov edx, ecx
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x18001f756
mov rax, qword [rsp + 0x50]
mov qword [rsi], rax
mov rax, qword [rsp + 0x58]
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
lea rbx, [rsi + 0x18]
mov r8d, r15d
mov rdx, qword [rsp + 0xe0]
mov rcx, rbx
call fcn.18005bdd0
add rbx, r15
mov r8d, r14d
mov rdx, qword [rsp + 0x90]
mov rcx, rbx
call fcn.18005bdd0
add rbx, r14
mov r8d, r12d
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call fcn.18005bdd0
lea rcx, [r12 + rbx]
mov r8d, r13d
mov rdx, qword [rsp + 0x88]
call fcn.18005bdd0
nop
xor r9d, r9d
lea r8, str.Microsoft_Primitive_Provider
lea rdx, [0x180076be8]
lea rcx, [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
xor r15d, r15d
test eax, eax
js 0x18001f736
mov dword [rsp + 0x30], r15d
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xf0]
lea r8, str.RSAPRIVATEBLOB
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptImportKeyPair]
test eax, eax
js 0x18001f71b
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, str.RSAFULLPRIVATEBLOB
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.bcrypt.dll_BCryptExportKey]
test eax, eax
js 0x18001f6fd
mov edx, dword [rsp + 0xe8]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x18001f70b
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, str.RSAFULLPRIVATEBLOB
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.bcrypt.dll_BCryptExportKey]
test eax, eax
js 0x18001f6e4
lea r8, [rsp + 0x78]
mov rdx, rbx
lea ecx, [rdi + 0x53]
call fcn.180014f9c
test eax, eax
je 0x18001f6f2
mov edi, dword [rsp + 0x78]
mov r14, qword [rsp + 0x80]
mov dword [rsp + 0xe0], r15d
lea rax, [rsp + 0xe0]
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 0x18001f690
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xf8]
mov r8d, edi
mov rdx, r14
lea rcx, str.RSA_PRIVATE_KEY
call fcn.18001139c
mov edi, eax
mov dword [rsp + 0x40], eax
jmp 0x18001f698
mov edi, r15d
mov dword [rsp + 0x40], r15d
test edi, edi
je 0x18001f6c0
mov rdx, qword [rsp + 0xf8]
lea rcx, [0x18008a428]
call fcn.18000af2c
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18001f6d4
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.18000af2c
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18001f6f2
mov edx, eax
lea rcx, str.ERROR_kuhl_m_dpapi_ssh_getRSAfromRAW___BCryptExportKey_data_:_0x_08x_n
call fcn.18000af2c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18001f70b
mov edx, eax
lea rcx, str.ERROR_kuhl_m_dpapi_ssh_getRSAfromRAW___BCryptExportKey_init_:_0x_08x_n
call fcn.18000af2c
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
jmp 0x18001f729
mov edx, eax
lea rcx, str.ERROR_kuhl_m_dpapi_ssh_getRSAfromRAW___BCryptImportKeyPair:_0x_08x_n
call fcn.18000af2c
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x18001f74d
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