Function at 0x402070
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
push str.libeay32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40209b
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0xa0
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EVP_CIPHER_CTX_init
push esi
call edi
test eax, eax
mov dword [esp + 0x20], eax
jne 0x4020c8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0xa0
ret
push str.EVP_CIPHER_CTX_cleanup
push esi
call edi
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4020ef
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0xa0
ret
push str.EVP_aes_256_cbc
push esi
call edi
mov ebp, eax
test ebp, ebp
jne 0x402114
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0xa0
ret
push str.EVP_EncryptInit_ex
push esi
call edi
mov ebx, eax
test ebx, ebx
jne 0x402139
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0xa0
ret
push str.EVP_EncryptUpdate
push esi
call edi
test eax, eax
mov dword [esp + 0x14], eax
jne 0x402160
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0xa0
ret
push str.EVP_EncryptFinal_ex
push esi
call edi
test eax, eax
mov dword [esp + 0x18], eax
jne 0x402187
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0xa0
ret
push str.EVP_CIPHER_CTX_set_padding
push esi
call edi
mov edi, eax
test edi, edi
jne 0x4021ac
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0xa0
ret
lea eax, [esp + 0x24]
push eax
call dword [esp + 0x24]
lea ecx, [esp + 0x28]
push 0x100
push ecx
call edi
call ebp
push 0x404234
push 0x404244
push 0
lea edx, [esp + 0x3c]
push eax
push edx
call ebx
add esp, 0x20
test eax, eax
jne 0x402201
lea eax, [esp + 0x24]
push eax
call dword [esp + 0x14]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0xa0
ret
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
mov edi, dword [esp + 0xc0]
mov ebx, dword [esp + 0xbc]
push ecx
push edx
push edi
lea eax, [esp + 0x30]
push ebx
push eax
call dword [esp + 0x28]
add esp, 0x14
test eax, eax
jne 0x402254
lea ecx, [esp + 0x24]
push ecx
call dword [esp + 0x14]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0xa0
ret
mov eax, dword [edi]
lea edx, [esp + 0x1c]
add eax, ebx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [esp + 0x24]
add esp, 0xc
test eax, eax
jne 0x402291
lea edx, [esp + 0x24]
push edx
call dword [esp + 0x14]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0xa0
ret
mov eax, dword [esp + 0x1c]
mov ebx, dword [edi]
lea ecx, [esp + 0x24]
add ebx, eax
push ecx
mov dword [edi], ebx
call dword [esp + 0x14]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa0
ret