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

Disassembly:
mov eax, 0x4d4
call fcn.10086e00
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 0x10058317
mov eax, dword [ebx]
push eax
call sym.LIBEAY32.dll_OBJ_nid2sn
add esp, 4
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x10058317
push 0x129
push str..cryptopempem_lib.c
push 0x71
push 0x69
push 9
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x100586d3
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 0x10058359
push 0x130
push str..cryptopempem_lib.c
push 0xd
push 0x69
push 9
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
mov dword [esp + 0x1c], 0
jmp 0x100586d3
push 0x136
add eax, 0x14
push str..cryptopempem_lib.c
push eax
call sym.LIBEAY32.dll_CRYPTO_malloc
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x10058392
push 0x139
push str..cryptopempem_lib.c
push 0x41
push 0x69
push 9
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x100586d3
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
push ecx
push esi
call edi
add esp, 8
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x10058691
mov edi, dword [esp + 0x4fc]
test edi, edi
jne 0x100584f6
mov eax, dword [esp + 0x504]
test eax, eax
jne 0x100584aa
mov esi, dword [esp + 0x508]
test esi, esi
je 0x1005840a
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
cmp eax, 0x400
jle 0x100583ee
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 0x100584c6
call sym.LIBEAY32.dll_EVP_get_pw_prompt
mov esi, eax
test esi, esi
jne 0x1005841a
mov esi, str.Enter_PEM_pass_phrase:
push 1
push esi
lea eax, [esp + 0xec]
push 0x400
push eax
call sym.LIBEAY32.dll_EVP_read_pw_string
add esp, 0x10
test eax, eax
jne 0x1005847f
lea edi, [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jge 0x100584a6
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.dll_EVP_read_pw_string
add esp, 0x1c
test eax, eax
je 0x10058436
push 0x69
push str..cryptopempem_lib.c
push 0x6d
push 0x64
push 9
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xe4]
rep stosd dword es:[edi], eax
jmp 0x100584cc
mov esi, ecx
jmp 0x100584c8
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 0x100584e9
push 0x149
push str..cryptopempem_lib.c
push 0x6f
push 0x69
push 9
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x100586d3
mov eax, dword [esp + 0x10]
lea edi, [esp + 0xe4]
jmp 0x100584fd
mov esi, dword [esp + 0x500]
push 0
push 0
push eax
push ebp
call sym.LIBEAY32.dll_RAND_add
mov eax, dword [ebx + 0xc]
add esp, 0x10
cmp eax, 0x10
jbe 0x1005852a
push str.enc__iv_len___sizeof_iv
push 0x153
push str..cryptopempem_lib.c
call sym.LIBEAY32.dll_OpenSSLDie
add esp, 0xc
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x28]
push eax
push ecx
call sym.LIBEAY32.dll_RAND_pseudo_bytes
add esp, 8
test eax, eax
jl 0x100586d3
lea edx, [esp + 0x38]
push 0
push edx
push 1
push esi
lea eax, [esp + 0x38]
push edi
push eax
call sym.LIBEAY32.dll_EVP_md5
push eax
push ebx
call sym.LIBEAY32.dll_EVP_BytesToKey
lea ecx, [esp + 0x104]
add esp, 0x20
cmp edi, ecx
jne 0x10058582
lea edx, [esp + 0xe4]
push 0x400
push edx
call sym.LIBEAY32.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 0x100585b6
push str.strlen_objstr_232enc__iv_len13___sizeof_buf
push 0x15c
push str..cryptopempem_lib.c
call sym.LIBEAY32.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.dll_BUF_strlcat
push 0x400
lea eax, [esp + 0xf4]
push str.ENCRYPTED
push eax
call sym.LIBEAY32.dll_BUF_strlcat
push 0x400
lea ecx, [esp + 0x100]
push 0x10093990
push ecx
call sym.LIBEAY32.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.dll_PEM_dek_info
lea eax, [esp + 0x8c]
push eax
call sym.LIBEAY32.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.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.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.dll_EVP_EncryptFinal_ex
lea ecx, [esp + 0x78]
push ecx
call sym.LIBEAY32.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
jmp 0x10058699
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
mov dword [esp + 0x28], 1
call sym.LIBEAY32.dll_PEM_write_bio
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jg 0x100586d3
mov dword [esp + 0x14], 0
lea edx, [esp + 0x38]
push 0x20
push edx
call sym.LIBEAY32.dll_OPENSSL_cleanse
lea eax, [esp + 0x30]
push 0x10
push eax
call sym.LIBEAY32.dll_OPENSSL_cleanse
lea ecx, [esp + 0x68]
push 0x8c
push ecx
call sym.LIBEAY32.dll_OPENSSL_cleanse
lea edx, [esp + 0xfc]
push 0x400
push edx
call sym.LIBEAY32.dll_OPENSSL_cleanse
add esp, 0x20
test ebp, ebp
je 0x10058727
mov eax, dword [esp + 0x1c]
push eax
push ebp
call sym.LIBEAY32.dll_OPENSSL_cleanse
push ebp
call sym.LIBEAY32.dll_CRYPTO_free
add esp, 0xc
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4d4
ret