Function at 0x10062db0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x100dcdc0]
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.1008e310
add esp, 0xc
mov dword [ebp - 0x244], 4
cmp byte [esi + 0x215], 0
mov eax, 0x1b8
mov dword [ebp - 0x1dc], 0x1c8
je 0x10062ec1
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 0x10062e5f
cmp dword [edx], 0xffffffff
mov dword [ebp - 0x1e0], edx
cmovne eax, dword [ebp - 0x1dc]
cmp dword [eax + esi], edi
je 0x10062e5f
mov al, byte [ebx + 0x4bb]
jmp 0x10062e6b
mov al, byte [ebx + 0x453]
mov dword [ebp - 0x1e0], edx
test al, al
je 0x10062e7c
or ecx, 0x1800
mov eax, 0x1b8
jmp 0x10062ed8
cmp edi, 2
jne 0x10062e9d
cmp dword [edx], 0xffffffff
mov eax, 0x1b8
cmovne eax, dword [ebp - 0x1dc]
cmp dword [eax + esi], edi
je 0x10062e9d
mov al, byte [ebx + 0x4bd]
jmp 0x10062ea3
mov al, byte [ebx + 0x455]
test al, al
je 0x10062eb4
or ecx, 0x1a00
mov eax, 0x1b8
jmp 0x10062ed8
or ecx, 0x200
mov eax, 0x1b8
jmp 0x10062ed8
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 0x10062ef0
or ecx, 4
mov dword [ebp - 0x214], ecx
cmp edi, 2
jne 0x10062f0d
cmp dword [edx], 0xffffffff
mov edx, 0x1c8
cmovne eax, edx
cmp dword [eax + esi], edi
je 0x10062f0d
mov al, byte [ebx + 0x4bf]
jmp 0x10062f13
mov al, byte [ebx + 0x457]
test al, al
jne 0x10062f23
and ecx, 0xffffffbf
or ecx, 0x10
mov dword [ebp - 0x214], ecx
mov edx, dword [esi + 0x1dc]
cmp edx, 7
ja case.default.0x10062f39
movzx eax, byte [edx + 0x100639b0]
jmp dword [eax*4 + 0x100639a8]
cmp edi, 2
jne 0x10062f6e
mov ecx, dword [ebp - 0x1e0]
mov eax, 0x1b8
cmp dword [ecx], 0xffffffff
mov ecx, 0x1c8
cmovne eax, ecx
cmp dword [eax + esi], edi
je 0x10062f6e
mov edx, dword [esi + 0x21c]
mov edi, dword [esi + 0x220]
jmp 0x10062f74
mov edi, dword [esi + 0x1e0]
test edi, edi
je 0x10062f80
cmp edi, 0x10000
jne 0x10062f85
mov edi, 0x60000
sar edi, 0x10
cmp edx, edi
jg 0x10062fc5
mov ecx, dword [ebp - 0x224]
add edx, 0xfffffffc
cmp edx, 3
ja case.default.0x10062f9a
jmp dword [edx*4 + 0x100639b8]
or ecx, 0x80
jmp 0x10062fb7
or ecx, 0x200
jmp 0x10062fb7
or ecx, 0x800
mov dword [ebp - 0x224], ecx
inc edx
lea eax, [edx + 4]
cmp eax, edi
jle 0x10062f95
mov edx, dword [esi + 0xb8]
cmp edx, 2
jne 0x10063009
mov ecx, dword [ebp - 0x1e0]
mov eax, 0x1b8
cmp dword [ecx], 0xffffffff
mov ecx, 0x1c8
cmovne eax, ecx
cmp dword [eax + esi], edx
je 0x10063009
mov edi, dword [esi + 0x234]
lea eax, [esi + 0x234]
lea ecx, [esi + 0x1f4]
jmp 0x1006301b
push str.schannel:_TLS_1.3_is_not_yet_supported
jmp 0x10063986
mov edi, dword [esi + 0x1f4]
lea ecx, [esi + 0x1f4]
lea eax, [esi + 0x234]
test edi, edi
je 0x100630e2
cmp edx, 2
jne 0x10063044
mov edx, dword [ebp - 0x1e0]
mov edi, 0x1c8
cmp dword [edx], 0xffffffff
mov edx, 0x1b8
cmovne edx, edi
cmp dword [edx + esi], 2
jne 0x10063046
mov eax, ecx
mov esi, dword [eax]
xor edi, edi
test esi, esi
je 0x100630d0
cmp byte [esi], 0
je 0x100630d0
cmp edi, 0x2f
jge 0x100630d0
push 0
push 0
push esi
call fcn.100a00c4
add esp, 0xc
test eax, eax
jne 0x100630b2
push esi
call fcn.10062030
add esp, 4
test eax, eax
jne 0x100630b2
push 0x11
push str.USE_STRONG_CRYPTO
push esi
call fcn.1009fa00
add esp, 0xc
test eax, eax
je 0x100630a6
push 0x15
push str.SCH_USE_STRONG_CRYPTO
push esi
call fcn.1009fa00
add esp, 0xc
test eax, eax
jne 0x10063138
or dword [ebp - 0x214], 0x400000
jmp 0x100630ba
mov dword [ebp + edi*4 - 0x1d4], eax
inc edi
push 0x3a
push esi
call fcn.1008e750
mov esi, eax
add esp, 8
test esi, esi
je 0x100630d0
add esi, 1
jne 0x10063052
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], eax
mov edx, dword [ebx + 0x404]
test edx, edx
jne 0x1006315c
cmp dword [ebx + 0x418], edx
je 0x10063828
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 0x10063386
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push ebx
call fcn.1004cb70
add esp, 8
mov eax, 0x3b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c543
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 0x100631b8
mov eax, dword [ecx]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1e0], eax
jmp 0x10063386
push edx
call fcn.100a4000
mov esi, eax
add esp, 4
test esi, esi
je case.0x100638fc.2146893056
push 0x5c
push esi
call fcn.100a13f9
add esp, 8
mov dword [ebp - 0x1dc], eax
test eax, eax
je 0x1006334f
mov edi, eax
sub edi, esi
push edi
push str.CurrentUser
push esi
call fcn.100a14ad
add esp, 0xc
test eax, eax
jne 0x1006320a
mov dword [ebp - 0x1e4], 0x10000
jmp 0x100632e7
push edi
push str.LocalMachine
push esi
call fcn.100a14ad
add esp, 0xc
test eax, eax
jne 0x1006322c
mov dword [ebp - 0x1e4], 0x20000
jmp 0x100632e7
push edi
push str.CurrentService
push esi
call fcn.100a14ad
add esp, 0xc
test eax, eax
jne 0x1006324e
mov dword [ebp - 0x1e4], 0x40000
jmp 0x100632e7
push edi
push str.Services
push esi
call fcn.100a14ad
add esp, 0xc
test eax, eax
jne 0x1006326d
mov dword [ebp - 0x1e4], 0x50000
jmp 0x100632e7
push edi
push str.Users
push esi
call fcn.100a14ad
add esp, 0xc
test eax, eax
jne 0x1006328c
mov dword [ebp - 0x1e4], 0x60000
jmp 0x100632e7
push edi
push str.CurrentUserGroupPolicy
push esi
call fcn.100a14ad
add esp, 0xc
test eax, eax
jne 0x100632ab
mov dword [ebp - 0x1e4], 0x70000
jmp 0x100632e7
push edi
push str.LocalMachineGroupPolicy
push esi
call fcn.100a14ad
add esp, 0xc
test eax, eax
jne 0x100632ca
mov dword [ebp - 0x1e4], 0x80000
jmp 0x100632e7
push edi
push str.LocalMachineEnterprise
push esi
call fcn.100a14ad
add esp, 0xc
test eax, eax
jne 0x1006334f
mov dword [ebp - 0x1e4], 0x90000
mov eax, dword [ebp - 0x1dc]
inc eax
push 0x5c
push eax
mov dword [ebp - 0x1dc], eax
call fcn.100a13f9
mov edi, eax
add esp, 8
test edi, edi
je 0x1006334f
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 0x10063313
sub ecx, edx
cmp ecx, 0x28
jne 0x1006334f
push dword [ebp - 0x1dc]
mov byte [edi], al
call dword [0x100dcd80]
add esp, 4
mov dword [ebp - 0x1f4], eax
mov byte [edi], 0x5c
test eax, eax
jne 0x100633e2
mov dword [ebp - 0x1e8], 0x1b
jmp 0x10063359
mov dword [ebp - 0x1e8], 0x3a
mov eax, dword [ebx + 0x404]
cmp byte [eax], 0
je 0x1006392c
push 0x100bbd14
push eax
call fcn.100605a0
mov edi, eax
add esp, 8
mov dword [ebp - 0x1dc], edi
test edi, edi
je 0x1006392c
mov eax, dword [ebx + 0x43c]
test eax, eax
je 0x100633c6
push 0x100bf86c
push eax
call fcn.10051270
add esp, 8
test eax, eax
jne 0x100633c6
cmp dword [ebp - 0x1f8], eax
mov eax, str._memory_blob_
jne 0x100633b5
mov eax, dword [ebx + 0x404]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ebx
call fcn.1004cb70
add esp, 0xc
jmp 0x1006342f
mov eax, dword [ebp - 0x1f8]
test edi, edi
jne 0x1006352e
test eax, eax
jne 0x1006352e
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 0x10063456
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.1004cb70
push dword [ebp - 0x1f4]
call dword [0x100dcd78]
add esp, 0x18
test esi, esi
je 0x1006379b
push esi
call fcn.10097d68
add esp, 4
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c543
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1f4]
call dword [0x100dcd78]
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 0x100634cd
test esi, esi
je 0x100634a8
push esi
call fcn.10097d68
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.1008c543
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 0x10063508
push esi
call fcn.10097d68
mov eax, dword [ebp - 0x1f0]
add esp, 4
test eax, eax
jne 0x10063809
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.1008c543
mov esp, ebp
pop ebp
ret
xor edi, edi
test eax, eax
je 0x10063540
mov dword [ebp - 0x1e8], str._memory_blob_
jmp 0x1006354c
mov eax, dword [ebx + 0x404]
mov dword [ebp - 0x1e8], eax
test esi, esi
je 0x10063559
push esi
call fcn.10097d68
add esp, 4
mov esi, dword [ebp - 0x1dc]
test esi, esi
je 0x100635ec
xor eax, eax
push 2
push eax
push esi
mov dword [ebp - 0x1dc], eax
call fcn.1009c4dd
add esp, 0xc
test eax, eax
sete cl
mov byte [ebp - 0x1d5], cl
test eax, eax
jne 0x10063686
push esi
call fcn.1009caf0
add esp, 4
mov dword [ebp - 0x1dc], eax
test eax, eax
jns 0x1006368a
mov byte [ebp - 0x1d5], 0
mov eax, dword [ebp - 0x1ec]
mov edx, dword [ebp - 0x1e0]
test eax, eax
je 0x100636e1
push esi
push 1
push edx
push eax
call fcn.1009c167
add esp, 0x10
cmp eax, 1
jne 0x100636e1
push esi
call fcn.1009bbb5
add esp, 4
cmp byte [ebp - 0x1d5], 0
je 0x100636ea
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 0x1006361c
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10063613
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [0x100dcd74]
mov esi, eax
add esp, 4
test esi, esi
je 0x10063735
test edi, edi
je 0x10063720
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 0x10063722
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 [0x100dcd78]
add esp, 4
jmp 0x10063737
xor eax, eax
jmp 0x10063690
mov cl, byte [ebp - 0x1d5]
mov edx, eax
mov dword [ebp - 0x1e0], edx
test cl, cl
je 0x100636d6
push 0
push 0
push esi
call fcn.1009c4dd
add esp, 0xc
test eax, eax
sete byte [ebp - 0x1d5]
test eax, eax
jne 0x100635ac
mov eax, dword [ebp - 0x1dc]
inc eax
push eax
call dword [0x100dcd74]
add esp, 4
mov dword [ebp - 0x1ec], eax
jmp 0x100635b2
mov eax, dword [ebp - 0x1ec]
jmp 0x100635b8
push esi
call fcn.1009bbb5
add esp, 4
push dword [ebx + 0x404]
push str.schannel:_Failed_to_read_cert_file__s
push ebx
call fcn.1004cb70
push dword [ebp - 0x1ec]
call dword [0x100dcd78]
add esp, 0x10
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c543
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp eax, edi
jg 0x10063660
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x10063665
xor edi, edi
cmp dword [ebp - 0x1f8], 0
jne 0x1006374f
push dword [ebp - 0x1ec]
call dword [0x100dcd78]
add esp, 4
test edi, edi
jne 0x100637b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x10063786
push dword [ebp - 0x1e8]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebx
call fcn.1004cb70
add esp, 0xc
lea eax, [edi + 0x3a]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c543
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.1004cb70
add esp, 0x10
pop edi
pop esi
mov eax, 0x3a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c543
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 0x10063809
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.1004cb70
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.1008c543
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 [0x100dcd84]
mov edi, dword [ebp - 0x204]
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x10063876
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.1004cb70
mov eax, dword [ebp - 0x1f0]
add esp, 8
test eax, eax
je case.0x100638fc.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.1008c543
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 [0x100ddf08]
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 0x100638b7
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x10063919
push 0x100
lea eax, [ebp - 0x118]
push eax
push esi
call fcn.10079a70
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebx
call fcn.1004cb70
push dword [edi]
call dword [0x100dcd78]
add esi, 0x7ff6fd00
mov dword [edi], 0
add esp, 0x1c
cmp esi, 0xe
ja case.0x100638fc.2146893055
movzx eax, byte [esi + 0x100639d4]
jmp dword [eax*4 + 0x100639c8]
pop edi
pop esi
mov eax, 0x23
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c543
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.1008c543
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.1004cb70
push esi
call fcn.10097d68
mov eax, dword [ebp - 0x1e8]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c543
mov esp, ebp
pop ebp
ret
push str.SSL_versions_not_supported
push ebx
call fcn.1004cb70
add esp, 8
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c543
mov esp, ebp
pop ebp
ret
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ebx
call fcn.1004cb70
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x23
pop edi
pop esi
pop ebx
call fcn.1008c543
mov esp, ebp
pop ebp
ret