Function at 0x481640
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddd95
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x514080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x30], edi
mov ebx, ecx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
xor esi, esi
nop dword [eax]
lea eax, [esi + 0x4ec5f8]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040d350
inc esi
cmp esi, 0x1c
jb 0x481690
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 1
xor esi, esi
mov ecx, dword [ebx]
mov eax, dword [ecx - 0xc]
test eax, eax
jle 0x48170a
nop dword [eax]
test esi, esi
js 0x481a4a
cmp esi, eax
jg 0x481a4a
mov ax, word [ecx + esi*2]
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push eax
call fcn.0040d350
lea eax, [ebp - 0xf]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040d350
mov ecx, dword [ebx]
inc esi
mov eax, dword [ecx - 0xc]
cmp esi, eax
jl 0x4816d0
call fcn.004046f0
mov ebx, eax
test ebx, ebx
je 0x481a40
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e1514]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
push str.AdvancedUpdater
call fcn.00403700
test al, al
jne 0x481754
push 0xf
push str.AdvancedUpdater
lea ecx, [ebp - 0x18]
call fcn.00403890
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x18]
test eax, eax
je 0x4819aa
cmp eax, 0xc800
jg 0x4819aa
push 0
push 1
push 0
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4817a7
push 8
push 1
push eax
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4817a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4819af
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4817e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4819af
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x4819af
mov eax, dword [ebp - 0x44]
test eax, eax
jle 0x481a54
push 0
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x48182f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x481816
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4819af
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x4819af
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x14]
push 0x6801
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x481879
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x481860
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4819af
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x4819af
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x481887
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0xc800
call fcn.004a18f7
mov ebx, eax
add esp, 4
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x2c]
cmp ecx, 0xc800
mov dword [ebp - 0x28], 0xc800
mov dword [ebp - 0x2c], ecx
cmovle eax, edx
test ecx, ecx
jle 0x481a54
push dword [eax]
push dword [ebp - 0x3c]
push ebx
call fcn.004a2fb0
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 0xc800
push eax
push ebx
push 0
push 1
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x481933
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x481908
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x481918
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov byte [ebp - 4], 3
push dword [ebp - 0x24]
call fcn.004a18f2
add esp, 4
mov dword [ebp - 0x24], 0
jmp 0x4819af
mov eax, dword [edi]
test eax, eax
je 0x481948
push eax
call fcn.004ab3c1
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
xor edi, edi
cmp dword [ebp - 0x1c], edi
jbe 0x481974
mov esi, dword [ebp - 0x30]
lea eax, [edi + ebx]
mov ecx, esi
push eax
call fcn.0040d350
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x481960
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x481982
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x481992
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov byte [ebp - 4], 3
push ebx
call fcn.004a18f2
add esp, 4
mov dword [ebp - 0x24], 0
xor ebx, ebx
jmp 0x4819af
mov ebx, 0xd
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4819d7
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4819f2
push eax
call fcn.004ab3c1
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x481a1e
push eax
call fcn.004ab3c1
add esp, 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov eax, ebx
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402720
push 0x80070057
call fcn.00402720
push 0x8000000b
call fcn.00402720
int3