Function at 0x40da60
Capabilities:
Encode data using xor
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3bf1
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x52406c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x138], edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x130]
push 0xb8
push 0
push eax
call fcn.004bb410
add esp, 0xc
lea ecx, [ebp - 0x16c]
push esi
call fcn.00432310
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x16c]
lea ecx, [ebp - 0x130]
push 0x20
push eax
call fcn.00415cc0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x158]
cmp edx, 8
jb 0x40db1c
mov ecx, dword [ebp - 0x16c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40db12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dff0
push edx
push ecx
call fcn.0046c951
add esp, 8
xor eax, eax
mov dword [ebp - 0x15c], 0
mov word [ebp - 0x16c], ax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x158], 7
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x124], 6
jne 0x40df4d
cmp edi, esi
je 0x40db69
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40db5e
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.00432030
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 0x130]
push 0
mov dword [edi + 0x18], eax
lea eax, [ebp - 0x14]
push 4
push eax
mov dword [ebp - 0x14], 0
call fcn.00417140
mov eax, dword [ebp - 0x14]
cmp al, 0x70
jne 0x40df4d
cmp ah, 0x61
jne 0x40df4d
cmp byte [ebp - 0x12], 0x6b
jne 0x40df4d
push 0
push 4
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x130]
call fcn.00417140
push 0
push dword [ebp - 0x78]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00431270
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x130]
push 0
push dword [ebp - 0x78]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00417140
push 0
push 0x20
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00431270
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x130]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x20
push eax
call fcn.00417140
lea ecx, [ebp - 0x130]
call fcn.00415c50
mov eax, dword [ebp - 0x78]
movaps xmm0, xmmword [0x508e40]
add eax, 0x28
pxor xmm0, xmmword [0x508e30]
mov dword [edi + 0x24], eax
mov eax, 0x10
mov dword [ebp - 0x144], 0x243c7564
mov dword [ebp - 0x140], 0x41757f70
mov byte [ebp - 0x13c], 0
movups xmmword [ebp - 0x154], xmm0
xor byte [ebp + eax - 0x154], 0x41
inc eax
cmp eax, 0x18
jb 0x40dc80
lea eax, [ebp - 0x154]
mov byte [ebp - 0x13c], 0
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x16c]
call fcn.00419960
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
mov byte [ebp - 0x178], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1e0], 0x67452301
mov dword [ebp - 0x1dc], 0xefcdab89
mov dword [ebp - 0x1d8], 0x98badcfe
mov dword [ebp - 0x1d4], 0x10325476
jb 0x40dcff
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x1e0]
call fcn.0044f330
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x1e0]
call fcn.0044fb00
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x158]
cmp edx, 0x10
jb 0x40dd59
mov ecx, dword [ebp - 0x16c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dd4f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dff5
push edx
push ecx
call fcn.0046c951
add esp, 8
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x1c]
mov edi, dword [ebp - 0x5c]
cmovae eax, esi
cmp dword [ebp - 0x48], 0x10
mov edx, dword [ebp - 0x4c]
cmovae ecx, edi
push eax
call fcn.0042fac0
add esp, 8
test al, al
jne 0x40dd91
mov byte [ebp - 0x131], al
jmp 0x40de6c
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
push ecx
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x174]
call fcn.004426f0
mov ecx, dword [ebp - 0x138]
add esp, 8
add ecx, 0x1c
mov dword [ebp - 0x138], ecx
push eax
call fcn.0040d5c0
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x170]
test esi, esi
je 0x40de01
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40de01
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40de01
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x138]
mov byte [ebp - 4], 8
mov ecx, dword [ecx]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test eax, eax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x60]
setne byte [ebp - 0x131]
cmp edx, 0x10
jb 0x40de54
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40de4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dffa
push edx
push ecx
call fcn.0046c951
add esp, 8
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x40dea6
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40de99
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dfff
push ecx
push edi
call fcn.0046c951
mov esi, dword [ebp - 0x2c]
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp eax, 0x10
jb 0x40deef
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x40dee5
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e004
push ecx
push esi
call fcn.0046c951
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp edx, 0x10
jb 0x40df39
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40df2f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e009
push edx
push ecx
call fcn.0046c951
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
jmp 0x40df54
mov byte [ebp - 0x131], 0
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x134], eax
lea ecx, [ebp - 0x120]
call fcn.00416860
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x130]
mov edx, dword [eax + 4]
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0x134], ecx
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 0xa
push eax
mov dword [ebp - 0xc0], vtable.std::ios_base.0
call fcn.00469e49
mov al, byte [ebp - 0x131]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c93b
mov esp, ebp
pop ebp
ret 4
call fcn.004be3cc
call fcn.004be3cc
call fcn.004be3cc
call fcn.004be3cc
call fcn.004be3cc
call fcn.004be3cc
int3