Function at 0x7bf510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x100
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov byte [ebx], 0
mov eax, dword [ecx]
mov dword [ecx], 0
test eax, eax
je 0x7bf546
push eax
call sym.adb.exe_SSL_SESSION_free
add esp, 4
mov eax, dword [ebp + 8]
push dword [eax]
call sym.adb.exe_SSL_get_options
add esp, 4
mov edi, 2
test eax, 0x4000
jne 0x7bf8a7
lea eax, [ebp + 0x1c]
cmp dword [eax + 4], 0x20
ja 0x7bf8a7
push dword [esp + 0x18]
call fcn.00736f40
add esp, 4
movzx eax, ax
cmp eax, 0x304
setae al
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x530]
test edx, edx
setne cl
and cl, al
cmp cl, 1
jne 0x7bf612
mov eax, dword [ebp + 8]
test byte [eax + 0x536], 0x10
jne 0x7bf612
mov esi, dword [edx + 0x3c]
test esi, esi
je 0x7bf603
mov ebx, edx
mov edi, dword [edx + 0x38]
push 0
call sym.adb.exe_OPENSSL_free
add esp, 4
mov dword [esp + 0x10], 0
push esi
call sym.adb.exe_OPENSSL_malloc
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x7bf8fd
mov dword [esp + 0x10], esi
push esi
push edi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
xor edi, edi
mov edx, ebx
jmp 0x7bf820
mov edi, 2
cmp byte [edx + 0x40], 0
jne 0x7bf820
mov byte [esp + 0xb], cl
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x38]
cmp dword [eax + 0x114], 0
je 0x7bf691
mov dword [esp + 0x14], edx
lea eax, [ebp + 0x14]
mov edi, dword [eax]
mov esi, dword [eax + 4]
push 0
call sym.adb.exe_OPENSSL_free
add esp, 4
test esi, esi
je 0x7bf7bc
push esi
call sym.adb.exe_OPENSSL_malloc
add esp, 4
mov ebx, eax
test eax, eax
jne 0x7bf7be
push 0x13e
push 0x935777
push 0x41
push 0
push 0x10
call sym.adb.exe_ERR_put_error
add esp, 0x14
push 0xf5e
push str.external_boringssl_src_ssl_extensions.cc
push 0x41
push 0
push 0x10
call sym.adb.exe_ERR_put_error
add esp, 0x14
mov edi, 3
jmp 0x7bf80a
mov edi, 2
lea ecx, [ebp + 0x14]
cmp dword [ecx + 4], 0x20
jb 0x7bf819
mov dword [esp + 0x14], edx
cmp dword [eax + 0xb8], 0
lea eax, [ebp + 0x14]
mov edi, dword [eax]
mov esi, dword [eax + 4]
je 0x7bf921
xorps xmm0, xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0xf0], 0
lea ecx, [esp + 0x70]
push ecx
call sym.adb.exe_EVP_CIPHER_CTX_init
add esp, 4
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x60], 0
lea eax, [esp + 0x30]
push eax
call sym.adb.exe_HMAC_CTX_init
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, 0xf
jbe 0x7bf99e
mov eax, edi
add eax, 0x10
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x38]
push 0
lea esi, [esp + 0x34]
push esi
lea esi, [esp + 0x78]
push esi
push eax
push edi
push ecx
call dword [edx + 0xb8]
add esp, 0x18
test eax, eax
js 0x7bf954
je 0x7bf97d
cmp eax, 2
jne 0x7bf783
mov byte [ebx], 1
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 4], xmm0
lea esi, [esp + 0x3c]
mov dword [esp], esi
lea ecx, [esp + 0x18]
lea edx, [esp + 0x7c]
call fcn.007c3ab0
add esp, 0xc
mov edi, eax
jmp 0x7bf986
xor ebx, ebx
mov dword [esp + 0x70], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x38]
mov ecx, dword [ecx + 0x114]
lea edx, [esp + 0x70]
push esi
push edi
push esi
push edx
push ebx
push eax
call dword [ecx + 8]
add esp, 0x18
mov edi, eax
test eax, eax
jne 0x7bf80c
mov eax, dword [esp + 0x70]
cmp eax, esi
ja 0x7bf99e
mov esi, eax
push 0
call sym.adb.exe_OPENSSL_free
add esp, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
xor ebx, ebx
push ebx
call sym.adb.exe_OPENSSL_free
add esp, 4
mov edx, dword [esp + 0x14]
cmp byte [esp + 0xb], 0
je 0x7bf82c
mov eax, dword [ebp + 8]
test byte [eax + 0x536], 0x10
jne 0x7bf882
test edi, edi
jne 0x7bf89b
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push dword [eax + 0x34]
push edi
push esi
call sym.adb.exe_SSL_SESSION_from_bytes
add esp, 0xc
test eax, eax
je 0x7bf891
mov esi, eax
add eax, 0x44
push eax
lea eax, [ebp + 0x14]
push dword [eax + 4]
push dword [eax]
call sym.adb.exe_SHA256
add esp, 0xc
mov dword [esi + 0x40], 0x20
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
mov dword [ebx], esi
xor edi, edi
test eax, eax
je 0x7bf89b
push eax
call sym.adb.exe_SSL_SESSION_free
add esp, 4
jmp 0x7bf89b
test edi, edi
je 0x7bf8b1
cmp edi, 2
jne 0x7bf89b
mov byte [edx + 0x40], 1
jmp 0x7bf896
call sym.adb.exe_ERR_clear_error
mov edi, 2
push dword [esp + 0xc]
call sym.adb.exe_OPENSSL_free
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
push dword [edx + 0x38]
mov ebx, edx
call sym.adb.exe_OPENSSL_free
mov eax, ebx
add esp, 4
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
test edi, edi
je 0x7bf94d
push edi
call sym.adb.exe_OPENSSL_malloc
add esp, 4
mov dword [ebx + 0x38], eax
test eax, eax
je 0x7bf95b
mov dword [ebx + 0x3c], edi
push edi
push esi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x7bf838
push 0x13e
push 0x935777
push 0x41
push 0
push 0x10
call sym.adb.exe_ERR_put_error
add esp, 0x14
mov edi, 3
mov edx, ebx
jmp 0x7bf820
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
sub esp, 8
movsd xmm0, qword [esp + 0x28]
movsd qword [esp], xmm0
lea edx, [esp + 0x14]
mov ecx, dword [ebp + 8]
call 0x7bf9b0
add esp, 8
mov edi, eax
jmp 0x7bf815
xor edi, edi
jmp 0x7bf838
mov edi, 3
jmp 0x7bf982
push 0x13e
push 0x935777
push 0x41
push 0
push 0x10
call sym.adb.exe_ERR_put_error
add esp, 0x14
mov edi, 3
jmp 0x7bf89b
mov edi, 2
lea esi, [esp + 0x30]
push esi
call sym.adb.exe_HMAC_CTX_cleanup
add esp, 4
lea eax, [esp + 0x70]
push eax
call sym.adb.exe_EVP_CIPHER_CTX_cleanup
jmp 0x7bf812
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop word cs:[eax + eax]
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x100
mov esi, edx
mov eax, dword [ecx]
mov ebx, dword [eax + 0x38]
push ebx
call fcn.0074ca20
add esp, 4
test eax, eax
je 0x7bfc56
mov dword [esp + 0x14], esi
lea edi, [ebp + 8]
call sym.adb.exe_EVP_aes_128_cbc
mov esi, dword [edi]
mov edi, dword [edi + 4]
cmp edi, 0x10
mov ecx, 0x10
cmovb ecx, edi
mov dword [esp + 8], ecx
mov dword [esp + 0x18], eax
push eax
call sym.adb.exe_EVP_CIPHER_iv_length
add esp, 4
mov dword [esp + 0x1c], edi
cmp edi, 0xf
jbe 0x7bfc77
xorps xmm0, xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0xf0], 0
lea eax, [esp + 0x70]
push eax
call sym.adb.exe_EVP_CIPHER_CTX_init
add esp, 4
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x60], 0
lea eax, [esp + 0x30]
push eax
call sym.adb.exe_HMAC_CTX_init
add esp, 4
lea eax, [ebx + 8]
mov dword [esp + 0x10], eax
push eax
call sym.adb.exe_CRYPTO_MUTEX_lock_read
add esp, 4
mov dword [esp + 0x20], ebx
mov ebx, dword [ebx + 0xb0]
test ebx, ebx
je 0x7bfb18
mov eax, dword [esp + 8]
lea ecx, [esi + eax]
mov dword [esp + 0xc], ecx
add eax, ebx
mov dword [esp + 0x24], eax
xor edx, edx
nop word cs:[eax + eax]
movzx eax, byte [esi + edx]
cmp al, byte [ebx + edx]
jne 0x7bfb18
lea edi, [ebx + edx]
lea eax, [esi + edx]
movzx ecx, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x7bfb18
movzx ecx, byte [eax + 2]
cmp cl, byte [edi + 2]
jne 0x7bfb18
movzx ecx, byte [eax + 3]
cmp cl, byte [edi + 3]
jne 0x7bfb18
add eax, 4
cmp eax, dword [esp + 0xc]
je 0x7bfb9f
add edi, 4
add edx, 4
cmp edi, dword [esp + 0x24]
jne 0x7bfad0
jmp 0x7bfb9f
mov eax, dword [esp + 0x20]
mov ebx, dword [eax + 0xb4]
test ebx, ebx
je 0x7bfc29
cmp dword [esp + 0x1c], 0x10
jb 0x7bfc29
mov eax, dword [esp + 8]
lea ecx, [esi + eax]
mov dword [esp + 0xc], ecx
add eax, ebx
mov dword [esp + 8], eax
xor ecx, ecx
nop dword [eax + eax]
movzx edx, byte [esi + ecx]
cmp dl, byte [ebx + ecx]
jne 0x7bfc29
lea edx, [ebx + ecx]
lea edi, [esi + ecx]
movzx eax, byte [edi + 1]
cmp al, byte [edx + 1]
jne 0x7bfc29
movzx eax, byte [edi + 2]
cmp al, byte [edx + 2]
jne 0x7bfc29
movzx eax, byte [edi + 3]
cmp al, byte [edx + 3]
jne 0x7bfc29
add edi, 4
cmp edi, dword [esp + 0xc]
je 0x7bfb9f
add edx, 4
add ecx, 4
cmp edx, dword [esp + 8]
jne 0x7bfb50
lea edi, [ebx + 0x10]
call sym.adb.exe_EVP_sha256
push 0
push eax
push 0x10
push edi
lea eax, [esp + 0x40]
push eax
call sym.adb.exe_HMAC_Init_ex
add esp, 0x14
test eax, eax
je 0x7bfc65
add esi, 0x10
add ebx, 0x20
push esi
push ebx
push 0
push dword [esp + 0x24]
lea edi, [esp + 0x80]
push edi
call sym.adb.exe_EVP_DecryptInit_ex
add esp, 0x14
mov esi, eax
push dword [esp + 0x10]
call sym.adb.exe_CRYPTO_MUTEX_unlock_read
add esp, 4
test esi, esi
je 0x7bfc70
lea eax, [ebp + 8]
movsd xmm0, qword [eax]
movsd qword [esp + 0x28], xmm0
sub esp, 0xc
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x3c]
mov dword [esp], eax
lea edx, [esp + 0x7c]
mov ecx, dword [esp + 0x20]
call fcn.007c3ab0
add esp, 0xc
mov esi, eax
jmp 0x7bfc3e
lea edi, [esp + 0x70]
mov esi, 2
push dword [esp + 0x10]
call sym.adb.exe_CRYPTO_MUTEX_unlock_read
add esp, 4
lea eax, [esp + 0x30]
push eax
call sym.adb.exe_HMAC_CTX_cleanup
add esp, 4
push edi
call sym.adb.exe_EVP_CIPHER_CTX_cleanup
add esp, 4
jmp 0x7bfc5b
mov esi, 3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, 3
lea edi, [esp + 0x70]
jmp 0x7bfc32
mov esi, 3
jmp 0x7bfc3e
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop dword [eax]