Function at 0x485040
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b90d8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edx, ecx
mov dword [ebp - 0x68], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x45], 0
test edx, edx
je 0x4852db
test ecx, ecx
je 0x4852db
test ebx, ebx
je 0x4852db
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4852db
cmp ebx, eax
jg 0x4852db
xor edi, edi
mov dword [ebp - 0x4c], 0
push edi
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push edi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x58], 0
push eax
mov dword [ebp - 0x50], 0
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4851a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x44]
call fcn.00485ea0
push eax
mov edx, 0x4d12c8
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2c]
call fcn.00485d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x485110
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x18], 8
mov eax, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x48512f
push dword [ebp - 0x2c]
call eax
mov eax, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
jb 0x485158
push dword [ebp - 0x44]
call eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x34], 0
cmp eax, 0x8009000b
jne 0x48517d
push 0xf0000000
jmp 0x48518a
cmp eax, 0x80090016
jne 0x4852a3
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call eax
test eax, eax
je 0x4852a3
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4851b3
cmp word [eax], 0
jne 0x4851e3
push 0x18
call fcn.004a594a
mov edi, eax
add esp, 4
test edi, edi
je 0x4852a3
movdqu xmm0, xmmword [str.hello_world_]
mov dword [ebp - 0x54], edi
movdqu xmmword [edi], xmm0
movq xmm0, qword [0x4d1320]
movq qword [edi + 0x10], xmm0
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x485287
push 0
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x485287
lea eax, [ebp - 0x58]
push eax
push 0x800000
push dword [ebp - 0x50]
push 0x6801
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x485287
push ebx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x485287
push ebx
push dword [ebp - 0x68]
push esi
call sub.MSVCR120.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x5c]
push ebx
push eax
push esi
push 0
push 1
push 0
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x485287
push dword [ebp - 0x5c]
push esi
push dword [ebp - 0x64]
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov byte [ebp - 0x45], 1
test edi, edi
je 0x485295
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
test esi, esi
je 0x4852a3
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4852b8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4852c6
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4852d6
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 0x45]
jmp 0x4852dd
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret