Function at 0x140106d70
Capabilities:
Get file size
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x238
movaps xmmword [rsp + 0x220], xmm6
mov r14, rcx
mov rax, qword [0x1402db040]
xor rax, rsp
mov qword [rsp + 0x218], rax
mov rbx, qword [rcx]
lea r12, [rcx + 0x548]
movsxd rcx, edx
xor eax, eax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xe0], rax
cmp dword [r14 + 0x3dc], 2
jne 0x140106df2
xor eax, eax
cmp qword [r14 + 0x4c8], 0xffffffffffffffff
setne al
lea rdx, [rax + rax*2]
mov eax, 0x3c8
cmp dword [r14 + rdx*8 + 0x578], 2
jne 0x140106df7
mov eax, 0x340
mov rdi, qword [r14 + rax]
mov rax, qword [0x140334ed8]
mov rax, qword [rax + 0x58]
lea r13, [rcx + rcx*2]
mov rcx, qword [r12 + r13*8 + 8]
mov rcx, qword [rcx + 8]
lea r15, [rsp + 0xf0]
mov edx, 0x53
mov r8, r15
call qword [0x1402cbd20]
mov esi, eax
test eax, eax
sete al
mov rdx, qword [r15]
test rdx, rdx
setne cl
test al, cl
jne 0x140106f1c
lea rdi, [rsp + 0x110]
mov r8d, 0x100
mov rcx, rdi
mov dl, 0xaa
call fcn.1401e5d50
mov r8d, 0x100
mov ecx, esi
mov rdx, rdi
call fcn.1400df890
lea rdx, str.schannel:_Failed_to_read_remote_certificate_context:__s
mov rcx, rbx
mov r8, rax
call fcn.1400c5820
mov r12d, 0x3c
xor esi, esi
mov rcx, qword [rsp + 0xe0]
test rcx, rcx
je 0x140106e96
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateChainEngine]
test rsi, rsi
je 0x140106ea6
mov rcx, rsi
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x140106eb9
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateChain]
mov rcx, qword [rsp + 0xf0]
test rcx, rcx
je 0x140106ecc
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x140106efd
call fcn.1401ac870
int3
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_REVOKED
mov rcx, rbx
call fcn.1400c5820
mov r12d, 0x3c
jmp 0x140106e83
mov eax, r12d
movaps xmm6, xmmword [rsp + 0x220]
add rsp, 0x238
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp dword [r14 + 0x3dc], 2
jne 0x140106f4e
xor eax, eax
cmp qword [r14 + 0x4c8], 0xffffffffffffffff
setne al
lea rax, [rax + rax*2]
cmp dword [r14 + rax*8 + 0x578], 2
je 0x140106f4e
cmp qword [r14 + 0x610], 0
jne 0x140106f58
jmp 0x140106fa3
cmp qword [r14 + 0x5c0], 0
je 0x140106fa3
lea rax, [r12 + r13*8]
add rax, 8
mov rax, qword [rax]
cmp byte [rax + 0x6b], 1
jne 0x140106fa3
mov ecx, 6
mov edx, 1
mov r8d, 2
xor r9d, r9d
call fcn.1400c5090
test al, al
je 0x14010720a
lea rdx, str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
mov rcx, rbx
call fcn.1400c5820
mov r12d, Ordinal_79
jmp 0x140106e81
xor esi, esi
xorps xmm0, xmm0
lea rax, [rsp + 0x80]
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x10], xmm0
mov dword [rax], 0x60
movzx r8d, byte [rbx + 0xab3]
xor r8d, 1
shl r8d, 0x1d
mov r9, qword [rdx + 0x20]
mov rcx, qword [rsp + 0xe0]
lea r10, [rsp + 0xe8]
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0
xor r8d, r8d
call qword [sym.imp.CRYPT32.dll_CertGetCertificateChain]
test eax, eax
je 0x140107071
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov eax, dword [rax + 4]
cmp byte [rbx + 0xab5], 0
mov ecx, 0xfeffffbd
mov r8d, 0xfffffffd
cmovne r8d, ecx
and r8d, eax
je 0x1401070c2
test al, 4
jne 0x140106ee6
bt eax, 0x10
jae 0x14010705d
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_PARTIAL_CHAIN
jmp 0x140106eed
test al, 0x20
je 0x14010718f
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_UNTRUSTED_ROOT
jmp 0x140106eed
lea rdi, [rsp + 0x110]
mov r8d, 0x100
mov rcx, rdi
mov dl, 0xaa
call fcn.1401e5d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
mov ecx, eax
mov rdx, rdi
call fcn.1400df7b0
lea rdx, str.schannel:_CertGetCertificateChain_failed:__s
mov rcx, rbx
mov r8, rax
call fcn.1400c5820
mov qword [rsp + 0xe8], 0
jmp 0x140106ef5
cmp dword [r14 + 0x3dc], 2
jne 0x140107106
xor eax, eax
cmp qword [r14 + 0x4c8], 0xffffffffffffffff
setne al
lea rax, [rax + rax*2]
cmp dword [r14 + rax*8 + 0x578], 2
je 0x140107106
cmp byte [r14 + 0x649], 0
jne 0x140107110
xor r12d, r12d
jmp 0x140106e83
lea rdx, str.schannel:_CertGetNameString___returned_no_certificate_name_information
jmp 0x140106eed
cmp byte [r14 + 0x5f9], 1
jne 0x1401070f2
mov r15, qword [rsp + 0xf0]
mov rbx, qword [r14]
mov rcx, rbx
mov rdx, r15
xor r8d, r8d
xor r9d, r9d
call fcn.140107a50
test eax, eax
je 0x1401070fa
mov ebp, eax
mov rax, qword [fcn.1400ab570]
mov ecx, ebp
mov qword [rsp + 0x60], rcx
add rcx, rcx
call qword [0x1402cbd20]
test rax, rax
je 0x140107184
mov r14, rax
mov rcx, rbx
mov rdx, r15
mov r8, rax
mov r9d, ebp
call fcn.140107a50
cmp eax, ebp
jne 0x14010749e
mov qword [rsp + 0x58], rbx
mov r12d, 0x3c
xor ebx, ebx
xorps xmm6, xmm6
mov rbp, qword [rsp + 0x60]
jmp 0x140107519
mov r12d, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140106e83
test al, 1
je 0x14010719f
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_NOT_TIME_VALID
jmp 0x140106eed
test r8b, 0x40
je 0x1401071b1
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_REVOCATION_STATUS_UNKNOWN
jmp 0x140106eed
lea rdx, str.schannel:_CertGetCertificateChain_error_mask:_0x_08x
mov rcx, rbx
call fcn.1400c5820
jmp 0x140106ef5
lea rsi, [rsp + 0x110]
mov r8d, 0x100
mov rcx, rsi
mov dl, 0xaa
call fcn.1401e5d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
mov ecx, eax
mov rdx, rsi
call fcn.1400df7b0
lea rdx, str.schannel:_failed_to_create_certificate_store:__s
mov rcx, rbx
mov r8, rax
call fcn.1400c5820
jmp 0x140106f98
mov qword [rsp + 0x20], 0
mov ecx, 2
xor edx, edx
xor r8d, r8d
mov r9d, 0x2000
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
test rax, rax
je 0x1401071c5
mov rsi, rax
cmp dword [r14 + 0x3dc], 2
jne 0x14010725c
xor eax, eax
cmp qword [r14 + 0x4c8], 0xffffffffffffffff
setne al
lea rcx, [rax + rax*2]
mov eax, 0x610
cmp dword [r14 + rcx*8 + 0x578], 2
jne 0x140107261
mov eax, 0x5c0
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov r12, qword [r14 + rax]
mov rbp, qword [r14]
mov qword [rsp + 0x108], rcx
test r12, r12
je 0x14010740d
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
mov edx, 8
mov r8, r12
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x14010740d
mov r15d, eax
mov rax, qword [fcn.1400ab570]
lea ecx, [r15 + r15]
call qword [0x1402cbd20]
test rax, rax
je 0x14010740d
mov r13, rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, r12
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1401073fd
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
mov rcx, r13
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1401076da
lea rdx, [rsp + 0x108]
mov qword [rsp + 0x60], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140107602
mov qword [rsp + 0x68], rbp
mov rbp, qword [rsp + 0x108]
cmp rbp, 0x100001
jge 0x1401075e9
mov rax, qword [fcn.1400ab570]
lea rcx, [rbp + 1]
call qword [0x1402cbd20]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1401076cf
mov qword [rsp + 0x78], r13
xor r15d, r15d
test rbp, rbp
je 0x140107947
xor r13d, r13d
mov r8d, ebp
sub r8d, r15d
mov dword [rsp + 0x80], 0
mov rax, qword [rsp + 0x58]
lea rdx, [rax + r13]
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401079a5
mov eax, dword [rsp + 0x80]
add r15d, eax
test eax, eax
cmove rbp, r13
mov r13, r15
cmp rbp, r15
ja 0x1401073a2
jmp 0x140107949
mov rax, qword [fcn.140058110]
mov rcx, r13
call qword [0x1402cbd20]
lea rdi, [rsp + 0x110]
mov r8d, 0x100
mov rcx, rdi
mov dl, 0xaa
call fcn.1401e5d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
mov ecx, eax
mov rdx, rdi
call fcn.1400df7b0
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov rcx, rbp
mov r8, r12
mov r9, rax
call fcn.1400c5820
mov rax, qword [fcn.140058110]
xor ecx, ecx
call qword [0x1402cbd20]
mov r12d, Ordinal_79
jmp 0x140106e83
test r12d, r12d
je 0x1401074b3
cmp r12d, 0x3c
jne 0x14010748b
lea rdx, str.schannel:_CertGetNameString___failed_to_match_connection_hostname___s__against_server_certificate_names
mov rcx, qword [rsp + 0x58]
mov r8, rdi
call fcn.1400c5820
jmp 0x1401074ad
lea rdx, str.schannel:_server_certificate_name_verification_failed
mov rcx, qword [rsp + 0x58]
call fcn.1400c5820
jmp 0x1401074b3
lea rdx, str.schannel:_CertGetNameString___returned_certificate_name_information_of_unexpected_size
mov rcx, rbx
call fcn.1400c5820
mov r12d, 0x3c
mov rax, qword [fcn.140058110]
mov rcx, r14
call qword [0x1402cbd20]
jmp 0x140106e83
mov rcx, qword [rsp + 0x58]
lea rdx, str.schannel:_connection_hostname___s__did_not_match_against_certificate_name___s__n
mov r8, rdi
mov r9, rbp
call fcn.1400c5520
mov rcx, r15
call fcn.1401aa1e8
add rbx, rax
inc rbx
mov r12d, 0x3c
jmp 0x1401074fb
mov r12d, reloc.WLDAP32.dll_Ordinal_27
mov rax, qword [fcn.140058110]
mov rcx, rbp
call qword [0x1402cbd20]
mov rbp, qword [rsp + 0x60]
cmp rbx, rbp
jae 0x14010746a
cmp r12d, 0x3c
jne 0x14010746a
cmp word [r14 + rbx*2], 0
je 0x14010746a
lea r15, [r14 + rbx*2]
mov r12d, reloc.WLDAP32.dll_Ordinal_27
test r15, r15
je 0x140107510
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
xor edx, edx
mov r8, r15
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x140107510
mov r13d, eax
mov rax, qword [fcn.1400ab570]
mov ecx, r13d
call qword [0x1402cbd20]
test rax, rax
je 0x14010750b
mov rbp, rax
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, r15
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1401074f5
mov rcx, rbp
mov rdx, rdi
call fcn.140111ad0
cmp eax, 1
jne 0x1401074c8
mov rcx, qword [rsp + 0x58]
lea rdx, str.schannel:_connection_hostname___s__validated_against_certificate_name___s__n
mov r8, rdi
mov r9, rbp
call fcn.1400c5520
xor r12d, r12d
jmp 0x1401074fb
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, qword [rsp + 0x68]
mov r8d, 0x100000
call fcn.1400c5820
jmp 0x140107645
lea r15, [rsp + 0x110]
mov r8d, 0x100
mov rcx, r15
mov dl, 0xaa
call fcn.1401e5d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
mov ecx, eax
mov rdx, r15
call fcn.1400df7b0
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov rcx, rbp
mov r8, r12
mov r9, rax
call fcn.1400c5820
mov r12d, Ordinal_79
xor r15d, r15d
xor ebp, ebp
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [fcn.140058110]
mov rcx, rbp
call qword [0x1402cbd20]
mov rax, qword [fcn.140058110]
mov rcx, r13
call qword [0x1402cbd20]
test r15b, r15b
je 0x140106e83
xorps xmm0, xmm0
lea rcx, [rsp + 0x80]
movaps xmmword [rcx], xmm0
movaps xmmword [rcx + 0x40], xmm0
movaps xmmword [rcx + 0x30], xmm0
movaps xmmword [rcx + 0x20], xmm0
movaps xmmword [rcx + 0x10], xmm0
mov dword [rcx], 0x50
mov qword [rcx + 0x40], rsi
lea rdx, [rsp + 0xe0]
call qword [sym.imp.CRYPT32.dll_CertCreateCertificateChainEngine]
test eax, eax
je 0x140107a07
mov rdx, qword [rsp + 0xf0]
jmp 0x140106fa5
mov r12d, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14010764b
lea rdi, [rsp + 0x110]
mov r8d, 0x100
mov rcx, rdi
mov dl, 0xaa
call fcn.1401e5d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
mov ecx, eax
mov rdx, rdi
call fcn.1400df7b0
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov rcx, rbp
mov r8, r12
mov r9, rax
call fcn.1400c5820
mov rax, qword [fcn.140058110]
xor ecx, ecx
call qword [0x1402cbd20]
mov rax, qword [fcn.140058110]
mov rcx, r13
jmp 0x140107459
lea r15, [rsp + 0x110]
mov r8d, 0x100
mov rcx, r15
mov dl, 0xaa
call fcn.1401e5d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
mov ecx, eax
mov rdx, r15
call fcn.1400df7b0
lea rdx, str.schannel:_failed_to_add_certificate_from_CA_file__s_to_certificate_store:__s
jmp 0x1401077a7
lea r15, [rsp + 0x110]
mov r8d, 0x100
mov rcx, r15
mov dl, 0xaa
call fcn.1401e5d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
mov ecx, eax
mov rdx, r15
call fcn.1400df7b0
lea rdx, str.schannel:_failed_to_extract_certificate_from_CA_file__s:__s
mov rcx, qword [rsp + 0x68]
mov r8, r12
mov r9, rax
call fcn.1400c5820
mov rbp, qword [rsp + 0x58]
mov r12d, Ordinal_79
xor r15d, r15d
jmp 0x140107650
lea rdx, str.schannel:_unexpected_content_type__d_when_extracting_certificate_from_CA_file__s
mov rcx, qword [rsp + 0x68]
mov r9, r12
call fcn.1400c5820
jmp 0x1401077b7
mov dword [rsp + 0x74], r15d
mov rcx, rbp
lea rdx, str._n_____END_CERTIFICATE_____
call fcn.1401ae598
test rax, rax
je 0x140107986
mov r15, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
xor eax, eax
mov qword [rsp + 0x100], rax
mov dword [rsp + 0xfc], eax
sub r15, rbp
add r15, 0x1a
mov qword [rsp + 0x88], rbp
mov dword [rsp + 0x80], r15d
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rax
movups xmmword [rsp + 0x38], xmm6
lea rcx, [rsp + 0xfc]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
mov ecx, 2
lea rdx, [rsp + 0x80]
mov r8d, 2
mov r9d, reloc.WLDAP32.dll_Ordinal_14
call qword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x140107772
mov r8d, dword [rsp + 0xfc]
cmp r8d, 1
jne 0x1401077ca
mov rdx, qword [rsp + 0x100]
mov rcx, rsi
mov r8d, 4
xor r9d, r9d
call qword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
mov dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp dword [rsp + 0x70], 0
je 0x14010773b
mov eax, r15d
add rbp, rax
mov r15d, dword [rsp + 0x74]
dec r15d
cmp byte [rbp], 0
je 0x140107922
mov rcx, rbp
lea rdx, str._____BEGIN_CERTIFICATE_____
call fcn.1401ae598
test rax, rax
je 0x140107918
mov rbp, rax
movzx eax, byte [rax + 0x1b]
cmp eax, 0xd
je 0x1401077e0
cmp eax, 0xa
je 0x1401077e0
test r15d, r15d
mov rbp, qword [rsp + 0x58]
je 0x140107967
neg r15d
lea rdx, str.schannel:_added__d_certificate_s__from_CA_file__s_n
mov rcx, qword [rsp + 0x68]
mov r8d, r15d
mov r9, r12
call fcn.1400c5520
xor r12d, r12d
mov r15b, 1
jmp 0x1401079f8
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov byte [rax + rbp], 0
mov rbp, rax
cmp byte [rax], 0
mov r13, qword [rsp + 0x78]
je 0x140107967
xorps xmm6, xmm6
xor r15d, r15d
jmp 0x1401078eb
lea rdx, str.schannel:_did_not_add_any_certificates_from_CA_file__s_n
mov rcx, qword [rsp + 0x68]
mov r8, r12
call fcn.1400c5520
xor r12d, r12d
mov r15b, 1
jmp 0x140107650
lea rdx, str.schannel:_CA_file__s_is_not_correctly_formatted
mov rcx, qword [rsp + 0x68]
mov r8, r12
call fcn.1400c5820
mov r12d, Ordinal_79
xor r15d, r15d
jmp 0x1401079f8
lea r15, [rsp + 0x110]
mov r8d, 0x100
mov rcx, r15
mov dl, 0xaa
call fcn.1401e5d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
mov ecx, eax
mov rdx, r15
call fcn.1400df7b0
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov rcx, qword [rsp + 0x68]
mov r8, r12
mov r9, rax
call fcn.1400c5820
mov r12d, Ordinal_79
xor r15d, r15d
mov r13, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
jmp 0x140107655
lea rdi, [rsp + 0x110]
mov r8d, 0x100
mov rcx, rdi
mov dl, 0xaa
call fcn.1401e5d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
mov ecx, eax
mov rdx, rdi
call fcn.1400df7b0
lea rdx, str.schannel:_failed_to_create_certificate_chain_engine:__s
mov rcx, rbx
mov r8, rax
call fcn.1400c5820
jmp 0x14010745f