Function at 0x10062b70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
add eax, 0x1a
push esi
mov esi, dword [ebp + 0xc]
add eax, eax
push edi
push 0x38
push 0
mov edi, dword [esi + eax*8]
lea eax, [ebp - 0x244]
push eax
mov dword [ebp - 0x1f0], 0
mov dword [ebp - 0x204], edi
call fcn.1008e0c0
add esp, 0xc
mov dword [ebp - 0x244], 4
cmp byte [esi + 0x215], 0
mov eax, 0x1b8
mov dword [ebp - 0x1dc], 0x1c8
je 0x10062c81
cmp byte [edi + 0x47], 0
mov edx, 8
mov edi, dword [esi + 0xb8]
mov ecx, 0x20
cmovne ecx, edx
lea edx, [esi + 0x154]
cmp edi, 2
jne 0x10062c1f
cmp dword [edx], 0xffffffff
mov dword [ebp - 0x1e0], edx
cmovne eax, dword [ebp - 0x1dc]
cmp dword [eax + esi], edi
je 0x10062c1f
mov al, byte [ebx + 0x4bb]
jmp 0x10062c2b
mov al, byte [ebx + 0x453]
mov dword [ebp - 0x1e0], edx
test al, al
je 0x10062c3c
or ecx, 0x1800
mov eax, 0x1b8
jmp 0x10062c98
cmp edi, 2
jne 0x10062c5d
cmp dword [edx], 0xffffffff
mov eax, 0x1b8
cmovne eax, dword [ebp - 0x1dc]
cmp dword [eax + esi], edi
je 0x10062c5d
mov al, byte [ebx + 0x4bd]
jmp 0x10062c63
mov al, byte [ebx + 0x455]
test al, al
je 0x10062c74
or ecx, 0x1a00
mov eax, 0x1b8
jmp 0x10062c98
or ecx, 0x200
mov eax, 0x1b8
jmp 0x10062c98
mov edi, dword [esi + 0xb8]
lea edx, [esi + 0x154]
mov ecx, 0x1808
mov dword [ebp - 0x1e0], edx
cmp byte [esi + 0x216], 0
mov dword [ebp - 0x214], ecx
jne 0x10062cb0
or ecx, 4
mov dword [ebp - 0x214], ecx
cmp edi, 2
jne 0x10062ccd
cmp dword [edx], 0xffffffff
mov edx, 0x1c8
cmovne eax, edx
cmp dword [eax + esi], edi
je 0x10062ccd
mov al, byte [ebx + 0x4bf]
jmp 0x10062cd3
mov al, byte [ebx + 0x457]
test al, al
jne 0x10062ce3
and ecx, 0xffffffbf
or ecx, 0x10
mov dword [ebp - 0x214], ecx
mov edx, dword [esi + 0x1dc]
cmp edx, 7
ja case.default.0x10062cf9
movzx eax, byte [edx + 0x10063770]
jmp dword [eax*4 + 0x10063768]
cmp edi, 2
jne 0x10062d2e
mov ecx, dword [ebp - 0x1e0]
mov eax, 0x1b8
cmp dword [ecx], 0xffffffff
mov ecx, 0x1c8
cmovne eax, ecx
cmp dword [eax + esi], edi
je 0x10062d2e
mov edx, dword [esi + 0x21c]
mov edi, dword [esi + 0x220]
jmp 0x10062d34
mov edi, dword [esi + 0x1e0]
test edi, edi
je 0x10062d40
cmp edi, 0x10000
jne 0x10062d45
mov edi, 0x60000
sar edi, 0x10
cmp edx, edi
jg 0x10062d85
mov ecx, dword [ebp - 0x224]
add edx, 0xfffffffc
cmp edx, 3
ja case.default.0x10062d5a
jmp dword [edx*4 + 0x10063778]
or ecx, 0x80
jmp 0x10062d77
or ecx, 0x200
jmp 0x10062d77
or ecx, 0x800
mov dword [ebp - 0x224], ecx
inc edx
lea eax, [edx + 4]
cmp eax, edi
jle 0x10062d55
mov edx, dword [esi + 0xb8]
cmp edx, 2
jne 0x10062dc9
mov ecx, dword [ebp - 0x1e0]
mov eax, 0x1b8
cmp dword [ecx], 0xffffffff
mov ecx, 0x1c8
cmovne eax, ecx
cmp dword [eax + esi], edx
je 0x10062dc9
mov edi, dword [esi + 0x234]
lea eax, [esi + 0x234]
lea ecx, [esi + 0x1f4]
jmp 0x10062ddb
push str.schannel:_TLS_1.3_is_not_yet_supported
jmp 0x10063746
mov edi, dword [esi + 0x1f4]
lea ecx, [esi + 0x1f4]
lea eax, [esi + 0x234]
test edi, edi
je 0x10062ea2
cmp edx, 2
jne 0x10062e04
mov edx, dword [ebp - 0x1e0]
mov edi, 0x1c8
cmp dword [edx], 0xffffffff
mov edx, 0x1b8
cmovne edx, edi
cmp dword [edx + esi], 2
jne 0x10062e06
mov eax, ecx
mov esi, dword [eax]
xor edi, edi
test esi, esi
je 0x10062e90
cmp byte [esi], 0
je 0x10062e90
cmp edi, 0x2f
jge 0x10062e90
push 0
push 0
push esi
call fcn.1009fe74
add esp, 0xc
test eax, eax
jne 0x10062e72
push esi
call fcn.10061df0
add esp, 4
test eax, eax
jne 0x10062e72
push 0x11
push str.USE_STRONG_CRYPTO
push esi
call fcn.1009f7b0
add esp, 0xc
test eax, eax
je 0x10062e66
push 0x15
push str.SCH_USE_STRONG_CRYPTO
push esi
call fcn.1009f7b0
add esp, 0xc
test eax, eax
jne 0x10062ef8
or dword [ebp - 0x214], 0x400000
jmp 0x10062e7a
mov dword [ebp + edi*4 - 0x1d4], eax
inc edi
push 0x3a
push esi
call fcn.1008e500
mov esi, eax
add esp, 8
test esi, esi
je 0x10062e90
add esi, 1
jne 0x10062e12
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], eax
mov edx, dword [ebx + 0x404]
test edx, edx
jne 0x10062f1c
cmp dword [ebx + 0x418], edx
je 0x100635e8
mov ecx, dword [ebx + 0x418]
xor eax, eax
xor edi, edi
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x1f4], edx
xor esi, esi
mov dword [ebp - 0x1fc], edx
mov eax, dword [ecx]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1dc], edi
mov dword [ebp - 0x1f8], ecx
mov dword [ebp - 0x1e0], eax
jmp 0x10063146
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push ebx
call fcn.1004c930
add esp, 8
mov eax, 0x3b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x418]
xor eax, eax
xor edi, edi
mov dword [ebp - 0x1e4], 0
xor esi, esi
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1dc], edi
mov dword [ebp - 0x1ec], eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1f8], ecx
test ecx, ecx
je 0x10062f78
mov eax, dword [ecx]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1e0], eax
jmp 0x10063146
push edx
call fcn.100a3db0
mov esi, eax
add esp, 4
test esi, esi
je case.0x100636bc.2146893056
push 0x5c
push esi
call fcn.100a11a9
add esp, 8
mov dword [ebp - 0x1dc], eax
test eax, eax
je 0x1006310f
mov edi, eax
sub edi, esi
push edi
push str.CurrentUser
push esi
call fcn.100a125d
add esp, 0xc
test eax, eax
jne 0x10062fca
mov dword [ebp - 0x1e4], 0x10000
jmp 0x100630a7
push edi
push str.LocalMachine
push esi
call fcn.100a125d
add esp, 0xc
test eax, eax
jne 0x10062fec
mov dword [ebp - 0x1e4], 0x20000
jmp 0x100630a7
push edi
push str.CurrentService
push esi
call fcn.100a125d
add esp, 0xc
test eax, eax
jne 0x1006300e
mov dword [ebp - 0x1e4], 0x40000
jmp 0x100630a7
push edi
push str.Services
push esi
call fcn.100a125d
add esp, 0xc
test eax, eax
jne 0x1006302d
mov dword [ebp - 0x1e4], 0x50000
jmp 0x100630a7
push edi
push str.Users
push esi
call fcn.100a125d
add esp, 0xc
test eax, eax
jne 0x1006304c
mov dword [ebp - 0x1e4], 0x60000
jmp 0x100630a7
push edi
push str.CurrentUserGroupPolicy
push esi
call fcn.100a125d
add esp, 0xc
test eax, eax
jne 0x1006306b
mov dword [ebp - 0x1e4], 0x70000
jmp 0x100630a7
push edi
push str.LocalMachineGroupPolicy
push esi
call fcn.100a125d
add esp, 0xc
test eax, eax
jne 0x1006308a
mov dword [ebp - 0x1e4], 0x80000
jmp 0x100630a7
push edi
push str.LocalMachineEnterprise
push esi
call fcn.100a125d
add esp, 0xc
test eax, eax
jne 0x1006310f
mov dword [ebp - 0x1e4], 0x90000
mov eax, dword [ebp - 0x1dc]
inc eax
push 0x5c
push eax
mov dword [ebp - 0x1dc], eax
call fcn.100a11a9
mov edi, eax
add esp, 8
test edi, edi
je 0x1006310f
lea eax, [edi + 1]
mov ecx, eax
mov dword [ebp - 0x1fc], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100630d3
sub ecx, edx
cmp ecx, 0x28
jne 0x1006310f
push dword [ebp - 0x1dc]
mov byte [edi], al
call dword [0x100dbe44]
add esp, 4
mov dword [ebp - 0x1f4], eax
mov byte [edi], 0x5c
test eax, eax
jne 0x100631a2
mov dword [ebp - 0x1e8], 0x1b
jmp 0x10063119
mov dword [ebp - 0x1e8], 0x3a
mov eax, dword [ebx + 0x404]
cmp byte [eax], 0
je 0x100636ec
push 0x100bace4
push eax
call fcn.10060360
mov edi, eax
add esp, 8
mov dword [ebp - 0x1dc], edi
test edi, edi
je 0x100636ec
mov eax, dword [ebx + 0x43c]
test eax, eax
je 0x10063186
push 0x100be83c
push eax
call fcn.10051030
add esp, 8
test eax, eax
jne 0x10063186
cmp dword [ebp - 0x1f8], eax
mov eax, str._memory_blob_
jne 0x10063175
mov eax, dword [ebx + 0x404]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ebx
call fcn.1004c930
add esp, 0xc
jmp 0x100631ef
mov eax, dword [ebp - 0x1f8]
test edi, edi
jne 0x100632ee
test eax, eax
jne 0x100632ee
mov eax, dword [ebp - 0x1f4]
mov edi, dword [ebp - 0x1e4]
push eax
mov eax, edi
or eax, 0x4000
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebp - 0x1dc], eax
test eax, eax
jne 0x10063216
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1f4]
push edi
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push ebx
call fcn.1004c930
push dword [ebp - 0x1f4]
call dword [0x100dbe3c]
add esp, 0x18
test esi, esi
je 0x1006355b
push esi
call fcn.10097b18
add esp, 4
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1f4]
call dword [0x100dbe3c]
add esp, 4
mov dword [ebp - 0x20c], 0x14
lea eax, [ebp - 0x18]
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x20c]
push 0
push 0
push eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0x28
push dword [ebp - 0x1fc]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x1006328d
test esi, esi
je 0x10063268
push esi
call fcn.10097b18
add esp, 4
mov eax, dword [ebp - 0x1dc]
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop edi
pop esi
mov eax, 0x3a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1dc]
lea eax, [ebp - 0x20c]
push 0
push eax
push 0x10000
push 0
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0x1f0], eax
test esi, esi
je 0x100632c8
push esi
call fcn.10097b18
mov eax, dword [ebp - 0x1f0]
add esp, 4
test eax, eax
jne 0x100635c9
push eax
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop edi
pop esi
mov eax, 0x3a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
xor edi, edi
test eax, eax
je 0x10063300
mov dword [ebp - 0x1e8], str._memory_blob_
jmp 0x1006330c
mov eax, dword [ebx + 0x404]
mov dword [ebp - 0x1e8], eax
test esi, esi
je 0x10063319
push esi
call fcn.10097b18
add esp, 4
mov esi, dword [ebp - 0x1dc]
test esi, esi
je 0x100633ac
xor eax, eax
push 2
push eax
push esi
mov dword [ebp - 0x1dc], eax
call fcn.1009c28d
add esp, 0xc
test eax, eax
sete cl
mov byte [ebp - 0x1d5], cl
test eax, eax
jne 0x10063446
push esi
call fcn.1009c8a0
add esp, 4
mov dword [ebp - 0x1dc], eax
test eax, eax
jns 0x1006344a
mov byte [ebp - 0x1d5], 0
mov eax, dword [ebp - 0x1ec]
mov edx, dword [ebp - 0x1e0]
test eax, eax
je 0x100634a1
push esi
push 1
push edx
push eax
call fcn.1009bf17
add esp, 0x10
cmp eax, 1
jne 0x100634a1
push esi
call fcn.1009b965
add esp, 4
cmp byte [ebp - 0x1d5], 0
je 0x100634aa
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x200], eax
mov eax, dword [ebx + 0x44c]
test eax, eax
je 0x100633dc
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100633d3
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [0x100dbe38]
mov esi, eax
add esp, 4
test esi, esi
je 0x100634f5
test edi, edi
je 0x100634e0
lea ecx, [edi + 1]
push ecx
push esi
push edi
push dword [ebx + 0x44c]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x100634e2
xor eax, eax
mov word [esi], ax
push 0
push esi
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push esi
mov edi, eax
call dword [0x100dbe3c]
add esp, 4
jmp 0x100634f7
xor eax, eax
jmp 0x10063450
mov cl, byte [ebp - 0x1d5]
mov edx, eax
mov dword [ebp - 0x1e0], edx
test cl, cl
je 0x10063496
push 0
push 0
push esi
call fcn.1009c28d
add esp, 0xc
test eax, eax
sete byte [ebp - 0x1d5]
test eax, eax
jne 0x1006336c
mov eax, dword [ebp - 0x1dc]
inc eax
push eax
call dword [0x100dbe38]
add esp, 4
mov dword [ebp - 0x1ec], eax
jmp 0x10063372
mov eax, dword [ebp - 0x1ec]
jmp 0x10063378
push esi
call fcn.1009b965
add esp, 4
push dword [ebx + 0x404]
push str.schannel:_Failed_to_read_cert_file__s
push ebx
call fcn.1004c930
push dword [ebp - 0x1ec]
call dword [0x100dbe3c]
add esp, 0x10
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp eax, edi
jg 0x10063420
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x10063425
xor edi, edi
cmp dword [ebp - 0x1f8], 0
jne 0x1006350f
push dword [ebp - 0x1ec]
call dword [0x100dbe3c]
add esp, 4
test edi, edi
jne 0x10063571
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x10063546
push dword [ebp - 0x1e8]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebx
call fcn.1004c930
add esp, 0xc
lea eax, [edi + 0x3a]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
push eax
push dword [ebp - 0x1e8]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push ebx
call fcn.1004c930
add esp, 0x10
pop edi
pop esi
mov eax, 0x3a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0x1f0], eax
test eax, eax
jne 0x100635c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1e8]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push ebx
call fcn.1004c930
add esp, 0x10
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop edi
pop esi
mov eax, 0x3a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x1f0]
mov dword [ebp - 0x240], 1
push edi
mov dword [ebp - 0x23c], eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
push 0x18
push 1
call dword [0x100dbe48]
mov edi, dword [ebp - 0x204]
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x10063636
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.1004c930
mov eax, dword [ebp - 0x1f0]
add esp, 8
test eax, eax
je case.0x100636bc.2146893056
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
mov dword [eax + 0x14], 1
mov ecx, dword [edi]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [ebp - 0x244]
push eax
mov eax, dword [0x100dcfc8]
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
mov eax, dword [eax + 0xc]
push 0
call eax
mov ecx, dword [ebp - 0x1f0]
mov esi, eax
test ecx, ecx
je 0x10063677
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x100636d9
push 0x100
lea eax, [ebp - 0x118]
push eax
push esi
call fcn.10079820
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebx
call fcn.1004c930
push dword [edi]
call dword [0x100dbe3c]
add esi, 0x7ff6fd00
mov dword [edi], 0
add esp, 0x1c
cmp esi, 0xe
ja case.0x100636bc.2146893055
movzx eax, byte [esi + 0x10063794]
jmp dword [eax*4 + 0x10063788]
pop edi
pop esi
mov eax, 0x23
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x404]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push ebx
call fcn.1004c930
push esi
call fcn.10097b18
mov eax, dword [ebp - 0x1e8]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
push str.SSL_versions_not_supported
push ebx
call fcn.1004c930
add esp, 8
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ebx
call fcn.1004c930
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x23
pop edi
pop esi
pop ebx
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret