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

Disassembly:
mov eax, 0x4d4
call fcn.100b1990
push ebx
mov ebx, dword [esp + 0x4ec]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
je 0x100766fb
push ebx
call sym.LIBEAY32_smt.dll_X509_PURPOSE_get_id
push eax
call sym.LIBEAY32_smt.dll_OBJ_nid2sn
add esp, 8
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x100766fb
push 0x12b
push str..cryptopempem_lib.c
push 0x71
push 0x69
push 9
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
jmp 0x10076abf
mov esi, dword [esp + 0x4f4]
mov edi, dword [esp + 0x4e8]
push ebp
push esi
call edi
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
jge 0x1007673d
push 0x132
push str..cryptopempem_lib.c
push 0xd
push 0x69
push 9
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
mov dword [esp + 0x1c], 0
jmp 0x10076abf
push 0x138
add eax, 0x14
push str..cryptopempem_lib.c
push eax
call sym.LIBEAY32_smt.dll_CRYPTO_malloc
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x10076776
push 0x13b
push str..cryptopempem_lib.c
push 0x41
push 0x69
push 9
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
jmp 0x10076abf
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebp
push eax
push esi
call edi
add esp, 8
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x10076a7d
mov edi, dword [esp + 0x4fc]
test edi, edi
jne 0x100768da
mov eax, dword [esp + 0x504]
test eax, eax
jne 0x1007688e
mov esi, dword [esp + 0x508]
test esi, esi
je 0x100767ee
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
cmp eax, 0x400
jle 0x100767d2
mov eax, 0x400
mov ecx, eax
lea edi, [esp + 0xe4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x100768aa
call sym.LIBEAY32_smt.dll_EVP_get_pw_prompt
mov esi, eax
test esi, esi
jne 0x100767fe
mov esi, str.Enter_PEM_pass_phrase:
push 1
push esi
lea eax, [esp + 0xec]
push 0x400
push eax
call sym.LIBEAY32_smt.dll_EVP_read_pw_string
add esp, 0x10
test eax, eax
jne 0x10076863
lea edi, [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jge 0x1007688a
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push 4
add ecx, 0x40
push str.phrase_is_too_short__needs_to_be_at_least__d_chars_n
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
push 1
push esi
lea edx, [esp + 0xf8]
push 0x400
push edx
call sym.LIBEAY32_smt.dll_EVP_read_pw_string
add esp, 0x1c
test eax, eax
je 0x1007681a
push 0x69
push str..cryptopempem_lib.c
push 0x6d
push 0x64
push 9
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xe4]
rep stosd dword es:[edi], eax
jmp 0x100768b0
mov esi, ecx
jmp 0x100768ac
mov ecx, dword [esp + 0x508]
lea edx, [esp + 0xe4]
push ecx
push 1
push 0x400
push edx
call eax
add esp, 0x10
mov esi, eax
test esi, esi
jg 0x100768cd
push 0x14b
push str..cryptopempem_lib.c
push 0x6f
push 0x69
push 9
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
jmp 0x10076abf
mov eax, dword [esp + 0x10]
lea edi, [esp + 0xe4]
jmp 0x100768e1
mov esi, dword [esp + 0x500]
push 0
push 0
push eax
push ebp
call sym.LIBEAY32_smt.dll_RAND_add
mov eax, dword [ebx + 0xc]
add esp, 0x10
cmp eax, 0x10
jle 0x1007690e
push str.enc__iv_len____int_sizeof_iv_
push 0x155
push str..cryptopempem_lib.c
call sym.LIBEAY32_smt.dll_OpenSSLDie
add esp, 0xc
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x28]
push eax
push ecx
call sym.LIBEAY32_smt.dll_RAND_pseudo_bytes
add esp, 8
test eax, eax
jl 0x10076abf
lea edx, [esp + 0x38]
push 0
push edx
push 1
push esi
lea eax, [esp + 0x38]
push edi
push eax
call sym.LIBEAY32_smt.dll_EVP_md5
push eax
push ebx
call sym.LIBEAY32_smt.dll_EVP_BytesToKey
lea ecx, [esp + 0x104]
add esp, 0x20
cmp edi, ecx
jne 0x10076966
lea edx, [esp + 0xe4]
push 0x400
push edx
call sym.LIBEAY32_smt.dll_OPENSSL_cleanse
add esp, 8
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 0xc]
not ecx
dec ecx
lea ecx, [ecx + eax*2 + 0x24]
cmp ecx, 0x400
jbe 0x1007699a
push str.strlen_objstr_232enc__iv_len13___sizeof_buf
push 0x15e
push str..cryptopempem_lib.c
call sym.LIBEAY32_smt.dll_OpenSSLDie
add esp, 0xc
push 0x400
lea edx, [esp + 0xe8]
push str.Proc_Type:_4_
push edx
mov byte [esp + 0xf0], 0
call sym.LIBEAY32_smt.dll_BUF_strlcat
push 0x400
lea eax, [esp + 0xf4]
push str.ENCRYPTED
push eax
call sym.LIBEAY32_smt.dll_BUF_strlcat
push 0x400
lea ecx, [esp + 0x100]
push 0x100c5b80
push ecx
call sym.LIBEAY32_smt.dll_BUF_strlcat
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x4c]
push edx
push eax
lea edx, [esp + 0x110]
push ecx
push edx
call sym.LIBEAY32_smt.dll_PEM_dek_info
lea eax, [esp + 0x8c]
push eax
call sym.LIBEAY32_smt.dll_EVP_CIPHER_CTX_init
lea ecx, [esp + 0x60]
lea edx, [esp + 0x70]
push ecx
push edx
push 0
lea eax, [esp + 0x9c]
push ebx
push eax
call sym.LIBEAY32_smt.dll_EVP_EncryptInit_ex
mov ecx, dword [esp + 0x5c]
add esp, 0x4c
lea edx, [esp + 0x20]
lea eax, [esp + 0x58]
push ecx
push ebp
push edx
push ebp
push eax
call sym.LIBEAY32_smt.dll_EVP_EncryptUpdate
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x24]
add edx, ebp
push ecx
lea eax, [esp + 0x70]
push edx
push eax
call sym.LIBEAY32_smt.dll_EVP_EncryptFinal_ex
lea ecx, [esp + 0x78]
push ecx
call sym.LIBEAY32_smt.dll_EVP_CIPHER_CTX_cleanup
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
add esp, 0x24
add eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
jmp 0x10076a8d
mov dword [esp + 0x14], 1
mov byte [esp + 0xe4], 0
mov ecx, dword [esp + 0x4f0]
push eax
mov eax, dword [esp + 0x4f0]
lea edx, [esp + 0xe8]
push ebp
push edx
push eax
push ecx
call sym.LIBEAY32_smt.dll_PEM_write_bio
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jg 0x10076abf
mov dword [esp + 0x14], 0
lea edx, [esp + 0x38]
push 0x20
push edx
call sym.LIBEAY32_smt.dll_OPENSSL_cleanse
lea eax, [esp + 0x30]
push 0x10
push eax
call sym.LIBEAY32_smt.dll_OPENSSL_cleanse
lea ecx, [esp + 0x68]
push 0x8c
push ecx
call sym.LIBEAY32_smt.dll_OPENSSL_cleanse
lea edx, [esp + 0xfc]
push 0x400
push edx
call sym.LIBEAY32_smt.dll_OPENSSL_cleanse
add esp, 0x20
test ebp, ebp
je 0x10076b13
mov eax, dword [esp + 0x1c]
push eax
push ebp
call sym.LIBEAY32_smt.dll_OPENSSL_cleanse
push ebp
call sym.LIBEAY32_smt.dll_CRYPTO_free
add esp, 0xc
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4d4
ret