Function at 0x408709
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x1c]
push ebx
mov ebx, dword [eax + 0x14]
push esi
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x10]
push edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x18]
push 0x10
mov dword [ebp - 0x10], ecx
pop ecx
lea esi, [eax + 0x20]
lea edi, [ebp - 0x154]
rep movsd dword es:[edi], dword [esi]
push 0x40
lea ecx, [ebp - 0x14c]
pop esi
mov edi, dword [ecx + 0x2c]
xor edi, dword [ecx + 0x18]
xor edi, dword [ecx - 8]
xor edi, dword [ecx]
add ecx, 4
dec esi
rol edi, 1
mov dword [ecx + 0x34], edi
jne 0x408744
and dword [ebp - 4], esi
mov esi, dword [ebp - 0x10]
xor esi, ebx
and esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
xor esi, dword [ebp - 0x10]
rol ecx, 5
add ecx, esi
mov esi, dword [ebp - 4]
add ecx, dword [ebp + esi*4 - 0x154]
rol dword [ebp - 0xc], 0x1e
inc dword [ebp - 4]
lea edx, [edx + ecx + 0x5a827999]
mov esi, ebx
xor esi, dword [ebp - 0xc]
mov ecx, edx
and esi, dword [ebp - 8]
rol ecx, 5
xor esi, ebx
add ecx, esi
mov esi, dword [ebp - 4]
add ecx, dword [ebp + esi*4 - 0x154]
rol dword [ebp - 8], 0x1e
mov esi, dword [ebp - 0x10]
lea ecx, [esi + ecx + 0x5a827999]
mov esi, dword [ebp - 0xc]
xor esi, dword [ebp - 8]
inc dword [ebp - 4]
and esi, edx
xor esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
rol ecx, 5
add ecx, esi
mov esi, dword [ebp - 4]
add ecx, dword [ebp + esi*4 - 0x154]
inc dword [ebp - 4]
rol edx, 0x1e
lea ebx, [ebx + ecx + 0x5a827999]
mov esi, edx
xor esi, dword [ebp - 8]
mov ecx, ebx
and esi, dword [ebp - 0x10]
rol ecx, 5
xor esi, dword [ebp - 8]
push 0x14
add ecx, esi
mov esi, dword [ebp - 4]
add ecx, dword [ebp + esi*4 - 0x154]
mov esi, dword [ebp - 0xc]
rol dword [ebp - 0x10], 0x1e
inc dword [ebp - 4]
lea ecx, [esi + ecx + 0x5a827999]
mov esi, edx
xor esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
and esi, ebx
rol ecx, 5
xor esi, edx
add ecx, esi
mov esi, dword [ebp - 4]
add ecx, dword [ebp + esi*4 - 0x154]
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
lea ecx, [esi + ecx + 0x5a827999]
mov dword [ebp - 8], ecx
pop ecx
rol ebx, 0x1e
cmp dword [ebp - 4], ecx
jb 0x40875d
mov dword [ebp - 4], ecx
mov esi, dword [ebp - 0x10]
xor esi, ebx
xor esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
rol ecx, 5
add ecx, esi
mov esi, dword [ebp - 4]
add ecx, dword [ebp + esi*4 - 0x154]
rol dword [ebp - 0xc], 0x1e
inc dword [ebp - 4]
lea edx, [edx + ecx + 0x6ed9eba1]
mov esi, ebx
xor esi, dword [ebp - 0xc]
mov ecx, edx
xor esi, dword [ebp - 8]
rol ecx, 5
add ecx, esi
mov esi, dword [ebp - 4]
add ecx, dword [ebp + esi*4 - 0x154]
rol dword [ebp - 8], 0x1e
mov esi, dword [ebp - 0x10]
inc dword [ebp - 4]
lea ecx, [esi + ecx + 0x6ed9eba1]
mov dword [ebp - 0x10], ecx
rol ecx, 5
mov esi, edx
xor esi, dword [ebp - 0xc]
push 0x28
xor esi, dword [ebp - 8]
add ecx, esi
mov esi, dword [ebp - 4]
add ecx, dword [ebp + esi*4 - 0x154]
inc dword [ebp - 4]
lea ebx, [ebx + ecx + 0x6ed9eba1]
rol edx, 0x1e
mov esi, edx
xor esi, dword [ebp - 0x10]
mov ecx, ebx
xor esi, dword [ebp - 8]
rol ecx, 5
add ecx, esi
mov esi, dword [ebp - 4]
add ecx, dword [ebp + esi*4 - 0x154]
mov esi, dword [ebp - 0xc]
rol dword [ebp - 0x10], 0x1e
inc dword [ebp - 4]
lea ecx, [esi + ecx + 0x6ed9eba1]
mov dword [ebp - 0xc], ecx
rol ecx, 5
mov esi, edx
xor esi, dword [ebp - 0x10]
xor esi, ebx
add ecx, esi
mov esi, dword [ebp - 4]
add ecx, dword [ebp + esi*4 - 0x154]
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
lea ecx, [esi + ecx + 0x6ed9eba1]
mov dword [ebp - 8], ecx
pop ecx
rol ebx, 0x1e
cmp dword [ebp - 4], ecx
jb 0x408848
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 8]
rol ecx, 5
mov esi, ebx
or esi, dword [ebp - 0xc]
and ebx, dword [ebp - 0xc]
and esi, dword [ebp - 0x10]
push 0x3c
or esi, ebx
add esi, dword [ebp + edi*4 - 0x154]
add esi, edx
rol dword [ebp - 0xc], 0x1e
lea edx, [esi + ecx - 0x70e44324]
mov esi, dword [ebp - 0xc]
or esi, dword [ebp - 8]
inc dword [ebp - 4]
and esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
and edi, dword [ebp - 8]
mov ecx, edx
or esi, edi
mov edi, dword [ebp - 4]
add esi, dword [ebp + edi*4 - 0x154]
rol ecx, 5
add esi, dword [ebp - 0x10]
rol dword [ebp - 8], 0x1e
inc dword [ebp - 4]
lea ecx, [esi + ecx - 0x70e44324]
mov esi, edx
or esi, dword [ebp - 8]
mov edi, edx
and esi, dword [ebp - 0xc]
and edi, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
or esi, edi
mov edi, dword [ebp - 4]
add esi, dword [ebp + edi*4 - 0x154]
rol ecx, 5
add esi, dword [ebp - 0x14]
inc dword [ebp - 4]
lea ecx, [esi + ecx - 0x70e44324]
rol edx, 0x1e
mov esi, edx
or esi, dword [ebp - 0x10]
mov edi, edx
and esi, dword [ebp - 8]
and edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov ebx, dword [ebp - 0x14]
or esi, edi
mov edi, dword [ebp - 4]
add esi, dword [ebp + edi*4 - 0x154]
rol ecx, 5
add esi, dword [ebp - 0xc]
rol dword [ebp - 0x10], 0x1e
mov edi, dword [ebp - 0x10]
inc dword [ebp - 4]
lea ecx, [esi + ecx - 0x70e44324]
mov esi, dword [ebp - 0x10]
or esi, ebx
and esi, edx
and edi, ebx
or esi, edi
mov edi, dword [ebp - 4]
add esi, dword [ebp + edi*4 - 0x154]
mov dword [ebp - 0xc], ecx
add esi, dword [ebp - 8]
inc dword [ebp - 4]
rol ecx, 5
lea ecx, [esi + ecx - 0x70e44324]
mov dword [ebp - 8], ecx
rol ebx, 0x1e
pop ecx
cmp dword [ebp - 4], ecx
mov dword [ebp - 0x14], ebx
jb 0x408929
mov dword [ebp - 4], ecx
mov esi, dword [ebp - 0x10]
xor esi, ebx
xor esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
add esi, dword [ebp + edi*4 - 0x154]
mov ecx, dword [ebp - 8]
add esi, edx
inc dword [ebp - 4]
mov edi, dword [ebp - 4]
rol ecx, 5
rol dword [ebp - 0xc], 0x1e
lea edx, [esi + ecx - 0x359d3e2a]
mov esi, ebx
xor esi, dword [ebp - 0xc]
mov ecx, edx
xor esi, dword [ebp - 8]
rol ecx, 5
add esi, dword [ebp + edi*4 - 0x154]
add esi, dword [ebp - 0x10]
rol dword [ebp - 8], 0x1e
inc dword [ebp - 4]
mov edi, dword [ebp - 4]
lea ecx, [esi + ecx - 0x359d3e2a]
mov esi, edx
xor esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
xor esi, dword [ebp - 8]
rol ecx, 5
add esi, dword [ebp + edi*4 - 0x154]
add esi, ebx
inc dword [ebp - 4]
mov edi, dword [ebp - 4]
lea ebx, [esi + ecx - 0x359d3e2a]
rol edx, 0x1e
mov esi, edx
xor esi, dword [ebp - 0x10]
mov ecx, ebx
xor esi, dword [ebp - 8]
rol ecx, 5
add esi, dword [ebp + edi*4 - 0x154]
add esi, dword [ebp - 0xc]
rol dword [ebp - 0x10], 0x1e
inc dword [ebp - 4]
mov edi, dword [ebp - 4]
lea ecx, [esi + ecx - 0x359d3e2a]
mov esi, edx
xor esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
xor esi, ebx
add esi, dword [ebp + edi*4 - 0x154]
rol ecx, 5
add esi, dword [ebp - 8]
inc dword [ebp - 4]
lea ecx, [esi + ecx - 0x359d3e2a]
rol ebx, 0x1e
cmp dword [ebp - 4], 0x50
mov dword [ebp - 8], ecx
jb 0x408a2c
mov ecx, dword [eax + 0xc]
mov esi, dword [ebp - 8]
add ecx, esi
mov esi, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 0x10]
add ecx, esi
mov esi, dword [ebp - 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 0x14]
add ecx, ebx
mov dword [eax + 0x14], ecx
mov ecx, dword [eax + 0x18]
add ecx, esi
mov dword [eax + 0x18], ecx
mov ecx, dword [eax + 0x1c]
pop edi
add ecx, edx
pop esi
mov dword [eax + 0x1c], ecx
pop ebx
leave
ret