Function at 0x420c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x5ad880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x154], esi
xor ecx, ecx
lea eax, [esi + 0x1f]
movzx edx, byte [eax - 1]
movzx edi, byte [eax]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 1]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 2]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 4]
mov dword [ebp + ecx*4 - 0x144], edx
movzx edx, byte [eax + 3]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 5]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 6]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 8]
mov dword [ebp + ecx*4 - 0x140], edx
movzx edx, byte [eax + 7]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 9]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0xa]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0xc]
mov dword [ebp + ecx*4 - 0x13c], edx
movzx edx, byte [eax + 0xb]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0xd]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0xe]
shl edx, 8
or edx, edi
mov dword [ebp + ecx*4 - 0x138], edx
add ecx, 4
add eax, 0x10
cmp ecx, 0x10
jl 0x420c83
lea eax, [ebp - 0x124]
mov dword [ebp - 0x148], 0x10
lea esp, [esp]
mov ecx, dword [eax - 0x20]
xor ecx, dword [eax + 0x14]
mov ebx, dword [eax - 0x1c]
xor ebx, dword [eax + 0x18]
xor ecx, dword [eax]
xor ebx, dword [eax + 4]
mov edx, dword [eax - 0x18]
mov edi, dword [eax - 0x14]
xor ecx, edx
xor ebx, edi
rol ecx, 1
rol ebx, 1
mov dword [eax + 0x24], ebx
mov ebx, dword [eax + 0x1c]
xor ebx, dword [eax - 0x10]
mov dword [eax + 0x20], ecx
xor ebx, dword [eax + 8]
add eax, 0x10
xor ebx, edx
mov edx, dword [eax - 0x1c]
xor edx, dword [eax - 4]
rol ebx, 1
xor edx, ecx
xor edx, edi
rol edx, 1
dec dword [ebp - 0x148]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], edx
jne 0x420d40
mov ebx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x148], 0
mov esi, eax
not esi
and esi, edx
rol ebx, 5
mov edi, ecx
and edi, eax
or esi, edi
mov edi, dword [ebp - 0x148]
add ebx, esi
add ebx, dword [ebp + edi*4 - 0x144]
mov esi, dword [ebp - 0x150]
lea esi, [ebx + esi + 0x5a827999]
mov ebx, dword [ebp - 0x14c]
ror eax, 2
mov dword [ebp - 0x150], edx
mov edx, ebx
not edx
and edx, ecx
mov dword [ebp - 0x14c], esi
rol esi, 5
mov dword [ebp - 0x148], ecx
mov ecx, eax
and ecx, ebx
or edx, ecx
mov ecx, dword [ebp - 0x148]
add esi, edx
add esi, dword [ebp + edi*4 - 0x140]
mov edx, dword [ebp - 0x150]
lea edx, [esi + edx + 0x5a827999]
mov esi, eax
ror ebx, 2
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x14c]
mov eax, ecx
not eax
and eax, esi
mov dword [ebp - 0x148], ebx
and ebx, ecx
or eax, ebx
mov ebx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], edx
rol edx, 5
add edx, eax
add edx, dword [ebp + edi*4 - 0x13c]
mov eax, dword [ebp - 0x150]
lea eax, [edx + eax + 0x5a827999]
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x150], esi
ror ecx, 2
mov esi, edx
not esi
and esi, ebx
mov dword [ebp - 0x148], ecx
and ecx, edx
or esi, ecx
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x14c], eax
rol eax, 5
add eax, esi
add eax, dword [ebp + edi*4 - 0x138]
mov dword [ebp - 0x150], ebx
lea esi, [eax + ecx + 0x5a827999]
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x148]
ror edx, 2
mov ebx, ecx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], esi
not ebx
and edx, ecx
and ebx, eax
rol esi, 5
or ebx, edx
mov edx, dword [ebp - 0x150]
add esi, ebx
add esi, dword [ebp + edi*4 - 0x134]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x14c]
lea esi, [esi + edx + 0x5a827999]
mov edx, dword [ebp - 0x148]
ror ecx, 2
add edi, 5
mov ebx, esi
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x148], edi
cmp edi, 0x14
jl 0x420db3
mov edi, 0x14
rol esi, 5
mov ebx, edx
xor ebx, ecx
xor ebx, eax
add esi, ebx
add esi, dword [ebp + edi*4 - 0x144]
mov ebx, dword [ebp - 0x150]
ror eax, 2
mov dword [ebp - 0x150], edx
lea esi, [esi + ebx + 0x6ed9eba1]
mov ebx, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], esi
rol esi, 5
mov edx, ecx
xor edx, eax
xor edx, ebx
add esi, edx
add esi, dword [ebp + edi*4 - 0x140]
mov edx, dword [ebp - 0x150]
lea edx, [esi + edx + 0x6ed9eba1]
ror ebx, 2
mov esi, eax
xor eax, ebx
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x14c]
xor eax, ecx
mov dword [ebp - 0x14c], edx
rol edx, 5
add edx, eax
add edx, dword [ebp + edi*4 - 0x13c]
mov eax, dword [ebp - 0x150]
ror ecx, 2
lea eax, [edx + eax + 0x6ed9eba1]
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x14c], eax
rol eax, 5
mov ecx, ebx
xor ecx, dword [ebp - 0x148]
add edi, 5
xor ecx, edx
add eax, ecx
add eax, dword [ebp + edi*4 - 0x14c]
mov ecx, dword [ebp - 0x14c]
ror edx, 2
lea esi, [eax + esi + 0x6ed9eba1]
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], esi
mov edx, eax
xor edx, dword [ebp - 0x148]
rol esi, 5
xor edx, ecx
add esi, edx
add esi, dword [ebp + edi*4 - 0x148]
mov edx, dword [ebp - 0x148]
lea esi, [esi + ebx + 0x6ed9eba1]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x14c]
ror ecx, 2
mov dword [ebp - 0x14c], esi
cmp edi, 0x28
jl 0x420f20
mov dword [ebp - 0x148], 0x28
jmp 0x421050
rol esi, 5
add esi, dword [ebp - 0x150]
mov dword [ebp - 0x150], edx
mov edi, ecx
or edi, eax
and edi, edx
mov ebx, ecx
and ebx, eax
or edi, ebx
mov ebx, dword [ebp - 0x148]
add edi, dword [ebp + ebx*4 - 0x144]
ror eax, 2
lea esi, [edi + esi - 0x70e44324]
mov edi, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], esi
rol esi, 5
add esi, dword [ebp - 0x150]
mov edx, eax
or edx, edi
and edx, ecx
mov ebx, eax
and ebx, edi
or edx, ebx
mov ebx, dword [ebp - 0x148]
add edx, dword [ebp + ebx*4 - 0x140]
ror edi, 2
lea edx, [edx + esi - 0x70e44324]
mov esi, edi
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x14c]
or esi, ecx
and esi, eax
mov dword [ebp - 0x14c], edx
rol edx, 5
add edx, dword [ebp - 0x150]
mov dword [ebp - 0x148], eax
mov eax, edi
and eax, ecx
or esi, eax
add esi, dword [ebp + ebx*4 - 0x13c]
mov eax, dword [ebp - 0x148]
lea edx, [esi + edx - 0x70e44324]
ror ecx, 2
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x148], edi
mov esi, ecx
or esi, eax
and esi, edi
mov dword [ebp - 0x14c], edx
rol edx, 5
add edx, dword [ebp - 0x150]
mov edi, ecx
and edi, eax
or esi, edi
add esi, dword [ebp + ebx*4 - 0x138]
ror eax, 2
lea esi, [esi + edx - 0x70e44324]
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x150], edx
mov edx, ecx
mov ecx, dword [ebp - 0x14c]
mov edi, eax
or edi, ecx
and edi, edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], esi
mov edx, eax
and edx, ecx
or edi, edx
add edi, dword [ebp + ebx*4 - 0x134]
mov edx, dword [ebp - 0x148]
rol esi, 5
add esi, dword [ebp - 0x150]
mov dword [ebp - 0x150], edx
lea esi, [edi + esi - 0x70e44324]
mov edx, eax
mov eax, dword [ebp - 0x14c]
ror ecx, 2
mov dword [ebp - 0x14c], esi
add ebx, 5
mov dword [ebp - 0x148], ebx
cmp ebx, 0x3c
jl 0x421050
mov edi, 0x3c
mov dword [ebp - 0x148], edi
lea esp, [esp]
rol esi, 5
add esi, dword [ebp - 0x150]
mov ebx, edx
xor ebx, ecx
xor ebx, eax
add ebx, dword [ebp + edi*4 - 0x144]
mov edi, dword [ebp - 0x148]
ror eax, 2
lea esi, [ebx + esi - 0x359d3e2a]
mov ebx, dword [ebp - 0x14c]
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], esi
rol esi, 5
add esi, dword [ebp - 0x150]
mov edx, ecx
xor edx, eax
xor edx, ebx
add edx, dword [ebp + edi*4 - 0x140]
ror ebx, 2
lea edx, [edx + esi - 0x359d3e2a]
mov esi, eax
xor eax, ebx
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x14c]
xor eax, ecx
add eax, dword [ebp + edi*4 - 0x13c]
mov dword [ebp - 0x14c], edx
rol edx, 5
add edx, dword [ebp - 0x150]
mov dword [ebp - 0x150], esi
ror ecx, 2
lea eax, [eax + edx - 0x359d3e2a]
mov edx, dword [ebp - 0x14c]
mov esi, ebx
xor esi, ecx
xor esi, edx
add esi, dword [ebp + edi*4 - 0x138]
mov dword [ebp - 0x14c], eax
rol eax, 5
add eax, dword [ebp - 0x150]
mov dword [ebp - 0x150], ebx
lea esi, [esi + eax - 0x359d3e2a]
mov eax, ecx
mov dword [ebp - 0x148], ebx
ror edx, 2
mov dword [ebp - 0x148], ecx
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], esi
mov ebx, eax
xor ebx, edx
rol esi, 5
add esi, dword [ebp - 0x150]
xor ebx, ecx
add ebx, dword [ebp + edi*4 - 0x134]
add edi, 5
lea esi, [ebx + esi - 0x359d3e2a]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x14c]
ror ecx, 2
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x148], edi
cmp edi, 0x50
jl 0x4211c0
mov edi, dword [ebp - 0x154]
mov ebx, dword [edi]
add ebx, esi
mov esi, dword [edi + 4]
add esi, eax
mov eax, dword [edi + 8]
add eax, ecx
mov ecx, dword [ebp - 4]
mov dword [edi + 8], eax
mov eax, dword [edi + 0xc]
add eax, edx
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x10]
add eax, dword [ebp - 0x150]
xor edx, edx
mov dword [edi], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x10], eax
mov word [edi + 0x1c], dx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005232d4
mov esp, ebp
pop ebp
ret