Function at 0x140057bd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140114200]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, qword [rcx + 0x10]
mov r12, rdx
mov qword [rsp + 0x50], rdx
mov rdi, rcx
call fcn.140031130
mov rdx, r12
mov qword [rbp - 0x20], rax
mov rcx, rdi
mov r13, rax
call fcn.140031110
xor ecx, ecx
mov qword [rsp + 0x58], rcx
mov r15d, ecx
mov esi, ecx
mov rdx, qword [rbx + 0x30]
mov qword [rbp - 0x78], rdx
cmp byte [r13 + 0x69], cl
je 0x140057c8d
movzx edx, byte [rdx + 0x6c]
cmp byte [rax + 0xb4], cl
je 0x140057c5f
test dl, dl
mov ecx, 0x1808
mov r8d, 0x1820
cmove ecx, r8d
jmp 0x140057c92
cmp byte [rax + 0xb6], cl
je 0x140057c7a
test dl, dl
mov ecx, 0x1a08
mov r8d, 0x1a20
cmove ecx, r8d
jmp 0x140057c92
test dl, dl
mov ecx, 0x208
mov r8d, 0x220
cmove ecx, r8d
jmp 0x140057c92
mov ecx, 0x1808
mov r14d, ecx
lea rdx, str.schannel:_disabled_automatic_use_of_client_certificate
or r14d, 4
cmp byte [r13 + 0x6a], sil
cmovne r14d, ecx
movzx ecx, byte [rax + 0xb8]
mov eax, r14d
or eax, 0x10
test cl, cl
mov rcx, r12
cmove r14d, eax
lea rax, str.schannel:_enabled_automatic_use_of_client_certificate
cmovne rdx, rax
mov dword [rsp + 0x6c], r14d
call fcn.140038f30
movzx eax, byte [r13 + 0x68]
cmp eax, 7
ja case.default.0x140057cf2
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x58828]
add rax, rcx
jmp rax
mov rcx, rdi
call fcn.140031130
mov edi, dword [rax + 0x64]
movzx ebx, byte [rax + 0x68]
test edi, 0xfffeffff
jne 0x140057d3a
xor edx, edx
mov dword [rsp + 0x20], 3
mov ecx, 0xa
mov r9d, 2
mov r8d, 0x4f7c
call fcn.140076080
test al, al
mov edi, 0x60000
mov eax, 0x70000
cmovne edi, eax
sar edi, 0x10
cmp ebx, edi
jg 0x140057d97
mov ecx, ebx
sub ecx, 4
je 0x140057d8d
sub ecx, 1
je 0x140057d87
sub ecx, 1
je 0x140057d81
cmp ecx, 1
jne 0x140057d91
xor edx, edx
mov dword [rsp + 0x20], 3
mov ecx, 0xa
mov r9d, 2
mov r8d, 0x4f7c
call fcn.140076080
test al, al
je 0x140057df9
bts esi, 0xd
jmp 0x140057d91
bts esi, 0xb
jmp 0x140057d91
bts esi, 9
jmp 0x140057d91
bts esi, 7
inc ebx
cmp ebx, edi
jle 0x140057d41
mov rcx, qword [r12 + 0x558]
test rcx, rcx
jne 0x140057db2
cmp qword [r12 + 0x580], r15
je 0x14005815c
mov r9, qword [rsp + 0x50]
xor edx, edx
mov r14d, edx
mov qword [rbp - 0x80], rdx
mov r12d, edx
mov qword [rsp + 0x60], rdx
mov r13d, edx
mov qword [rsp + 0x78], rdx
mov rdi, qword [r9 + 0x580]
mov ebx, edx
mov qword [rsp + 0x70], rdi
test rdi, rdi
je 0x140057e05
mov rax, qword [rdi]
mov qword [rsp + 0x60], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x78], rax
jmp 0x140057fb9
lea rdx, str.schannel:_TLS_1.3_not_supported_on_Windows_prior_to_11
jmp 0x1400587f1
call case.0x14003327d.1
mov rbx, rax
test rax, rax
je case.0x1400587a7.2146893056
mov edx, 0x5c
mov rcx, rax
call fcn.140092968
mov r15, rax
test rax, rax
je 0x140057f82
mov rdi, rax
lea rdx, str.CurrentUser
sub rdi, rbx
mov rcx, rbx
mov r8, rdi
call fcn.1400c1b60
test eax, eax
jne 0x140057e56
mov r14d, 0x10000
jmp 0x140057f2c
mov r8, rdi
lea rdx, str.LocalMachine
mov rcx, rbx
call fcn.1400c1b60
test eax, eax
jne 0x140057e77
mov r14d, 0x20000
jmp 0x140057f2c
mov r8, rdi
lea rdx, str.CurrentService
mov rcx, rbx
call fcn.1400c1b60
test eax, eax
jne 0x140057e98
mov r14d, 0x40000
jmp 0x140057f2c
mov r8, rdi
lea rdx, str.Services
mov rcx, rbx
call fcn.1400c1b60
test eax, eax
jne 0x140057eb6
mov r14d, 0x50000
jmp 0x140057f2c
mov r8, rdi
lea rdx, str.Users
mov rcx, rbx
call fcn.1400c1b60
test eax, eax
jne 0x140057ed4
mov r14d, 0x60000
jmp 0x140057f2c
mov r8, rdi
lea rdx, str.CurrentUserGroupPolicy
mov rcx, rbx
call fcn.1400c1b60
test eax, eax
jne 0x140057ef2
mov r14d, 0x70000
jmp 0x140057f2c
mov r8, rdi
lea rdx, str.LocalMachineGroupPolicy
mov rcx, rbx
call fcn.1400c1b60
test eax, eax
jne 0x140057f10
mov r14d, 0x80000
jmp 0x140057f2c
mov r8, rdi
lea rdx, str.LocalMachineEnterprise
mov rcx, rbx
call fcn.1400c1b60
test eax, eax
jne 0x140057f82
mov r14d, 0x90000
mov edx, 0x5c
lea rcx, [r15 + 1]
call fcn.140092968
mov rdi, rax
test rax, rax
je 0x140057f82
lea r13, [rax + 1]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rax + r13], r12b
jne 0x140057f50
cmp rax, 0x28
jne 0x140057f82
lea rcx, [r15 + 1]
mov byte [rdi], r12b
call qword [case.0x14003327d.1]
mov byte [rdi], 0x5c
mov r12, rax
test rax, rax
jne 0x140058020
mov edi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140057f87
mov edi, Ordinal_60
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x558]
cmp byte [rcx], 0
je 0x1400587b2
lea rdx, [0x1400c6ffc]
call fcn.1400526a0
mov r15, rax
test rax, rax
je 0x1400587ad
mov rdi, qword [rsp + 0x70]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x5c8]
test rcx, rcx
je 0x14005800e
lea rdx, [0x1400cfdf4]
call fcn.140041020
test eax, eax
jne 0x140058009
mov r9, qword [rsp + 0x50]
lea r14, str._memory_blob_
test rdi, rdi
jne 0x140057ff2
mov r14, qword [r9 + 0x558]
mov r8, r14
lea rdx, str.schannel:_certificate_format_compatibility_error__for__s
mov rcx, r9
call fcn.140038e40
jmp 0x140058092
mov rax, qword [rsp + 0x50]
test r15, r15
jne 0x1400581b5
test rdi, rdi
jne 0x1400581b5
mov r9d, r14d
mov qword [rsp + 0x20], r12
bts r9d, 0xe
xor r8d, r8d
xor edx, edx
mov ecx, 9
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov r15, rax
mov rcx, r12
test rax, rax
jne 0x1400580ad
call case.0x14003327d.1
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x50]
lea r9, str._unknown_
test rdi, rdi
mov dword [rsp + 0x20], eax
mov r8d, r14d
lea rdx, str.schannel:_Failed_to_open_cert_store__lx__s__last_error_is_0x_lx
cmovne r9, rdi
call fcn.140038e40
mov rcx, r12
call qword [fcn.14009c190]
test rdi, rdi
je 0x140058092
mov rcx, rdi
call fcn.14009c190
test rbx, rbx
je 0x1400583f8
mov rcx, rbx
call fcn.14009c190
mov eax, Ordinal_60
jmp 0x1400587fe
call qword [fcn.14009c190]
lea rax, [rbp + 0x38]
mov dword [rbp - 0x18], reloc.WS2_32.dll_sendto
xor edi, edi
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea r9, [rbp + 0x38]
mov edx, Ordinal_41
mov qword [rsp + 0x20], rax
mov r8d, 4
mov rcx, r13
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x140058109
test rbx, rbx
je 0x14005844b
mov rcx, rbx
call fcn.14009c190
jmp 0x14005844b
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rdi
mov r9d, 0x10000
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x10001
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x58], rax
test rbx, rbx
je 0x140058145
mov rcx, rbx
call fcn.14009c190
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14005844b
mov r14d, dword [rsp + 0x6c]
mov r13, qword [rbp - 0x20]
mov r12, qword [rsp + 0x50]
mov edx, Ordinal_50
mov ecx, 1
call qword [str._s_t_]
mov rdi, qword [rbp - 0x78]
mov qword [rdi], rax
test rax, rax
jne 0x140058460
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, r12
call fcn.140038e40
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005819b
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test r15, r15
je case.0x1400587a7.2146893056
xor edx, edx
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400587fe
mov r13, qword [rsp + 0x70]
lea r14, str._memory_blob_
xor ecx, ecx
mov edi, ecx
mov r12d, ecx
test r13, r13
jne 0x1400581d4
mov r14, qword [rax + 0x558]
test rbx, rbx
je 0x1400581e3
mov rcx, rbx
call fcn.14009c190
xor ecx, ecx
test r15, r15
je 0x1400582c1
mov ebx, ecx
xor edx, edx
mov rcx, r15
mov r8d, 2
call fcn.14009e3ac
test eax, eax
mov r12d, eax
sete r13b
test eax, eax
jne 0x14005825b
mov rcx, r15
call fcn.1400a9590
mov ebx, eax
test eax, eax
jns 0x14005825b
mov rbx, qword [rsp + 0x78]
xor r13b, r13b
mov r12, qword [rsp + 0x60]
test r12, r12
je 0x14005828b
mov r9, r15
mov r8d, 1
mov rdx, rbx
mov rcx, r12
call fcn.14009dfc8
cmp eax, 1
jne 0x14005828b
mov rcx, r15
call fcn.14009c8d0
test r13b, r13b
je 0x140058293
mov r13, qword [rsp + 0x70]
mov r12d, edi
jmp 0x1400582c6
test r12d, r12d
jne 0x140058221
xor r8d, r8d
xor edx, edx
mov rcx, r15
call fcn.14009e3ac
test eax, eax
sete r13b
test eax, eax
jne 0x140058221
lea rcx, [rbx + 1]
call qword [fcn.14009c1a0]
mov r12, rax
mov qword [rsp + 0x60], rax
jmp 0x140058226
mov rcx, r15
call fcn.14009c8d0
mov rax, qword [rsp + 0x50]
lea rdx, str.schannel:_Failed_to_read_cert_file__s
mov rcx, rax
mov r8, qword [rax + 0x558]
call fcn.140038e40
mov rcx, r12
call qword [fcn.14009c190]
mov eax, Ordinal_60
jmp 0x1400587fe
mov rbx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
mov qword [rbp], r15
mov dword [rbp - 8], ebx
mov rax, qword [rax + 0x5e8]
test rax, rax
je 0x1400582f9
mov rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400582f0
lea rcx, [rdi*2 + 2]
call qword [fcn.14009c1a0]
mov rbx, rax
test rax, rax
je 0x1400583a7
test rdi, rdi
je 0x14005834a
lea ecx, [rdi + 1]
mov r9d, edi
mov dword [rsp + 0x28], ecx
mov edx, 8
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
mov rax, qword [rsp + 0x50]
mov r8, qword [rax + 0x5e8]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r12d, eax
test eax, eax
js 0x14005835a
cmp r12d, edi
jg 0x14005835a
mov eax, r12d
xor edi, edi
mov word [rbx + rax*2], di
jmp 0x14005835f
xor edi, edi
mov word [rbx], di
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140076080
lea rcx, [rbp - 8]
mov rdx, rbx
test al, al
je 0x14005838f
mov r8d, 0x8000
jmp 0x140058392
xor r8d, r8d
call qword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov rcx, rbx
mov qword [rbp - 0x80], rax
call qword [fcn.14009c190]
jmp 0x1400583a9
xor edi, edi
test r13, r13
jne 0x1400583b7
mov rcx, r15
call qword [fcn.14009c190]
mov r15, qword [rbp - 0x80]
test r15, r15
jne 0x140058402
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x50]
mov r8, r14
cmp eax, 0x56
jne 0x1400583e9
lea rdx, str.schannel:_Failed_to_import_cert_file__s__password_is_bad
call fcn.140038e40
mov eax, Ordinal_60
jmp 0x1400587fe
mov r9d, eax
lea rdx, str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_lx
call fcn.140038e40
mov eax, Ordinal_60
jmp 0x1400587fe
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov edx, 0x10001
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14005814e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x50]
lea rdx, str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_lx
mov r9d, eax
mov r8, r14
call fcn.140038e40
xor edx, edx
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, Ordinal_60
jmp 0x1400587fe
mov dword [rax + 0x28], 1
mov rax, qword [rdi]
mov qword [rax + 0x20], r15
cmp qword [r13 + 0x20], 0
jne 0x14005853a
xor edx, edx
mov dword [rsp + 0x20], 3
mov ecx, 0xa
mov r9d, 2
mov r8d, 0x4563
call fcn.140076080
test al, al
je 0x14005853a
xor r13d, r13d
mov qword [rbp - 0x38], 1
xor eax, eax
mov qword [rbp - 0x6c], r13
mov qword [rbp + 0x30], rax
bts r14d, 0x16
lea rax, [rbp + 8]
xorps xmm0, xmm0
not esi
mov qword [rbp + 0x50], rax
lea rax, [rbp + 0x38]
mov qword [rbp - 0x64], r13
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x5c], r13
mov qword [rbp - 0x54], r13
mov qword [rbp - 0x4c], r13
mov qword [rbp - 0x44], r13
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x58], r13
mov dword [rbp + 8], r13d
movups xmmword [rbp + 0x10], xmm0
mov dword [rbp + 0x4c], r13d
movups xmmword [rbp + 0x20], xmm0
mov dword [rbp - 0x70], 5
mov dword [rbp - 0x3c], r14d
mov dword [rbp + 0x48], esi
cmp qword [rsp + 0x58], r13
je 0x140058525
lea rax, [rsp + 0x58]
mov dword [rbp - 0x68], 1
mov qword [rbp - 0x60], rax
mov rcx, qword [rdi]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
jmp 0x140058713
mov rdi, qword [r13 + 0x20]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x70], 4
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x38], esi
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x28], r14d
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
test rdi, rdi
je 0x1400586db
bt esi, 0xd
jae 0x140058581
lea rdx, str.schannel:_WARNING:_This_version_of_Schannel_negotiates_a_less_secure_TLS_version_than_TLS_1.3_because_the_user_set_an_algorithm_cipher_list.
mov rcx, r12
call fcn.140038f30
xor r13d, r13d
mov r15d, r13d
mov r14d, r13d
cmp byte [rdi], r13b
je 0x1400586b4
cmp r14, 0x2f
jge 0x1400586b4
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.1400a0d8c
test eax, eax
jne 0x140058683
mov edx, Ordinal_60
mov rcx, rdi
call fcn.140092968
mov rbx, rax
test rax, rax
je 0x1400585cc
sub rbx, rdi
jmp 0x1400585dc
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], r13b
jne 0x1400585d3
mov rcx, qword [str.CALG_MD2]
mov rsi, r13
test rcx, rcx
je 0x140058648
nop dword [rax + rax]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r13b
jne 0x1400585f7
cmp rbx, rax
jne 0x140058614
mov r8, rbx
mov rdx, rdi
call fcn.1400c1b60
test eax, eax
je 0x140058633
inc rsi
lea rcx, [0x140000000]
mov rax, rsi
add rax, rax
mov rcx, qword [rcx + rax*8 + 0xcf5a0]
test rcx, rcx
jne 0x1400585f0
jmp 0x140058648
add rsi, rsi
lea rax, [0x140000000]
mov eax, dword [rax + rsi*8 + 0xcf5a8]
test eax, eax
jne 0x140058683
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.USE_STRONG_CRYPTO
mov rcx, rdi
call fcn.1400c1b60
test eax, eax
je 0x14005867a
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.SCH_USE_STRONG_CRYPTO
mov rcx, rdi
call fcn.1400c1b60
test eax, eax
jne 0x1400586c2
or dword [rbp - 0x28], 0x400000
jmp 0x14005868e
inc r15d
mov dword [rbp + r14*4 + 0x60], eax
inc r14
mov edx, Ordinal_60
mov rcx, rdi
call fcn.140092968
test rax, rax
lea rdi, [rax + 1]
cmove rdi, rax
test rdi, rdi
je 0x1400586b4
cmp byte [rdi], r13b
jne 0x140058593
lea rax, [rbp + 0x60]
mov dword [rbp - 0x48], r15d
mov qword [rbp - 0x40], rax
jmp 0x1400586e7
lea rdx, str.schannel:_Failed_setting_algorithm_cipher_list
mov rcx, r12
call fcn.140038e40
mov eax, Ordinal_60
jmp 0x1400587fe
bts r14d, 0x16
mov dword [rbp - 0x28], r14d
xor r13d, r13d
cmp qword [rsp + 0x58], 0
je 0x1400586ff
lea rax, [rsp + 0x58]
mov dword [rbp - 0x6c], 1
mov qword [rbp - 0x68], rax
mov rdi, qword [rbp - 0x78]
mov rcx, qword [rdi]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rcx
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov qword [rsp + 0x28], r13
mov r8d, 2
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov rax, qword [0x1401187d8]
call qword [rax + Ordinal_26]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
test rcx, rcx
je 0x140058755
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je 0x1400587a9
mov r8d, 0x100
lea rdx, [rbp + 0x60]
mov ecx, ebx
call fcn.14001d7c0
mov r8, rax
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov rcx, r12
call fcn.140038e40
mov rcx, qword [rdi]
call qword [fcn.14009c190]
add ebx, 0x7ff6fd00
mov qword [rdi], r13
cmp ebx, 0xe
ja case.0x1400587a7.2146893055
lea rdx, [0x140000000]
movsxd rax, ebx
mov ecx, dword [rdx + rax*4 + 0x58848]
add rcx, rdx
jmp rcx
xor eax, eax
jmp 0x1400587fe
mov rax, qword [rsp + 0x50]
mov r8, qword [rax + 0x558]
lea rdx, str.schannel:_Failed_to_get_certificate_location_or_file_for__s
mov rcx, rax
call fcn.140038e40
mov rcx, rbx
call fcn.14009c190
mov eax, edi
jmp 0x1400587fe
lea rdx, str.SSL_versions_not_supported
mov rcx, r12
call fcn.140038e40
mov eax, 4
jmp 0x1400587fe
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, r12
call fcn.140038e40
mov eax, reloc.WLDAP32.dll_Ordinal_35
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14001c070
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret