Function at 0x140097ebc
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x60
and dword [rax - 0x38], 0
and dword [rax - 0x2c], 0
lea rax, [rax - 0x30]
mov qword [rsp + 0x20], rax
mov r12, r9
mov r13, r8
mov ebx, edx
mov rbp, rcx
call fcn.140097c64
cmp dword [rsp + 0x48], 0
mov esi, eax
jne 0x14009817d
lea rax, [rsp + 0x4c]
xor r9d, r9d
mov edx, ebx
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
lea r8d, [r9 + 7]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x140098169
mov edx, dword [rsp + 0x40]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14009817d
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov r9, rdi
mov r8d, 7
mov edx, ebx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x14009814a
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x44]
mov ebp, 0x10001
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov ebx, 0x8000
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
mov r8, rdi
mov edx, 0x2b
mov ecx, ebp
mov dword [rsp + 0x20], ebx
call qword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x140097fd9
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
lea r8, str.CAPIPRIVATEBLOB
jmp 0x140098120
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x44]
mov r8, rdi
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov edx, 0x52
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
mov ecx, ebp
mov dword [rsp + 0x20], ebx
call qword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x1400980db
mov rax, qword [rsp + 0x50]
mov ecx, 0x40
mov edx, dword [rax + 0x20]
mov eax, dword [rax + 8]
lea ebp, [rdx + rax + 7]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14009812f
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + 8]
mov dword [rbx + 4], eax
cmp eax, 0x20
je 0x140098066
cmp eax, 0x2a
je 0x14009805e
cmp eax, 0x42
jne 0x14009806c
mov dword [rbx], 0x36534345
jmp 0x140098071
mov dword [rbx], 0x34534345
jmp 0x140098071
mov dword [rbx], 0x32534345
cmp dword [rbx], 0
je 0x1400980c4
mov rdx, qword [rsp + 0x50]
lea rcx, [rbx + 8]
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 0x28]
inc rdx
dec r8d
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsp + 0x50]
mov eax, dword [rdx + 0x20]
mov r8d, dword [rdx + 8]
mov rdx, qword [rdx + 0x10]
lea rcx, [rax + rbx + 7]
call sub.msvcrt.dll_memcpy
lea r8, str.ECCPRIVATEBLOB
mov r9, r13
mov edx, ebp
mov rcx, rbx
mov qword [rsp + 0x20], r12
call fcn.1400054b4
mov esi, eax
jmp 0x1400980d0
lea rcx, str.ERROR_kuhl_m_crypto_NCrypt_AutoKey___Not_a_PEM_with_256__384_or_521_bits_curve__try_generic_PRIVATE_KEY_or_PKCS8__n
call fcn.14000a838
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009812f
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x44]
mov r8, rdi
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov edx, 0x2c
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
mov ecx, ebp
mov dword [rsp + 0x20], ebx
call qword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x14009813c
mov edx, dword [rsp + 0x40]
lea r8, str.PKCS8_PRIVATEKEY
mov rcx, rdi
mov r9, r13
mov qword [rsp + 0x20], r12
call fcn.1400054b4
mov esi, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009815e
lea rcx, str.ERROR_kuhl_m_crypto_NCrypt_AutoKey___Unable_to_decode_format_n
call fcn.14000a838
jmp 0x14009815e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_crypto_NCrypt_AutoKey___CryptStringToBinaryA_data___0x_08x__n
mov edx, eax
call fcn.14000a838
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009817d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_crypto_NCrypt_AutoKey___CryptStringToBinaryA_init___0x_08x__n
mov edx, eax
call fcn.14000a838
lea r11, [rsp + 0x60]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret