Function at 0x14005a810
Capabilities:
Decode data using base64 via winapi
Encode data using base64 via winapi
Get system firmware table

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov qword [rbp - 0x68], rdx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
mov dword [rbp - 0x70], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov edi, eax
mov ecx, eax
call fcn.1400627d4
mov rbx, rax
mov r9d, edi
mov r8, rax
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
movsxd rcx, dword [rbx + 4]
mov dword [rbp - 0x6c], ecx
mov rdi, rcx
call fcn.1400627d4
mov qword [rbp - 0x78], rax
lea r8, [rbx + 8]
mov r9, rdi
mov rdx, rdi
mov rcx, rax
call fcn.140019f10
mov rcx, rbx
call fcn.140061ab0
nop
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
lfence
lea ecx, [r13 + 0x30]
call fcn.140061aec
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rsp + 0x60], rax
mov esi, r13d
mov dword [rsp + 0x48], r13d
mov r12d, 1
mov dword [rsp + 0x4c], r12d
lea r8, [rsp + 0x60]
lea rcx, [rbp - 0x78]
call fcn.14005c1f0
mov rcx, qword [rsp + 0x60]
test eax, eax
je 0x14005adba
mov qword [rbp - 0x60], rcx
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x14005adbf
lea r15, [r13 - 1]
mov r14d, dword [rsp + 0x40]
mov dword [rsp + 0x40], r14d
nop word [rax + rax]
lea rdi, [rbx + 0x10]
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14005a941
mov rcx, qword [rdi]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, dword [rdi + 0x10]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x14005ad37
mov ecx, dword [rsp + 0x50]
inc ecx
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400627d4
mov rsi, rax
mov edx, dword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14005a98d
mov rdi, qword [rdi]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x14005ab79
lea rax, [0x140085908]
mov qword [rbp - 0x40], rax
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
or r14d, 1
mov dword [rsp + 0x40], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x40], r15
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x38], rax
mov qword [rbp + 0x30], r13
mov dword [rbp + 0x38], 4
mov edx, r12d
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64]
inc r12d
mov dword [rsp + 0x4c], r12d
mov qword [rbp + 0xb0], r13
mov qword [rbp + 0xc0], r13
mov edi, 7
mov qword [rbp + 0xc8], rdi
mov word [rbp + 0xb0], r13w
or r14d, 4
mov dword [rsp + 0x40], r14d
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov ecx, dword [rbp + 0x38]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14005aaa1
mov rax, qword [rbp + 8]
mov r8, qword [rax]
test r8, r8
je 0x14005aaa1
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x30]
cmovb r8, qword [rbp + 0x30]
sub r8, rdx
sar r8, 1
jmp 0x14005aad6
test cl, 4
jne 0x14005aace
mov rax, qword [rbp]
mov rcx, qword [rax]
test rcx, rcx
je 0x14005aace
mov rax, qword [rbp - 0x20]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x18]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
jmp 0x14005aad6
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
test rdx, rdx
je 0x14005aaee
lea rcx, [rbp + 0xb0]
call fcn.140005930
mov rdi, qword [rbp + 0xc8]
and r14d, 0xfffffffb
or r14d, 2
mov dword [rsp + 0x40], r14d
cmp rdi, 8
jb 0x14005ab3b
lea rdx, [rdi*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ab35
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005ad63
call fcn.140061ab0
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], r15
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x38]
call fcn.14000f2f0
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
jmp 0x14005ab7e
mov dword [rsp + 0x48], r15d
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.14001a130
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov r14, r13
mov qword [rbp - 0x80], r13
lea rcx, str.Hp_Bridge_Network
call qword [sym.imp.Logging.dll_public:_static_class_Hp::Bridge::Logging::TraceLogger____ptr64___cdecl_Hp::Bridge::Logging::LogManager::SetProvider_char_const____ptr64_]
mov r13, rax
lea rdx, [0x1400cdec0]
lea rcx, [0x1400c9f18]
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_name]
mov rcx, qword [rsp + 0x58]
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringLen
mov r12d, eax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer
mov r15, rax
xor eax, eax
mov dword [rsp + 0x44], eax
test r15, r15
je 0x14005ad9d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, r12d
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x14005ad8c
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov ecx, dword [rsp + 0x44]
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x54], eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8d, 1
mov edx, r12d
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x14005ad71
mov edi, dword [rsp + 0x54]
test rdi, rdi
je 0x14005acb3
mov rdx, qword [rsp + 0x78]
nop dword [rax + rax]
cmp rdx, r14
je 0x14005ac94
movzx eax, byte [rsi]
mov byte [rdx], al
inc rdx
mov qword [rsp + 0x78], rdx
jmp 0x14005acaa
mov r8, rsi
lea rcx, [rsp + 0x70]
call fcn.14005c9a0
mov r14, qword [rbp - 0x80]
mov rdx, qword [rsp + 0x78]
inc rsi
sub rdi, 1
jne 0x14005ac80
mov rsi, qword [rbp - 0x68]
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x14005acd5
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140019e70
add qword [rsi + 8], 0x18
jmp 0x14005ace6
lea r8, [rsp + 0x70]
mov rdx, rax
mov rcx, rsi
call fcn.14005c670
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14005ad1e
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ad18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005ad6a
call fcn.140061ab0
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005ad3e
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString
xor r13d, r13d
mov qword [rsp + 0x58], r13
jmp 0x14005ad41
mov dword [rsp + 0x48], r15d
jmp 0x14005ad52
xor r13d, r13d
mov r12d, dword [rsp + 0x4c]
mov r15, 0xffffffffffffffff
mov r14d, dword [rsp + 0x40]
mov rax, qword [rbx]
mov rbx, rax
cmp rax, qword [rbp - 0x60]
je 0x14005adac
jmp 0x14005a930
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Problem_while_decoding_from_base64.__i
mov rcx, r13
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
jmp 0x14005ad9d
lea rdx, str.Problem_while_finding_the_count_of_bytes_to_decode_from_base64.
mov rcx, r13
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005adac
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString
mov rcx, qword [rsp + 0x60]
mov esi, dword [rsp + 0x48]
xor r13d, r13d
jmp 0x14005adbf
mov esi, 0xffffffff
mov rax, qword [rcx + 8]
mov qword [rax], r13
mov rdi, qword [rcx]
test rdi, rdi
je 0x14005ae34
mov rbx, qword [rdi]
mov rdx, qword [rdi + 0x28]
cmp rdx, 0x10
jb 0x14005ae08
mov rcx, qword [rdi + 0x10]
inc rdx
cmp rdx, 0x1000
jb 0x14005ae03
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005ae2d
mov rcx, r8
call fcn.140061ab0
mov qword [rdi + 0x20], r13
mov qword [rdi + 0x28], 0xf
mov byte [rdi + 0x10], 0
mov edx, 0x30
mov rcx, rdi
call fcn.140061ab0
mov rdi, rbx
test rbx, rbx
jmp 0x14005adcc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov edx, 0x30
mov rcx, qword [rsp + 0x60]
call fcn.140061ab0
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14005ae52
call fcn.140061ab0
mov eax, esi
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140061a90
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret