Function at 0x1400826c0
Capabilities:
Decode data using base64 via winapi
Get file size
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x158]
sub rsp, 0x258
mov rax, qword [0x140278ec8]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rsi, rcx
mov qword [rsp + 0x70], r9
xor edi, edi
mov qword [rsp + 0x68], r8
mov dword [rsp + 0x58], edi
lea rdx, [rsp + 0x50]
mov rcx, qword [rcx]
mov rax, qword [rcx]
call qword [rax]
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp + 0x120]
call fcn.140082d80
cmp qword [rbp + 0x138], 0x10
lea r15, [rbp + 0x120]
mov r14, qword [rbp + 0x130]
cmovae r15, qword [rbp + 0x120]
cmp r14, 0x10
jae 0x14008275a
movups xmm0, xmmword [r15]
mov qword [rbp - 0x70], 0xf
movups xmmword [rsp + 0x78], xmm0
jmp 0x140082793
movabs rax, 0x7fffffffffffffff
mov rbx, r14
or rbx, 0xf
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
call fcn.140002c80
lea r8, [r14 + 1]
mov qword [rsp + 0x78], rax
mov rdx, r15
mov rcx, rax
call fcn.140187e90
mov qword [rbp - 0x70], rbx
mov rax, qword [rsi]
mov qword [rbp - 0x78], r14
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400827b8
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax]
mov qword [rsp + 0x298], r12
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x250], r13
call fcn.1400841a0
test eax, eax
jne 0x140082828
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x14008281c
mov rcx, qword [rbp + 0x120]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082817
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082d77
call fcn.140157ef0
mov byte [rbp + 0x120], dil
jmp 0x140082919
cmp qword [rbp + 0x138], 0x10
lea rcx, [rbp + 0x120]
mov qword [rsp + 0x30], rdi
mov edx, 0x80000000
cmovae rcx, qword [rbp + 0x120]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400829b5
call sub.libcef.dll_cef_get_min_log_level
test eax, eax
jg 0x1400828c2
xor r9d, r9d
lea rdx, str.D:uworkspace03_28cefwinauto_src_scw_simple_handler.cc
mov r8d, 0x80
lea rcx, [rbp + 0x20]
call fcn.1400c74b0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbx + 8]
mov edi, eax
lea rdx, str.Could_not_create_a_handle_to_the_specified_certificate_file._Error_code:
call fcn.1400025c0
mov rcx, rax
mov edx, edi
call fcn.140050550
mov edi, 1
test dil, 1
je 0x1400828d1
lea rcx, [rbp + 0x20]
call fcn.1400c7810
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x140082912
mov rcx, qword [rbp + 0x120]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008290d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082d77
call fcn.140157ef0
mov byte [rbp + 0x120], 0
mov rax, qword [rsp + 0x48]
movdqa xmm0, xmmword [0x14020a0a0]
movdqu xmmword [rbp + 0x130], xmm0
test rax, rax
je 0x140082948
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140082967
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
test rdx, rdx
je 0x140082984
mov rax, qword [rdx + 8]
add rdx, 8
movsxd rcx, dword [rax + 4]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov r13, qword [rsp + 0x250]
mov r12, qword [rsp + 0x298]
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140157f90
add rsp, 0x258
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov ebx, eax
call fcn.140158cf4
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, ebx
mov rdx, rax
mov rcx, r14
mov r15, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140082a5a
call sub.libcef.dll_cef_get_min_log_level
test eax, eax
jg 0x140082a35
xor r9d, r9d
lea rdx, str.D:uworkspace03_28cefwinauto_src_scw_simple_handler.cc
mov r8d, 0x8a
lea rcx, [rbp + 0x20]
call fcn.1400c74b0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbx + 8]
mov edi, eax
lea rdx, str.Could_not_read_the_certificate_file._Error_code:
call fcn.1400025c0
mov rcx, rax
mov edx, edi
call fcn.140050550
mov edi, 2
test dil, 2
je 0x140082a44
lea rcx, [rbp + 0x20]
call fcn.1400c7810
mov rcx, r15
call fcn.140157ef8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400828d1
mov edx, dword [rsp + 0x40]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rdi
mov rcx, r15
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 6]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov ecx, dword [rsp + 0x44]
call fcn.140158cf4
mov edx, dword [rsp + 0x40]
mov r12, rax
lea rax, [rsp + 0x58]
mov r9, r12
mov qword [rsp + 0x30], rax
mov r8d, 6
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rdi
mov rcx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov r8d, dword [rsp + 0x44]
mov rdx, r12
mov ecx, 0x10001
call qword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov r13, rax
test rax, rax
jne 0x140082b56
call sub.libcef.dll_cef_get_min_log_level
test eax, eax
jg 0x140082b29
xor r9d, r9d
lea rdx, str.D:uworkspace03_28cefwinauto_src_scw_simple_handler.cc
mov r8d, 0x9d
lea rcx, [rbp + 0x20]
call fcn.1400c74b0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbx + 8]
mov edi, eax
lea rdx, str.Could_not_create_a_certificate_context._Error_code:
call fcn.1400025c0
mov rcx, rax
mov edx, edi
call fcn.140050550
mov edi, 4
test dil, 4
je 0x140082b38
lea rcx, [rbp + 0x20]
call fcn.1400c7810
mov rcx, r15
call fcn.140157ef8
mov rcx, r12
call fcn.140157ef8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400828d1
mov rbx, qword [rsp + 0x70]
xorps xmm0, xmm0
xor eax, eax
xor edx, edx
mov qword [rbp + 0x10], rax
mov rcx, rbx
mov rax, qword [rsp + 0x68]
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x58], rax
lea rax, str.Certificate_Window
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x48], rax
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x60], 0x78
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x50], edi
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x40], r13
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
call qword [sym.imp.USER32.dll_EnableWindow]
lea rdx, [rsp + 0x5c]
lea rcx, [rbp - 0x60]
call sub.CRYPTUI.dll_CryptUIDlgViewCertificateA
mov edx, 1
mov rcx, rbx
test eax, eax
je 0x140082cb0
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, r13
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call fcn.140157ef8
mov rcx, r12
call fcn.140157ef8
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x140082c34
mov rcx, qword [rbp + 0x120]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082c2f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082d77
call fcn.140157ef0
mov rax, qword [rsp + 0x48]
movdqa xmm0, xmmword [0x14020a0a0]
mov byte [rbp + 0x120], dil
movdqu xmmword [rbp + 0x130], xmm0
test rax, rax
je 0x140082c6a
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140082c89
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
test rax, rax
je 0x140082ca6
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x140082986
call qword [sym.imp.USER32.dll_EnableWindow]
call sub.libcef.dll_cef_get_min_log_level
test eax, eax
jg 0x140082d02
xor r9d, r9d
lea rdx, str.D:uworkspace03_28cefwinauto_src_scw_simple_handler.cc
mov r8d, 0xbb
lea rcx, [rbp + 0x20]
call fcn.1400c74b0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbx + 8]
mov edi, eax
lea rdx, str.Cannot_show_certificate._Error_code:
call fcn.1400025c0
mov rcx, rax
mov edx, edi
call fcn.140050550
mov edi, 8
test dil, 8
je 0x140082d11
lea rcx, [rbp + 0x20]
call fcn.1400c7810
mov rcx, r13
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call fcn.140157ef8
mov rcx, r12
call fcn.140157ef8
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x140082912
mov rcx, qword [rbp + 0x120]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008290d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008290d
call fcn.1401963ac
int3