Function at 0x401570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
xor esi, esi
movzx edi, byte [edx + 2]
xor eax, eax
mov ah, byte [edx]
add edx, 4
mov al, byte [edx - 3]
shl eax, 8
or eax, edi
movzx edi, byte [edx - 1]
shl eax, 8
or eax, edi
mov dword [ebp + esi*4 - 0x158], eax
inc esi
cmp esi, 0x10
jl 0x401581
lea eax, [ebp + esi*4 - 0x190]
mov ebx, dword [eax + 0x18]
mov edx, dword [eax + 0x2c]
mov edi, dword [eax - 8]
xor edx, ebx
mov ebx, dword [eax]
xor edx, edi
xor edx, ebx
rol edx, 1
mov dword [eax + 0x38], edx
inc esi
add eax, 4
cmp esi, 0x50
jl 0x4015b1
mov eax, dword [ecx + 8]
mov esi, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
lea esp, [esp]
mov ebx, dword [ebp - 4]
mov edi, edx
not edi
and edi, ebx
mov ebx, dword [ebp - 0x14]
and ebx, edx
or edi, ebx
mov ebx, dword [ebp - 0x14]
mov ecx, esi
rol ecx, 5
add ecx, edi
add ecx, dword [ebp + eax*4 - 0x158]
mov edi, dword [ebp - 0xc]
lea ecx, [edi + ecx + 0x5a827999]
rol edx, 0x1e
mov edi, esi
mov dword [ebp - 8], edx
not edi
and edi, ebx
mov ebx, dword [ebp - 8]
and ebx, esi
or edi, ebx
mov ebx, dword [ebp - 8]
mov edx, ecx
rol edx, 5
add edx, edi
mov dword [ebp + eax*4 - 0x158], 0
add edx, dword [ebp + eax*4 - 0x154]
mov edi, dword [ebp - 4]
rol esi, 0x1e
lea edx, [edi + edx + 0x5a827999]
mov edi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], edx
rol edx, 5
not edi
and edi, ebx
mov ebx, ecx
and ebx, esi
or edi, ebx
mov ebx, dword [ebp - 4]
add edx, edi
mov dword [ebp + eax*4 - 0x154], 0
add edx, dword [ebp + eax*4 - 0x150]
mov esi, dword [ebp - 0x14]
lea edi, [esi + edx + 0x5a827999]
rol ecx, 0x1e
mov esi, ebx
not esi
and esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
and ecx, ebx
or esi, ecx
mov ecx, dword [ebp - 8]
mov edx, edi
rol edx, 5
add edx, esi
mov dword [ebp + eax*4 - 0x150], 0
add edx, dword [ebp + eax*4 - 0x14c]
rol ebx, 0x1e
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
mov esi, edi
not esi
and esi, ebx
mov ebx, dword [ebp - 4]
lea edx, [ecx + edx + 0x5a827999]
and ebx, edi
or esi, ebx
mov ecx, edx
rol ecx, 5
add ecx, esi
mov dword [ebp + eax*4 - 0x14c], 0
add ecx, dword [ebp + eax*4 - 0x148]
mov esi, dword [ebp - 0x10]
lea esi, [esi + ecx + 0x5a827999]
mov dword [ebp + eax*4 - 0x148], 0
rol edi, 0x1e
add eax, 5
cmp eax, 0x14
mov dword [ebp - 0x14], edi
jl 0x4015f0
mov ebx, dword [ebp - 4]
xor ebx, edi
xor ebx, edx
mov ecx, esi
rol ecx, 5
add ecx, ebx
add ecx, dword [ebp + eax*4 - 0x158]
mov ebx, dword [ebp - 0xc]
rol edx, 0x1e
lea ecx, [ebx + ecx + 0x6ed9eba1]
mov dword [ebp - 8], edx
mov ebx, edi
xor ebx, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x158], 0
xor ebx, esi
mov edx, ecx
rol edx, 5
add edx, ebx
add edx, dword [ebp + eax*4 - 0x154]
mov ebx, dword [ebp - 4]
rol esi, 0x1e
mov dword [ebp - 0x10], esi
lea edx, [ebx + edx + 0x6ed9eba1]
mov ebx, dword [ebp - 8]
mov dword [ebp - 4], edx
rol edx, 5
mov esi, ecx
xor esi, ebx
xor esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 4]
add edx, esi
mov dword [ebp + eax*4 - 0x154], 0
add edx, dword [ebp + eax*4 - 0x150]
rol ecx, 0x1e
lea edi, [edi + edx + 0x6ed9eba1]
mov esi, ecx
xor esi, ebx
xor esi, dword [ebp - 0x10]
mov edx, edi
rol edx, 5
add edx, esi
mov dword [ebp + eax*4 - 0x150], 0
add edx, dword [ebp + eax*4 - 0x14c]
mov esi, dword [ebp - 8]
rol ebx, 0x1e
lea edx, [esi + edx + 0x6ed9eba1]
mov dword [ebp - 0xc], ecx
xor ecx, ebx
xor ecx, edi
mov esi, edx
rol esi, 5
add esi, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x14c], 0
mov dword [ebp - 4], ebx
add esi, dword [ebp + eax*4 - 0x148]
mov dword [ebp + eax*4 - 0x148], 0
add eax, 5
rol edi, 0x1e
cmp eax, 0x28
lea esi, [ecx + esi + 0x6ed9eba1]
jl 0x401717
mov dword [ebp - 0x14], edi
mov ebx, dword [ebp - 4]
or ebx, edx
and ebx, edi
mov edi, dword [ebp - 4]
and edi, edx
or ebx, edi
add ebx, dword [ebp + eax*4 - 0x158]
add ebx, dword [ebp - 0xc]
mov ecx, esi
rol ecx, 5
lea ecx, [ebx + ecx - 0x70e44324]
mov ebx, dword [ebp - 0x14]
or ebx, esi
rol edx, 0x1e
and ebx, edx
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x14]
and edx, esi
or ebx, edx
mov dword [ebp + eax*4 - 0x158], 0
add ebx, dword [ebp + eax*4 - 0x154]
add ebx, dword [ebp - 4]
mov edi, ecx
rol edi, 5
lea edx, [ebx + edi - 0x70e44324]
rol esi, 0x1e
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, edx
mov edx, dword [ebp - 8]
or ebx, edx
and ebx, esi
mov dword [ebp - 0x10], esi
mov esi, ecx
and esi, edx
or ebx, esi
mov esi, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x154], 0
add ebx, dword [ebp + eax*4 - 0x150]
mov edx, dword [ebp - 0x10]
add ebx, esi
rol edi, 5
rol ecx, 0x1e
lea edi, [ebx + edi - 0x70e44324]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
mov ebx, ecx
or ebx, edx
and ebx, dword [ebp - 0xc]
and ecx, edx
or ebx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x150], 0
add ebx, dword [ebp + eax*4 - 0x14c]
add ebx, ecx
mov ecx, dword [ebp - 4]
mov esi, edi
rol esi, 5
lea edx, [ebx + esi - 0x70e44324]
mov ebx, dword [ebp - 0xc]
rol ecx, 0x1e
or ebx, edi
and ebx, ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
and ecx, edi
or ebx, ecx
mov dword [ebp + eax*4 - 0x14c], 0
add ebx, dword [ebp + eax*4 - 0x148]
mov ecx, dword [ebp - 0x10]
mov esi, edx
rol esi, 5
add ebx, ecx
lea esi, [ebx + esi - 0x70e44324]
mov dword [ebp + eax*4 - 0x148], 0
rol edi, 0x1e
add eax, 5
cmp eax, 0x3c
mov dword [ebp - 0x14], edi
jl 0x401814
lea esp, [esp]
mov ebx, dword [ebp - 4]
xor ebx, edi
mov edi, dword [ebp + eax*4 - 0x158]
xor ebx, edx
add ebx, edi
add ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
mov ecx, esi
rol ecx, 5
lea ecx, [ebx + ecx - 0x359d3e2a]
rol edx, 0x1e
mov dword [ebp - 8], edx
xor edi, dword [ebp - 8]
xor edi, esi
mov dword [ebp + eax*4 - 0x158], 0
add edi, dword [ebp + eax*4 - 0x154]
add edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov edx, ecx
rol edx, 5
rol esi, 0x1e
mov dword [ebp - 0x10], esi
mov esi, ecx
xor esi, ebx
xor esi, dword [ebp - 0x10]
lea edi, [edi + edx - 0x359d3e2a]
mov dword [ebp + eax*4 - 0x154], 0
add esi, dword [ebp + eax*4 - 0x150]
add esi, dword [ebp - 0x14]
mov edx, edi
rol edx, 5
lea ebx, [esi + edx - 0x359d3e2a]
mov esi, dword [ebp - 0x10]
rol ecx, 0x1e
mov dword [ebp - 0xc], ecx
xor ecx, edi
xor ecx, esi
mov dword [ebp + eax*4 - 0x150], 0
add ecx, dword [ebp + eax*4 - 0x14c]
add ecx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edx, ebx
rol edx, 5
rol edi, 0x1e
xor esi, edi
xor esi, ebx
mov dword [ebp - 4], edi
mov dword [ebp + eax*4 - 0x14c], 0
add esi, dword [ebp + eax*4 - 0x148]
mov edi, dword [ebp - 0x10]
lea edx, [ecx + edx - 0x359d3e2a]
add esi, edi
mov ecx, edx
rol ecx, 5
rol ebx, 0x1e
mov dword [ebp + eax*4 - 0x148], 0
add eax, 5
cmp eax, 0x50
mov edi, ebx
lea esi, [esi + ecx - 0x359d3e2a]
mov dword [ebp - 0x14], edi
jl 0x401940
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
add ecx, esi
mov dword [eax], ecx
mov ecx, dword [eax + 4]
add ecx, edx
mov edx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov ecx, dword [eax + 8]
add ecx, edi
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
add ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 0x10]
pop edi
add ecx, edx
pop esi
mov dword [eax + 0x10], ecx
pop ebx
mov esp, ebp
pop ebp
ret