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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov r12, rdx
mov r15, rcx
xor edi, edi
mov qword [rax - 0x70], rdi
mov dword [rax - 0x50], 0xb0b5f11e
and dword [rax - 0x4c], edi
mov dword [rax - 0x48], r8d
and dword [rax - 0x44], edi
and dword [rax - 0x40], edi
and dword [rax - 0x3c], edi
lea rax, [0x14010a528]
lea r13, str.capi
test rcx, rcx
cmovne r13, rax
mov qword [rsp + 0x60], r13
xor r14d, r14d
lea rcx, str._tPrivate_export_:
call fcn.14000b8b0
test r12, r12
je 0x1400961b7
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rdi
xor r9d, r9d
lea r14d, [rdi + 7]
mov r8d, r14d
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x1400961a6
mov esi, dword [rsp + 0xd0]
add esi, 0x18
mov dword [rsp + 0x40], esi
mov edx, esi
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400963e6
lea rcx, [rax + 0x18]
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, r14d
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x140096189
cmp dword [rdi + 0x1c], 0x2200
je 0x14009615a
cmp dword [rdi + 0x1c], 0x2400
je 0x140096151
lea rax, [0x14010ae78]
lea rcx, str.keyx.rsa.pvk
cmp dword [rdi + 0x1c], 0xa400
cmove rax, rcx
jmp 0x140096161
lea rax, str.sign.rsa.pvk
jmp 0x140096161
lea rax, str.sign.dsa.pvk
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x7c], eax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rdi], xmm0
movsd xmm0, qword [rsp + 0x78]
movsd qword [rdi + 0x10], xmm0
jmp 0x1400963e6
lea rcx, str.ERROR_vwxeflvccrypto_exportKeyToFile___ERROR
call fcn.14000b8b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, rax
jmp 0x1400963e6
lea rcx, str.ERROR_vwxeflvccrypto_exportKeyToFile___ERROR
call fcn.14000b8b0
jmp 0x1400963e6
test r15, r15
je 0x1400963e6
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea r9, [rsp + 0xc8]
mov r8d, 1
lea rdx, str.Algorithm_Group
mov rcx, r15
call fcn.140004ec0
test eax, eax
je 0x1400963da
xor esi, esi
mov dword [rsp + 0x44], esi
cmp esi, 4
jae 0x140096229
mov r12d, esi
shl r12, 5
lea rcx, [0x1400f5770]
add r12, rcx
mov rdx, qword [r12]
mov rcx, qword [rsp + 0xc8]
call fcn.1400c6614
test eax, eax
jne 0x14009631b
mov r14, r12
test r14, r14
je 0x1400963c0
and dword [rsp + 0x38], 0
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [r14 + 8]
xor edx, edx
mov rcx, r15
call qword [sym.imp.ncrypt.dll_NCryptExportKey]
test eax, eax
jne 0x1400963c0
mov eax, dword [r14 + 0x18]
neg eax
sbb esi, esi
and esi, 0x18
add esi, dword [rsp + 0xd0]
mov dword [rsp + 0x40], esi
mov edx, esi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400963cc
mov eax, dword [r14 + 0x18]
neg eax
sbb rcx, rcx
and ecx, 0x18
add rcx, rdi
and dword [rsp + 0x38], 0
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8, qword [r14 + 8]
xor edx, edx
mov rcx, r15
call qword [sym.imp.ncrypt.dll_NCryptExportKey]
test eax, eax
jne 0x1400963a1
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0x50], rax
cmp dword [r14 + 0x18], 0
je 0x140096322
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x7c], eax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rdi], xmm0
movsd xmm0, qword [rsp + 0x78]
movsd qword [rdi + 0x10], xmm0
jmp 0x1400963cc
inc esi
jmp 0x1400961f3
and dword [rsp + 0xc0], 0
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x80000001
mov esi, dword [rsp + 0x40]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x140096379
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
mov r8d, esi
mov rdx, rdi
lea rcx, str.PRIVATE_KEY
call fcn.1400129e0
jmp 0x14009637b
xor eax, eax
test eax, eax
je 0x1400963c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x48], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [rsp + 0x40], eax
jmp 0x1400963cc
lea rcx, str.ERROR_vwxeflvccrypto_exportKeyToFile___ERROR
call fcn.14000b8b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, rax
mov qword [rsp + 0x48], rax
jmp 0x1400963cc
lea rcx, str.ERROR_vwxeflvccrypto_exportKeyToFile___ERROR
call fcn.14000b8b0
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400963e6
test rdi, rdi
je 0x140096460
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xe8]
mov r8d, dword [rsp + 0xe0]
mov rdx, r13
mov rcx, qword [rsp + 0xd8]
call fcn.140096610
mov rsi, rax
test rax, rax
je 0x140096457
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, rax
call fcn.140009640
test eax, eax
je 0x140096442
mov rdx, rsi
lea rcx, [0x140111d00]
call fcn.14000b8b0
jmp 0x14009644e
lea rcx, str.ERROR_vwxeflvccrypto_exportKeyToFile___ERROR
call fcn.14000b8b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret