Function at 0x1004e050
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1bc
mov eax, dword [0x1006a744]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1cc]
push esi
push edi
mov edi, dword [esp + 0x1d0]
push edi
mov dword [esp + 0x1c], ebp
mov esi, dword [edi + 8]
call fcn.100522f0
mov ebx, eax
push ebp
push edi
mov dword [esp + 0x54], ebx
call fcn.100522d0
mov dword [esp + 0x30], 0
xor ebp, ebp
add esp, 0xc
mov dword [esp + 0x14], ebp
cmp byte [ebx + 0x39], 0
mov edx, eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x44], eax
je 0x1004e0f2
cmp byte [edx + 0x63], 0
mov cl, byte [eax + 0x48]
je 0x1004e0ca
test cl, cl
mov eax, 0x1808
mov esi, 0x1820
cmove eax, esi
jmp 0x1004e0f7
cmp byte [edx + 0x65], 0
je 0x1004e0e1
test cl, cl
mov eax, 0x1a08
mov esi, 0x1a20
cmove eax, esi
jmp 0x1004e0f7
test cl, cl
mov eax, 0x208
mov esi, 0x220
cmove eax, esi
jmp 0x1004e0f7
mov eax, 0x1808
mov cl, byte [edx + 0x67]
mov esi, eax
or esi, 4
mov edx, str.schannel:_disabled_automatic_use_of_client_certificate
cmp byte [ebx + 0x3a], 0
cmovne esi, eax
mov eax, esi
or eax, 0x10
test cl, cl
cmove esi, eax
mov eax, str.schannel:_enabled_automatic_use_of_client_certificate
cmove eax, edx
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x18]
push eax
push esi
call fcn.1000c130
movzx eax, byte [ebx + 0x38]
add esp, 8
cmp eax, 7
ja case.default.0x1004e143
movzx eax, byte [eax + 0x1004efdc]
jmp dword [eax*4 + 0x1004efd4]
push edi
call fcn.100522f0
add esp, 4
mov edi, dword [eax + 0x34]
movzx esi, byte [eax + 0x38]
test edi, edi
je 0x1004e166
cmp edi, 0x10000
jne 0x1004e18a
push 3
push 2
push 0x4f7c
push 0
push 0xa
call fcn.1004aa10
add esp, 0x14
mov edi, 0x60000
test al, al
mov ecx, 0x70000
cmovne edi, ecx
sar edi, 0x10
cmp esi, edi
jg 0x1004e1e7
add esi, 0xfffffffc
cmp esi, 3
ja case.default.0x1004e199
jmp dword [esi*4 + 0x1004efe4]
or dword [esp + 0x14], 0x80
jmp case.default.0x1004e199
or dword [esp + 0x14], 0x200
jmp case.default.0x1004e199
or dword [esp + 0x14], 0x800
jmp case.default.0x1004e199
push 3
push 2
push 0x4f7c
push 0
push 0xa
call fcn.1004aa10
add esp, 0x14
test al, al
je 0x1004e21f
or dword [esp + 0x14], 0x2000
inc esi
lea eax, [esi + 4]
cmp eax, edi
jle 0x1004e194
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x3d8]
test ecx, ecx
jne 0x1004e22e
cmp dword [esi + 0x3ec], ebp
je 0x1004e848
mov eax, dword [esi + 0x3ec]
xor edx, edx
xor edi, edi
mov dword [esp + 0x3c], edx
xor ebp, ebp
mov dword [esp + 0x20], edx
xor ebx, ebx
mov dword [esp + 0x30], eax
xor esi, esi
jmp 0x1004e256
mov ecx, dword [esp + 0x18]
push str.schannel:_TLS_1.3_not_supported_on_Windows_prior_to_11
push ecx
jmp 0x1004efad
mov eax, dword [esi + 0x3ec]
xor edx, edx
xor edi, edi
mov dword [esp + 0x3c], edx
xor ebp, ebp
mov dword [esp + 0x20], edx
xor ebx, ebx
mov dword [esp + 0x28], edx
xor esi, esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
test eax, eax
je 0x1004e270
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
jmp 0x1004e446
push ecx
call fcn.1000c1f0
mov esi, eax
add esp, 4
test esi, esi
je case.0x1004ef5e.2146893056
push 0x5c
push esi
call sub.VCRUNTIME140.dll_wcschr
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1004e2a3
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
jmp 0x1004e413
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
mov edi, eax
sub edi, esi
sar edi, 1
push edi
push str.CurrentUser
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x1004e2c9
mov edi, 0x10000
jmp 0x1004e36f
push edi
push str.LocalMachine
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x1004e2e3
mov edi, 0x20000
jmp 0x1004e36f
push edi
push str.CurrentService
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x1004e2fa
mov edi, 0x40000
jmp 0x1004e36f
push edi
push str.Services
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x1004e311
mov edi, 0x50000
jmp 0x1004e36f
push edi
push str.Users
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x1004e328
mov edi, 0x60000
jmp 0x1004e36f
push edi
push str.CurrentUserGroupPolicy
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x1004e33f
mov edi, 0x70000
jmp 0x1004e36f
push edi
push str.LocalMachineGroupPolicy
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x1004e356
mov edi, 0x80000
jmp 0x1004e36f
push edi
push str.LocalMachineEnterprise
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x1004e409
mov edi, 0x90000
mov ebx, dword [esp + 0x1c]
add ebx, 2
push 0x5c
push ebx
call sub.VCRUNTIME140.dll_wcschr
mov edx, eax
add esp, 8
mov dword [esp + 0x34], edx
test edx, edx
jne 0x1004e395
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
jmp 0x1004e413
lea eax, [edx + 2]
mov ecx, eax
mov dword [esp + 0x20], eax
lea eax, [ecx + 2]
mov dword [esp + 0x1c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004e3a5
sub ecx, dword [esp + 0x1c]
sar ecx, 1
cmp ecx, 0x28
je 0x1004e3c5
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
jmp 0x1004e413
xor eax, eax
push ebx
mov word [edx], ax
call dword [0x100691c0]
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x34]
mov ecx, 0x5c
mov dword [esp + 0x3c], ebx
mov word [eax], cx
test ebx, ebx
jne 0x1004e3fc
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], 0x1b
mov dword [esp + 0x14], ecx
jmp 0x1004e41b
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
jmp 0x1004e4a4
mov eax, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0x3a
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x3d8]
cmp byte [eax], 0
je 0x1004ef70
push 0x10058f08
push eax
call fcn.1000c360
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1004ef70
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x418]
test eax, eax
je 0x1004e48c
push 0x10064678
push eax
call sym.libcurl.dll_curl_strequal
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x1004e48c
cmp dword [esp + 0x30], eax
mov eax, str._memory_blob_
jne 0x1004e47b
mov eax, dword [ecx + 0x3d8]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ecx
call fcn.1000c060
add esp, 0xc
jmp 0x1004e4e1
mov eax, dword [esp + 0x30]
test ebx, ebx
jne 0x1004e5a8
test eax, eax
jne 0x1004e5a8
mov ebx, dword [esp + 0x3c]
push ebx
mov eax, edi
or eax, 0x4000
push eax
push 0
push 0
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov ebp, eax
test ebp, ebp
jne 0x1004e4fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
push ebx
push edi
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push ecx
call fcn.1000c060
push ebx
call dword [0x100691b0]
add esp, 0x18
test esi, esi
je 0x1004e7eb
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, 0x3a
jmp 0x1004efba
push ebx
call dword [0x100691b0]
add esp, 4
mov dword [esp + 0x50], 0x14
lea eax, [esp + 0x90]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
push 0
push 0
push eax
lea eax, [esp + 0x9c]
push eax
push 4
push 0x28
push dword [esp + 0x38]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x1004e55e
test esi, esi
je 0x1004e54b
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x1004efba
push 0
lea eax, [esp + 0x54]
push eax
push 0x10000
push 0
push 0x10001
push ebp
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x24], eax
test esi, esi
je 0x1004e58e
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
jne 0x1004e840
push eax
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x1004efba
xor edi, edi
test eax, eax
je 0x1004e5b8
mov dword [esp + 0x1c], str._memory_blob_
jmp 0x1004e5c2
mov eax, dword [ecx + 0x3d8]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x1004e5d0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test ebx, ebx
je 0x1004e649
push 2
xor esi, esi
push esi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
sete cl
mov byte [esp + 0x11], cl
test eax, eax
jne 0x1004e6f2
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
add esp, 4
test esi, esi
jns 0x1004e6ee
mov byte [esp + 0x11], 0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
test esi, esi
je 0x1004e73a
push ebx
push 1
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x1004e73a
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp byte [esp + 0x11], 0
je 0x1004e744
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x428]
mov dword [esp + 0x38], ebx
test eax, eax
je 0x1004e679
mov edi, eax
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x1004e670
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [0x100691ac]
mov esi, eax
add esp, 4
test esi, esi
je 0x1004e798
test edi, edi
je 0x1004e76d
mov eax, dword [esp + 0x18]
lea ecx, [edi + 1]
push ecx
push esi
push edi
push dword [eax + 0x428]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x1004e76f
xor eax, eax
mov word [esi], ax
push 3
push 2
push 0
push 0
push 6
call fcn.1004aa10
add esp, 0x14
test al, al
lea eax, [esp + 0x34]
je 0x1004e782
push 0x8000
jmp 0x1004e784
mov cl, byte [esp + 0x11]
mov eax, esi
mov dword [esp + 0x2c], eax
test cl, cl
je 0x1004e731
push 0
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
sete byte [esp + 0x11]
test eax, eax
jne 0x1004e60d
lea eax, [esi + 1]
push eax
call dword [0x100691ac]
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
jmp 0x1004e611
mov esi, dword [esp + 0x28]
jmp 0x1004e615
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x18]
push dword [eax + 0x3d8]
push str.schannel:_Failed_to_read_cert_file__s
push eax
call fcn.1000c060
push esi
call dword [0x100691b0]
add esp, 0x10
mov eax, 0x3a
jmp 0x1004efba
xor eax, eax
cmp eax, edi
jg 0x1004e6c1
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x1004e6c6
push 0
push esi
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push esi
mov ebp, eax
call dword [0x100691b0]
add esp, 4
cmp dword [esp + 0x30], 0
jne 0x1004e7a9
push ebx
call dword [0x100691b0]
add esp, 4
test ebp, ebp
jne 0x1004e7f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x1004e7d5
push dword [esp + 0x1c]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push dword [esp + 0x20]
call fcn.1000c060
add esp, 0xc
lea eax, [ebp + 0x3a]
jmp 0x1004efba
push eax
push dword [esp + 0x20]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push dword [esp + 0x24]
call fcn.1000c060
add esp, 0x10
mov eax, 0x3a
jmp 0x1004efba
push 0
push 0
push 0
push 0
push 0x10001
push ebp
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x1004e840
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x20]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push dword [esp + 0x24]
call fcn.1000c060
add esp, 0x10
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x1004efba
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x18]
push 0x20
push 1
call dword [0x100691bc]
mov ecx, dword [esp + 0x4c]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x1004e893
push str.schannel:_unable_to_allocate_memory
push esi
call fcn.1000c060
mov eax, dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x1004e87c
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebp, ebp
je case.0x1004ef5e.2146893056
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x1b
jmp 0x1004efba
push 3
push 2
mov dword [eax + 0x18], 1
mov eax, dword [ecx]
push 0x4563
push 0
push 0xa
mov dword [eax + 0x14], ebp
call fcn.1004aa10
add esp, 0x14
test al, al
je 0x1004ed58
push 0x2c
lea eax, [esp + 0x5c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x70
xorps xmm0, xmm0
lea eax, [esp + 0xd8]
push 0
push eax
movups xmmword [esp + 0xa8], xmm0
movq qword [esp + 0xb8], xmm0
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebx + 0x14]
xorps xmm0, xmm0
add esp, 0x18
movlpd qword [esp + 0x34], xmm0
xor ebp, ebp
movlpd qword [esp + 0x3c], xmm0
test edi, edi
je 0x1004ece0
mov bh, 1
xor eax, eax
mov dword [esp + 0x20], eax
mov bl, bh
movups xmmword [esp + 0xa8], xmm0
mov byte [esp + 0x12], bh
movups xmmword [esp + 0xb8], xmm0
mov byte [esp + 0x13], bh
mov byte [esp + 0x11], bh
cmp byte [edi], 0
je 0x1004eb53
cmp eax, 5
jge 0x1004eb53
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1004e95d
mov esi, ebp
sub esi, edi
jmp 0x1004e96b
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1004e962
sub esi, ecx
cmp esi, 0x1f
ja 0x1004eb3b
push esi
lea eax, [esp + 0xac]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [esp + esi + 0xa8], 0
test bh, bh
je 0x1004e9d0
lea ecx, [esp + 0xa8]
mov eax, str.TLS_AES_256_GCM_SHA384
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1004e9c0
test dl, dl
je 0x1004e9bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1004e9c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1004e9a0
xor eax, eax
jmp 0x1004e9c5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1004e9d0
xor bh, bh
jmp 0x1004eafb
cmp byte [esp + 0x12], 0
je 0x1004ea17
lea ecx, [esp + 0xa8]
mov eax, str.TLS_AES_128_GCM_SHA256
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1004ea03
test dl, dl
je 0x1004e9ff
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1004ea03
add eax, 2
add ecx, 2
test dl, dl
jne 0x1004e9e3
xor eax, eax
jmp 0x1004ea08
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1004ea17
xor ch, ch
mov byte [esp + 0x12], ch
jmp 0x1004eaff
cmp byte [esp + 0x13], 0
je 0x1004ea68
lea ecx, [esp + 0xa8]
mov eax, str.TLS_CHACHA20_POLY1305_SHA256
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1004ea50
test dl, dl
je 0x1004ea4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1004ea50
add eax, 2
add ecx, 2
test dl, dl
jne 0x1004ea30
xor eax, eax
jmp 0x1004ea55
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1004ea68
mov ch, byte [esp + 0x12]
xor dl, dl
mov byte [esp + 0x13], dl
jmp 0x1004eb03
cmp byte [esp + 0x11], 0
je 0x1004eab9
lea ecx, [esp + 0xa8]
mov eax, str.TLS_AES_128_CCM_8_SHA256
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1004eaa0
test dl, dl
je 0x1004ea9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1004eaa0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1004ea80
xor eax, eax
jmp 0x1004eaa5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1004eab9
mov dl, byte [esp + 0x13]
xor cl, cl
mov ch, byte [esp + 0x12]
mov byte [esp + 0x11], cl
jmp 0x1004eb07
test bl, bl
je 0x1004eb23
lea ecx, [esp + 0xa8]
mov eax, str.TLS_AES_128_CCM_SHA256
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1004eaf0
test dl, dl
je 0x1004eaec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1004eaf0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1004ead0
xor eax, eax
jmp 0x1004eaf5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1004eb23
xor bl, bl
mov ch, byte [esp + 0x12]
mov dl, byte [esp + 0x13]
mov cl, byte [esp + 0x11]
mov edi, ebp
test ebp, ebp
je 0x1004eb10
lea edi, [ebp + 1]
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
test edi, edi
jne 0x1004e934
jmp 0x1004eb5f
push str.Passed_in_an_unknown_TLS_1.3_cipher.
push dword [esp + 0x1c]
call fcn.1000c060
mov eax, 0x3b
jmp 0x1004efb7
push str.Cipher_name_too_long__not_checked.
push dword [esp + 0x1c]
call fcn.1000c060
mov eax, 0x3b
jmp 0x1004efb7
mov ch, byte [esp + 0x12]
mov dl, byte [esp + 0x13]
mov cl, byte [esp + 0x11]
test bh, bh
je 0x1004eb8b
test ch, ch
je 0x1004eb8b
test dl, dl
je 0x1004eb8b
test cl, cl
je 0x1004eb8f
test bl, bl
je 0x1004eb93
push str.All_available_TLS_1.3_ciphers_were_disabled.
push dword [esp + 0x1c]
call fcn.1000c060
mov eax, 0x3b
jmp 0x1004efb7
test cl, cl
jne 0x1004eb93
test bl, bl
je 0x1004ec06
mov dword [esp + 0x34], 0x200020
lea eax, [esp + 0x34]
mov dword [esp + 0x38], str.ChainingModeCCM
mov dword [esp + 0xc8], 2
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd4], 1
mov dword [esp + 0xcc], 0x80008
mov dword [esp + 0xd0], 0x10064934
cmp cl, bl
je 0x1004ebff
test cl, cl
je 0x1004ebf4
mov dword [esp + 0xdc], 0x80
mov ebp, 1
jmp 0x1004ec08
mov dword [esp + 0xe0], 0x40
mov ebp, 1
jmp 0x1004ec08
xor ebp, ebp
mov al, ch
test bh, bh
jne 0x1004ec28
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x12], al
mov byte [esp + 0x13], dl
mov dword [esp + 0x14], ecx
test al, al
je 0x1004ecb1
mov ch, al
lea edx, [ebp*8]
mov dword [esp + 0x3c], 0x200020
sub edx, ebp
mov dword [esp + 0x40], str.ChainingModeGCM
cmp bh, ch
je 0x1004ec56
test bh, bh
mov esi, str.SHA384
mov eax, str.SHA256
cmove esi, eax
jmp 0x1004ec5b
mov esi, 0x10064934
xor eax, eax
cmp bh, ch
sete al
lea eax, [eax*4 + 4]
movzx ecx, ax
xor eax, eax
cmp bh, byte [esp + 0x12]
setne al
add eax, 2
inc ebp
mov dword [esp + edx*4 + 0xc8], eax
lea eax, [esp + 0x3c]
mov word [esp + edx*4 + 0xcc], cx
mov word [esp + edx*4 + 0xce], cx
mov dword [esp + edx*4 + 0xd0], esi
mov dword [esp + edx*4 + 0xd8], eax
mov dword [esp + edx*4 + 0xd4], 1
mov dl, byte [esp + 0x13]
test dl, dl
je 0x1004ece0
lea eax, [ebp*8]
sub eax, ebp
inc ebp
mov dword [esp + eax*4 + 0xc8], 2
mov dword [esp + eax*4 + 0xcc], 0x240024
mov dword [esp + eax*4 + 0xd0], str.CHACHA20_POLY1305
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0xc8]
mov dword [esp + 0xa0], eax
or ecx, 0x400000
cmp dword [esp + 0x24], 0
lea eax, [esp + 0x90]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x14]
not eax
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x7c], 1
mov dword [esp + 0x58], 5
mov dword [esp + 0x78], ecx
mov dword [esp + 0x98], eax
je 0x1004ed45
lea eax, [esp + 0x24]
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], eax
mov ebx, dword [esp + 0x44]
mov ecx, dword [ebx]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x5c]
jmp 0x1004eee9
mov edi, dword [ebx + 0x10]
lea eax, [esp + 0x58]
push 0x38
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x58]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], 4
mov dword [esp + 0x88], ecx
mov dword [esp + 0x78], eax
test edi, edi
je 0x1004eeb7
xor ebx, ebx
mov dword [esp + 0x20], ebx
cmp byte [edi], 0
je 0x1004ee8e
cmp ebx, 0x2f
jge 0x1004ee8e
push 0
push 0
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
test eax, eax
jne 0x1004ee68
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
test esi, esi
je 0x1004edd2
sub esi, edi
jmp 0x1004ede0
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1004edd7
sub esi, ecx
mov edx, dword [str.CALG_MD2]
xor ebx, ebx
test edx, edx
je 0x1004ee2b
nop dword [eax]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004edf5
sub eax, ebp
cmp esi, eax
jne 0x1004ee12
push esi
push edi
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x1004ee20
mov edx, dword [ebx*8 + 0x10063fb0]
inc ebx
test edx, edx
jne 0x1004edf0
jmp 0x1004ee2b
mov eax, dword [ebx*8 + 0x10063fac]
test eax, eax
jne 0x1004ee64
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
push 0x11
push str.USE_STRONG_CRYPTO
push edi
call ebx
add esp, 0xc
test eax, eax
je 0x1004ee53
push 0x15
push str.SCH_USE_STRONG_CRYPTO
push edi
call ebx
add esp, 0xc
test eax, eax
jne 0x1004ee9f
or dword [esp + 0x88], 0x400000
mov ebx, dword [esp + 0x20]
jmp 0x1004ee74
mov ebx, dword [esp + 0x20]
mov dword [esp + ebx*4 + 0xc8], eax
inc ebx
mov dword [esp + 0x20], ebx
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
mov edi, eax
add esp, 8
test edi, edi
je 0x1004ee8e
add edi, 1
jne 0x1004ed95
lea eax, [esp + 0xc8]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], eax
jmp 0x1004eec4
push str.Unable_to_set_ciphers_to_from_connection_ssl_config
push dword [esp + 0x1c]
call fcn.1000c060
mov eax, 0x3b
jmp 0x1004efb7
or ecx, 0x400000
mov dword [esp + 0x88], ecx
cmp dword [esp + 0x24], 0
je 0x1004eedb
lea eax, [esp + 0x24]
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], eax
mov ebx, dword [esp + 0x44]
mov ecx, dword [ebx]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x5c]
push ecx
push 0
push 0
push eax
mov eax, dword [0x1006a780]
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
mov eax, dword [eax + 0xc]
push 0
call eax
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1004ef15
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x1004ef6c
push 0x100
lea eax, [esp + 0xcc]
push eax
push esi
call fcn.1003cd70
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push dword [esp + 0x2c]
call fcn.1000c060
push dword [ebx]
call dword [0x100691b0]
add esi, 0x7ff6fd00
mov dword [ebx], 0
add esp, 0x1c
cmp esi, 0xe
ja case.0x1004ef5e.2146893055
movzx eax, byte [esi + 0x1004f000]
jmp dword [eax*4 + 0x1004eff4]
mov eax, 0x23
jmp 0x1004efba
xor eax, eax
jmp 0x1004efba
mov eax, dword [esp + 0x18]
push dword [eax + 0x3d8]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push eax
call fcn.1000c060
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x2c]
add esp, 0x10
jmp 0x1004efba
push str.SSL_versions_not_supported
push esi
call fcn.1000c060
mov eax, 4
jmp 0x1004efb7
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push esi
call fcn.1000c060
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x1c8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10056613
add esp, 0x1bc
ret