Function at 0x40c398
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x43c3d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x154], ecx
lea edi, [ebp - 0x142]
xor esi, esi
lea ebx, [ebp - 0x13e]
lea ecx, [ebp - 0x13a]
mov dword [ebp - 0x15c], esi
sub edi, eax
mov dword [ebp - 0x150], esi
sub ebx, eax
lea edx, [eax + 2]
sub ecx, eax
mov dword [ebp - 0x14c], ecx
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x150]
mov dword [ebp + eax*4 - 0x144], ecx
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
mov dword [edi + edx], ecx
movzx ecx, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
mov dword [ebx + edx], ecx
movzx ecx, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x14c]
mov dword [eax + edx], ecx
lea edx, [edx + 0x10]
mov eax, dword [ebp - 0x150]
add eax, 4
mov dword [ebp - 0x150], eax
cmp eax, 0x10
jb 0x40c3e9
mov eax, dword [ebp - 0x154]
lea esi, [ebp - 0x124]
push 0x10
mov ecx, dword [eax + 8]
mov edi, ecx
mov ebx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x158], ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x14c], eax
pop ebx
mov eax, dword [esi - 0x1c]
xor eax, dword [esi + 0x18]
xor eax, dword [esi + 4]
xor eax, dword [esi - 0x14]
mov ecx, dword [esi - 0x20]
xor ecx, dword [esi + 0x14]
xor ecx, dword [esi - 0x18]
xor ecx, dword [esi]
lea esi, [esi + 0x10]
rol eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
xor eax, dword [esi - 0x20]
xor eax, dword [esi - 8]
xor eax, dword [esi - 0x28]
rol eax, 1
mov dword [esi + 0x18], eax
mov eax, dword [esi - 0x1c]
xor eax, dword [esi - 4]
xor eax, dword [esi - 0x24]
rol ecx, 1
xor eax, ecx
mov dword [esi + 0x10], ecx
rol eax, 1
mov dword [esi + 0x1c], eax
dec ebx
jne 0x40c4d3
mov esi, dword [ebp - 0x15c]
mov ebx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x148]
mov ecx, edi
xor eax, edx
rol ecx, 5
and eax, ebx
rol ebx, 0x1e
xor eax, dword [ebp - 0x148]
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + esi*4 - 0x144]
add eax, 0x5a827999
add eax, ecx
mov dword [ebp - 0x14c], eax
mov ecx, eax
rol ecx, 5
mov eax, edx
xor eax, ebx
and eax, edi
rol edi, 0x1e
xor eax, edx
add ecx, eax
mov eax, dword [ebp - 0x148]
add ecx, dword [ebp + esi*4 - 0x140]
add eax, 0x5a827999
add eax, ecx
mov dword [ebp - 0x148], eax
mov ecx, eax
rol ecx, 5
mov eax, ebx
xor eax, edi
add ecx, 0x5a827999
and eax, dword [ebp - 0x14c]
xor eax, ebx
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + esi*4 - 0x13c]
rol eax, 0x1e
add edx, ecx
mov dword [ebp - 0x14c], eax
mov ecx, edx
xor eax, edi
rol ecx, 5
and eax, dword [ebp - 0x148]
rol dword [ebp - 0x148], 0x1e
xor eax, edi
add eax, 0x5a827999
add edi, 0x5a827999
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + esi*4 - 0x138]
xor eax, dword [ebp - 0x148]
add ebx, ecx
and eax, edx
mov ecx, ebx
xor eax, dword [ebp - 0x14c]
rol ecx, 5
add ecx, eax
rol edx, 0x1e
add ecx, dword [ebp + esi*4 - 0x134]
add esi, 5
add edi, ecx
cmp esi, 0x14
jb 0x40c527
mov dword [ebp - 0x150], edx
cmp esi, 0x28
jae 0x40c82b
mov eax, dword [ebp - 0x148]
mov ecx, edi
xor eax, edx
rol ecx, 5
xor eax, ebx
rol ebx, 0x1e
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + esi*4 - 0x144]
add eax, 0x6ed9eba1
add eax, ecx
mov dword [ebp - 0x14c], eax
mov ecx, eax
rol ecx, 5
mov eax, edx
xor eax, ebx
xor eax, edi
rol edi, 0x1e
add ecx, eax
mov eax, dword [ebp - 0x148]
add ecx, dword [ebp + esi*4 - 0x140]
add eax, 0x6ed9eba1
add eax, ecx
mov dword [ebp - 0x148], eax
mov ecx, eax
mov eax, dword [ebp - 0x14c]
rol ecx, 5
xor eax, ebx
xor eax, edi
add ecx, 0x6ed9eba1
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + esi*4 - 0x13c]
add edx, ecx
rol eax, 0x1e
mov dword [ebp - 0x14c], eax
mov ecx, edx
xor eax, dword [ebp - 0x148]
rol dword [ebp - 0x148], 0x1e
xor eax, edi
rol ecx, 5
add eax, 0x6ed9eba1
add ecx, eax
add edi, 0x6ed9eba1
add ecx, dword [ebp + esi*4 - 0x138]
mov eax, dword [ebp - 0x14c]
add ebx, ecx
xor eax, dword [ebp - 0x148]
mov ecx, ebx
rol ecx, 5
xor eax, edx
add ecx, eax
rol edx, 0x1e
add ecx, dword [ebp + esi*4 - 0x134]
add esi, 5
add edi, ecx
cmp esi, 0x28
jb 0x40c626
jmp 0x40c825
mov eax, dword [ebp - 0x150]
mov edx, edi
mov ecx, eax
rol edx, 5
or ecx, ebx
and eax, ebx
and ecx, dword [ebp - 0x148]
or ecx, eax
rol ebx, 0x1e
add ecx, dword [ebp + esi*4 - 0x144]
lea eax, [edx - 0x70e44324]
add ecx, dword [ebp - 0x14c]
add eax, ecx
mov ecx, ebx
or ecx, edi
mov dword [ebp - 0x14c], eax
and ecx, dword [ebp - 0x150]
mov edx, eax
rol edx, 5
mov eax, ebx
and eax, edi
rol edi, 0x1e
or ecx, eax
add ecx, dword [ebp + esi*4 - 0x140]
add ecx, dword [ebp - 0x148]
lea eax, [edx - 0x70e44324]
add eax, ecx
mov dword [ebp - 0x148], eax
mov edx, eax
mov eax, dword [ebp - 0x14c]
mov ecx, eax
or ecx, edi
rol edx, 5
and ecx, ebx
and eax, edi
or ecx, eax
add ecx, dword [ebp + esi*4 - 0x13c]
add ecx, dword [ebp - 0x150]
lea eax, [edx - 0x70e44324]
add eax, ecx
mov ecx, dword [ebp - 0x14c]
rol ecx, 0x1e
mov edx, eax
mov dword [ebp - 0x14c], ecx
or ecx, dword [ebp - 0x148]
and ecx, edi
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x14c]
and eax, dword [ebp - 0x148]
or ecx, eax
rol edx, 5
add ecx, dword [ebp + esi*4 - 0x138]
mov eax, dword [ebp - 0x148]
add ecx, ebx
rol eax, 0x1e
lea ebx, [edx - 0x70e44324]
mov dword [ebp - 0x148], eax
add ebx, ecx
mov ecx, eax
or ecx, dword [ebp - 0x150]
mov edx, ebx
and ecx, dword [ebp - 0x14c]
and eax, dword [ebp - 0x150]
rol edx, 5
or ecx, eax
add ecx, dword [ebp + esi*4 - 0x134]
add ecx, edi
lea edi, [edx - 0x70e44324]
mov edx, dword [ebp - 0x150]
add edi, ecx
rol edx, 0x1e
add esi, 5
mov dword [ebp - 0x150], edx
cmp esi, 0x3c
jb 0x40c709
jmp 0x40c90d
mov eax, dword [ebp - 0x148]
mov ecx, edi
xor eax, edx
rol ecx, 5
xor eax, ebx
add ecx, 0xca62c1d6
add eax, dword [ebp + esi*4 - 0x144]
add eax, dword [ebp - 0x14c]
add eax, ecx
rol ebx, 0x1e
mov dword [ebp - 0x14c], eax
mov ecx, eax
mov eax, edx
rol ecx, 5
xor eax, ebx
add ecx, 0xca62c1d6
xor eax, edi
rol edi, 0x1e
add eax, dword [ebp + esi*4 - 0x140]
add eax, dword [ebp - 0x148]
add eax, ecx
mov dword [ebp - 0x148], eax
mov ecx, eax
mov eax, dword [ebp - 0x14c]
xor eax, ebx
rol ecx, 5
xor eax, edi
add eax, dword [ebp + esi*4 - 0x13c]
add eax, edx
lea edx, [ecx - 0x359d3e2a]
add edx, eax
mov eax, dword [ebp - 0x14c]
rol eax, 0x1e
mov ecx, edx
mov dword [ebp - 0x14c], eax
xor eax, dword [ebp - 0x148]
rol dword [ebp - 0x148], 0x1e
xor eax, edi
add eax, dword [ebp + esi*4 - 0x138]
rol ecx, 5
add eax, ebx
lea ebx, [ecx - 0x359d3e2a]
add ebx, eax
mov eax, dword [ebp - 0x14c]
xor eax, dword [ebp - 0x148]
mov ecx, ebx
xor eax, edx
rol ecx, 5
add eax, dword [ebp + esi*4 - 0x134]
add eax, edi
rol edx, 0x1e
lea edi, [ecx - 0x359d3e2a]
add edi, eax
add esi, 5
cmp esi, 0x50
jb 0x40c839
mov ecx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x158]
add eax, edi
pop edi
add dword [ecx + 0xc], ebx
add dword [ecx + 0x10], edx
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x148]
add dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x14c]
add dword [ecx + 0x18], eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004225c9
mov esp, ebp
pop ebp
ret