Function at 0x591412
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x5a1014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x14c], ecx
mov ebx, dword [esi + 0x48]
mov eax, dword [esi + 0x50]
mov edi, dword [esi + 0x44]
mov edx, dword [esi + 0x4c]
mov dword [ebp - 0x154], ebx
lea ebx, [esi + 4]
mov dword [ebp - 0x150], eax
mov eax, dword [esi + 0x54]
mov esi, ecx
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x148], eax
mov eax, dword [ebx]
mov dword [ebp + esi*4 - 0x144], eax
inc esi
mov dword [ebx], ecx
lea ebx, [ebx + 4]
cmp esi, 0x10
jl 0x591464
mov ebx, dword [ebp - 0x154]
lea ecx, [ebp - 0x13c]
push 0x20
pop edi
mov eax, dword [ecx + 0x2c]
xor eax, dword [ecx + 0x18]
xor eax, dword [ecx - 8]
xor eax, dword [ecx]
lea ecx, [ecx + 8]
rol eax, 1
mov dword [ecx + 0x30], eax
mov eax, dword [ecx + 0x28]
xor eax, dword [ecx + 0x14]
xor eax, dword [ecx - 0xc]
xor eax, dword [ecx - 4]
rol eax, 1
mov dword [ecx + 0x34], eax
sub edi, 1
jne 0x591487
mov edi, dword [ebp - 0x15c]
mov esi, dword [ebp - 0x150]
mov eax, esi
mov ecx, edi
xor eax, edx
rol ecx, 5
and eax, ebx
rol ebx, 0x1e
xor eax, esi
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 0x148]
add eax, 0x5a827999
add eax, ecx
mov dword [ebp - 0x148], 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 - 0x14c]
add ecx, 0x5a827999
add ecx, dword [ebp + eax*4 - 0x140]
mov eax, ebx
xor eax, edi
add esi, ecx
and eax, dword [ebp - 0x148]
mov ecx, esi
xor eax, ebx
rol ecx, 5
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, 0x5a827999
add ecx, dword [ebp + eax*4 - 0x13c]
mov eax, dword [ebp - 0x148]
add edx, ecx
rol eax, 0x1e
mov ecx, edx
mov dword [ebp - 0x148], eax
xor eax, edi
and eax, esi
rol ecx, 5
xor eax, edi
rol esi, 0x1e
add ecx, eax
add edi, 0x5a827999
mov eax, dword [ebp - 0x14c]
add ecx, 0x5a827999
add ecx, dword [ebp + eax*4 - 0x138]
mov eax, dword [ebp - 0x148]
add ebx, ecx
xor eax, esi
mov ecx, ebx
and eax, edx
rol ecx, 5
xor eax, dword [ebp - 0x148]
add ecx, eax
rol edx, 0x1e
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + eax*4 - 0x134]
add eax, 5
add edi, ecx
mov dword [ebp - 0x14c], eax
cmp eax, 0xf
jle 0x5914bc
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x14c], 0x14
mov eax, dword [ebp - 0x150]
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 + eax*4 - 0x144]
mov eax, dword [ebp - 0x148]
add eax, 0x6ed9eba1
add eax, ecx
mov dword [ebp - 0x148], 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 - 0x14c]
add ecx, dword [ebp + eax*4 - 0x140]
mov eax, dword [ebp - 0x150]
add eax, 0x6ed9eba1
add eax, ecx
mov dword [ebp - 0x150], eax
mov ecx, eax
mov eax, dword [ebp - 0x148]
xor eax, ebx
rol ecx, 5
xor eax, edi
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, 0x6ed9eba1
add ecx, dword [ebp + eax*4 - 0x13c]
mov eax, dword [ebp - 0x148]
add edx, ecx
rol eax, 0x1e
mov ecx, edx
mov dword [ebp - 0x148], eax
xor eax, dword [ebp - 0x150]
rol dword [ebp - 0x150], 0x1e
xor eax, edi
rol ecx, 5
add edi, 0x6ed9eba1
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, 0x6ed9eba1
add ecx, dword [ebp + eax*4 - 0x138]
mov eax, dword [ebp - 0x148]
add ebx, ecx
xor eax, dword [ebp - 0x150]
mov ecx, ebx
xor eax, edx
rol ecx, 5
add ecx, eax
rol edx, 0x1e
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + eax*4 - 0x134]
add eax, 5
add edi, ecx
mov dword [ebp - 0x14c], eax
cmp eax, 0x23
jle 0x5915c2
mov dword [ebp - 0x154], edx
mov esi, edx
mov dword [ebp - 0x14c], 0x28
mov eax, dword [ebp - 0x150]
mov edx, edi
mov ecx, eax
rol edx, 5
or ecx, ebx
and eax, ebx
and ecx, esi
rol ebx, 0x1e
or ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + eax*4 - 0x144]
lea eax, [edx - 0x70e44324]
add ecx, dword [ebp - 0x148]
add eax, ecx
mov ecx, esi
or ecx, edi
mov dword [ebp - 0x148], eax
and ecx, ebx
mov edx, eax
mov eax, esi
rol edx, 5
and eax, edi
rol edi, 0x1e
or ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + eax*4 - 0x140]
lea eax, [edx - 0x70e44324]
add ecx, dword [ebp - 0x150]
add eax, ecx
mov dword [ebp - 0x150], eax
mov edx, eax
mov eax, dword [ebp - 0x148]
mov ecx, eax
or ecx, ebx
rol dword [ebp - 0x148], 0x1e
and ecx, edi
rol edx, 5
and eax, ebx
or ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + eax*4 - 0x13c]
mov eax, dword [ebp - 0x150]
add ecx, esi
lea esi, [edx - 0x70e44324]
add esi, ecx
mov ecx, eax
or ecx, edi
and eax, edi
and ecx, dword [ebp - 0x148]
mov edx, esi
or ecx, eax
rol edx, 5
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + eax*4 - 0x138]
mov eax, dword [ebp - 0x150]
add ecx, ebx
lea ebx, [edx - 0x70e44324]
rol eax, 0x1e
add ebx, ecx
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x148]
mov edx, ebx
or ecx, esi
rol edx, 5
and ecx, eax
mov eax, dword [ebp - 0x148]
and eax, esi
rol esi, 0x1e
or ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + eax*4 - 0x134]
add eax, 5
add ecx, edi
mov dword [ebp - 0x14c], eax
lea edi, [edx - 0x70e44324]
add edi, ecx
cmp eax, 0x37
jle 0x5916d7
mov dword [ebp - 0x154], esi
mov edx, esi
mov dword [ebp - 0x14c], 0x3c
mov esi, dword [ebp - 0x14c]
mov ecx, edi
mov eax, dword [ebp - 0x150]
xor eax, edx
rol ecx, 5
xor eax, ebx
add ecx, 0xca62c1d6
add eax, dword [ebp + esi*4 - 0x144]
add eax, dword [ebp - 0x148]
add eax, ecx
rol ebx, 0x1e
mov dword [ebp - 0x148], 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 - 0x150]
add eax, ecx
mov dword [ebp - 0x150], eax
mov ecx, eax
mov eax, dword [ebp - 0x148]
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 - 0x148]
rol eax, 0x1e
mov ecx, edx
mov dword [ebp - 0x148], eax
xor eax, dword [ebp - 0x150]
rol dword [ebp - 0x150], 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 - 0x148]
xor eax, dword [ebp - 0x150]
mov ecx, ebx
xor eax, edx
rol ecx, 5
add eax, dword [ebp + esi*4 - 0x134]
add ecx, 0xca62c1d6
add edi, eax
rol edx, 0x1e
mov eax, esi
add edi, ecx
mov esi, dword [ebp - 0x158]
add eax, 5
mov dword [ebp - 0x14c], eax
cmp eax, 0x4b
jle 0x59180e
add dword [esi + 0x44], edi
mov eax, dword [ebp - 0x150]
add dword [esi + 0x50], eax
add dword [esi + 0x48], ebx
add dword [esi + 0x4c], edx
mov eax, dword [ebp - 0x148]
add dword [esi + 0x54], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a40f
leave
ret