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

Disassembly:
jmp 0x101152e0
mov eax, 0x7c
call fcn.100011c0
mov eax, dword [0x102293a4]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x84]
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x8c]
xor ebp, ebp
push edi
mov dword [esp + 0x30], eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x34], esi
xor edi, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
test esi, esi
jne 0x10115365
push 0xd1
push str.cryptopkcs7pk7_doit.c
push 0x8f
push 0x69
push 0x21
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1000b910
add esp, 0x7c
ret
cmp dword [esi + 0x14], eax
jne 0x10115397
push 0xdf
push str.cryptopkcs7pk7_doit.c
push 0x7a
push 0x69
push 0x21
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1000b910
add esp, 0x7c
ret
push dword [esi + 0x10]
call sym.libcrypto_1_1.dll_OBJ_obj2nid
add eax, 0xffffffeb
mov dword [esi + 8], ebx
add esp, 4
cmp eax, 4
ja case.default.0x101153b1
jmp dword [eax*4 + 0x10115868]
mov eax, dword [esi + 0x14]
mov edi, dword [eax + 4]
push dword [eax + 0x14]
jmp 0x1011542b
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x18]
mov edi, dword [eax + 4]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x20], ecx
mov ebx, dword [eax + 0xc]
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
test ebx, ebx
jne case.0x101153b1.21
push 0xf1
push str.cryptopkcs7pk7_doit.c
push 0x74
jmp 0x10115830
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov ebx, dword [eax + 0xc]
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
test ebx, ebx
jne case.0x101153b1.21
push 0xfa
push str.cryptopkcs7pk7_doit.c
push 0x74
jmp 0x10115830
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 4]
push dword [eax + 8]
mov dword [esp + 0x20], ecx
call fcn.10115d60
mov dword [esp + 0x28], eax
add esp, 4
push edi
xor esi, esi
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
add esp, 4
test eax, eax
jle 0x1011547b
lfence
nop dword [eax]
push esi
push edi
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10114380
add esp, 0x10
test eax, eax
je 0x101154c8
push edi
inc esi
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
add esp, 4
cmp esi, eax
jl 0x10115450
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10115499
push eax
lea eax, [esp + 0x14]
push eax
call fcn.10114380
add esp, 8
test eax, eax
je 0x101154c8
mov ebp, dword [esp + 0x10]
test ebx, ebx
je 0x1011574f
call sym.libcrypto_1_1.dll_BIO_f_cipher
push eax
call sym.libcrypto_1_1.dll_BIO_new
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x101154d1
push 0x117
push str.cryptopkcs7pk7_doit.c
push 0x20
jmp 0x10115830
mov ebp, dword [esp + 0x10]
jmp 0x1011583c
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x81
push eax
call sym.libcrypto_1_1.dll_BIO_ctrl
push ebx
call sym.libcrypto_1_1.dll_EVP_CIPHER_key_length
push ebx
mov dword [esp + 0x34], eax
call sym.libcrypto_1_1.dll_EVP_CIPHER_iv_length
push ebx
mov esi, eax
call sym.libcrypto_1_1.dll_EVP_CIPHER_type
push eax
call sym.libcrypto_1_1.dll_OBJ_nid2obj
mov edi, dword [esp + 0x34]
add esp, 0x20
mov dword [edi], eax
test esi, esi
jle 0x10115527
lea eax, [esp + 0x38]
push esi
push eax
lfence
call sym.libcrypto_1_1.dll_RAND_bytes
add esp, 8
test eax, eax
jle 0x1011583c
push 1
push 0
push 0
push 0
push ebx
push dword [esp + 0x24]
call sym.libcrypto_1_1.dll_EVP_CipherInit_ex
add esp, 0x18
test eax, eax
jle 0x1011583c
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call sym.libcrypto_1_1.dll_EVP_CIPHER_CTX_rand_key
add esp, 8
test eax, eax
jle 0x1011583c
push 1
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x50]
push eax
push 0
push 0
push dword [esp + 0x24]
call sym.libcrypto_1_1.dll_EVP_CipherInit_ex
add esp, 0x18
test eax, eax
jle 0x1011583c
test esi, esi
jle 0x101155b1
mov eax, dword [edi + 4]
test eax, eax
jne 0x1011559c
call sym.libcrypto_1_1.dll_ASN1_TYPE_new
mov dword [edi + 4], eax
test eax, eax
je 0x1011583c
push eax
push dword [esp + 0x14]
call sym.libcrypto_1_1.dll_EVP_CIPHER_param_to_asn1
add esp, 8
test eax, eax
js 0x1011583c
mov esi, dword [esp + 0x20]
xor ebx, ebx
push esi
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
add esp, 4
test eax, eax
jle 0x10115724
lfence
nop dword [eax + eax]
push ebx
push esi
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
xor edi, edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edi
push dword [eax + 0x10]
call sym.libcrypto_1_1.dll_X509_get0_pubkey
add esp, 0xc
test eax, eax
je 0x1011583c
push edi
push eax
call sym.libcrypto_1_1.dll_EVP_PKEY_CTX_new
mov esi, eax
add esp, 8
test esi, esi
je 0x1011583c
push esi
call sym.libcrypto_1_1.dll_EVP_PKEY_encrypt_init
add esp, 4
test eax, eax
jle 0x101156ea
push dword [esp + 0x28]
lfence
push edi
push 3
push 0x100
push 0xffffffffffffffff
push esi
call sym.libcrypto_1_1.dll_EVP_PKEY_CTX_ctrl
add esp, 0x18
test eax, eax
jg 0x10115657
push 0x6e
push str.cryptopkcs7pk7_doit.c
push 0x98
push 0x84
push 0x21
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
jmp 0x101156ea
push dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push esi
lfence
call sym.libcrypto_1_1.dll_EVP_PKEY_encrypt
add esp, 0x14
test eax, eax
jle 0x101156ea
push 0x75
push str.cryptopkcs7pk7_doit.c
push dword [esp + 0x1c]
call sym.libcrypto_1_1.dll_CRYPTO_malloc
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x101156aa
push 0x78
push str.cryptopkcs7pk7_doit.c
push 0x41
push 0x84
push 0x21
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
jmp 0x101156ea
push dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
lfence
call sym.libcrypto_1_1.dll_EVP_PKEY_encrypt
add esp, 0x14
test eax, eax
jle 0x101156ea
mov eax, dword [esp + 0x28]
lfence
push dword [esp + 0x14]
push edi
push dword [eax + 0xc]
call sym.libcrypto_1_1.dll_ASN1_STRING_set0
add esp, 0xc
mov dword [esp + 0x2c], 1
xor edi, edi
push esi
call sym.libcrypto_1_1.dll_EVP_PKEY_CTX_free
push 0x86
push str.cryptopkcs7pk7_doit.c
push edi
call sym.libcrypto_1_1.dll_CRYPTO_free
add esp, 0x10
cmp dword [esp + 0x2c], 0
jbe 0x1011583c
mov esi, dword [esp + 0x20]
inc ebx
push esi
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
add esp, 4
cmp ebx, eax
jl 0x101155d0
push dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push eax
lfence
call sym.libcrypto_1_1.dll_OPENSSL_cleanse
add esp, 8
test ebp, ebp
jne 0x10115742
mov ebp, dword [esp + 0x18]
jmp 0x1011574f
push dword [esp + 0x18]
push ebp
call sym.libcrypto_1_1.dll_BIO_push
add esp, 8
mov ebx, dword [esp + 0x30]
test ebx, ebx
jne 0x101157ea
mov esi, dword [esp + 0x34]
push dword [esi + 0x10]
call sym.libcrypto_1_1.dll_OBJ_obj2nid
add esp, 4
cmp eax, 0x16
jne 0x10115792
push ebx
push ebx
push 2
push esi
call sym.libcrypto_1_1.dll_PKCS7_ctrl
add esp, 0x10
test eax, eax
je 0x10115792
call sym.libcrypto_1_1.dll_BIO_s_null
push eax
call sym.libcrypto_1_1.dll_BIO_new
add esp, 4
mov ebx, eax
jmp 0x101157de
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x101157b0
mov eax, dword [ecx]
test eax, eax
jle 0x101157b0
push eax
push dword [ecx + 8]
call sym.libcrypto_1_1.dll_BIO_new_mem_buf
add esp, 8
mov ebx, eax
jmp 0x101157de
call sym.libcrypto_1_1.dll_BIO_s_mem
push eax
call sym.libcrypto_1_1.dll_BIO_new
mov ebx, eax
mov dword [esp + 0x1c], 0
add esp, 4
test ebx, ebx
je 0x1011583c
push 0
push 0
push 0x82
push ebx
call sym.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x10
mov dword [esp + 0x18], 0
test ebx, ebx
je 0x1011583c
test ebp, ebp
je 0x1011580d
push ebx
push ebp
call sym.libcrypto_1_1.dll_BIO_push
add esp, 8
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1000b910
add esp, 0x7c
ret
pop edi
mov ebp, ebx
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1000b910
add esp, 0x7c
ret
push 0x105
push str.cryptopkcs7pk7_doit.c
push 0x70
push 0x69
push 0x21
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
push ebp
call sym.libcrypto_1_1.dll_BIO_free_all
push dword [esp + 0x1c]
call sym.libcrypto_1_1.dll_BIO_free_all
mov ecx, dword [esp + 0x90]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000b910
add esp, 0x7c
ret