Function at 0x58aeec
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x168
push ebx
push ebp
mov ebp, dword [esp + 0x174]
lea edx, [ebp + 0x27]
lea ebx, [ebp + 0x26]
sub ebx, edx
mov dword [esp + 8], ebx
lea ebx, [ebp + 0x28]
sub ebx, edx
mov dword [esp + 0x2c], ebx
lea ebx, [ebp + 0x29]
sub ebx, edx
mov dword [esp + 0x24], ebx
lea ebx, [esp + 0x30]
sub ebx, edx
mov dword [esp + 0x1c], ebx
lea ebx, [esp + 0x34]
sub ebx, edx
mov dword [esp + 0x18], ebx
lea eax, [edx + 4]
lea ebx, [esp + 0x38]
sub ebx, edx
mov dword [esp + 0x28], ebx
lea edx, [ebp + 0x26]
mov ebx, edx
lea edx, [ebp + 0x28]
sub ebx, edx
mov dword [esp + 0x10], ebx
lea ebx, [ebp + 0x29]
sub ebx, edx
mov dword [esp + 0x14], ebx
lea ebx, [ebp + 0x29]
lea edx, [ebp + 0x26]
sub edx, ebx
mov dword [esp + 0x20], edx
push esi
lea edx, [ebp + 0x26]
lea ebx, [esp + 0x34]
xor esi, esi
sub edx, ebx
push edi
lea edi, [ebp + 0x35]
lea ecx, [ebp + 0x30]
mov dword [esp + 0x14], edx
jmp 0x58af7c
mov edx, dword [esp + 0x14]
mov edi, edi
lea edx, [edx + esi*4]
xor ebx, ebx
mov bh, byte [esp + edx + 0x38]
movzx edx, byte [ecx - 8]
add esi, 4
add eax, 0x10
add ecx, 0x10
mov bl, byte [eax - 0x14]
add edi, 0x10
shl ebx, 8
or ebx, edx
movzx edx, byte [edi - 0x1c]
shl ebx, 8
or ebx, edx
xor edx, edx
mov dword [esp + esi*4 + 0x28], ebx
mov ebx, dword [esp + 0x10]
mov dh, byte [ebx + eax - 0x10]
mov ebx, dword [esp + 0x34]
movzx ebx, byte [ebx + eax - 0x10]
mov dl, byte [eax - 0x10]
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x2c]
movzx ebx, byte [ebx + eax - 0x10]
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x24]
mov dword [ebx + eax - 0x10], edx
mov ebx, dword [esp + 0x18]
xor edx, edx
mov dh, byte [ebx + ecx - 0x10]
movzx ebx, byte [ecx - 0x10]
mov dl, byte [eax - 0xc]
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x1c]
movzx ebx, byte [ebx + ecx - 0x10]
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x20]
mov dword [ebx + eax - 0x10], edx
mov ebx, dword [esp + 0x28]
xor edx, edx
mov dh, byte [ebx + edi - 0x10]
movzx ebx, byte [ecx - 0xc]
mov dl, byte [eax - 8]
shl edx, 8
or edx, ebx
movzx ebx, byte [edi - 0x10]
shl edx, 8
or edx, ebx
cmp esi, 0x10
mov ebx, dword [esp + 0x30]
mov dword [ebx + eax - 0x10], edx
jl 0x58af76
lea eax, [esp + 0x58]
mov dword [esp + 0x14], 0x10
mov ebx, dword [eax + 0x14]
mov ecx, dword [eax - 0x20]
mov edi, dword [eax]
mov esi, dword [eax - 0x18]
xor ecx, ebx
mov ebx, dword [eax + 0x18]
xor ecx, edi
mov edi, dword [eax - 0x14]
xor ecx, esi
mov edx, ecx
add ecx, ecx
shr edx, 0x1f
or edx, ecx
mov ecx, dword [eax - 0x1c]
xor ecx, ebx
xor ecx, dword [eax + 4]
xor ecx, edi
mov ebx, ecx
add ecx, ecx
shr ebx, 0x1f
or ebx, ecx
mov ecx, dword [eax + 0x1c]
mov dword [eax + 0x24], ebx
xor ecx, dword [eax - 0x10]
xor ecx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
xor ecx, esi
mov esi, ecx
add ecx, ecx
shr esi, 0x1f
or esi, ecx
mov ecx, dword [eax - 0xc]
xor ecx, ebx
xor ecx, edx
xor ecx, edi
mov dword [eax + 0x20], edx
mov edx, ecx
add ecx, ecx
shr edx, 0x1f
or edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x28], esi
mov dword [eax + 0x2c], edx
add eax, 0x10
dec ecx
mov dword [esp + 0x14], ecx
jne 0x58b043
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov ebp, dword [ebp + 0x18]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0
mov ebx, eax
not ebx
and ebx, esi
mov ebp, ecx
shl ebp, 5
mov edi, edx
and edi, eax
or ebx, edi
mov edi, ecx
shr edi, 0x1b
or edi, ebp
add ebx, edi
mov edi, dword [esp + 0x10]
add ebx, dword [esp + edi*4 + 0x38]
mov ebp, dword [esp + 0x14]
lea ebx, [ebx + ebp + 0x5a827999]
mov ebp, eax
mov dword [esp + 0x14], esi
shr eax, 2
shl ebp, 0x1e
or ebp, eax
mov eax, ecx
mov dword [esp + 0x10], ebx
not eax
and eax, edx
mov esi, ebp
and esi, ecx
or eax, esi
mov esi, ebx
shl ebx, 5
shr esi, 0x1b
or esi, ebx
add eax, esi
add eax, dword [esp + edi*4 + 0x3c]
mov esi, dword [esp + 0x14]
lea esi, [eax + esi + 0x5a827999]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov edx, ecx
shr ecx, 2
shl edx, 0x1e
or edx, ecx
mov ecx, eax
not ecx
and ecx, ebp
mov dword [esp + 0x10], esi
mov ebx, edx
and ebx, eax
or ecx, ebx
mov ebx, esi
shr ebx, 0x1b
shl esi, 5
or ebx, esi
mov esi, dword [esp + edi*4 + 0x40]
add ecx, ebx
add ecx, esi
mov esi, dword [esp + 0x14]
lea ecx, [ecx + esi + 0x5a827999]
mov esi, eax
shr eax, 2
shl esi, 0x1e
mov dword [esp + 0x14], ebp
or esi, eax
mov eax, dword [esp + 0x10]
mov ebx, eax
not ebx
and ebx, edx
mov ebp, esi
and ebp, eax
or ebx, ebp
mov ebp, ecx
mov dword [esp + 0x10], ecx
shr ebp, 0x1b
shl ecx, 5
or ebp, ecx
mov ecx, dword [esp + 0x14]
add ebx, ebp
add ebx, dword [esp + edi*4 + 0x44]
lea ecx, [ebx + ecx + 0x5a827999]
mov ebx, esi
mov esi, eax
shr eax, 2
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
shl esi, 0x1e
or esi, eax
mov eax, edx
not eax
and eax, ebx
mov ebp, esi
and ebp, edx
or eax, ebp
mov dword [esp + 0x10], ecx
mov ebp, ecx
shl ecx, 5
shr ebp, 0x1b
or ebp, ecx
mov ecx, dword [esp + 0x14]
add eax, ebp
add eax, dword [esp + edi*4 + 0x48]
lea ecx, [eax + ecx + 0x5a827999]
mov eax, edx
shl eax, 0x1e
shr edx, 2
add edi, 5
or edx, eax
cmp edi, 0x14
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
jl 0x58b0d4
mov edi, 0x14
mov ebx, ecx
shr ebx, 0x1b
mov ebp, ecx
shl ebp, 5
or ebx, ebp
mov ebp, esi
xor ebp, edx
xor ebp, eax
add ebx, ebp
add ebx, dword [esp + edi*4 + 0x38]
mov ebp, dword [esp + 0x14]
lea ebx, [ebx + ebp + 0x6ed9eba1]
mov ebp, eax
shr eax, 2
mov dword [esp + 0x10], ebx
shl ebp, 0x1e
or ebp, eax
mov eax, ebx
shl ebx, 5
shr eax, 0x1b
or eax, ebx
mov ebx, edx
xor ebx, ebp
xor ebx, ecx
add eax, ebx
add eax, dword [esp + edi*4 + 0x3c]
lea eax, [eax + esi + 0x6ed9eba1]
mov esi, edx
mov edx, ecx
mov ebx, eax
shr ecx, 2
shr ebx, 0x1b
shl edx, 0x1e
or edx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], eax
shl eax, 5
or ebx, eax
mov eax, ebp
xor eax, edx
xor eax, ecx
add ebx, eax
add ebx, dword [esp + edi*4 + 0x40]
lea eax, [ebx + esi + 0x6ed9eba1]
mov esi, ecx
shr ecx, 2
mov ebx, ebp
mov ebp, eax
shl esi, 0x1e
or esi, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], eax
shl eax, 5
shr ebp, 0x1b
or ebp, eax
mov eax, edx
xor eax, esi
xor eax, ecx
add ebp, eax
add ebp, dword [esp + edi*4 + 0x44]
lea ebx, [ebx + ebp + 0x6ed9eba1]
mov ebp, dword [esp + 0x10]
mov eax, edx
mov edx, ecx
shr ecx, 2
shl edx, 0x1e
or edx, ecx
mov ecx, ebx
mov dword [esp + 0x10], ebx
shl ebx, 5
shr ecx, 0x1b
or ecx, ebx
mov ebx, esi
xor ebx, edx
xor ebx, ebp
add ecx, ebx
mov ebx, dword [esp + edi*4 + 0x48]
mov dword [esp + 0x14], esi
mov esi, edx
mov edx, ebp
shl edx, 0x1e
shr ebp, 2
add ecx, ebx
add edi, 5
or edx, ebp
cmp edi, 0x28
lea ecx, [ecx + eax + 0x6ed9eba1]
mov eax, dword [esp + 0x10]
jl 0x58b21c
mov dword [esp + 0x10], 0x28
jmp 0x58b32c
mov edi, edx
or edi, eax
and edi, esi
mov ebx, edx
and ebx, eax
or edi, ebx
mov ebx, ecx
mov ebp, ecx
shl ebp, 5
shr ebx, 0x1b
or ebx, ebp
add edi, ebx
mov ebx, dword [esp + 0x10]
add edi, dword [esp + ebx*4 + 0x38]
mov ebp, dword [esp + 0x14]
lea ebp, [edi + ebp - 0x70e44324]
mov edi, eax
shr eax, 2
mov dword [esp + 0x14], esi
shl edi, 0x1e
or edi, eax
mov dword [esp + 0x10], ebp
mov eax, edi
or eax, ecx
and eax, edx
mov esi, edi
and esi, ecx
or eax, esi
mov esi, ebp
shl ebp, 5
shr esi, 0x1b
or esi, ebp
add eax, esi
add eax, dword [esp + ebx*4 + 0x3c]
mov esi, dword [esp + 0x14]
lea esi, [eax + esi - 0x70e44324]
mov dword [esp + 0x14], edx
mov eax, ecx
shr ecx, 2
shl eax, 0x1e
or eax, ecx
mov ecx, dword [esp + 0x10]
mov edx, eax
or edx, ecx
and edx, edi
mov dword [esp + 0x10], esi
mov ebp, eax
and ebp, ecx
or edx, ebp
mov ebp, esi
shr ebp, 0x1b
shl esi, 5
or ebp, esi
mov esi, dword [esp + 0x14]
add edx, ebp
add edx, dword [esp + ebx*4 + 0x40]
lea esi, [edx + esi - 0x70e44324]
mov edx, ecx
mov dword [esp + 0x14], edi
shr ecx, 2
shl edx, 0x1e
or edx, ecx
mov ecx, dword [esp + 0x10]
mov edi, edx
or edi, ecx
and edi, eax
mov ebp, edx
and ebp, ecx
or edi, ebp
mov ebp, esi
mov dword [esp + 0x10], esi
shr ebp, 0x1b
shl esi, 5
or ebp, esi
mov esi, dword [esp + 0x14]
add edi, ebp
add edi, dword [esp + ebx*4 + 0x44]
lea ebp, [edi + esi - 0x70e44324]
mov edi, dword [esp + 0x10]
mov esi, ecx
shr ecx, 2
mov dword [esp + 0x14], eax
shl esi, 0x1e
or esi, ecx
mov eax, esi
or eax, edi
and eax, edx
mov ecx, esi
and ecx, edi
or eax, ecx
mov dword [esp + 0x10], ebp
mov ecx, ebp
shr ecx, 0x1b
shl ebp, 5
or ecx, ebp
add eax, ecx
add eax, dword [esp + ebx*4 + 0x48]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], edx
mov edx, edi
shl edx, 0x1e
shr edi, 2
add ebx, 5
lea ecx, [eax + ecx - 0x70e44324]
mov eax, dword [esp + 0x10]
or edx, edi
cmp ebx, 0x3c
mov dword [esp + 0x10], ebx
jl 0x58b32c
mov edi, 0x3c
mov ebx, ecx
shr ebx, 0x1b
mov ebp, ecx
shl ebp, 5
or ebx, ebp
mov ebp, esi
xor ebp, edx
xor ebp, eax
add ebx, ebp
add ebx, dword [esp + edi*4 + 0x38]
mov ebp, dword [esp + 0x14]
lea ebx, [ebx + ebp - 0x359d3e2a]
mov ebp, eax
shr eax, 2
mov dword [esp + 0x10], ebx
shl ebp, 0x1e
or ebp, eax
mov eax, ebx
shl ebx, 5
shr eax, 0x1b
or eax, ebx
mov ebx, edx
xor ebx, ebp
xor ebx, ecx
add eax, ebx
add eax, dword [esp + edi*4 + 0x3c]
lea eax, [eax + esi - 0x359d3e2a]
mov esi, edx
mov edx, ecx
mov ebx, eax
shr ecx, 2
shr ebx, 0x1b
shl edx, 0x1e
or edx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], eax
shl eax, 5
or ebx, eax
mov eax, ebp
xor eax, edx
xor eax, ecx
add ebx, eax
add ebx, dword [esp + edi*4 + 0x40]
lea eax, [ebx + esi - 0x359d3e2a]
mov esi, ecx
shr ecx, 2
mov ebx, ebp
mov ebp, eax
shl esi, 0x1e
or esi, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], eax
shl eax, 5
shr ebp, 0x1b
or ebp, eax
mov eax, edx
xor eax, esi
xor eax, ecx
add ebp, eax
add ebp, dword [esp + edi*4 + 0x44]
lea ebx, [ebx + ebp - 0x359d3e2a]
mov ebp, dword [esp + 0x10]
mov eax, edx
mov edx, ecx
shr ecx, 2
shl edx, 0x1e
or edx, ecx
mov ecx, ebx
mov dword [esp + 0x10], ebx
shl ebx, 5
shr ecx, 0x1b
or ecx, ebx
mov ebx, esi
xor ebx, edx
xor ebx, ebp
add ecx, ebx
add ecx, dword [esp + edi*4 + 0x48]
mov ebx, esi
mov esi, edx
mov edx, ebp
shl edx, 0x1e
shr ebp, 2
add edi, 5
or edx, ebp
cmp edi, 0x50
lea ecx, [ecx + eax - 0x359d3e2a]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ebx
jl 0x58b470
mov edi, dword [esp + 0x17c]
mov ebp, dword [edi + 8]
add ebp, ecx
mov ecx, dword [edi + 0xc]
add ecx, eax
mov eax, dword [edi + 0x10]
add eax, edx
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x14]
add eax, esi
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x18]
add eax, ebx
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ecx
mov dword [edi + 0x18], eax
mov word [edi + 0x24], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret