Function at 0x140082270
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 [0x140278eb8]
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.140082930
cmp qword [rbp + 0x138], 0x10
lea r15, [rbp + 0x120]
mov r14, qword [rbp + 0x130]
cmovae r15, qword [rbp + 0x120]
cmp r14, 0x10
jae 0x14008230a
movups xmm0, xmmword [r15]
mov qword [rbp - 0x70], 0xf
movups xmmword [rsp + 0x78], xmm0
jmp 0x140082343
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.140187470
mov qword [rbp - 0x70], rbx
mov rax, qword [rsi]
mov qword [rbp - 0x78], r14
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140082368
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.140083d50
test eax, eax
jne 0x1400823d8
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x1400823cc
mov rcx, qword [rbp + 0x120]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400823c7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082927
call fcn.1401574cc
mov byte [rbp + 0x120], dil
jmp 0x1400824c9
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 0x140082565
call sub.libcef.dll_cef_get_min_log_level
test eax, eax
jg 0x140082472
xor r9d, r9d
lea rdx, str.C:uworkspace03_25_1cefwinauto_src_scw_simple_handler.cc
mov r8d, 0x80
lea rcx, [rbp + 0x20]
call fcn.1400c6a90
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.140050d10
mov edi, 1
test dil, 1
je 0x140082481
lea rcx, [rbp + 0x20]
call fcn.1400c6df0
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x1400824c2
mov rcx, qword [rbp + 0x120]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400824bd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082927
call fcn.1401574cc
mov byte [rbp + 0x120], 0
mov rax, qword [rsp + 0x48]
movdqa xmm0, xmmword [0x14020a090]
movdqu xmmword [rbp + 0x130], xmm0
test rax, rax
je 0x1400824f8
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 0x140082517
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 0x140082534
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.140157570
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.1401582d4
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 0x14008260a
call sub.libcef.dll_cef_get_min_log_level
test eax, eax
jg 0x1400825e5
xor r9d, r9d
lea rdx, str.C:uworkspace03_25_1cefwinauto_src_scw_simple_handler.cc
mov r8d, 0x8a
lea rcx, [rbp + 0x20]
call fcn.1400c6a90
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.140050d10
mov edi, 2
test dil, 2
je 0x1400825f4
lea rcx, [rbp + 0x20]
call fcn.1400c6df0
mov rcx, r15
call fcn.1401574d4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140082481
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.1401582d4
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 0x140082706
call sub.libcef.dll_cef_get_min_log_level
test eax, eax
jg 0x1400826d9
xor r9d, r9d
lea rdx, str.C:uworkspace03_25_1cefwinauto_src_scw_simple_handler.cc
mov r8d, 0x9d
lea rcx, [rbp + 0x20]
call fcn.1400c6a90
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.140050d10
mov edi, 4
test dil, 4
je 0x1400826e8
lea rcx, [rbp + 0x20]
call fcn.1400c6df0
mov rcx, r15
call fcn.1401574d4
mov rcx, r12
call fcn.1401574d4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140082481
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 0x140082860
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.1401574d4
mov rcx, r12
call fcn.1401574d4
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x1400827e4
mov rcx, qword [rbp + 0x120]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400827df
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082927
call fcn.1401574cc
mov rax, qword [rsp + 0x48]
movdqa xmm0, xmmword [0x14020a090]
mov byte [rbp + 0x120], dil
movdqu xmmword [rbp + 0x130], xmm0
test rax, rax
je 0x14008281a
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 0x140082839
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 0x140082856
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 0x140082536
call qword [sym.imp.USER32.dll_EnableWindow]
call sub.libcef.dll_cef_get_min_log_level
test eax, eax
jg 0x1400828b2
xor r9d, r9d
lea rdx, str.C:uworkspace03_25_1cefwinauto_src_scw_simple_handler.cc
mov r8d, 0xbb
lea rcx, [rbp + 0x20]
call fcn.1400c6a90
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.140050d10
mov edi, 8
test dil, 8
je 0x1400828c1
lea rcx, [rbp + 0x20]
call fcn.1400c6df0
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.1401574d4
mov rcx, r12
call fcn.1401574d4
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x1400824c2
mov rcx, qword [rbp + 0x120]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400824bd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400824bd
call fcn.14019598c
int3