Function at 0x446010
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 0x474326
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4901c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x40], esi
mov edi, ecx
mov dword [ebp - 0x20], edi
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], 1
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x4c], 1
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x44635f
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0x8003
push eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp dword [ebx + 0x14], 0xf
mov eax, ebx
jbe 0x4460c3
mov eax, dword [ebx]
push 0
push dword [ebx + 0x10]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x4460e1
push dword [ebp - 0x14]
call ebx
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x14]
push 0x6801
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x446101
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 0x18], 0
jne 0x44611c
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x44635f
cmp dword [esi + 0x14], 0xf
xorps xmm0, xmm0
mov ecx, dword [esi + 0x10]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
jbe 0x44613d
add ecx, dword [esi]
mov esi, dword [esi]
mov dword [ebp - 0x40], esi
jmp 0x44613f
add ecx, esi
xor eax, eax
xor ebx, ebx
sub ecx, esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], eax
mov edx, eax
mov dword [ebp - 0x14], eax
mov esi, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], eax
je 0x4461b2
cmp ecx, 0x7fffffff
ja 0x44637d
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00456a20
mov esi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x40]
mov dword [ebp - 0x38], ebx
push ebx
call sub.VCRUNTIME140.dll_memmove
lea eax, [esi + ebx]
add esp, 0xc
mov esi, ebx
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x24]
mov edx, eax
mov dword [ebp - 0x28], eax
mov eax, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], eax
sub edx, esi
mov dword [ebp - 4], 1
push edx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], edx
push eax
push dword [ebp - 0x38]
push 0
push 1
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x44621c
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
je 0x44635f
sub ebx, esi
cmp ebx, 0x1000
jb 0x446215
mov ecx, dword [esi - 4]
add ebx, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x44634f
mov esi, ecx
push ebx
push esi
jmp 0x446357
mov esi, dword [ebp - 0x14]
sub esi, dword [ebp - 0x30]
mov ecx, dword [edi]
mov edx, dword [edi + 8]
sub edx, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], ecx
cmp esi, edx
jbe 0x4462cb
cmp esi, 0x7fffffff
ja 0x446382
mov eax, edx
shr eax, 1
mov dword [ebp - 0x30], eax
mov eax, SysReAllocString
sub eax, dword [ebp - 0x30]
cmp edx, eax
jbe 0x44625d
mov esi, SysReAllocString
jmp 0x44626c
mov eax, dword [ebp - 0x30]
add eax, edx
cmp eax, esi
cmovb eax, esi
mov dword [ebp - 0x34], eax
mov esi, eax
test ecx, ecx
je 0x4462b0
cmp edx, 0x1000
jb 0x446292
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
mov dword [ebp - 0x34], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x44634f
mov ecx, dword [ebp - 0x34]
push edx
push ecx
call fcn.0046e8e2
mov dword [edi], 0
add esp, 8
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push esi
mov ecx, edi
call fcn.00456a20
push dword [ebp - 0x14]
mov esi, dword [edi]
push dword [ebp - 0x38]
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x14]
jmp 0x446310
mov eax, dword [edi + 4]
sub eax, ecx
mov dword [ebp - 0x34], eax
cmp esi, eax
jbe 0x446303
push eax
push dword [ebp - 0x44]
push ecx
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x34]
mov esi, dword [edi + 4]
push ecx
push eax
push esi
mov dword [ebp - 0x14], ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x14]
add esp, 0x18
jmp 0x446313
push esi
push dword [ebp - 0x3c]
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x30]
add esp, 0xc
push dword [ebp - 0x18]
add eax, esi
mov dword [edi + 4], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x44635f
sub ebx, ecx
mov eax, ecx
cmp ebx, 0x1000
jb 0x446355
mov ecx, dword [eax - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x446355
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push ecx
call fcn.0046e8e2
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e4b9
mov esp, ebp
pop ebp
ret
call fcn.004510a0
call fcn.004510a0
int3