Function at 0x4022c0
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 0x4022eb
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 0x402318
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 0x40233f
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 0x402364
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_DecryptInit_ex
push esi
call edi
mov ebx, eax
test ebx, ebx
jne 0x402389
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_DecryptUpdate
push esi
call edi
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4023b0
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_DecryptFinal_ex
push esi
call edi
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4023d7
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 0x4023fc
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 0x402451
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 0x4024a4
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 0x4024e1
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