Function at 0x4f2040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x676664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x15c], edi
xor ecx, ecx
lea eax, [edi + 0x29]
movzx edx, byte [eax - 1]
movzx esi, byte [eax]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 1]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 2]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 4]
mov dword [ebp + ecx*4 - 0x144], edx
movzx edx, byte [eax + 3]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 5]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 6]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 8]
mov dword [ebp + ecx*4 - 0x140], edx
movzx edx, byte [eax + 7]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 9]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 0xa]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 0xc]
mov dword [ebp + ecx*4 - 0x13c], edx
movzx edx, byte [eax + 0xb]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 0xd]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 0xe]
shl edx, 8
or edx, esi
mov dword [ebp + ecx*4 - 0x138], edx
add ecx, 4
add eax, 0x10
cmp ecx, 0x10
jb 0x4f2063
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x1c]
mov esi, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], ecx
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x150], esi
lea eax, [ebp - 0x124]
mov dword [ebp - 0x154], 0x10
lea ebx, [ebx]
mov edi, dword [eax - 0x20]
xor edi, dword [eax + 0x14]
mov ebx, dword [eax - 0x1c]
xor edi, dword [eax - 0x18]
xor ebx, dword [eax + 0x18]
xor edi, dword [eax]
xor ebx, dword [eax + 4]
rol edi, 1
xor ebx, dword [eax - 0x14]
mov dword [eax + 0x20], edi
mov dword [ebp - 0x158], edi
mov edi, dword [eax + 0x1c]
xor edi, dword [eax - 0x10]
rol ebx, 1
xor edi, dword [eax + 8]
mov dword [eax + 0x24], ebx
xor edi, dword [eax - 0x18]
add eax, 0x10
rol edi, 1
mov dword [eax + 0x18], edi
mov edi, dword [eax - 0x1c]
xor edi, dword [eax - 4]
xor edi, dword [ebp - 0x158]
xor edi, dword [eax - 0x24]
rol edi, 1
dec dword [ebp - 0x154]
mov dword [eax + 0x1c], edi
jne 0x4f2140
mov edi, dword [ebp - 0x14c]
xor eax, eax
nop
mov ebx, dword [ebp - 0x148]
xor ebx, edx
and ebx, esi
xor ebx, dword [ebp - 0x148]
mov esi, dword [ebp - 0x150]
rol edi, 5
add edi, ebx
add edi, dword [ebp + eax*4 - 0x144]
rol esi, 0x1e
lea ecx, [ecx + edi + 0x5a827999]
mov ebx, edx
xor ebx, esi
and ebx, dword [ebp - 0x14c]
mov edi, ecx
xor ebx, edx
rol edi, 5
add edi, ebx
add edi, dword [ebp + eax*4 - 0x140]
mov ebx, dword [ebp - 0x148]
lea ebx, [ebx + edi + 0x5a827999]
mov edi, dword [ebp - 0x14c]
rol edi, 0x1e
mov dword [ebp - 0x150], esi
xor esi, edi
mov dword [ebp - 0x148], ebx
rol ebx, 5
and esi, ecx
xor esi, dword [ebp - 0x150]
mov dword [ebp - 0x158], ecx
add ebx, esi
add ebx, dword [ebp + eax*4 - 0x13c]
rol ecx, 0x1e
lea edx, [edx + ebx + 0x5a827999]
mov dword [ebp - 0x154], edx
mov esi, edx
mov edx, dword [ebp - 0x148]
rol esi, 5
mov ebx, ecx
xor ebx, edi
and ebx, edx
xor ebx, edi
add esi, ebx
add esi, dword [ebp + eax*4 - 0x138]
mov dword [ebp - 0x14c], edi
mov edi, dword [ebp - 0x150]
rol edx, 0x1e
lea esi, [edi + esi + 0x5a827999]
mov ebx, ecx
xor ebx, edx
mov dword [ebp - 0x148], edx
mov edx, dword [ebp - 0x154]
and ebx, edx
xor ebx, ecx
mov edi, esi
rol edi, 5
add edi, ebx
add edi, dword [ebp + eax*4 - 0x134]
mov ebx, dword [ebp - 0x14c]
add eax, 5
rol edx, 0x1e
lea edi, [ebx + edi + 0x5a827999]
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x154], edx
cmp eax, 0x14
jb 0x4f21a0
cmp eax, 0x28
jae 0x4f23ba
nop
mov ebx, dword [ebp - 0x148]
xor ebx, edx
xor ebx, esi
rol edi, 5
add edi, ebx
add edi, dword [ebp + eax*4 - 0x144]
rol esi, 0x1e
lea ecx, [ecx + edi + 0x6ed9eba1]
mov ebx, edx
xor ebx, esi
mov dword [ebp - 0x150], esi
mov esi, dword [ebp - 0x14c]
xor ebx, esi
mov edi, ecx
rol edi, 5
add edi, ebx
add edi, dword [ebp + eax*4 - 0x140]
mov ebx, dword [ebp - 0x148]
lea edi, [ebx + edi + 0x6ed9eba1]
mov dword [ebp - 0x148], edi
rol esi, 0x1e
rol edi, 5
mov ebx, ecx
xor ebx, dword [ebp - 0x150]
mov dword [ebp - 0x14c], esi
xor ebx, esi
add edi, ebx
add edi, dword [ebp + eax*4 - 0x13c]
rol ecx, 0x1e
lea edx, [edx + edi + 0x6ed9eba1]
mov dword [ebp - 0x154], edx
mov edi, edx
mov edx, dword [ebp - 0x148]
rol edi, 5
mov ebx, ecx
xor ebx, edx
xor ebx, esi
mov esi, dword [ebp - 0x150]
add edi, ebx
add edi, dword [ebp + eax*4 - 0x138]
rol edx, 0x1e
lea esi, [esi + edi + 0x6ed9eba1]
mov ebx, ecx
xor ebx, edx
mov dword [ebp - 0x148], edx
mov edx, dword [ebp - 0x154]
xor ebx, edx
mov edi, esi
rol edi, 5
add edi, ebx
add edi, dword [ebp + eax*4 - 0x134]
mov ebx, dword [ebp - 0x14c]
add eax, 5
rol edx, 0x1e
lea edi, [ebx + edi + 0x6ed9eba1]
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x154], edx
cmp eax, 0x28
jb 0x4f22c0
cmp eax, 0x3c
jae 0x4f24eb
mov ebx, edx
or ebx, esi
and ebx, dword [ebp - 0x148]
rol edi, 5
mov esi, edx
mov edx, dword [ebp - 0x150]
and esi, edx
or ebx, esi
add ebx, dword [ebp + eax*4 - 0x144]
add eax, 5
add ebx, ecx
lea ecx, [ebx + edi - 0x70e44324]
rol edx, 0x1e
mov edi, edx
or edi, dword [ebp - 0x14c]
mov ebx, edx
and ebx, dword [ebp - 0x14c]
and edi, dword [ebp - 0x154]
mov esi, ecx
or edi, ebx
add edi, dword [ebp + eax*4 - 0x154]
rol esi, 5
add edi, dword [ebp - 0x148]
mov dword [ebp - 0x150], edx
lea edi, [edi + esi - 0x70e44324]
mov esi, dword [ebp - 0x14c]
rol esi, 0x1e
mov ebx, ecx
or ebx, esi
and ebx, edx
mov edx, ecx
and edx, esi
or ebx, edx
add ebx, dword [ebp + eax*4 - 0x150]
mov dword [ebp - 0x148], edi
add ebx, dword [ebp - 0x154]
rol edi, 5
lea edx, [ebx + edi - 0x70e44324]
rol ecx, 0x1e
mov dword [ebp - 0x154], edx
mov edi, edx
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], esi
mov ebx, ecx
or ebx, edx
and ebx, esi
mov esi, ecx
and esi, edx
or ebx, esi
add ebx, dword [ebp + eax*4 - 0x14c]
rol edi, 5
add ebx, dword [ebp - 0x150]
rol edx, 0x1e
lea edi, [ebx + edi - 0x70e44324]
mov esi, edx
mov edx, dword [ebp - 0x154]
mov ebx, esi
or ebx, edx
and ebx, ecx
mov dword [ebp - 0x148], esi
and esi, edx
or ebx, esi
add ebx, dword [ebp + eax*4 - 0x148]
mov dword [ebp - 0x150], edi
add ebx, dword [ebp - 0x14c]
mov esi, dword [ebp - 0x150]
rol edi, 5
rol edx, 0x1e
lea edi, [ebx + edi - 0x70e44324]
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x154], edx
cmp eax, 0x3c
jb 0x4f23c3
mov ebx, dword [ebp - 0x15c]
cmp eax, 0x50
jae 0x4f25f2
lea ebx, [ebx]
mov ebx, dword [ebp - 0x148]
xor ebx, edx
xor ebx, esi
add ebx, dword [ebp + eax*4 - 0x144]
rol edi, 5
add ebx, ecx
lea ecx, [ebx + edi - 0x359d3e2a]
rol esi, 0x1e
mov ebx, edx
xor ebx, esi
mov dword [ebp - 0x150], esi
mov esi, dword [ebp - 0x14c]
xor ebx, esi
add ebx, dword [ebp + eax*4 - 0x140]
mov edi, ecx
add ebx, dword [ebp - 0x148]
rol edi, 5
lea edi, [ebx + edi - 0x359d3e2a]
rol esi, 0x1e
mov ebx, ecx
xor ebx, dword [ebp - 0x150]
mov dword [ebp - 0x148], edi
xor ebx, esi
add ebx, dword [ebp + eax*4 - 0x13c]
rol edi, 5
add ebx, edx
lea edx, [ebx + edi - 0x359d3e2a]
rol ecx, 0x1e
mov dword [ebp - 0x154], edx
mov edi, edx
mov edx, dword [ebp - 0x148]
mov ebx, ecx
xor ebx, edx
xor ebx, esi
add ebx, dword [ebp + eax*4 - 0x138]
rol edi, 5
add ebx, dword [ebp - 0x150]
rol edx, 0x1e
mov dword [ebp - 0x14c], esi
lea esi, [ebx + edi - 0x359d3e2a]
mov ebx, ecx
xor ebx, edx
xor ebx, dword [ebp - 0x154]
mov dword [ebp - 0x148], edx
add ebx, dword [ebp + eax*4 - 0x134]
mov edx, dword [ebp - 0x154]
add ebx, dword [ebp - 0x14c]
mov edi, esi
rol edi, 5
add eax, 5
lea edi, [ebx + edi - 0x359d3e2a]
rol edx, 0x1e
mov dword [ebp - 0x14c], edi
cmp eax, 0x50
jb 0x4f2500
mov ebx, dword [ebp - 0x15c]
mov eax, dword [ebx + 0x10]
add eax, edi
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x14]
add eax, esi
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x18]
add eax, edx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x1c]
add eax, dword [ebp - 0x148]
pop edi
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x20]
add eax, ecx
mov ecx, dword [ebp - 4]
pop esi
mov dword [ebx + 0x20], eax
xor ecx, ebp
pop ebx
call fcn.0059af98
mov esp, ebp
pop ebp
ret