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

Disassembly:
mov eax, 0x8c
call fcn.10228380
mov eax, dword [0x1033b254]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x94]
xor ecx, ecx
push ebx
push ebp
mov dword [esp + 0x48], eax
xor ebp, ebp
mov eax, dword [esp + 0xa0]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xa8]
push edi
xor edi, edi
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x58], eax
test esi, esi
jne 0x1016bdbc
call sym.libcrypto_3.dll_ERR_new
push 0x102dac10
push 0x198
push str.cryptopkcs7pk7_doit.c
call sym.libcrypto_3.dll_ERR_set_debug
push ebx
push 0x8f
push 0x21
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
jmp 0x1016bebd
push esi
call fcn.1016f4b0
push eax
mov dword [esp + 0x50], eax
call fcn.1016f420
push dword [esp + 0x50]
mov ebp, eax
mov dword [esp + 0x68], ebp
call fcn.1016f430
add esp, 0xc
mov dword [esp + 0x3c], eax
cmp dword [esi + 0x14], ebx
jne 0x1016be13
call sym.libcrypto_3.dll_ERR_new
push 0x102dac10
push 0x1a1
push str.cryptopkcs7pk7_doit.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x7a
push 0x21
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
jmp 0x1016bebd
push dword [esi + 0x10]
call sym.libcrypto_3.dll_OBJ_obj2nid
add esp, 4
mov dword [esi + 8], ebx
sub eax, 0x16
je 0x1016c00e
sub eax, 1
je 0x1016bf78
sub eax, 1
je 0x1016bed8
call sym.libcrypto_3.dll_ERR_new
push 0x102dac10
push 0x1e4
push str.cryptopkcs7pk7_doit.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x70
push 0x21
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
xor ebp, ebp
push dword [esp + 0x34]
call sym.libcrypto_3.dll_EVP_CIPHER_free
push 0x292
push str.cryptopkcs7pk7_doit.c
push dword [esp + 0x20]
push ebp
call sym.libcrypto_3.dll_CRYPTO_clear_free
push 0x293
push str.cryptopkcs7pk7_doit.c
push dword [esp + 0x74]
push dword [esp + 0x38]
call sym.libcrypto_3.dll_CRYPTO_clear_free
push dword [esp + 0x50]
call sym.libcrypto_3.dll_BIO_free_all
push edi
call sym.libcrypto_3.dll_BIO_free_all
push dword [esp + 0x48]
call sym.libcrypto_3.dll_BIO_free_all
push dword [esp + 0x68]
call sym.libcrypto_3.dll_BIO_free_all
add esp, 0x34
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1022836f
add esp, 0x8c
ret
mov eax, dword [esi + 0x14]
push 0
mov ecx, dword [eax + 0x18]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], ebx
mov esi, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], esi
push dword [eax]
lea eax, [esp + 0x6c]
push 0x32
push eax
call sym.libcrypto_3.dll_OBJ_obj2txt
call sym.libcrypto_3.dll_ERR_set_mark
push dword [esp + 0x4c]
lea eax, [esp + 0x78]
push eax
push ebp
call sym.libcrypto_3.dll_EVP_CIPHER_fetch
add esp, 0x1c
mov dword [esp + 0x34], eax
test eax, eax
je 0x1016bf31
mov ebp, eax
mov dword [esp + 0x20], ebp
jmp 0x1016bf44
lea eax, [esp + 0x64]
push eax
call sym.libcrypto_3.dll_EVP_get_cipherbyname
add esp, 4
mov dword [esp + 0x20], eax
mov ebp, eax
test ebp, ebp
jne 0x1016bf6e
call sym.libcrypto_3.dll_ERR_clear_last_mark
call sym.libcrypto_3.dll_ERR_new
push 0x102dac10
push 0x1c9
push str.cryptopkcs7pk7_doit.c
call sym.libcrypto_3.dll_ERR_set_debug
push ebp
push 0x6f
jmp 0x1016be59
call sym.libcrypto_3.dll_ERR_pop_to_mark
jmp 0x1016c078
mov eax, dword [esi + 0x14]
push 0
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x50], ecx
push dword [ecx]
push 0x32
push eax
call sym.libcrypto_3.dll_OBJ_obj2txt
call sym.libcrypto_3.dll_ERR_set_mark
push dword [esp + 0x4c]
lea eax, [esp + 0x78]
push eax
push ebp
call sym.libcrypto_3.dll_EVP_CIPHER_fetch
add esp, 0x1c
mov dword [esp + 0x34], eax
test eax, eax
je 0x1016bfca
mov ebp, eax
mov dword [esp + 0x20], ebp
jmp 0x1016bfdd
lea eax, [esp + 0x64]
push eax
call sym.libcrypto_3.dll_EVP_get_cipherbyname
add esp, 4
mov dword [esp + 0x20], eax
mov ebp, eax
test ebp, ebp
jne 0x1016c007
call sym.libcrypto_3.dll_ERR_clear_last_mark
call sym.libcrypto_3.dll_ERR_new
push 0x102dac10
push 0x1de
push str.cryptopkcs7pk7_doit.c
call sym.libcrypto_3.dll_ERR_set_debug
push ebp
push 0x6f
jmp 0x1016be59
call sym.libcrypto_3.dll_ERR_pop_to_mark
jmp 0x1016c074
mov eax, dword [esi + 0x14]
push dword [eax + 0x14]
call sym.libcrypto_3.dll_PKCS7_get_octet_string
push dword [esi + 0x10]
mov ebx, eax
mov dword [esp + 0x38], ebx
call sym.libcrypto_3.dll_OBJ_obj2nid
add esp, 8
cmp eax, 0x16
jne 0x1016c042
push 0
push 0
push 2
push esi
call sym.libcrypto_3.dll_PKCS7_ctrl
add esp, 0x10
test eax, eax
jne 0x1016c06a
test ebx, ebx
jne 0x1016c06a
call sym.libcrypto_3.dll_ERR_new
push 0x102dac10
push 0x1b2
push str.cryptopkcs7pk7_doit.c
call sym.libcrypto_3.dll_ERR_set_debug
push ebx
push 0x9b
jmp 0x1016be59
mov eax, dword [esi + 0x14]
mov ebx, dword [eax + 4]
mov dword [esp + 0x40], ebx
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x1016c0a3
cmp dword [esp + 0x54], edi
jne 0x1016c0a3
call sym.libcrypto_3.dll_ERR_new
push 0x102dac10
push 0x1ea
push str.cryptopkcs7pk7_doit.c
call sym.libcrypto_3.dll_ERR_set_debug
push esi
push 0x7a
jmp 0x1016be59
test ebx, ebx
je 0x1016c17d
push ebx
xor ebp, ebp
call sym.libcrypto_3.dll_OPENSSL_sk_num
add esp, 4
test eax, eax
jle 0x1016c17d
nop
push ebp
push ebx
call sym.libcrypto_3.dll_OPENSSL_sk_value
mov esi, eax
call sym.libcrypto_3.dll_BIO_f_md
push eax
call sym.libcrypto_3.dll_BIO_new
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1016c20c
push 0
push dword [esi]
lea eax, [esp + 0x6c]
push 0x32
push eax
call sym.libcrypto_3.dll_OBJ_obj2txt
call sym.libcrypto_3.dll_ERR_set_mark
push dword [esp + 0x4c]
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x74]
call sym.libcrypto_3.dll_EVP_MD_fetch
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x1016c115
mov esi, ebx
jmp 0x1016c124
lea eax, [esp + 0x64]
push eax
call sym.libcrypto_3.dll_EVP_get_digestbyname
add esp, 4
mov esi, eax
test esi, esi
je 0x1016c1e5
call sym.libcrypto_3.dll_ERR_pop_to_mark
push esi
push 0
push 0x6f
push edi
call sym.libcrypto_3.dll_BIO_ctrl
push ebx
mov esi, eax
call sym.libcrypto_3.dll_EVP_MD_free
add esp, 0x14
test esi, esi
jle 0x1016c1d4
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jne 0x1016c15d
mov dword [esp + 0x2c], edi
jmp 0x1016c167
push edi
push ebx
call sym.libcrypto_3.dll_BIO_push
add esp, 8
mov ebx, dword [esp + 0x40]
inc ebp
push ebx
call sym.libcrypto_3.dll_OPENSSL_sk_num
add esp, 4
cmp ebp, eax
jl 0x1016c0c0
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x1016c4e8
call sym.libcrypto_3.dll_BIO_f_cipher
push eax
call sym.libcrypto_3.dll_BIO_new
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1016c231
call sym.libcrypto_3.dll_ERR_new
push 0x102dac10
push 0x217
push str.cryptopkcs7pk7_doit.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x80020
push 0x21
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
xor edi, edi
jmp 0x1016be63
call sym.libcrypto_3.dll_ERR_new
push 0x102dac10
push 0x209
jmp 0x1016c21b
call sym.libcrypto_3.dll_ERR_clear_last_mark
call sym.libcrypto_3.dll_ERR_new
push 0x102dac10
push 0x202
push str.cryptopkcs7pk7_doit.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x6d
jmp 0x1016be59
call sym.libcrypto_3.dll_ERR_new
push 0x102dac10
push 0x1f3
push str.cryptopkcs7pk7_doit.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x80020
jmp 0x1016be59
mov ebp, dword [esp + 0x44]
push ebp
call sym.libcrypto_3.dll_OPENSSL_sk_num
mov edi, dword [esp + 0x64]
add esp, 4
test edi, edi
je 0x1016c305
xor esi, esi
test eax, eax
jle 0x1016c29b
push esi
push ebp
call sym.libcrypto_3.dll_OPENSSL_sk_value
push edi
mov ebx, eax
call sym.libcrypto_3.dll_X509_get_issuer_name
push eax
mov eax, dword [ebx + 4]
push dword [eax]
call sym.libcrypto_3.dll_X509_NAME_cmp
add esp, 0x14
test eax, eax
jne 0x1016c28d
mov eax, dword [ebx + 4]
push dword [eax + 4]
push edi
call sym.libcrypto_3.dll_X509_get0_serialNumber
add esp, 4
push eax
call sym.libcrypto_3.dll_ASN1_INTEGER_cmp
add esp, 8
test eax, eax
je 0x1016c2c9
push ebp
inc esi
call sym.libcrypto_3.dll_OPENSSL_sk_num
add esp, 4
cmp esi, eax
jl 0x1016c250
call sym.libcrypto_3.dll_ERR_new
push 0x102dac10
push 0x22e
push str.cryptopkcs7pk7_doit.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x73
push 0x21
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
xor edi, edi
jmp 0x1016be63
mov eax, dword [esp + 0x48]
xor edi, edi
push edi
push dword [esp + 0x54]
mov dword [ebx + 0x14], eax
lea eax, [esp + 0x30]
push ebx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.1016e010
add esp, 0x14
test eax, eax
js 0x1016c365
call sym.libcrypto_3.dll_ERR_clear_error
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
jmp 0x1016c378
xor edi, edi
test eax, eax
jle 0x1016c376
nop dword [eax + eax]
push edi
push ebp
call sym.libcrypto_3.dll_OPENSSL_sk_value
mov esi, eax
mov eax, dword [esp + 0x50]
push ebx
mov dword [esi + 0x14], eax
call sym.libcrypto_3.dll_EVP_CIPHER_get_key_length
push eax
push dword [esp + 0x60]
lea eax, [esp + 0x3c]
push esi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.1016e010
add esp, 0x20
test eax, eax
js 0x1016c363
call sym.libcrypto_3.dll_ERR_clear_error
push ebp
inc edi
call sym.libcrypto_3.dll_OPENSSL_sk_num
add esp, 4
cmp edi, eax
jl 0x1016c310
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], eax
jmp 0x1016c378
xor edi, edi
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], eax
jmp 0x1016be65
xor ebp, ebp
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push 0x81
push dword [esp + 0x28]
call sym.libcrypto_3.dll_BIO_ctrl
xor edi, edi
push edi
push edi
push edi
push edi
push ebx
push dword [esp + 0x34]
call sym.libcrypto_3.dll_EVP_CipherInit_ex
add esp, 0x28
test eax, eax
jle 0x1016be65
mov eax, dword [esp + 0x4c]
push dword [eax + 4]
push dword [esp + 0x14]
call sym.libcrypto_3.dll_EVP_CIPHER_asn1_to_param
add esp, 8
test eax, eax
jle 0x1016be65
push dword [esp + 0x10]
call sym.libcrypto_3.dll_EVP_CIPHER_CTX_get_key_length
mov esi, eax
add esp, 4
test esi, esi
jle 0x1016be65
push 0x254
push str.cryptopkcs7pk7_doit.c
push esi
mov dword [esp + 0x64], esi
call sym.libcrypto_3.dll_CRYPTO_malloc
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x1016be65
push eax
push dword [esp + 0x14]
call sym.libcrypto_3.dll_EVP_CIPHER_CTX_rand_key
add esp, 8
test eax, eax
jle 0x1016be65
test ebp, ebp
jne 0x1016c42f
mov ebp, dword [esp + 0x18]
mov edi, esi
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
jmp 0x1016c437
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push dword [esp + 0x10]
call sym.libcrypto_3.dll_EVP_CIPHER_CTX_get_key_length
add esp, 4
cmp edi, eax
je 0x1016c47a
push edi
push dword [esp + 0x14]
call sym.libcrypto_3.dll_EVP_CIPHER_CTX_set_key_length
add esp, 8
test eax, eax
jg 0x1016c47a
push 0x267
push str.cryptopkcs7pk7_doit.c
push edi
push ebp
call sym.libcrypto_3.dll_CRYPTO_clear_free
add esp, 0x10
mov dword [esp + 0x14], esi
mov ebp, ebx
mov dword [esp + 0x18], 0
call sym.libcrypto_3.dll_ERR_clear_error
xor edi, edi
push edi
push edi
push ebp
push edi
push edi
push dword [esp + 0x24]
call sym.libcrypto_3.dll_EVP_CipherInit_ex
add esp, 0x18
test eax, eax
jle 0x1016be65
push 0x272
push str.cryptopkcs7pk7_doit.c
push dword [esp + 0x1c]
push ebp
call sym.libcrypto_3.dll_CRYPTO_clear_free
push 0x274
push str.cryptopkcs7pk7_doit.c
push esi
push dword [esp + 0x34]
xor ebp, ebp
call sym.libcrypto_3.dll_CRYPTO_clear_free
mov ebx, dword [esp + 0x4c]
add esp, 0x20
test ebx, ebx
jne 0x1016c4d9
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
jmp 0x1016c4ee
push dword [esp + 0x1c]
push ebx
call sym.libcrypto_3.dll_BIO_push
add esp, 8
jmp 0x1016c4ee
mov ebx, dword [esp + 0x2c]
xor ebp, ebp
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x1016c55c
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
test eax, eax
jle 0x1016c512
push eax
push dword [ecx + 8]
call sym.libcrypto_3.dll_BIO_new_mem_buf
add esp, 8
mov dword [esp + 0x38], eax
jmp 0x1016c54a
call sym.libcrypto_3.dll_BIO_s_mem
push eax
call sym.libcrypto_3.dll_BIO_new
xor edi, edi
mov dword [esp + 0x3c], eax
add esp, 4
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
test eax, eax
je 0x1016be65
push edi
push edi
push 0x82
push eax
call sym.libcrypto_3.dll_BIO_ctrl
mov eax, dword [esp + 0x48]
add esp, 0x10
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
test eax, eax
je 0x1016be65
push eax
push ebx
call sym.libcrypto_3.dll_BIO_push
push dword [esp + 0x3c]
call sym.libcrypto_3.dll_EVP_CIPHER_free
add esp, 0xc
mov eax, ebx
jmp 0x1016bebf