Function at 0x566c55
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x5f0bf8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x10
pop ecx
mov esi, edx
lea edi, [ebp - 0x144]
push 0x40
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x13c]
pop edx
mov esi, dword [ecx + 0x2c]
xor esi, dword [ecx + 0x18]
xor esi, dword [ecx - 8]
xor esi, dword [ecx]
add ecx, 4
dec edx
rol esi, 1
mov dword [ecx + 0x34], esi
jne 0x566c84
mov esi, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 8]
and dword [ebp - 0x148], 0
mov dword [ebp - 0x14c], esi
mov esi, dword [eax + 0x10]
mov dword [ebp - 0x150], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x154], esi
mov esi, dword [ebp - 0x150]
mov edi, ecx
not edi
and edi, dword [ebp - 0x14c]
mov ebx, edx
and ebx, ecx
or edi, ebx
rol esi, 5
add esi, edi
mov edi, dword [ebp - 0x148]
add esi, dword [ebp + edi*4 - 0x144]
mov edi, dword [ebp - 0x154]
inc dword [ebp - 0x148]
lea edi, [esi + edi + 0x5a827999]
mov esi, dword [ebp - 0x14c]
ror ecx, 2
mov dword [ebp - 0x14c], edx
mov edx, ecx
mov ecx, dword [ebp - 0x150]
push 0x14
mov dword [ebp - 0x150], edi
pop edi
mov dword [ebp - 0x154], esi
cmp dword [ebp - 0x148], edi
jl 0x566cc1
mov dword [ebp - 0x148], edi
mov ebx, dword [ebp - 0x14c]
mov edi, dword [ebp - 0x150]
xor ebx, edx
rol edi, 5
xor ebx, ecx
add edi, ebx
mov ebx, dword [ebp - 0x148]
add edi, dword [ebp + ebx*4 - 0x144]
inc dword [ebp - 0x148]
lea edi, [edi + esi + 0x6ed9eba1]
mov esi, dword [ebp - 0x14c]
ror ecx, 2
mov dword [ebp - 0x14c], edx
mov edx, ecx
mov ecx, dword [ebp - 0x150]
push 0x28
mov dword [ebp - 0x150], edi
pop edi
cmp dword [ebp - 0x148], edi
jl 0x566d30
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x148], edi
mov esi, dword [ebp - 0x150]
mov edi, edx
or edi, ecx
and edi, dword [ebp - 0x14c]
mov ebx, edx
and ebx, ecx
or edi, ebx
mov ebx, dword [ebp - 0x148]
add edi, dword [ebp + ebx*4 - 0x144]
rol esi, 5
add esi, dword [ebp - 0x154]
inc dword [ebp - 0x148]
lea esi, [edi + esi - 0x70e44324]
mov edi, dword [ebp - 0x14c]
ror ecx, 2
mov dword [ebp - 0x14c], edx
mov edx, ecx
mov ecx, dword [ebp - 0x150]
push 0x3c
mov dword [ebp - 0x150], esi
pop esi
mov dword [ebp - 0x154], edi
cmp dword [ebp - 0x148], esi
jl 0x566d93
mov dword [ebp - 0x148], esi
mov edi, dword [ebp - 0x14c]
mov esi, dword [ebp - 0x150]
mov ebx, dword [ebp - 0x148]
xor edi, edx
xor edi, ecx
add edi, dword [ebp + ebx*4 - 0x144]
mov ebx, dword [ebp - 0x14c]
rol esi, 5
add esi, dword [ebp - 0x154]
inc dword [ebp - 0x148]
ror ecx, 2
cmp dword [ebp - 0x148], 0x50
mov dword [ebp - 0x14c], edx
lea edi, [edi + esi - 0x359d3e2a]
mov edx, ecx
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], edi
jl 0x566e00
mov esi, dword [eax]
add esi, edi
mov dword [eax], esi
mov esi, dword [eax + 4]
add esi, ecx
mov ecx, dword [eax + 8]
add ecx, edx
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x14c]
pop edi
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 0x10]
add ecx, ebx
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 4], esi
pop esi
xor ecx, ebp
pop ebx
call fcn.005437e5
leave
ret