Function at 0x4b8c60
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.0045c6a0
push ebx
mov ebx, dword [esp + 0x24]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x174]
mov dword [esp + 0x10], eax
mov eax, ebx
add eax, dword [edi + 0x38]
adc ecx, dword [edi + 0x3c]
cmp ecx, 0xf
ja 0x4b8ebf
jb 0x4b8c9c
cmp eax, 0xffffffe0
ja 0x4b8ebf
cmp dword [edi + 0x16c], 0
mov dword [edi + 0x38], eax
lea eax, [edi + 0x40]
mov dword [edi + 0x3c], ecx
lea ecx, [edi + 0x60]
mov dword [esp + 0xc], eax
je 0x4b8ccb
push ecx
push eax
call fcn.004b9ca0
add esp, 8
mov dword [edi + 0x16c], 0
jmp 0x4b8ccf
mov dword [esp + 0xc], eax
movzx ecx, byte [edi + 0xc]
movzx eax, byte [edi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xf]
shl ecx, 8
or ecx, eax
mov eax, dword [edi + 0x168]
mov dword [esp + 8], ecx
mov dword [esp + 0x1c], eax
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x2c]
test eax, eax
je 0x4b8d57
nop word [eax + eax]
test ebx, ebx
je 0x4b8eaf
mov dl, byte [ebp]
lea ecx, [eax + edi]
mov al, byte [ecx + 0x10]
inc ebp
xor al, dl
dec ebx
mov byte [esi], al
inc esi
mov eax, dword [esp + 0x24]
xor byte [ecx + 0x40], dl
inc eax
and eax, 0xf
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], eax
jne 0x4b8d10
lea ecx, [edi + 0x60]
lea eax, [edi + 0x40]
push ecx
push eax
call fcn.004b9ca0
mov eax, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 0x24], eax
jmp 0x4b8d5b
mov dword [esp + 0x30], esi
cmp ebx, 0xc00
jb 0x4b8ddd
mov eax, 0xaaaaaaab
mul ebx
shr edx, 0xb
mov dword [esp + 0x30], edx
push 0xc00
push ebp
lea eax, [edi + 0x60]
push eax
push dword [esp + 0x20]
call fcn.004b9a70
push edi
push dword [esp + 0x2c]
push 0xc0
push esi
push ebp
call dword [esp + 0x58]
mov ecx, dword [esp + 0x34]
add esp, 0x24
add ecx, 0xc0
add esi, 0xc00
mov eax, ecx
mov dword [esp + 0x10], ecx
shr eax, 0x18
add ebp, 0xc00
mov byte [edi + 0xc], al
sub ebx, 0xc00
mov eax, ecx
mov byte [edi + 0xf], cl
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
sub dword [esp + 0x30], 1
mov byte [edi + 0xe], al
jne 0x4b8d71
mov dword [esp + 0x30], esi
mov eax, ebx
and eax, 0xfffffff0
mov dword [esp + 0x1c], eax
je 0x4b8e45
push eax
mov esi, eax
lea eax, [edi + 0x60]
push ebp
push eax
push dword [esp + 0x20]
shr esi, 4
call fcn.004b9a70
push edi
push dword [esp + 0x2c]
push esi
push dword [esp + 0x4c]
push ebp
call dword [esp + 0x58]
mov ecx, dword [esp + 0x34]
add esp, 0x24
add ecx, esi
mov esi, dword [esp + 0x30]
mov eax, ecx
mov dword [esp + 0x10], ecx
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0xe], al
mov eax, dword [esp + 0x1c]
add esi, eax
add ebp, eax
mov byte [edi + 0xf], cl
mov dword [esp + 0x30], esi
sub ebx, eax
test ebx, ebx
je 0x4b8eab
push dword [esp + 0x18]
lea eax, [edi + 0x10]
push eax
mov eax, dword [edi + 0x170]
push edi
call eax
mov ecx, dword [esp + 0x1c]
lea edx, [edi + 0x40]
sub ebp, dword [esp + 0x3c]
inc ecx
mov eax, ecx
mov byte [edi + 0xf], cl
shr eax, 0x18
add esp, 0xc
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0xe], al
mov eax, dword [esp + 0x24]
add esi, eax
add edx, eax
add eax, ebx
mov dword [esp + 0x24], eax
mov cl, byte [esi + ebp]
lea edx, [edx + 1]
mov al, byte [edx - 0x31]
lea esi, [esi + 1]
xor byte [edx - 1], cl
xor al, cl
mov byte [esi - 1], al
sub ebx, 1
jne 0x4b8e92
mov eax, dword [esp + 0x24]
pop esi
pop ebp
mov dword [edi + 0x168], eax
xor eax, eax
pop edi
pop ebx
add esp, 0x10
ret
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret