Function at 0x1004b160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [0x100d1444]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
add eax, 0x18
push esi
mov esi, dword [ebp + 0xc]
add eax, eax
push edi
mov dword [ebp - 0x144], ebx
mov edi, 0x198
mov dword [ebp - 0x150], 0
cmp byte [esi + 0x1f5], 0
mov eax, dword [esi + eax*8]
mov dl, byte [esi + 0xb0]
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x168], 0x1a8
je 0x1004b274
mov cl, byte [eax + 0x47]
cmp dl, 2
jne 0x1004b1ef
cmp dword [esi + 0x134], 0xffffffff
mov eax, edi
cmovne eax, dword [ebp - 0x168]
cmp dword [eax + esi], 2
je 0x1004b1ef
mov al, byte [ebx + 0x4af]
jmp 0x1004b1f5
mov al, byte [ebx + 0x447]
test al, al
je 0x1004b213
test cl, cl
mov dword [ebp - 0x158], 0x1820
mov eax, 0x1808
cmove eax, dword [ebp - 0x158]
jmp 0x1004b279
cmp dl, 2
jne 0x1004b236
cmp dword [esi + 0x134], 0xffffffff
mov eax, edi
cmovne eax, dword [ebp - 0x168]
cmp dword [eax + esi], 2
je 0x1004b236
mov al, byte [ebx + 0x4b1]
jmp 0x1004b23c
mov al, byte [ebx + 0x449]
test al, al
je 0x1004b25a
test cl, cl
mov dword [ebp - 0x158], 0x1a20
mov eax, 0x1a08
cmove eax, dword [ebp - 0x158]
jmp 0x1004b279
test cl, cl
mov dword [ebp - 0x158], 0x220
mov eax, 0x208
cmove eax, dword [ebp - 0x158]
jmp 0x1004b279
mov eax, 0x1808
mov ecx, eax
or ecx, 4
cmp byte [esi + 0x1f6], 0
cmovne ecx, eax
cmp dl, 2
jne 0x1004b2ac
cmp dword [esi + 0x134], 0xffffffff
mov eax, edi
mov edx, 0x1a8
cmovne eax, edx
cmp dword [eax + esi], 2
je 0x1004b2ac
mov dl, byte [ebx + 0x4b3]
jmp 0x1004b2b2
mov dl, byte [ebx + 0x44b]
mov eax, ecx
or eax, 0x10
test dl, dl
cmovne eax, ecx
mov ecx, str.schannel:_disabled_automatic_use_of_client_certificate
mov dword [ebp - 0x158], eax
mov eax, str.schannel:_enabled_automatic_use_of_client_certificate
cmove eax, ecx
push eax
push ebx
call fcn.1002f620
mov eax, dword [esi + 0x1bc]
add esp, 8
cmp eax, 7
ja case.default.0x1004b2ef
movzx eax, byte [eax + 0x1004c020]
jmp dword [eax*4 + 0x1004c018]
push esi
lea eax, [ebp - 0x17c]
push ebx
push eax
call fcn.1004dc80
add esp, 0xc
test eax, eax
jne 0x1004bfff
mov ecx, dword [ebx + 0x3f8]
test ecx, ecx
jne 0x1004b325
cmp dword [ebx + 0x40c], ecx
je 0x1004b88a
mov edx, dword [ebp - 0x144]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x168], 0
xor edi, edi
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x174], ebx
mov edx, dword [edx + 0x40c]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x170], edx
test edx, edx
je 0x1004b379
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x164], ecx
jmp 0x1004b426
push ecx
call fcn.100085c0
mov edi, eax
add esp, 4
test edi, edi
je 0x1004b8c2
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x168]
push eax
push edi
call fcn.1004ae60
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x1004b40c
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 0x3f8]
cmp byte [ecx], 0
je 0x1004b3df
push 0x100bba6c
push ecx
call fcn.100086f0
add esp, 8
mov dword [ebp - 0x15c], eax
test eax, eax
jne 0x1004b40e
mov eax, dword [ebp - 0x144]
push dword [eax + 0x3f8]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push eax
call fcn.1002f560
push edi
call fcn.1007c7d2
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e4a8
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ebx, dword [ebp - 0x154]
mov dword [ebp - 0x164], 0
test eax, eax
je 0x1004b757
mov ecx, dword [ebp - 0x144]
mov eax, dword [ecx + 0x430]
test eax, eax
je 0x1004b47b
push 0x100c26bc
push eax
call fcn.100391c0
add esp, 8
test eax, eax
jne 0x1004b475
cmp dword [ebp - 0x170], eax
mov eax, str._memory_blob_
mov edx, dword [ebp - 0x144]
jne 0x1004b461
mov eax, dword [edx + 0x3f8]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push edx
call fcn.1002f560
add esp, 0xc
jmp 0x1004b7a2
mov ecx, dword [ebp - 0x144]
cmp dword [ebp - 0x15c], 0
mov eax, dword [ebp - 0x170]
jne 0x1004b492
test eax, eax
je 0x1004b757
xor ebx, ebx
test eax, eax
je 0x1004b4a4
mov dword [ebp - 0x154], str._memory_blob_
jmp 0x1004b4b0
mov eax, dword [ecx + 0x3f8]
mov dword [ebp - 0x154], eax
test edi, edi
je 0x1004b4bd
push edi
call fcn.1007c7d2
add esp, 4
mov edi, dword [ebp - 0x15c]
test edi, edi
je 0x1004b5cb
push 2
push 0
push edi
call fcn.1007d35f
add esp, 0xc
test eax, eax
sete cl
mov byte [ebp - 0x140], cl
test eax, eax
jne 0x1004b4fa
push edi
call fcn.100914d3
mov cl, byte [ebp - 0x140]
add esp, 4
mov edx, eax
jmp 0x1004b4fc
xor edx, edx
xor eax, eax
movzx ecx, cl
test edx, edx
cmovns eax, ecx
mov ecx, dword [ebp - 0x164]
cmovns ecx, edx
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x164], ecx
test al, al
je 0x1004b556
push 0
push 0
push edi
call fcn.1007d35f
mov ecx, dword [ebp - 0x164]
add esp, 0xc
test eax, eax
sete al
mov dword [ebp - 0x15c], eax
test al, al
je 0x1004b556
lea eax, [ecx + 1]
push eax
call dword [0x100d0008]
add esp, 4
mov dword [ebp - 0x14c], eax
jmp 0x1004b55c
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x1004b577
push edi
push 1
push dword [ebp - 0x164]
push eax
call fcn.1007cee3
add esp, 0x10
cmp eax, 1
je 0x1004b57d
mov byte [ebp - 0x15c], bl
push edi
call fcn.100692aa
add esp, 4
cmp byte [ebp - 0x15c], bl
jne 0x1004b5cb
mov eax, dword [ebp - 0x144]
push dword [eax + 0x3f8]
push str.schannel:_Failed_to_read_cert_file__s
push eax
call fcn.1002f560
mov eax, dword [ebp - 0x14c]
push eax
call dword [0x100d000c]
add esp, 0x10
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e4a8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x178], eax
mov eax, dword [edx + 0x440]
test eax, eax
je 0x1004b601
mov ebx, eax
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1004b5f8
sub ebx, ecx
lea eax, [ebx*2 + 2]
push eax
call dword [0x100d0008]
mov edi, eax
add esp, 4
test edi, edi
je 0x1004b670
test ebx, ebx
je 0x1004b662
mov eax, dword [ebp - 0x144]
lea ecx, [ebx + 1]
push ecx
push edi
push ebx
push dword [eax + 0x440]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x1004b664
xor eax, eax
mov word [edi], ax
push 0
push edi
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push edi
mov ebx, eax
call dword [0x100d000c]
add esp, 4
jmp 0x1004b672
xor eax, eax
cmp eax, ebx
jg 0x1004b63f
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x1004b644
xor ebx, ebx
cmp dword [ebp - 0x170], 0
jne 0x1004b68a
push dword [ebp - 0x14c]
call dword [0x100d000c]
add esp, 4
test ebx, ebx
jne 0x1004b6f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x1004b6c6
push dword [ebp - 0x154]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push dword [ebp - 0x144]
call fcn.1002f560
add esp, 0xc
lea eax, [ebx + 0x3a]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e4a8
mov esp, ebp
pop ebp
ret
push eax
push dword [ebp - 0x154]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push dword [ebp - 0x144]
call fcn.1002f560
add esp, 0x10
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e4a8
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0x150], eax
test eax, eax
jne 0x1004b876
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x154]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push dword [ebp - 0x144]
call fcn.1002f560
add esp, 0x10
push 0
push ebx
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.1005e4a8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x168]
push ebx
or eax, 0x4000
push eax
push 0
push 0
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebp - 0x15c], eax
test eax, eax
jne 0x1004b7c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push dword [ebp - 0x168]
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push dword [ebp - 0x144]
call fcn.1002f560
push ebx
call dword [0x100d000c]
add esp, 0x18
test edi, edi
je 0x1004b7af
push edi
call fcn.1007c7d2
add esp, 4
pop edi
pop esi
mov eax, 0x3a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e4a8
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x100d000c]
add esp, 4
mov dword [ebp - 0x188], 0x14
lea eax, [ebp - 0x18]
mov dword [ebp - 0x184], eax
lea eax, [ebp - 0x188]
push 0
push 0
push eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0x28
push dword [ebp - 0x174]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x1004b837
test edi, edi
je 0x1004b812
push edi
call fcn.1007c7d2
add esp, 4
mov ebx, dword [ebp - 0x15c]
push 0
push ebx
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.1005e4a8
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x15c]
lea eax, [ebp - 0x188]
push 0
push eax
push 0x10000
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0x150], eax
test edi, edi
je 0x1004b872
push edi
call fcn.1007c7d2
mov eax, dword [ebp - 0x150]
add esp, 4
test eax, eax
je 0x1004b818
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov ebx, dword [ebp - 0x144]
mov edi, 0x198
push 0x18
push 1
call dword [0x100d0018]
mov ecx, dword [ebp - 0x180]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x1004b8d8
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.1002f560
mov eax, dword [ebp - 0x150]
add esp, 8
test eax, eax
je 0x1004b8c2
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.1005e4a8
mov esp, ebp
pop ebp
ret
push 3
push 2
push 0x4563
push 0
push 0xa
mov dword [eax + 0x14], 1
call fcn.10046e60
mov bl, byte [esi + 0xb0]
add esp, 0x14
test al, al
je 0x1004be4c
push 0x2c
lea eax, [ebp - 0x1b4]
push 0
push eax
call fcn.100600d0
push 0x70
xorps xmm0, xmm0
lea eax, [ebp - 0xac]
push 0
push eax
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call fcn.100600d0
xorps xmm0, xmm0
xor eax, eax
add esp, 0x18
movlpd qword [ebp - 0x16c], xmm0
movlpd qword [ebp - 0x160], xmm0
mov dword [ebp - 0x14c], eax
cmp bl, 2
jne 0x1004b96e
cmp dword [esi + 0x134], 0xffffffff
mov ecx, 0x1a8
cmovne edi, ecx
cmp dword [edi + esi], 2
je 0x1004b96e
mov edi, dword [esi + 0x218]
jmp 0x1004b974
mov edi, dword [esi + 0x1d8]
test edi, edi
je 0x1004bdd0
mov dh, 1
mov byte [ebp - 0x13d], 1
xor ecx, ecx
mov byte [ebp - 0x145], dh
mov al, dh
mov dword [ebp - 0x174], ecx
movups xmmword [ebp - 0x3c], xmm0
mov byte [ebp - 0x140], dh
movups xmmword [ebp - 0x2c], xmm0
mov byte [ebp - 0x13e], dh
mov byte [ebp - 0x13f], al
nop
cmp byte [edi], 0
je 0x1004bc0f
cmp ecx, 5
jge 0x1004bc0f
push 0x3a
push edi
call fcn.10060230
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1004b9d9
mov esi, ebx
sub esi, edi
jmp 0x1004b9e9
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x1004b9e0
sub esi, ecx
cmp esi, 0x1f
ja 0x1004bbe6
push esi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.1007d380
add esp, 0xc
cmp esi, 0x20
jae 0x1004c010
cmp byte [ebp - 0x13d], 0
mov byte [ebp + esi - 0x3c], 0
je 0x1004ba62
lea ecx, [ebp - 0x3c]
mov eax, str.TLS_AES_256_GCM_SHA384
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1004ba40
test dl, dl
je 0x1004ba3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1004ba40
add eax, 2
add ecx, 2
test dl, dl
jne 0x1004ba20
xor eax, eax
jmp 0x1004ba45
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1004ba62
mov al, byte [ebp - 0x13f]
xor ah, ah
mov dh, byte [ebp - 0x145]
mov byte [ebp - 0x13d], ah
jmp 0x1004bb97
mov dh, byte [ebp - 0x145]
test dh, dh
je 0x1004bab0
lea ecx, [ebp - 0x3c]
mov eax, str.TLS_AES_128_GCM_SHA256
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1004ba94
test dl, dl
je 0x1004ba90
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1004ba94
add eax, 2
add ecx, 2
test dl, dl
jne 0x1004ba74
xor eax, eax
jmp 0x1004ba99
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1004bab0
mov al, byte [ebp - 0x13f]
xor dh, dh
mov byte [ebp - 0x145], dh
jmp 0x1004bb91
cmp byte [ebp - 0x140], 0
je 0x1004bafb
lea ecx, [ebp - 0x3c]
mov eax, str.TLS_CHACHA20_POLY1305_SHA256
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1004bae1
test dl, dl
je 0x1004badd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1004bae1
add eax, 2
add ecx, 2
test dl, dl
jne 0x1004bac1
xor eax, eax
jmp 0x1004bae6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1004bafb
mov byte [ebp - 0x140], al
mov al, byte [ebp - 0x13f]
jmp 0x1004bb91
cmp byte [ebp - 0x13e], 0
je 0x1004bb4f
lea ecx, [ebp - 0x3c]
mov eax, str.TLS_AES_128_CCM_8_SHA256
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1004bb30
test dl, dl
je 0x1004bb2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1004bb30
add eax, 2
add ecx, 2
test dl, dl
jne 0x1004bb10
xor eax, eax
jmp 0x1004bb35
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1004bb4f
mov al, byte [ebp - 0x13f]
xor dl, dl
mov ah, byte [ebp - 0x13d]
mov byte [ebp - 0x13e], dl
jmp 0x1004bb9d
cmp byte [ebp - 0x13f], 0
je 0x1004bbbd
lea ecx, [ebp - 0x3c]
mov eax, str.TLS_AES_128_CCM_SHA256
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1004bb80
test dl, dl
je 0x1004bb7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1004bb80
add eax, 2
add ecx, 2
test dl, dl
jne 0x1004bb60
xor eax, eax
jmp 0x1004bb85
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1004bbbd
xor al, al
mov byte [ebp - 0x13f], al
mov ah, byte [ebp - 0x13d]
mov dl, byte [ebp - 0x13e]
mov edi, ebx
test ebx, ebx
je 0x1004bba6
lea edi, [ebx + 1]
mov ecx, dword [ebp - 0x174]
inc ecx
mov dword [ebp - 0x174], ecx
test edi, edi
jne 0x1004b9b0
jmp 0x1004bc1b
push str.Passed_in_an_unknown_TLS_1.3_cipher.
push dword [ebp - 0x144]
call fcn.1002f560
add esp, 8
mov eax, 0x3b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e4a8
mov esp, ebp
pop ebp
ret
push str.Cipher_name_too_long__not_checked.
push dword [ebp - 0x144]
call fcn.1002f560
add esp, 8
mov eax, 0x3b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e4a8
mov esp, ebp
pop ebp
ret
mov ah, byte [ebp - 0x13d]
mov dl, byte [ebp - 0x13e]
test ah, ah
je 0x1004bc5d
test dh, dh
je 0x1004bc5d
cmp byte [ebp - 0x140], 0
je 0x1004bc5d
test dl, dl
je 0x1004bc61
test al, al
je 0x1004bc5d
push str.All_available_TLS_1.3_ciphers_were_disabled.
push dword [ebp - 0x144]
call fcn.1002f560
add esp, 8
mov eax, 0x3b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e4a8
mov esp, ebp
pop ebp
ret
test dl, dl
jne 0x1004bc69
test al, al
je 0x1004bce7
mov dword [ebp - 0x16c], 0x200020
lea ecx, [ebp - 0x16c]
mov dword [ebp - 0x168], str.ChainingModeCCM
mov dword [ebp - 0xac], 2
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0xa8], 0x80008
mov dword [ebp - 0xa4], 0x100c297c
cmp dl, al
je 0x1004bcda
test dl, dl
je 0x1004bcd0
mov edi, 1
mov dword [ebp - 0x98], 0x80
mov dword [ebp - 0x14c], edi
jmp 0x1004bce9
mov dword [ebp - 0x94], 0x40
mov edi, 1
mov dword [ebp - 0x14c], edi
jmp 0x1004bce9
xor edi, edi
test ah, ah
jne 0x1004bcf5
test dh, dh
je 0x1004bd90
mov bh, byte [ebp - 0x145]
lea edx, [edi*8]
sub edx, edi
mov dword [ebp - 0x160], 0x200020
mov dword [ebp - 0x15c], str.ChainingModeGCM
cmp ah, bh
je 0x1004bd2d
test ah, ah
mov esi, str.SHA384
mov ecx, str.SHA256
cmove esi, ecx
jmp 0x1004bd32
mov esi, 0x100c297c
mov bl, byte [ebp - 0x13d]
xor eax, eax
cmp bl, bh
sete al
lea eax, [eax*4 + 4]
movzx ecx, ax
xor eax, eax
cmp bl, bh
setne al
add eax, 2
inc edi
mov dword [ebp + edx*4 - 0xac], eax
lea eax, [ebp - 0x160]
mov word [ebp + edx*4 - 0xa8], cx
mov word [ebp + edx*4 - 0xa6], cx
mov dword [ebp + edx*4 - 0xa4], esi
mov dword [ebp + edx*4 - 0x9c], eax
mov dword [ebp + edx*4 - 0xa0], 1
mov dword [ebp - 0x14c], edi
cmp byte [ebp - 0x140], 0
je 0x1004bdca
lea eax, [edi*8]
sub eax, edi
inc edi
mov dword [ebp - 0x14c], edi
mov dword [ebp + eax*4 - 0xac], 2
mov dword [ebp + eax*4 - 0xa8], 0x240024
mov dword [ebp + eax*4 - 0xa4], str.CHACHA20_POLY1305
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xac]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x18c], eax
or ecx, 0x400000
cmp dword [ebp - 0x150], 0
mov eax, dword [ebp - 0x17c]
not eax
mov dword [ebp - 0x190], 1
mov dword [ebp - 0x1b4], 5
mov dword [ebp - 0x194], ecx
mov dword [ebp - 0x14], eax
je 0x1004be35
lea eax, [ebp - 0x150]
mov dword [ebp - 0x1ac], 1
mov dword [ebp - 0x1a8], eax
mov ebx, dword [ebp - 0x180]
mov ecx, dword [ebx]
lea eax, [ecx + 8]
push eax
lea eax, [ebp - 0x1b4]
jmp 0x1004bf2d
cmp bl, 2
jne 0x1004be6e
cmp dword [esi + 0x134], 0xffffffff
mov eax, 0x1a8
cmovne edi, eax
cmp dword [edi + esi], 2
je 0x1004be6e
mov esi, dword [esi + 0x214]
jmp 0x1004be74
mov esi, dword [esi + 0x1d4]
push 0x38
lea eax, [ebp - 0x1c0]
push 0
push eax
call fcn.100600d0
mov ecx, dword [ebp - 0x158]
add esp, 0xc
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x1c0], 4
mov dword [ebp - 0x190], ecx
mov dword [ebp - 0x1a0], eax
test esi, esi
je 0x1004bef0
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x1c0]
push esi
push eax
call fcn.1004dbd0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1004befc
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push dword [ebp - 0x144]
call fcn.1002f560
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e4a8
mov esp, ebp
pop ebp
ret
or ecx, 0x400000
mov dword [ebp - 0x190], ecx
cmp dword [ebp - 0x150], 0
je 0x1004bf1b
lea eax, [ebp - 0x150]
mov dword [ebp - 0x1bc], 1
mov dword [ebp - 0x1b8], eax
mov ebx, dword [ebp - 0x180]
mov ecx, dword [ebx]
lea eax, [ecx + 8]
push eax
lea eax, [ebp - 0x1c0]
push ecx
push 0
push 0
push eax
mov eax, dword [0x100d1ec8]
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 [ebp - 0x150]
test eax, eax
je 0x1004bf5b
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x1004bfb5
push 0x100
lea eax, [ebp - 0x13c]
push eax
push esi
call fcn.10039400
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push dword [ebp - 0x144]
call fcn.1002f560
push dword [ebx]
call dword [0x100d000c]
add esp, 0x1c
mov dword [ebx], 0
cmp esi, 0x80090300
je 0x1004b8c2
pop edi
pop esi
mov eax, 0x23
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e4a8
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.1005e4a8
mov esp, ebp
pop ebp
ret
push str.SSL_versions_not_supported
push ebx
call fcn.1002f560
add esp, 8
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e4a8
mov esp, ebp
pop ebp
ret
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ebx
call fcn.1002f560
mov eax, 0x23
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e4a8
mov esp, ebp
pop ebp
ret
call fcn.1005e5da
nop dword [eax]
div byte [edx - 0x4037effc]
add al, 16
add byte [eax], al
add dword [ecx], eax
add byte [eax], al
add byte [eax], al
int3