Function at 0x4baae0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x150
push ebx
push ebp
mov ebp, dword [esp + 0x15c]
mov ebx, ecx
mov dword [esp + 0x14], ebx
test ebp, ebp
je 0x4bb026
push edi
mov edi, dword [esp + 0x164]
test edi, edi
jbe 0x4bb025
push esi
mov edi, edi
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x4bafc8
cmp edi, 0x40
jb 0x4bafc8
lea edi, [ebx + 0x28]
mov ecx, 0x10
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
lea eax, [ebx + 0x29]
movzx edx, byte [eax - 1]
movzx esi, byte [eax]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 1]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 2]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 4]
mov dword [esp + ecx*4 + 0x20], edx
movzx edx, byte [eax + 3]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 5]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 6]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 8]
mov dword [esp + ecx*4 + 0x24], edx
movzx edx, byte [eax + 7]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 9]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 0xa]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 0xc]
mov dword [esp + ecx*4 + 0x28], edx
movzx edx, byte [eax + 0xb]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 0xd]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 0xe]
shl edx, 8
or edx, esi
mov dword [esp + ecx*4 + 0x2c], edx
add ecx, 4
add eax, 0x10
cmp ecx, 0x10
jb 0x4bab35
mov eax, dword [ebx + 0x10]
mov edi, dword [ebx + 0x14]
mov esi, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x14], 0x10
mov edi, edi
mov ebx, dword [eax - 0x20]
xor ebx, dword [eax + 0x14]
mov ebp, dword [eax - 0x18]
xor ebx, ebp
xor ebx, dword [eax]
mov ebp, dword [eax - 0x1c]
xor ebp, dword [eax + 0x18]
rol ebx, 1
xor ebp, dword [eax + 4]
mov dword [eax + 0x20], ebx
mov dword [esp + 0x18], ebx
mov ebx, dword [eax - 0x14]
xor ebp, ebx
mov ebx, dword [eax + 0x1c]
xor ebx, dword [eax - 0x10]
rol ebp, 1
xor ebx, dword [eax + 8]
mov dword [eax + 0x24], ebp
xor ebx, dword [eax - 0x18]
add eax, 0x10
rol ebx, 1
mov dword [eax + 0x18], ebx
mov ebx, dword [eax - 0x1c]
xor ebx, dword [eax - 4]
xor ebx, dword [esp + 0x18]
xor ebx, dword [eax - 0x24]
rol ebx, 1
sub dword [esp + 0x14], 1
mov dword [eax + 0x1c], ebx
jne 0x4babf0
mov ebp, dword [esp + 0x10]
xor eax, eax
lea esp, [esp]
rol ebp, 5
mov ebx, edx
xor ebx, esi
and ebx, edi
xor ebx, edx
add ebp, ebx
add ebp, dword [esp + eax*4 + 0x20]
inc eax
lea ecx, [ecx + ebp + 0x5a827999]
rol edi, 0x1e
mov ebp, esi
xor ebp, edi
and ebp, dword [esp + 0x10]
mov ebx, ecx
xor ebp, esi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x20]
inc eax
lea edx, [edx + ebx + 0x5a827999]
mov ebx, dword [esp + 0x10]
rol ebx, 0x1e
mov ebp, edi
xor ebp, ebx
and ebp, ecx
xor ebp, edi
mov dword [esp + 0x14], edx
rol edx, 5
add edx, ebp
add edx, dword [esp + eax*4 + 0x20]
inc eax
rol ecx, 0x1e
lea esi, [esi + edx + 0x5a827999]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], esi
rol esi, 5
mov ebp, ecx
xor ebp, ebx
and ebp, edx
xor ebp, ebx
add esi, ebp
add esi, dword [esp + eax*4 + 0x20]
inc eax
rol edx, 0x1e
mov dword [esp + 0x10], ebx
lea edi, [edi + esi + 0x5a827999]
mov esi, dword [esp + 0x18]
mov ebp, ecx
xor ebp, edx
and ebp, esi
xor ebp, ecx
mov ebx, edi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x20]
mov ebp, dword [esp + 0x10]
inc eax
rol esi, 0x1e
lea ebp, [ebx + ebp + 0x5a827999]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], esi
cmp eax, 0x14
jb 0x4bac50
cmp eax, 0x28
jae 0x4badc9
rol ebp, 5
inc eax
mov ebx, edx
xor ebx, esi
xor ebx, edi
add ebp, ebx
add ebp, dword [esp + eax*4 + 0x1c]
rol edi, 0x1e
lea ecx, [ecx + ebp + 0x6ed9eba1]
mov dword [esp + 0x14], edi
mov ebp, esi
xor ebp, edi
mov edi, dword [esp + 0x10]
xor ebp, edi
mov ebx, ecx
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x20]
inc eax
lea edx, [edx + ebx + 0x6ed9eba1]
rol edi, 0x1e
mov ebp, ecx
xor ebp, dword [esp + 0x14]
mov ebx, edx
xor ebp, edi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x20]
inc eax
lea esi, [esi + ebx + 0x6ed9eba1]
rol ecx, 0x1e
mov ebp, ecx
xor ebp, edx
xor ebp, edi
mov ebx, esi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x20]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
inc eax
lea edi, [edi + ebx + 0x6ed9eba1]
rol edx, 0x1e
mov ebp, ecx
xor ebp, edx
xor ebp, esi
mov ebx, edi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x20]
mov ebp, dword [esp + 0x10]
inc eax
lea ebp, [ebx + ebp + 0x6ed9eba1]
rol esi, 0x1e
mov dword [esp + 0x10], ebp
cmp eax, 0x28
jb 0x4bad18
mov dword [esp + 0x18], esi
cmp eax, 0x3c
jae 0x4baeb1
mov ebx, esi
or ebx, edi
and ebx, edx
and esi, edi
or ebx, esi
add ebx, dword [esp + eax*4 + 0x20]
rol ebp, 5
add ebx, ecx
lea ecx, [ebx + ebp - 0x70e44324]
inc eax
rol edi, 0x1e
mov ebx, edi
or ebx, dword [esp + 0x10]
mov ebp, edi
and ebx, dword [esp + 0x18]
and ebp, dword [esp + 0x10]
inc eax
or ebx, ebp
add ebx, dword [esp + eax*4 + 0x1c]
mov esi, ecx
add ebx, edx
rol esi, 5
lea edx, [ebx + esi - 0x70e44324]
mov ebx, dword [esp + 0x10]
rol ebx, 0x1e
mov esi, ecx
or esi, ebx
and esi, edi
mov ebp, ecx
and ebp, ebx
or esi, ebp
add esi, dword [esp + eax*4 + 0x20]
inc eax
add esi, dword [esp + 0x18]
mov dword [esp + 0x14], edx
rol edx, 5
lea edx, [esi + edx - 0x70e44324]
rol ecx, 0x1e
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edx
mov esi, edx
mov edx, dword [esp + 0x14]
mov ebp, ecx
or ebp, edx
and ebp, ebx
mov ebx, ecx
and ebx, edx
or ebp, ebx
add ebp, dword [esp + eax*4 + 0x20]
rol esi, 5
add ebp, edi
lea esi, [esi + ebp - 0x70e44324]
inc eax
rol edx, 0x1e
mov dword [esp + 0x14], esi
mov edi, esi
mov esi, dword [esp + 0x18]
mov ebx, edx
or ebx, esi
and ebx, ecx
mov ebp, edx
and ebp, esi
or ebx, ebp
add ebx, dword [esp + eax*4 + 0x20]
rol edi, 5
add ebx, dword [esp + 0x10]
inc eax
lea ebp, [ebx + edi - 0x70e44324]
mov edi, dword [esp + 0x14]
rol esi, 0x1e
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], esi
cmp eax, 0x3c
jb 0x4badd2
mov ebx, dword [esp + 0x1c]
cmp eax, 0x50
jae 0x4baf71
mov edi, edi
rol ebp, 5
inc eax
mov ebx, edx
xor ebx, esi
xor ebx, edi
add ebx, dword [esp + eax*4 + 0x1c]
inc eax
add ebx, ecx
lea ecx, [ebx + ebp - 0x359d3e2a]
rol edi, 0x1e
mov dword [esp + 0x14], edi
mov ebp, esi
xor ebp, edi
mov edi, dword [esp + 0x10]
xor ebp, edi
add ebp, dword [esp + eax*4 + 0x1c]
mov ebx, ecx
add ebp, edx
rol ebx, 5
lea edx, [ebx + ebp - 0x359d3e2a]
rol edi, 0x1e
mov ebp, ecx
xor ebp, dword [esp + 0x14]
inc eax
xor ebp, edi
add ebp, dword [esp + eax*4 + 0x1c]
mov ebx, edx
add ebp, esi
rol ebx, 5
lea esi, [ebx + ebp - 0x359d3e2a]
rol ecx, 0x1e
mov ebp, ecx
xor ebp, edx
xor ebp, edi
add ebp, dword [esp + eax*4 + 0x20]
mov ebx, esi
add ebp, dword [esp + 0x14]
rol ebx, 5
inc eax
mov dword [esp + 0x10], edi
lea edi, [ebx + ebp - 0x359d3e2a]
rol edx, 0x1e
mov ebp, ecx
xor ebp, edx
xor ebp, esi
add ebp, dword [esp + eax*4 + 0x20]
mov ebx, edi
add ebp, dword [esp + 0x10]
rol ebx, 5
inc eax
mov dword [esp + 0x18], esi
lea ebp, [ebx + ebp - 0x359d3e2a]
rol esi, 0x1e
mov dword [esp + 0x10], ebp
cmp eax, 0x50
jb 0x4baec0
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x10]
add eax, ebp
mov ebp, dword [esp + 0x164]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x14]
add eax, edi
mov edi, dword [esp + 0x168]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x18]
add eax, esi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x1c]
add eax, edx
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x20]
add eax, ecx
add dword [ebx + 8], 0x200
mov dword [ebx + 0x20], eax
adc dword [ebx + 0xc], 0
add ebp, 0x40
sub edi, 0x40
mov dword [esp + 0x164], ebp
mov dword [esp + 0x168], edi
jmp 0x4bb01c
mov esi, 0x40
sub esi, eax
cmp edi, esi
jae 0x4bafd5
mov esi, edi
push esi
mov ecx, eax
lea edx, [ecx + ebx + 0x28]
push ebp
push edx
call fcn.00554d40
add dword [ebx + 0x24], esi
mov eax, dword [ebx + 0x24]
add ebp, esi
sub edi, esi
add esp, 0xc
mov dword [esp + 0x164], ebp
mov dword [esp + 0x168], edi
cmp eax, 0x40
jne 0x4bb01c
mov ecx, ebx
call fcn.004ba640
add dword [ebx + 8], 0x200
mov eax, 0
mov dword [ebx + 0x24], eax
adc dword [ebx + 0xc], eax
test edi, edi
ja 0x4bab10
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x150
ret 8