Function at 0x403570
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
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f286
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x470080]
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 edi, ecx
mov dword [ebp - 0x30], edi
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0
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 - 0x34], 1
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0x8003
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp dword [ebx + 0x14], 0xf
mov eax, dword [ebx + 0x10]
jbe 0x403619
mov ebx, dword [ebx]
push 0
push eax
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x403635
push dword [ebp - 0x14]
call ebx
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp - 0x14]
push 0x6801
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x403655
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x14]
call ebx
cmp dword [esi + 0x14], 0xf
jbe 0x403662
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403696
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
push 0x1023
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.0045ddcd
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x403808
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
push 0x1000
push 0
push eax
mov dword [eax - 4], ecx
lea esi, [eax + 0x1000]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x24], esi
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
push 0x1000
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40379f
nop dword [eax]
cmp dword [ebp - 0x18], 0
jbe 0x40379f
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
push 0
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x40375a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor esi, esi
cmp dword [ebp - 0x18], esi
jbe 0x403786
mov eax, dword [ebp - 0x28]
mov ecx, dword [edi + 4]
add eax, esi
cmp ecx, dword [edi + 8]
je 0x403777
mov al, byte [eax]
mov byte [ecx], al
inc dword [edi + 4]
jmp 0x403780
push eax
push ecx
mov ecx, edi
call fcn.004039e0
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x403761
push 0
lea eax, [ebp - 0x18]
push eax
push 0x1000
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403720
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x4037ea
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x4037e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403808
push ecx
push edx
call fcn.0045de02
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.0045ddbf
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3