Function at 0x40c420
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14c
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
push edi
lea esi, [esp + 0x1e]
lea edi, [esp + 0x22]
lea ebp, [esp + 0x26]
xor ecx, ecx
sub esi, edx
sub edi, edx
sub ebp, edx
lea eax, [edx + 2]
mov dword [esp + 0x14], ebp
lea esp, [esp]
movzx edx, byte [eax - 2]
movzx ebp, byte [eax - 1]
shl edx, 8
or edx, ebp
movzx ebp, byte [eax]
shl edx, 8
or edx, ebp
movzx ebp, byte [eax + 1]
shl edx, 8
or edx, ebp
movzx ebp, byte [eax + 3]
mov dword [esp + ecx*4 + 0x1c], edx
movzx edx, byte [eax + 2]
shl edx, 8
or edx, ebp
movzx ebp, byte [eax + 4]
shl edx, 8
or edx, ebp
movzx ebp, byte [eax + 5]
shl edx, 8
or edx, ebp
movzx ebp, byte [eax + 7]
mov dword [esi + eax], edx
movzx edx, byte [eax + 6]
shl edx, 8
or edx, ebp
movzx ebp, byte [eax + 8]
shl edx, 8
or edx, ebp
movzx ebp, byte [eax + 9]
shl edx, 8
or edx, ebp
movzx ebp, byte [eax + 0xb]
mov dword [edi + eax], edx
movzx edx, byte [eax + 0xa]
shl edx, 8
or edx, ebp
movzx ebp, byte [eax + 0xc]
shl edx, 8
or edx, ebp
movzx ebp, byte [eax + 0xd]
shl edx, 8
or edx, ebp
mov ebp, dword [esp + 0x14]
mov dword [eax + ebp], edx
add ecx, 4
add eax, 0x10
cmp ecx, 0x10
jb 0x40c450
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x14], 0x10
lea ebx, [ebx]
mov ebx, dword [eax - 0x20]
xor ebx, dword [eax + 0x14]
mov ebp, dword [eax - 0x18]
xor ebx, ebp
xor ebx, dword [eax]
mov ebp, dword [eax - 0x1c]
xor ebp, dword [eax + 0x18]
rol ebx, 1
xor ebp, dword [eax + 4]
mov dword [eax + 0x20], ebx
mov dword [esp + 0x18], ebx
mov ebx, dword [eax - 0x14]
xor ebp, ebx
mov ebx, dword [eax + 0x1c]
xor ebx, dword [eax - 0x10]
rol ebp, 1
xor ebx, dword [eax + 8]
mov dword [eax + 0x24], ebp
xor ebx, dword [eax - 0x18]
add eax, 0x10
rol ebx, 1
mov dword [eax + 0x18], ebx
mov ebx, dword [eax - 0x1c]
xor ebx, dword [eax - 4]
xor ebx, dword [esp + 0x18]
xor ebx, dword [eax - 0x24]
rol ebx, 1
sub dword [esp + 0x14], 1
mov dword [eax + 0x1c], ebx
jne 0x40c510
mov ebx, dword [esp + 0x10]
xor eax, eax
lea esp, [esp]
rol ebx, 5
inc eax
mov ebp, edx
xor ebp, esi
and ebp, edi
xor ebp, edx
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x18]
rol edi, 0x1e
lea ecx, [ecx + ebx + 0x5a827999]
mov ebp, esi
xor ebp, edi
and ebp, dword [esp + 0x10]
mov ebx, ecx
xor ebp, esi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x1c]
inc eax
lea edx, [edx + ebx + 0x5a827999]
mov ebx, dword [esp + 0x10]
rol ebx, 0x1e
mov dword [esp + 0x10], ebx
mov ebp, edi
xor ebp, dword [esp + 0x10]
mov ebx, edx
and ebp, ecx
xor ebp, edi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x1c]
inc eax
lea esi, [esi + ebx + 0x5a827999]
rol ecx, 0x1e
mov dword [esp + 0x18], esi
mov ebx, esi
mov esi, dword [esp + 0x10]
rol ebx, 5
mov ebp, ecx
xor ebp, esi
and ebp, edx
xor ebp, esi
mov esi, dword [esp + 0x18]
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x1c]
inc eax
rol edx, 0x1e
lea edi, [edi + ebx + 0x5a827999]
mov ebp, ecx
xor ebp, edx
and ebp, esi
xor ebp, ecx
mov ebx, edi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x1c]
mov ebp, dword [esp + 0x10]
inc eax
rol esi, 0x1e
lea ebx, [ebx + ebp + 0x5a827999]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], esi
cmp eax, 0x14
jb 0x40c570
cmp eax, 0x28
jae 0x40c6f1
lea ebx, [ebx]
rol ebx, 5
inc eax
mov ebp, edx
xor ebp, esi
xor ebp, edi
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x18]
rol edi, 0x1e
lea ecx, [ecx + ebx + 0x6ed9eba1]
mov dword [esp + 0x14], edi
mov ebp, esi
xor ebp, edi
mov edi, dword [esp + 0x10]
xor ebp, edi
mov ebx, ecx
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x1c]
inc eax
lea edx, [edx + ebx + 0x6ed9eba1]
rol edi, 0x1e
mov ebp, ecx
xor ebp, dword [esp + 0x14]
mov ebx, edx
xor ebp, edi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x1c]
inc eax
lea esi, [esi + ebx + 0x6ed9eba1]
rol ecx, 0x1e
mov ebp, ecx
xor ebp, edx
xor ebp, edi
mov ebx, esi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x1c]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
inc eax
lea edi, [edi + ebx + 0x6ed9eba1]
rol edx, 0x1e
mov ebp, ecx
xor ebp, edx
xor ebp, esi
mov ebx, edi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x1c]
mov ebp, dword [esp + 0x10]
inc eax
lea ebx, [ebx + ebp + 0x6ed9eba1]
rol esi, 0x1e
mov dword [esp + 0x10], ebx
cmp eax, 0x28
jb 0x40c640
mov dword [esp + 0x18], esi
cmp eax, 0x3c
jae 0x40c7df
lea ebx, [ebx]
rol ebx, 5
mov ebp, esi
or ebp, edi
and ebp, edx
and esi, edi
or ebp, esi
add ebp, dword [esp + eax*4 + 0x1c]
inc eax
add ebp, ecx
lea ecx, [ebx + ebp - 0x70e44324]
rol edi, 0x1e
mov ebx, edi
or ebx, dword [esp + 0x10]
mov ebp, edi
and ebx, dword [esp + 0x18]
and ebp, dword [esp + 0x10]
inc eax
or ebx, ebp
add ebx, dword [esp + eax*4 + 0x18]
mov esi, ecx
add ebx, edx
rol esi, 5
lea edx, [ebx + esi - 0x70e44324]
mov ebx, dword [esp + 0x10]
rol ebx, 0x1e
mov esi, ecx
or esi, ebx
and esi, edi
mov ebp, ecx
and ebp, ebx
or esi, ebp
add esi, dword [esp + eax*4 + 0x1c]
inc eax
add esi, dword [esp + 0x18]
mov dword [esp + 0x14], edx
rol edx, 5
lea edx, [esi + edx - 0x70e44324]
rol ecx, 0x1e
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edx
mov esi, edx
mov edx, dword [esp + 0x14]
mov ebp, ecx
or ebp, edx
and ebp, ebx
mov ebx, ecx
and ebx, edx
or ebp, ebx
add ebp, dword [esp + eax*4 + 0x1c]
rol esi, 5
add ebp, edi
lea esi, [esi + ebp - 0x70e44324]
inc eax
rol edx, 0x1e
mov dword [esp + 0x14], esi
mov edi, esi
mov esi, dword [esp + 0x18]
mov ebx, edx
or ebx, esi
and ebx, ecx
mov ebp, edx
and ebp, esi
or ebx, ebp
add ebx, dword [esp + eax*4 + 0x1c]
rol edi, 5
add ebx, dword [esp + 0x10]
inc eax
lea ebx, [ebx + edi - 0x70e44324]
mov edi, dword [esp + 0x14]
rol esi, 0x1e
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], esi
cmp eax, 0x3c
jb 0x40c700
mov ebp, dword [esp + 0x160]
cmp eax, 0x50
jae 0x40c8a4
nop
rol ebx, 5
inc eax
mov ebp, edx
xor ebp, esi
xor ebp, edi
add ebp, dword [esp + eax*4 + 0x18]
inc eax
add ebp, ecx
lea ecx, [ebx + ebp - 0x359d3e2a]
rol edi, 0x1e
mov dword [esp + 0x14], edi
mov ebp, esi
xor ebp, edi
mov edi, dword [esp + 0x10]
xor ebp, edi
add ebp, dword [esp + eax*4 + 0x18]
mov ebx, ecx
add ebp, edx
rol ebx, 5
lea edx, [ebx + ebp - 0x359d3e2a]
rol edi, 0x1e
mov ebp, ecx
xor ebp, dword [esp + 0x14]
inc eax
xor ebp, edi
add ebp, dword [esp + eax*4 + 0x18]
mov ebx, edx
add ebp, esi
rol ebx, 5
lea esi, [ebx + ebp - 0x359d3e2a]
rol ecx, 0x1e
mov ebp, ecx
xor ebp, edx
xor ebp, edi
add ebp, dword [esp + eax*4 + 0x1c]
mov ebx, esi
add ebp, dword [esp + 0x14]
rol ebx, 5
inc eax
mov dword [esp + 0x10], edi
lea edi, [ebx + ebp - 0x359d3e2a]
rol edx, 0x1e
mov ebp, ecx
xor ebp, edx
xor ebp, esi
add ebp, dword [esp + eax*4 + 0x1c]
mov ebx, edi
add ebp, dword [esp + 0x10]
rol ebx, 5
inc eax
mov dword [esp + 0x18], esi
lea ebx, [ebx + ebp - 0x359d3e2a]
rol esi, 0x1e
mov dword [esp + 0x10], ebx
cmp eax, 0x50
jb 0x40c7f0
mov ebp, dword [esp + 0x160]
mov eax, dword [ebp + 8]
add eax, ebx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
add eax, edi
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
add eax, edx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x18]
pop edi
add eax, ecx
pop esi
mov dword [ebp + 0x18], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x14c
ret