Function at 0x408bc0
Capabilities:
Encode data using xor
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x118
mov eax, dword [0x5da100]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
test byte [edi + 0x24], 2
je 0x408fb8
push 0
push 0
push dword [edi + 0x28]
call fcn.0055c8af
mov eax, dword [0x5bb690]
add esp, 0xc
mov dword [edi], eax
mov eax, dword [0x5bb694]
mov dword [edi + 4], eax
mov dword [edi + 8], 1
push dword [edi + 0x28]
mov dword [edi + 0x10], 0x14
push 1
push 0x14
push edi
call fcn.0055d0e3
mov ecx, dword [edi + 0x3c]
lea esi, [edi + 0x14]
sub ecx, dword [edi + 0x38]
mov eax, 0x4ec4ec4f
push dword [edi + 0x28]
imul ecx
mov ecx, dword [edi + 0x10]
sar edx, 4
add ecx, 0x10
mov eax, edx
mov dword [edi + 0x18], 0x28
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x1c], ecx
add dword [esi], eax
mov edx, dword [esi]
push 1
push 0x10
push esi
lea eax, [edx + edx*4]
lea eax, [ecx + eax*8]
mov dword [edi + 0x20], eax
call fcn.0055d0e3
mov eax, dword [edi + 0x2c]
xor ecx, ecx
mov dword [edi + 0x30], eax
add esp, 0x20
mov eax, dword [edi + 0x3c]
mov esi, dword [edi + 0x38]
mov dword [esp + 0x84], eax
mov dword [esp + 8], ecx
mov ecx, eax
sub ecx, esi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x408f8c
xor edi, edi
nop dword [eax]
nop word [eax + eax]
imul edi, edi, 0x34
mov dword [esp + 0x54], 0
cmp dword [edi + esi + 0x14], 8
lea eax, [edi + esi]
jb 0x408cc7
mov eax, dword [eax]
push 0x5bb688
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0055c1bb
add esp, 0xc
test eax, eax
jne 0x408fcc
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x38]
add eax, 0x18
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x408cf6
mov eax, dword [eax]
push eax
call fcn.00409170
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x38]
push 2
push 0
push dword [esp + 0x5c]
mov dword [esp + 0x68], edx
mov eax, dword [eax + edi + 0x30]
mov dword [esp + 0x6c], eax
call fcn.0055c8af
add esp, 0xc
push dword [esp + 0x54]
call fcn.0055cec7
add esp, 4
mov dword [esp + 0x64], eax
push 0
push 0
push dword [esp + 0x5c]
call fcn.0055c8af
add esp, 0xc
push dword [esp + 0x64]
call fcn.0041a675
add esp, 4
mov edi, eax
push dword [esp + 0x54]
push dword [esp + 0x68]
push 1
push edi
call fcn.0055c4ca
push dword [esp + 0x64]
call fcn.0055c278
mov eax, dword [esp + 0x1c]
add esp, 0x14
test eax, eax
jne 0x408d77
mov dword [esp + 0x6c], eax
jmp 0x408dab
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x2c]
movups xmm0, xmmword [eax + ecx*8 - 0x28]
movups xmm1, xmmword [eax + ecx*8 - 0x18]
movups xmmword [esp + 0x20], xmm0
movq xmm0, qword [eax + ecx*8 - 8]
movd ecx, xmm1
psrldq xmm1, 4
movd eax, xmm1
movq qword [esp + 0x40], xmm0
add eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x64]
push 0xf0000020
push 1
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x90]
push 0
push eax
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x408e7d
lea eax, [esp + 0x88]
push eax
push 0
push 0
push 0x8003
push dword [esp + 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x408e6e
push 0
push dword [esp + 0x14]
push edi
push dword [esp + 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x408e61
push 0
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x98]
push eax
push 2
push dword [esp + 0x98]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x408e61
movups xmm0, xmmword [esp + 0x90]
movups xmmword [esp + 0x70], xmm0
push dword [esp + 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x60]
test al, 1
je 0x408ec9
push dword [esp + 0x64]
call fcn.004010c0
add esp, 4
mov dword [esp + 0x68], eax
push eax
call fcn.0041a675
add esp, 4
mov esi, eax
lea eax, [esp + 0x68]
push dword [esp + 0x64]
push edi
push eax
push esi
call fcn.004010a0
push edi
call fcn.0041a670
mov edx, dword [esp + 0x7c]
mov edi, esi
mov eax, dword [esp + 0x74]
add esp, 0x14
mov esi, dword [esp + 0xc]
jmp 0x408ed1
mov edx, dword [esp + 0x64]
mov dword [esp + 0x68], edx
test al, 2
je 0x408ef1
xor eax, eax
test edx, edx
je 0x408ef1
nop dword [eax + eax]
mov ecx, eax
and ecx, 0xf
mov cl, byte [esp + ecx + 0x70]
xor byte [eax + edi], cl
inc eax
cmp eax, edx
jb 0x408ee0
mov eax, dword [esi + 0x20]
add eax, dword [esp + 0x6c]
push 0
push eax
push dword [esi + 0x28]
call fcn.0055c8af
add esp, 0xc
push dword [esi + 0x28]
push 1
push dword [esp + 0x70]
push edi
call fcn.0055d0e3
mov eax, dword [esi + 0x18]
imul eax, dword [esp + 0x18]
push 0
add eax, dword [esi + 0x1c]
push eax
push dword [esi + 0x28]
call fcn.0055c8af
add esp, 0x1c
lea eax, [esp + 0x58]
push dword [esi + 0x28]
push 1
push 0x28
push eax
call fcn.0055d0e3
push edi
call fcn.0041a670
add esp, 0x14
lea eax, [esp + 0x58]
lea ecx, [esi + 0x2c]
push eax
call fcn.00409270
mov eax, dword [esi + 0x3c]
mov ecx, eax
mov esi, dword [esi + 0x38]
sub ecx, esi
mov edi, dword [esp + 8]
mov dword [esp + 0x84], eax
inc edi
mov eax, 0x4ec4ec4f
mov dword [esp + 8], edi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x408cb0
mov edi, dword [esp + 0xc]
cmp esi, dword [esp + 0x84]
je 0x408fb5
mov edi, dword [esp + 0x84]
nop dword [eax]
mov ecx, esi
call fcn.00409080
add esi, 0x34
cmp esi, edi
jne 0x408fa0
mov edi, dword [esp + 0xc]
mov esi, dword [edi + 0x38]
mov dword [edi + 0x3c], esi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, esp
call fcn.0055245e
mov esp, ebp
pop ebp
ret
push 0x5bb698
lea ecx, [esp + 0x18]
call fcn.004087b0
push 0x5d4c1c
lea eax, [esp + 0x18]
push eax
call fcn.0055558d
int3