Function at 0x10062dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x100dcd80]
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.1008e490
add esp, 0xc
mov dword [ebp - 0x244], 4
cmp byte [esi + 0x215], 0
mov eax, 0x1b8
mov dword [ebp - 0x1dc], 0x1c8
je 0x10062ee1
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 0x10062e7f
cmp dword [edx], 0xffffffff
mov dword [ebp - 0x1e0], edx
cmovne eax, dword [ebp - 0x1dc]
cmp dword [eax + esi], edi
je 0x10062e7f
mov al, byte [ebx + 0x4bb]
jmp 0x10062e8b
mov al, byte [ebx + 0x453]
mov dword [ebp - 0x1e0], edx
test al, al
je 0x10062e9c
or ecx, 0x1800
mov eax, 0x1b8
jmp 0x10062ef8
cmp edi, 2
jne 0x10062ebd
cmp dword [edx], 0xffffffff
mov eax, 0x1b8
cmovne eax, dword [ebp - 0x1dc]
cmp dword [eax + esi], edi
je 0x10062ebd
mov al, byte [ebx + 0x4bd]
jmp 0x10062ec3
mov al, byte [ebx + 0x455]
test al, al
je 0x10062ed4
or ecx, 0x1a00
mov eax, 0x1b8
jmp 0x10062ef8
or ecx, 0x200
mov eax, 0x1b8
jmp 0x10062ef8
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 0x10062f10
or ecx, 4
mov dword [ebp - 0x214], ecx
cmp edi, 2
jne 0x10062f2d
cmp dword [edx], 0xffffffff
mov edx, 0x1c8
cmovne eax, edx
cmp dword [eax + esi], edi
je 0x10062f2d
mov al, byte [ebx + 0x4bf]
jmp 0x10062f33
mov al, byte [ebx + 0x457]
test al, al
jne 0x10062f43
and ecx, 0xffffffbf
or ecx, 0x10
mov dword [ebp - 0x214], ecx
mov edx, dword [esi + 0x1dc]
cmp edx, 7
ja case.default.0x10062f59
movzx eax, byte [edx + 0x100639d0]
jmp dword [eax*4 + 0x100639c8]
cmp edi, 2
jne 0x10062f8e
mov ecx, dword [ebp - 0x1e0]
mov eax, 0x1b8
cmp dword [ecx], 0xffffffff
mov ecx, 0x1c8
cmovne eax, ecx
cmp dword [eax + esi], edi
je 0x10062f8e
mov edx, dword [esi + 0x21c]
mov edi, dword [esi + 0x220]
jmp 0x10062f94
mov edi, dword [esi + 0x1e0]
test edi, edi
je 0x10062fa0
cmp edi, 0x10000
jne 0x10062fa5
mov edi, 0x60000
sar edi, 0x10
cmp edx, edi
jg 0x10062fe5
mov ecx, dword [ebp - 0x224]
add edx, 0xfffffffc
cmp edx, 3
ja case.default.0x10062fba
jmp dword [edx*4 + 0x100639d8]
or ecx, 0x80
jmp 0x10062fd7
or ecx, 0x200
jmp 0x10062fd7
or ecx, 0x800
mov dword [ebp - 0x224], ecx
inc edx
lea eax, [edx + 4]
cmp eax, edi
jle 0x10062fb5
mov edx, dword [esi + 0xb8]
cmp edx, 2
jne 0x10063029
mov ecx, dword [ebp - 0x1e0]
mov eax, 0x1b8
cmp dword [ecx], 0xffffffff
mov ecx, 0x1c8
cmovne eax, ecx
cmp dword [eax + esi], edx
je 0x10063029
mov edi, dword [esi + 0x234]
lea eax, [esi + 0x234]
lea ecx, [esi + 0x1f4]
jmp 0x1006303b
push str.schannel:_TLS_1.3_is_not_yet_supported
jmp 0x100639a6
mov edi, dword [esi + 0x1f4]
lea ecx, [esi + 0x1f4]
lea eax, [esi + 0x234]
test edi, edi
je 0x10063102
cmp edx, 2
jne 0x10063064
mov edx, dword [ebp - 0x1e0]
mov edi, 0x1c8
cmp dword [edx], 0xffffffff
mov edx, 0x1b8
cmovne edx, edi
cmp dword [edx + esi], 2
jne 0x10063066
mov eax, ecx
mov esi, dword [eax]
xor edi, edi
test esi, esi
je 0x100630f0
cmp byte [esi], 0
je 0x100630f0
cmp edi, 0x2f
jge 0x100630f0
push 0
push 0
push esi
call fcn.100a0254
add esp, 0xc
test eax, eax
jne 0x100630d2
push esi
call fcn.10062050
add esp, 4
test eax, eax
jne 0x100630d2
push 0x11
push str.USE_STRONG_CRYPTO
push esi
call fcn.1009fb90
add esp, 0xc
test eax, eax
je 0x100630c6
push 0x15
push str.SCH_USE_STRONG_CRYPTO
push esi
call fcn.1009fb90
add esp, 0xc
test eax, eax
jne 0x10063158
or dword [ebp - 0x214], 0x400000
jmp 0x100630da
mov dword [ebp + edi*4 - 0x1d4], eax
inc edi
push 0x3a
push esi
call fcn.1008e8d0
mov esi, eax
add esp, 8
test esi, esi
je 0x100630f0
add esi, 1
jne 0x10063072
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], eax
mov edx, dword [ebx + 0x404]
test edx, edx
jne 0x1006317c
cmp dword [ebx + 0x418], edx
je 0x10063848
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 0x100633a6
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push ebx
call fcn.1004cb90
add esp, 8
mov eax, 0x3b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
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 0x100631d8
mov eax, dword [ecx]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1e0], eax
jmp 0x100633a6
push edx
call fcn.100a4190
mov esi, eax
add esp, 4
test esi, esi
je case.0x1006391c.2146893056
push 0x5c
push esi
call fcn.100a1589
add esp, 8
mov dword [ebp - 0x1dc], eax
test eax, eax
je 0x1006336f
mov edi, eax
sub edi, esi
push edi
push str.CurrentUser
push esi
call fcn.100a163d
add esp, 0xc
test eax, eax
jne 0x1006322a
mov dword [ebp - 0x1e4], 0x10000
jmp 0x10063307
push edi
push str.LocalMachine
push esi
call fcn.100a163d
add esp, 0xc
test eax, eax
jne 0x1006324c
mov dword [ebp - 0x1e4], 0x20000
jmp 0x10063307
push edi
push str.CurrentService
push esi
call fcn.100a163d
add esp, 0xc
test eax, eax
jne 0x1006326e
mov dword [ebp - 0x1e4], 0x40000
jmp 0x10063307
push edi
push str.Services
push esi
call fcn.100a163d
add esp, 0xc
test eax, eax
jne 0x1006328d
mov dword [ebp - 0x1e4], 0x50000
jmp 0x10063307
push edi
push str.Users
push esi
call fcn.100a163d
add esp, 0xc
test eax, eax
jne 0x100632ac
mov dword [ebp - 0x1e4], 0x60000
jmp 0x10063307
push edi
push str.CurrentUserGroupPolicy
push esi
call fcn.100a163d
add esp, 0xc
test eax, eax
jne 0x100632cb
mov dword [ebp - 0x1e4], 0x70000
jmp 0x10063307
push edi
push str.LocalMachineGroupPolicy
push esi
call fcn.100a163d
add esp, 0xc
test eax, eax
jne 0x100632ea
mov dword [ebp - 0x1e4], 0x80000
jmp 0x10063307
push edi
push str.LocalMachineEnterprise
push esi
call fcn.100a163d
add esp, 0xc
test eax, eax
jne 0x1006336f
mov dword [ebp - 0x1e4], 0x90000
mov eax, dword [ebp - 0x1dc]
inc eax
push 0x5c
push eax
mov dword [ebp - 0x1dc], eax
call fcn.100a1589
mov edi, eax
add esp, 8
test edi, edi
je 0x1006336f
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 0x10063333
sub ecx, edx
cmp ecx, 0x28
jne 0x1006336f
push dword [ebp - 0x1dc]
mov byte [edi], al
call dword [0x100dcd50]
add esp, 4
mov dword [ebp - 0x1f4], eax
mov byte [edi], 0x5c
test eax, eax
jne 0x10063402
mov dword [ebp - 0x1e8], 0x1b
jmp 0x10063379
mov dword [ebp - 0x1e8], 0x3a
mov eax, dword [ebx + 0x404]
cmp byte [eax], 0
je 0x1006394c
push 0x100bbd04
push eax
call fcn.100605c0
mov edi, eax
add esp, 8
mov dword [ebp - 0x1dc], edi
test edi, edi
je 0x1006394c
mov eax, dword [ebx + 0x43c]
test eax, eax
je 0x100633e6
push 0x100bf85c
push eax
call fcn.10051290
add esp, 8
test eax, eax
jne 0x100633e6
cmp dword [ebp - 0x1f8], eax
mov eax, str._memory_blob_
jne 0x100633d5
mov eax, dword [ebx + 0x404]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ebx
call fcn.1004cb90
add esp, 0xc
jmp 0x1006344f
mov eax, dword [ebp - 0x1f8]
test edi, edi
jne 0x1006354e
test eax, eax
jne 0x1006354e
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 0x10063476
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.1004cb90
push dword [ebp - 0x1f4]
call dword [0x100dcd48]
add esp, 0x18
test esi, esi
je 0x100637bb
push esi
call fcn.10097ef8
add esp, 4
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1f4]
call dword [0x100dcd48]
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 0x100634ed
test esi, esi
je 0x100634c8
push esi
call fcn.10097ef8
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.1008c562
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 0x10063528
push esi
call fcn.10097ef8
mov eax, dword [ebp - 0x1f0]
add esp, 4
test eax, eax
jne 0x10063829
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.1008c562
mov esp, ebp
pop ebp
ret
xor edi, edi
test eax, eax
je 0x10063560
mov dword [ebp - 0x1e8], str._memory_blob_
jmp 0x1006356c
mov eax, dword [ebx + 0x404]
mov dword [ebp - 0x1e8], eax
test esi, esi
je 0x10063579
push esi
call fcn.10097ef8
add esp, 4
mov esi, dword [ebp - 0x1dc]
test esi, esi
je 0x1006360c
xor eax, eax
push 2
push eax
push esi
mov dword [ebp - 0x1dc], eax
call fcn.1009c66d
add esp, 0xc
test eax, eax
sete cl
mov byte [ebp - 0x1d5], cl
test eax, eax
jne 0x100636a6
push esi
call fcn.1009cc80
add esp, 4
mov dword [ebp - 0x1dc], eax
test eax, eax
jns 0x100636aa
mov byte [ebp - 0x1d5], 0
mov eax, dword [ebp - 0x1ec]
mov edx, dword [ebp - 0x1e0]
test eax, eax
je 0x10063701
push esi
push 1
push edx
push eax
call fcn.1009c2f7
add esp, 0x10
cmp eax, 1
jne 0x10063701
push esi
call fcn.1009bd45
add esp, 4
cmp byte [ebp - 0x1d5], 0
je 0x1006370a
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 0x1006363c
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10063633
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [0x100dcd44]
mov esi, eax
add esp, 4
test esi, esi
je 0x10063755
test edi, edi
je 0x10063740
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 0x10063742
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 [0x100dcd48]
add esp, 4
jmp 0x10063757
xor eax, eax
jmp 0x100636b0
mov cl, byte [ebp - 0x1d5]
mov edx, eax
mov dword [ebp - 0x1e0], edx
test cl, cl
je 0x100636f6
push 0
push 0
push esi
call fcn.1009c66d
add esp, 0xc
test eax, eax
sete byte [ebp - 0x1d5]
test eax, eax
jne 0x100635cc
mov eax, dword [ebp - 0x1dc]
inc eax
push eax
call dword [0x100dcd44]
add esp, 4
mov dword [ebp - 0x1ec], eax
jmp 0x100635d2
mov eax, dword [ebp - 0x1ec]
jmp 0x100635d8
push esi
call fcn.1009bd45
add esp, 4
push dword [ebx + 0x404]
push str.schannel:_Failed_to_read_cert_file__s
push ebx
call fcn.1004cb90
push dword [ebp - 0x1ec]
call dword [0x100dcd48]
add esp, 0x10
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp eax, edi
jg 0x10063680
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x10063685
xor edi, edi
cmp dword [ebp - 0x1f8], 0
jne 0x1006376f
push dword [ebp - 0x1ec]
call dword [0x100dcd48]
add esp, 4
test edi, edi
jne 0x100637d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x100637a6
push dword [ebp - 0x1e8]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebx
call fcn.1004cb90
add esp, 0xc
lea eax, [edi + 0x3a]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
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.1004cb90
add esp, 0x10
pop edi
pop esi
mov eax, 0x3a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
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 0x10063829
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.1004cb90
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.1008c562
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 [0x100dcd54]
mov edi, dword [ebp - 0x204]
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x10063896
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.1004cb90
mov eax, dword [ebp - 0x1f0]
add esp, 8
test eax, eax
je case.0x1006391c.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.1008c562
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 [0x100ddec8]
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 0x100638d7
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x10063939
push 0x100
lea eax, [ebp - 0x118]
push eax
push esi
call fcn.10079aa0
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebx
call fcn.1004cb90
push dword [edi]
call dword [0x100dcd48]
add esi, 0x7ff6fd00
mov dword [edi], 0
add esp, 0x1c
cmp esi, 0xe
ja case.0x1006391c.2146893055
movzx eax, byte [esi + 0x100639f4]
jmp dword [eax*4 + 0x100639e8]
pop edi
pop esi
mov eax, 0x23
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
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.1008c562
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.1004cb90
push esi
call fcn.10097ef8
mov eax, dword [ebp - 0x1e8]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
push str.SSL_versions_not_supported
push ebx
call fcn.1004cb90
add esp, 8
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ebx
call fcn.1004cb90
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x23
pop edi
pop esi
pop ebx
call fcn.1008c562
mov esp, ebp
pop ebp
ret