Function at 0x140081e70
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 [0x140277eb8]
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.140082530
cmp qword [rbp + 0x138], 0x10
lea r15, [rbp + 0x120]
mov r14, qword [rbp + 0x130]
cmovae r15, qword [rbp + 0x120]
cmp r14, 0x10
jae 0x140081f0a
movups xmm0, xmmword [r15]
mov qword [rbp - 0x70], 0xf
movups xmmword [rsp + 0x78], xmm0
jmp 0x140081f43
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.140186ec0
mov qword [rbp - 0x70], rbx
mov rax, qword [rsi]
mov qword [rbp - 0x78], r14
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140081f68
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.140083950
test eax, eax
jne 0x140081fd8
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x140081fcc
mov rcx, qword [rbp + 0x120]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140081fc7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082527
call fcn.140156f20
mov byte [rbp + 0x120], dil
jmp 0x1400820c9
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 0x140082165
call sub.libcef.dll_cef_get_min_log_level
test eax, eax
jg 0x140082072
xor r9d, r9d
lea rdx, str.D:uworkspace03_27cefwinauto_src_scw_simple_handler.cc
mov r8d, 0x80
lea rcx, [rbp + 0x20]
call fcn.1400c64e0
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.140050530
mov edi, 1
test dil, 1
je 0x140082081
lea rcx, [rbp + 0x20]
call fcn.1400c6840
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x1400820c2
mov rcx, qword [rbp + 0x120]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400820bd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082527
call fcn.140156f20
mov byte [rbp + 0x120], 0
mov rax, qword [rsp + 0x48]
movdqa xmm0, xmmword [0x140209090]
movdqu xmmword [rbp + 0x130], xmm0
test rax, rax
je 0x1400820f8
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 0x140082117
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 0x140082134
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.140156fc0
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.140157d24
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 0x14008220a
call sub.libcef.dll_cef_get_min_log_level
test eax, eax
jg 0x1400821e5
xor r9d, r9d
lea rdx, str.D:uworkspace03_27cefwinauto_src_scw_simple_handler.cc
mov r8d, 0x8a
lea rcx, [rbp + 0x20]
call fcn.1400c64e0
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.140050530
mov edi, 2
test dil, 2
je 0x1400821f4
lea rcx, [rbp + 0x20]
call fcn.1400c6840
mov rcx, r15
call fcn.140156f28
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140082081
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.140157d24
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 0x140082306
call sub.libcef.dll_cef_get_min_log_level
test eax, eax
jg 0x1400822d9
xor r9d, r9d
lea rdx, str.D:uworkspace03_27cefwinauto_src_scw_simple_handler.cc
mov r8d, 0x9d
lea rcx, [rbp + 0x20]
call fcn.1400c64e0
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.140050530
mov edi, 4
test dil, 4
je 0x1400822e8
lea rcx, [rbp + 0x20]
call fcn.1400c6840
mov rcx, r15
call fcn.140156f28
mov rcx, r12
call fcn.140156f28
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140082081
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 0x140082460
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.140156f28
mov rcx, r12
call fcn.140156f28
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x1400823e4
mov rcx, qword [rbp + 0x120]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400823df
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082527
call fcn.140156f20
mov rax, qword [rsp + 0x48]
movdqa xmm0, xmmword [0x140209090]
mov byte [rbp + 0x120], dil
movdqu xmmword [rbp + 0x130], xmm0
test rax, rax
je 0x14008241a
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 0x140082439
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 0x140082456
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 0x140082136
call qword [sym.imp.USER32.dll_EnableWindow]
call sub.libcef.dll_cef_get_min_log_level
test eax, eax
jg 0x1400824b2
xor r9d, r9d
lea rdx, str.D:uworkspace03_27cefwinauto_src_scw_simple_handler.cc
mov r8d, 0xbb
lea rcx, [rbp + 0x20]
call fcn.1400c64e0
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.140050530
mov edi, 8
test dil, 8
je 0x1400824c1
lea rcx, [rbp + 0x20]
call fcn.1400c6840
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.140156f28
mov rcx, r12
call fcn.140156f28
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x1400820c2
mov rcx, qword [rbp + 0x120]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400820bd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400820bd
call fcn.1401953dc
int3