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

Disassembly:
mov eax, 0x60
call fcn.10086e00
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x3c]
xor edi, edi
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
call sym.LIBEAY32.dll_EVP_MD_CTX_init
mov ebp, dword [esp + 0x78]
mov ecx, dword [ebp + 0x10]
push ecx
call sym.LIBEAY32.dll_OBJ_obj2nid
add esp, 8
sub eax, 0x16
mov dword [ebp + 8], edi
je 0x1006f4e6
dec eax
je 0x1006f460
dec eax
jne 0x1006f485
mov edx, dword [ebp + 0x14]
push 4
mov ebx, dword [edx + 0x10]
mov dword [esp + 0x18], ebx
call sym.LIBEAY32.dll_ASN1_STRING_type_new
add esp, 4
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x1006f452
push 0x213
jmp 0x1006f9a5
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov dword [edx + 8], eax
jmp 0x1006f572
push 4
call sym.LIBEAY32.dll_ASN1_STRING_type_new
add esp, 4
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x1006f47c
push 0x21c
jmp 0x1006f9a5
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 0x10]
push ecx
call sym.LIBEAY32.dll_OBJ_obj2nid
add esp, 4
cmp eax, 0x16
jne 0x1006f4ad
push 0
push 0
push 2
push ebp
call sym.LIBEAY32.dll_PKCS7_ctrl
add esp, 0x10
test eax, eax
jne 0x1006fa31
mov edx, dword [esp + 0x78]
push 0x401
push edx
call sym.LIBEAY32.dll_BIO_find_type
mov esi, eax
add esp, 8
test esi, esi
jne 0x1006f9ee
push 0x2a9
push str..cryptopkcs7pk7_doit.c
push 0x6b
push 0x6a
push 0x21
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x1006fa39
mov eax, dword [ebp + 0x14]
mov esi, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x14], ecx
mov edx, dword [esi + 0x10]
push edx
call sym.LIBEAY32.dll_OBJ_obj2nid
add esp, 4
cmp eax, 0x15
jne 0x1006f50d
mov eax, dword [esi + 0x14]
mov dword [esp + 0x10], eax
jmp 0x1006f53c
mov ecx, dword [esi + 0x10]
push ecx
call sym.LIBEAY32.dll_OBJ_obj2nid
add esp, 4
cmp eax, 0x15
jl 0x1006f523
cmp eax, 0x1a
jle 0x1006f538
mov esi, dword [esi + 0x14]
cmp esi, edi
je 0x1006f538
cmp dword [esi], 4
jne 0x1006f538
mov edx, dword [esi + 4]
mov dword [esp + 0x10], edx
jmp 0x1006f53c
mov dword [esp + 0x10], edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x10]
push edx
call sym.LIBEAY32.dll_OBJ_obj2nid
add esp, 4
cmp eax, 0x15
jne 0x1006f56e
cmp dword [ebp + 0xc], edi
je 0x1006f56e
mov eax, dword [esp + 0x10]
push eax
call sym.LIBEAY32.dll_ASN1_STRING_free
mov ecx, dword [ebp + 0x14]
add esp, 4
mov edx, dword [ecx + 0x14]
mov dword [edx + 0x14], edi
mov ebx, dword [esp + 0x14]
cmp ebx, edi
je 0x1006f485
call sym.LIBEAY32.dll_BUF_MEM_new
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x1006f5a4
push 0x230
push str..cryptopkcs7pk7_doit.c
push 0x20
push 0x6a
push 0x21
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x1006fa39
push ebx
mov dword [esp + 0x2c], edi
call sym.LIBEAY32.dll_sk_num
add esp, 4
test eax, eax
jle 0x1006f485
push edi
push ebx
call sym.LIBEAY32.dll_sk_value
mov esi, eax
add esp, 8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1006f8fd
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push ecx
call sym.LIBEAY32.dll_OBJ_obj2nid
mov ebx, eax
mov eax, dword [esp + 0x7c]
add esp, 4
push 0x208
push eax
call sym.LIBEAY32.dll_BIO_find_type
mov edi, eax
add esp, 8
test edi, edi
je 0x1006f93b
lea edx, [esp + 0x2c]
push edx
push 0
push 0x78
push edi
call sym.LIBEAY32.dll_BIO_ctrl
mov eax, dword [esp + 0x3c]
add esp, 0x10
test eax, eax
je 0x1006f958
mov ecx, dword [eax]
cmp dword [ecx], ebx
je 0x1006f628
push edi
call sym.LIBEAY32.dll_BIO_next
jmp 0x1006f5e1
lea edx, [esp + 0x3c]
push eax
push edx
call sym.LIBEAY32.dll_EVP_MD_CTX_copy_ex
mov eax, dword [esi + 0x1c]
push eax
call sym.LIBEAY32.dll_EVP_PKEY_size
mov edi, dword [esp + 0x24]
push eax
push edi
call sym.LIBEAY32.dll_BUF_MEM_grow_clean
add esp, 0x14
test eax, eax
je 0x1006f975
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esp + 0x38], eax
je 0x1006f8ab
push eax
call sym.LIBEAY32.dll_sk_num
add esp, 4
test eax, eax
je 0x1006f8ab
mov ebx, dword [esi + 0xc]
push 0x34
mov dword [esp + 0x20], 0
call sym.LIBEAY32.dll_OBJ_nid2obj
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
je 0x1006f6f8
test ebx, ebx
je 0x1006f6f8
push ebx
xor ebp, ebp
call sym.LIBEAY32.dll_sk_num
add esp, 4
test eax, eax
jle 0x1006f6f8
push ebp
push ebx
call sym.LIBEAY32.dll_sk_value
mov ecx, dword [esp + 0x38]
mov edi, eax
push ecx
mov edx, dword [edi]
push edx
call sym.LIBEAY32.dll_OBJ_cmp
add esp, 0x10
test eax, eax
je 0x1006f6cf
push ebx
inc ebp
call sym.LIBEAY32.dll_sk_num
add esp, 4
cmp ebp, eax
jl 0x1006f6a2
jmp 0x1006f6f8
mov eax, dword [edi + 4]
test eax, eax
jne 0x1006f6f8
mov eax, dword [edi + 8]
push eax
call sym.LIBEAY32.dll_sk_num
add esp, 4
test eax, eax
je 0x1006f6f8
mov ecx, dword [edi + 8]
push 0
push ecx
call sym.LIBEAY32.dll_sk_value
add esp, 8
test eax, eax
jne 0x1006f734
push 0
push 0
call sym.LIBEAY32.dll_X509_gmtime_adj
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1006f992
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1006f793
call sym.LIBEAY32.dll_sk_new_null
mov dword [esi + 0xc], eax
push ebp
push 0x17
push 0x34
call sym.LIBEAY32.dll_X509_ATTRIBUTE_create
push eax
mov eax, dword [esi + 0xc]
push eax
call sym.LIBEAY32.dll_sk_push
add esp, 0x14
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x34]
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call sym.LIBEAY32.dll_EVP_DigestFinal_ex
push 4
call sym.LIBEAY32.dll_ASN1_STRING_type_new
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1006f999
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x4c]
push edx
push eax
push ebp
call sym.LIBEAY32.dll_ASN1_STRING_set
add esp, 0xc
test eax, eax
je 0x1006f9a0
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1006f7fb
call sym.LIBEAY32.dll_sk_new_null
mov dword [esi + 0xc], eax
jmp 0x1006f83b
push eax
xor edi, edi
call sym.LIBEAY32.dll_sk_num
add esp, 4
test eax, eax
jle 0x1006f71d
mov edx, dword [esi + 0xc]
push edi
push edx
call sym.LIBEAY32.dll_sk_value
mov ebx, eax
mov eax, dword [ebx]
push eax
call sym.LIBEAY32.dll_OBJ_obj2nid
add esp, 0xc
cmp eax, 0x34
je 0x1006f7d8
mov ecx, dword [esi + 0xc]
inc edi
push ecx
call sym.LIBEAY32.dll_sk_num
add esp, 4
cmp edi, eax
jl 0x1006f7a6
jmp 0x1006f71d
push ebx
call sym.LIBEAY32.dll_X509_ATTRIBUTE_free
push ebp
push 0x17
push 0x34
call sym.LIBEAY32.dll_X509_ATTRIBUTE_create
mov edx, dword [esi + 0xc]
push eax
push edi
push edx
call sym.LIBEAY32.dll_sk_set
add esp, 0x1c
jmp 0x1006f734
push eax
xor edi, edi
call sym.LIBEAY32.dll_sk_num
add esp, 4
test eax, eax
jle 0x1006f83b
mov ecx, dword [esi + 0xc]
push edi
push ecx
call sym.LIBEAY32.dll_sk_value
mov ebx, eax
mov edx, dword [ebx]
push edx
call sym.LIBEAY32.dll_OBJ_obj2nid
add esp, 0xc
cmp eax, 0x33
je 0x1006f918
mov eax, dword [esi + 0xc]
inc edi
push eax
call sym.LIBEAY32.dll_sk_num
add esp, 4
cmp edi, eax
jl 0x1006f80a
push ebp
push 4
push 0x33
call sym.LIBEAY32.dll_X509_ATTRIBUTE_create
mov edx, dword [esi + 0xc]
push eax
push edx
call sym.LIBEAY32.dll_sk_push
add esp, 0x14
mov eax, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x40]
push eax
push ecx
call sym.LIBEAY32.dll_EVP_DigestInit_ex
call sym.LIBEAY32.dll_PKCS7_ATTR_SIGN_it
push eax
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x2c]
push edx
push eax
call sym.LIBEAY32.dll_ASN1_item_i2d
mov ecx, dword [esp + 0x34]
add esp, 0x18
test ecx, ecx
je 0x1006fa39
push eax
push ecx
lea ecx, [esp + 0x44]
push ecx
call sym.LIBEAY32.dll_EVP_DigestUpdate
mov edx, dword [esp + 0x28]
push edx
call sym.LIBEAY32.dll_CRYPTO_free
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x84]
add esp, 0x10
mov eax, dword [esi + 0x1c]
cmp dword [eax], 0x74
jne 0x1006f8bc
call sym.LIBEAY32.dll_EVP_dss1
mov dword [esp + 0x3c], eax
mov ecx, dword [esi + 0x1c]
mov edx, dword [edi + 4]
push ecx
push edi
lea eax, [esp + 0x44]
push edx
push eax
call sym.LIBEAY32.dll_EVP_SignFinal
add esp, 0x10
test eax, eax
je 0x1006f9ba
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [esi + 0x14]
push ecx
push edx
push eax
call sym.LIBEAY32.dll_ASN1_STRING_set
add esp, 0xc
test eax, eax
je 0x1006f9d4
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
inc edi
push ebx
mov dword [esp + 0x2c], edi
call sym.LIBEAY32.dll_sk_num
add esp, 4
cmp edi, eax
jl 0x1006f5b9
jmp 0x1006f485
push ebx
call sym.LIBEAY32.dll_X509_ATTRIBUTE_free
push ebp
push 4
push 0x33
call sym.LIBEAY32.dll_X509_ATTRIBUTE_create
mov ecx, dword [esi + 0xc]
push eax
push edi
push ecx
call sym.LIBEAY32.dll_sk_set
add esp, 0x1c
jmp 0x1006f852
push 0x240
push str..cryptopkcs7pk7_doit.c
push 0x6c
push 0x6a
push 0x21
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x1006fa39
push 0x246
push str..cryptopkcs7pk7_doit.c
push 0x44
push 0x6a
push 0x21
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x1006fa39
push 0x254
push str..cryptopkcs7pk7_doit.c
push 0x20
push 0x6a
push 0x21
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x1006fa39
push 0x26b
jmp 0x1006f9a5
push 0x279
jmp 0x1006f9a5
push 0x280
push str..cryptopkcs7pk7_doit.c
push 0x41
push 0x6a
push 0x21
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x1006fa39
push 0x298
push str..cryptopkcs7pk7_doit.c
push 6
push 0x6a
push 0x21
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x1006fa39
push 0x29e
push str..cryptopkcs7pk7_doit.c
push 0xd
push 0x6a
push 0x21
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x1006fa39
lea eax, [esp + 0x20]
push eax
push 0
push 0x73
push esi
call sym.LIBEAY32.dll_BIO_ctrl
mov ebp, dword [esi + 0x14]
push 0
push 0
or ebp, 0x200
push 0x82
push esi
mov dword [esi + 0x14], ebp
call sym.LIBEAY32.dll_BIO_ctrl
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
add esp, 0x20
mov edx, dword [ecx + 4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov dword [eax], edx
mov dword [esp + 0x24], 1
lea eax, [esp + 0x3c]
push eax
call sym.LIBEAY32.dll_EVP_MD_CTX_cleanup
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x1006fa5b
push eax
call sym.LIBEAY32.dll_BUF_MEM_free
add esp, 4
mov eax, dword [esp + 0x14]
add esp, 0x60
ret