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

Disassembly:
mov eax, 0x28
call fcn.10228380
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push ebx
xor ebx, ebx
mov dword [esp + 0x24], 0
mov dword [eax], ebx
mov eax, dword [esp + 0x38]
push ebp
push esi
push edi
mov dword [eax], ebx
xor esi, esi
mov eax, dword [esp + 0x40]
xor edi, edi
xor ebp, ebp
mov dword [eax], ebx
mov eax, dword [esp + 0x48]
mov dword [eax], ebx
mov eax, ecx
and eax, 6
cmp al, 6
jne 0x10160471
call sym.libcrypto_3.dll_ERR_new
push 0x102d9770
push 0x3ab
push str.cryptopempem_lib.c
call sym.libcrypto_3.dll_ERR_set_debug
push ebp
push 0x80106
push 9
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
jmp 0x10160842
mov ebp, ecx
and ebp, 1
mov dword [esp + 0x28], ebp
je 0x10160483
call sym.libcrypto_3.dll_BIO_s_secmem
jmp 0x10160488
call sym.libcrypto_3.dll_BIO_s_mem
mov esi, eax
push esi
call sym.libcrypto_3.dll_BIO_new
mov ebx, eax
push esi
mov dword [esp + 0x20], ebx
call sym.libcrypto_3.dll_BIO_new
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
test ebx, ebx
je 0x10160810
test esi, esi
je 0x10160810
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 1
push 0x2fd
push str.cryptopempem_lib.c
push 0x100
test ebp, ebp
je 0x101604df
call sym.libcrypto_3.dll_CRYPTO_secure_malloc
jmp 0x101604e4
call sym.libcrypto_3.dll_CRYPTO_malloc
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1016083c
mov ebp, dword [esp + 0x50]
push 0xff
push esi
push dword [esp + 0x44]
call sym.libcrypto_3.dll_BIO_gets
mov ecx, eax
add esp, 0xc
test ecx, ecx
jle 0x101605a9
push dword [esp + 0x20]
mov eax, ebp
and eax, 0xfffffffb
push eax
push ecx
push esi
call fcn.101618d0
push 0xb
push str._____BEGIN
push esi
mov edi, eax
mov dword [esp + 0x3c], 0
call fcn.10235700
add esp, 0x1c
test eax, eax
jne 0x101604f5
cmp edi, 6
jl 0x101604f5
push 6
lea eax, [esi - 6]
add eax, edi
push str.______n
push eax
call fcn.10235700
add esp, 0xc
test eax, eax
jne 0x101604f5
push 0x313
mov byte [edi + esi - 6], al
sub edi, 0x10
push str.cryptopempem_lib.c
push edi
cmp dword [esp + 0x34], eax
je 0x1016057d
call sym.libcrypto_3.dll_CRYPTO_secure_malloc
jmp 0x10160582
call sym.libcrypto_3.dll_CRYPTO_malloc
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
je 0x101605d4
push edi
mov edi, dword [esp + 0x24]
lea eax, [esi + 0xb]
push eax
push edi
call fcn.10229b60
add esp, 0xc
mov dword [esp + 0x2c], 1
jmp 0x101605d8
call sym.libcrypto_3.dll_ERR_new
push str.get_name
push 0x305
push str.cryptopempem_lib.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x6c
push 9
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
xor edi, edi
jmp 0x101605d8
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x28], 0
push 0x31a
push str.cryptopempem_lib.c
je 0x101605f9
push 0x100
push esi
call sym.libcrypto_3.dll_CRYPTO_secure_clear_free
add esp, 0x10
jmp 0x10160602
push esi
call sym.libcrypto_3.dll_CRYPTO_free
add esp, 0xc
cmp dword [esp + 0x2c], 0
je 0x1016083c
push ebp
push edi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x4c]
call fcn.101610c0
mov esi, dword [esp + 0x38]
add esp, 0x14
test eax, eax
je 0x10160689
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], esi
push eax
push 0
push 0x73
push esi
call sym.libcrypto_3.dll_BIO_ctrl
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10160689
call sym.libcrypto_3.dll_EVP_ENCODE_CTX_new
mov ebx, eax
mov dword [esp + 0x30], ebx
test ebx, ebx
jne 0x10160692
call sym.libcrypto_3.dll_ERR_new
push 0x102d9770
push 0x3c5
push str.cryptopempem_lib.c
call sym.libcrypto_3.dll_ERR_set_debug
push ebx
push 0x80006
push 9
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
mov ebx, dword [esp + 0x18]
jmp 0x10160840
push ebx
call sym.libcrypto_3.dll_EVP_DecodeInit
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push dword [esp + 0x14]
mov eax, dword [eax + 4]
push eax
push ecx
push eax
push ebx
call sym.libcrypto_3.dll_EVP_DecodeUpdate
add esp, 0x18
test eax, eax
js 0x101607e3
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x14]
push eax
push ebx
call sym.libcrypto_3.dll_EVP_DecodeFinal
add esp, 0xc
test eax, eax
js 0x101607e3
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
push 0
push 0
push 3
mov dword [esp + 0x1c], ecx
push ebx
mov dword [eax], ecx
call sym.libcrypto_3.dll_BIO_ctrl
mov esi, eax
push 0x3d5
push str.cryptopempem_lib.c
push ebp
lea ecx, [esi + 1]
push ecx
call fcn.101618a0
mov ecx, dword [esp + 0x64]
push 0x3d6
push str.cryptopempem_lib.c
push ebp
push dword [esp + 0x3c]
mov dword [ecx], eax
call fcn.101618a0
mov ecx, dword [esp + 0x78]
add esp, 0x30
mov dword [ecx], eax
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx]
test ecx, ecx
je 0x10160798
test eax, eax
je 0x10160798
test esi, esi
je 0x10160759
push esi
push ecx
push ebx
call sym.libcrypto_3.dll_BIO_read
add esp, 0xc
cmp eax, esi
jne 0x10160798
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov byte [esi + eax], 0
mov eax, dword [esp + 0x48]
push dword [esp + 0x10]
mov esi, dword [esp + 0x18]
push dword [eax]
push esi
call sym.libcrypto_3.dll_BIO_read
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ecx
jne 0x1016079c
mov eax, dword [esp + 0x4c]
mov dword [eax], ecx
mov eax, dword [esp + 0x40]
mov dword [eax], edi
xor edi, edi
lea ebp, [edi + 1]
jmp 0x10160842
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
push 0x3e5
push str.cryptopempem_lib.c
push 0
push ebp
push dword [eax]
call fcn.10161870
mov eax, dword [esp + 0x58]
push 0x3e7
push str.cryptopempem_lib.c
push 0
push ebp
mov ebp, dword [esp + 0x6c]
mov dword [eax], 0
push dword [ebp]
call fcn.10161870
add esp, 0x28
mov dword [ebp], 0
jmp 0x10160840
call sym.libcrypto_3.dll_ERR_new
push 0x102d9770
push 0x3ce
push str.cryptopempem_lib.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x64
push 9
call sym.libcrypto_3.dll_ERR_set_error
mov ebx, dword [esp + 0x30]
add esp, 0x18
jmp 0x10160840
call sym.libcrypto_3.dll_ERR_new
push 0x102d9770
push 0x3b3
push str.cryptopempem_lib.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x80020
push 9
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
jmp 0x10160840
mov esi, dword [esp + 0x14]
xor ebp, ebp
push dword [esp + 0x30]
call sym.libcrypto_3.dll_EVP_ENCODE_CTX_free
add esp, 4
test byte [esp + 0x50], 1
push 0x3eb
push str.cryptopempem_lib.c
je 0x1016086c
push 0
push edi
call sym.libcrypto_3.dll_CRYPTO_secure_clear_free
add esp, 0x10
jmp 0x10160875
push edi
call sym.libcrypto_3.dll_CRYPTO_free
add esp, 0xc
push ebx
call sym.libcrypto_3.dll_BIO_free
push esi
call sym.libcrypto_3.dll_BIO_free
add esp, 8
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret