Function at 0x10062c30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x100dcbc0]
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.1008e1a0
add esp, 0xc
mov dword [ebp - 0x244], 4
cmp byte [esi + 0x215], 0
mov eax, 0x1b8
mov dword [ebp - 0x1dc], 0x1c8
je 0x10062d41
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 0x10062cdf
cmp dword [edx], 0xffffffff
mov dword [ebp - 0x1e0], edx
cmovne eax, dword [ebp - 0x1dc]
cmp dword [eax + esi], edi
je 0x10062cdf
mov al, byte [ebx + 0x4bb]
jmp 0x10062ceb
mov al, byte [ebx + 0x453]
mov dword [ebp - 0x1e0], edx
test al, al
je 0x10062cfc
or ecx, 0x1800
mov eax, 0x1b8
jmp 0x10062d58
cmp edi, 2
jne 0x10062d1d
cmp dword [edx], 0xffffffff
mov eax, 0x1b8
cmovne eax, dword [ebp - 0x1dc]
cmp dword [eax + esi], edi
je 0x10062d1d
mov al, byte [ebx + 0x4bd]
jmp 0x10062d23
mov al, byte [ebx + 0x455]
test al, al
je 0x10062d34
or ecx, 0x1a00
mov eax, 0x1b8
jmp 0x10062d58
or ecx, 0x200
mov eax, 0x1b8
jmp 0x10062d58
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 0x10062d70
or ecx, 4
mov dword [ebp - 0x214], ecx
cmp edi, 2
jne 0x10062d8d
cmp dword [edx], 0xffffffff
mov edx, 0x1c8
cmovne eax, edx
cmp dword [eax + esi], edi
je 0x10062d8d
mov al, byte [ebx + 0x4bf]
jmp 0x10062d93
mov al, byte [ebx + 0x457]
test al, al
jne 0x10062da3
and ecx, 0xffffffbf
or ecx, 0x10
mov dword [ebp - 0x214], ecx
mov edx, dword [esi + 0x1dc]
cmp edx, 7
ja case.default.0x10062db9
movzx eax, byte [edx + 0x10063830]
jmp dword [eax*4 + 0x10063828]
cmp edi, 2
jne 0x10062dee
mov ecx, dword [ebp - 0x1e0]
mov eax, 0x1b8
cmp dword [ecx], 0xffffffff
mov ecx, 0x1c8
cmovne eax, ecx
cmp dword [eax + esi], edi
je 0x10062dee
mov edx, dword [esi + 0x21c]
mov edi, dword [esi + 0x220]
jmp 0x10062df4
mov edi, dword [esi + 0x1e0]
test edi, edi
je 0x10062e00
cmp edi, 0x10000
jne 0x10062e05
mov edi, 0x60000
sar edi, 0x10
cmp edx, edi
jg 0x10062e45
mov ecx, dword [ebp - 0x224]
add edx, 0xfffffffc
cmp edx, 3
ja case.default.0x10062e1a
jmp dword [edx*4 + 0x10063838]
or ecx, 0x80
jmp 0x10062e37
or ecx, 0x200
jmp 0x10062e37
or ecx, 0x800
mov dword [ebp - 0x224], ecx
inc edx
lea eax, [edx + 4]
cmp eax, edi
jle 0x10062e15
mov edx, dword [esi + 0xb8]
cmp edx, 2
jne 0x10062e89
mov ecx, dword [ebp - 0x1e0]
mov eax, 0x1b8
cmp dword [ecx], 0xffffffff
mov ecx, 0x1c8
cmovne eax, ecx
cmp dword [eax + esi], edx
je 0x10062e89
mov edi, dword [esi + 0x234]
lea eax, [esi + 0x234]
lea ecx, [esi + 0x1f4]
jmp 0x10062e9b
push str.schannel:_TLS_1.3_is_not_yet_supported
jmp 0x10063806
mov edi, dword [esi + 0x1f4]
lea ecx, [esi + 0x1f4]
lea eax, [esi + 0x234]
test edi, edi
je 0x10062f62
cmp edx, 2
jne 0x10062ec4
mov edx, dword [ebp - 0x1e0]
mov edi, 0x1c8
cmp dword [edx], 0xffffffff
mov edx, 0x1b8
cmovne edx, edi
cmp dword [edx + esi], 2
jne 0x10062ec6
mov eax, ecx
mov esi, dword [eax]
xor edi, edi
test esi, esi
je 0x10062f50
cmp byte [esi], 0
je 0x10062f50
cmp edi, 0x2f
jge 0x10062f50
push 0
push 0
push esi
call fcn.1009ff54
add esp, 0xc
test eax, eax
jne 0x10062f32
push esi
call fcn.10061eb0
add esp, 4
test eax, eax
jne 0x10062f32
push 0x11
push str.USE_STRONG_CRYPTO
push esi
call fcn.1009f890
add esp, 0xc
test eax, eax
je 0x10062f26
push 0x15
push str.SCH_USE_STRONG_CRYPTO
push esi
call fcn.1009f890
add esp, 0xc
test eax, eax
jne 0x10062fb8
or dword [ebp - 0x214], 0x400000
jmp 0x10062f3a
mov dword [ebp + edi*4 - 0x1d4], eax
inc edi
push 0x3a
push esi
call fcn.1008e5e0
mov esi, eax
add esp, 8
test esi, esi
je 0x10062f50
add esi, 1
jne 0x10062ed2
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], eax
mov edx, dword [ebx + 0x404]
test edx, edx
jne 0x10062fdc
cmp dword [ebx + 0x418], edx
je 0x100636a8
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 0x10063206
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push ebx
call fcn.1004c9f0
add esp, 8
mov eax, 0x3b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
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 0x10063038
mov eax, dword [ecx]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1e0], eax
jmp 0x10063206
push edx
call fcn.100a3e90
mov esi, eax
add esp, 4
test esi, esi
je case.0x1006377c.2146893056
push 0x5c
push esi
call fcn.100a1289
add esp, 8
mov dword [ebp - 0x1dc], eax
test eax, eax
je 0x100631cf
mov edi, eax
sub edi, esi
push edi
push str.CurrentUser
push esi
call fcn.100a133d
add esp, 0xc
test eax, eax
jne 0x1006308a
mov dword [ebp - 0x1e4], 0x10000
jmp 0x10063167
push edi
push str.LocalMachine
push esi
call fcn.100a133d
add esp, 0xc
test eax, eax
jne 0x100630ac
mov dword [ebp - 0x1e4], 0x20000
jmp 0x10063167
push edi
push str.CurrentService
push esi
call fcn.100a133d
add esp, 0xc
test eax, eax
jne 0x100630ce
mov dword [ebp - 0x1e4], 0x40000
jmp 0x10063167
push edi
push str.Services
push esi
call fcn.100a133d
add esp, 0xc
test eax, eax
jne 0x100630ed
mov dword [ebp - 0x1e4], 0x50000
jmp 0x10063167
push edi
push str.Users
push esi
call fcn.100a133d
add esp, 0xc
test eax, eax
jne 0x1006310c
mov dword [ebp - 0x1e4], 0x60000
jmp 0x10063167
push edi
push str.CurrentUserGroupPolicy
push esi
call fcn.100a133d
add esp, 0xc
test eax, eax
jne 0x1006312b
mov dword [ebp - 0x1e4], 0x70000
jmp 0x10063167
push edi
push str.LocalMachineGroupPolicy
push esi
call fcn.100a133d
add esp, 0xc
test eax, eax
jne 0x1006314a
mov dword [ebp - 0x1e4], 0x80000
jmp 0x10063167
push edi
push str.LocalMachineEnterprise
push esi
call fcn.100a133d
add esp, 0xc
test eax, eax
jne 0x100631cf
mov dword [ebp - 0x1e4], 0x90000
mov eax, dword [ebp - 0x1dc]
inc eax
push 0x5c
push eax
mov dword [ebp - 0x1dc], eax
call fcn.100a1289
mov edi, eax
add esp, 8
test edi, edi
je 0x100631cf
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 0x10063193
sub ecx, edx
cmp ecx, 0x28
jne 0x100631cf
push dword [ebp - 0x1dc]
mov byte [edi], al
call dword [0x100dcb94]
add esp, 4
mov dword [ebp - 0x1f4], eax
mov byte [edi], 0x5c
test eax, eax
jne 0x10063262
mov dword [ebp - 0x1e8], 0x1b
jmp 0x100631d9
mov dword [ebp - 0x1e8], 0x3a
mov eax, dword [ebx + 0x404]
cmp byte [eax], 0
je 0x100637ac
push 0x100bbd14
push eax
call fcn.10060420
mov edi, eax
add esp, 8
mov dword [ebp - 0x1dc], edi
test edi, edi
je 0x100637ac
mov eax, dword [ebx + 0x43c]
test eax, eax
je 0x10063246
push 0x100bf86c
push eax
call fcn.100510f0
add esp, 8
test eax, eax
jne 0x10063246
cmp dword [ebp - 0x1f8], eax
mov eax, str._memory_blob_
jne 0x10063235
mov eax, dword [ebx + 0x404]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ebx
call fcn.1004c9f0
add esp, 0xc
jmp 0x100632af
mov eax, dword [ebp - 0x1f8]
test edi, edi
jne 0x100633ae
test eax, eax
jne 0x100633ae
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 0x100632d6
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.1004c9f0
push dword [ebp - 0x1f4]
call dword [0x100dcb8c]
add esp, 0x18
test esi, esi
je 0x1006361b
push esi
call fcn.10097bf8
add esp, 4
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1f4]
call dword [0x100dcb8c]
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 0x1006334d
test esi, esi
je 0x10063328
push esi
call fcn.10097bf8
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.1008c3d3
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 0x10063388
push esi
call fcn.10097bf8
mov eax, dword [ebp - 0x1f0]
add esp, 4
test eax, eax
jne 0x10063689
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.1008c3d3
mov esp, ebp
pop ebp
ret
xor edi, edi
test eax, eax
je 0x100633c0
mov dword [ebp - 0x1e8], str._memory_blob_
jmp 0x100633cc
mov eax, dword [ebx + 0x404]
mov dword [ebp - 0x1e8], eax
test esi, esi
je 0x100633d9
push esi
call fcn.10097bf8
add esp, 4
mov esi, dword [ebp - 0x1dc]
test esi, esi
je 0x1006346c
xor eax, eax
push 2
push eax
push esi
mov dword [ebp - 0x1dc], eax
call fcn.1009c36d
add esp, 0xc
test eax, eax
sete cl
mov byte [ebp - 0x1d5], cl
test eax, eax
jne 0x10063506
push esi
call fcn.1009c980
add esp, 4
mov dword [ebp - 0x1dc], eax
test eax, eax
jns 0x1006350a
mov byte [ebp - 0x1d5], 0
mov eax, dword [ebp - 0x1ec]
mov edx, dword [ebp - 0x1e0]
test eax, eax
je 0x10063561
push esi
push 1
push edx
push eax
call fcn.1009bff7
add esp, 0x10
cmp eax, 1
jne 0x10063561
push esi
call fcn.1009ba45
add esp, 4
cmp byte [ebp - 0x1d5], 0
je 0x1006356a
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 0x1006349c
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10063493
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [0x100dcb88]
mov esi, eax
add esp, 4
test esi, esi
je 0x100635b5
test edi, edi
je 0x100635a0
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 0x100635a2
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 [0x100dcb8c]
add esp, 4
jmp 0x100635b7
xor eax, eax
jmp 0x10063510
mov cl, byte [ebp - 0x1d5]
mov edx, eax
mov dword [ebp - 0x1e0], edx
test cl, cl
je 0x10063556
push 0
push 0
push esi
call fcn.1009c36d
add esp, 0xc
test eax, eax
sete byte [ebp - 0x1d5]
test eax, eax
jne 0x1006342c
mov eax, dword [ebp - 0x1dc]
inc eax
push eax
call dword [0x100dcb88]
add esp, 4
mov dword [ebp - 0x1ec], eax
jmp 0x10063432
mov eax, dword [ebp - 0x1ec]
jmp 0x10063438
push esi
call fcn.1009ba45
add esp, 4
push dword [ebx + 0x404]
push str.schannel:_Failed_to_read_cert_file__s
push ebx
call fcn.1004c9f0
push dword [ebp - 0x1ec]
call dword [0x100dcb8c]
add esp, 0x10
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp eax, edi
jg 0x100634e0
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x100634e5
xor edi, edi
cmp dword [ebp - 0x1f8], 0
jne 0x100635cf
push dword [ebp - 0x1ec]
call dword [0x100dcb8c]
add esp, 4
test edi, edi
jne 0x10063631
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x10063606
push dword [ebp - 0x1e8]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebx
call fcn.1004c9f0
add esp, 0xc
lea eax, [edi + 0x3a]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
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.1004c9f0
add esp, 0x10
pop edi
pop esi
mov eax, 0x3a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
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 0x10063689
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.1004c9f0
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.1008c3d3
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 [0x100dcb98]
mov edi, dword [ebp - 0x204]
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x100636f6
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.1004c9f0
mov eax, dword [ebp - 0x1f0]
add esp, 8
test eax, eax
je case.0x1006377c.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.1008c3d3
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 [0x100ddd00]
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 0x10063737
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x10063799
push 0x100
lea eax, [ebp - 0x118]
push eax
push esi
call fcn.10079910
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebx
call fcn.1004c9f0
push dword [edi]
call dword [0x100dcb8c]
add esi, 0x7ff6fd00
mov dword [edi], 0
add esp, 0x1c
cmp esi, 0xe
ja case.0x1006377c.2146893055
movzx eax, byte [esi + 0x10063854]
jmp dword [eax*4 + 0x10063848]
pop edi
pop esi
mov eax, 0x23
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
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.1008c3d3
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.1004c9f0
push esi
call fcn.10097bf8
mov eax, dword [ebp - 0x1e8]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
push str.SSL_versions_not_supported
push ebx
call fcn.1004c9f0
add esp, 8
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ebx
call fcn.1004c9f0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x23
pop edi
pop esi
pop ebx
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret