Function at 0x4b53e6
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5662
push eax
mov dword fs:[0], esp
sub esp, 0x18
lea eax, [ebp - 0x20]
nop
push ebx
push esi
push edi
mov ebx, ecx
push 4
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.004f0400
add esp, 0xc
lea ecx, [ebp - 0x24]
push 4
push ecx
push esi
call fcn.004f0400
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
nop
push eax
push ecx
mov ecx, ebx
call fcn.004b3020
mov edi, dword [ebx + 0x8d9c]
test edi, edi
je 0x4b544c
mov ecx, edi
call fcn.00469d00
push edi
call fcn.00513ed0
add esp, 4
push 0xc
call fcn.00513eb0
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp - 4], 0
mov edi, eax
mov eax, 0
test edi, edi
je 0x4b5474
push ebx
mov ecx, edi
push esi
call fcn.00469c00
mov dword [ebp - 4], 0xffffffff
push 1
mov dword [ebx + 0x8d9c], eax
lea eax, [ebx + 0x8d90]
push eax
push esi
call fcn.004f0400
add esp, 0xc
lea eax, [ebx + 0x8d91]
push 1
push eax
push esi
call fcn.004f0400
add esp, 0xc
mov eax, dword [0x543058]
cmp eax, 0x40e00000
jl 0x4b55e3
mov dword [ebp - 0x14], 0
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x4b5644
mov dword [ebp - 0x18], 0
mov ecx, dword [ebx + 0x8d64]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
mov edi, dword [ecx + eax]
mov edx, dword [ebx + 8]
test edx, edx
jle 0x4b55c6
push 2
push edi
push esi
call fcn.004f0400
add esp, 0xc
lea eax, [edi + 2]
push 2
push eax
push esi
call fcn.004f0400
add esp, 0xc
lea eax, [edi + 4]
push 1
push eax
push esi
call fcn.004f0400
add esp, 0xc
lea eax, [ebp - 0xd]
push 1
push eax
push esi
call fcn.004f0400
add esp, 0xc
mov cl, byte [edi + 5]
mov al, byte [ebp - 0xd]
xor al, cl
push 1
and al, 0x1f
xor al, cl
lea ecx, [ebp - 0xd]
push ecx
mov byte [edi + 5], al
push esi
call fcn.004f0400
add esp, 0xc
mov al, byte [ebp - 0xd]
shl al, 5
mov cl, byte [edi + 5]
xor cl, al
push 1
and cl, 0x1f
xor cl, al
lea eax, [ebp - 0xd]
push eax
mov byte [edi + 5], cl
push esi
call fcn.004f0400
add esp, 0xc
mov cl, byte [edi + 6]
mov al, byte [ebp - 0xd]
xor al, cl
push 1
and al, 0xf
xor al, cl
lea ecx, [ebp - 0xd]
push ecx
mov byte [edi + 6], al
push esi
call fcn.004f0400
add esp, 0xc
mov al, byte [ebp - 0xd]
shl al, 4
mov cl, byte [edi + 6]
xor cl, al
add edi, 0x18
and cl, 0xf
mov edx, dword [ebp - 0x1c]
xor cl, al
inc edx
mov byte [edi - 0x12], cl
mov dword [ebp - 0x1c], edx
mov byte [edi - 0x11], 0
mov byte [edi - 0x10], 0xff
mov byte [edi - 0xf], 0
mov byte [edi - 0xe], 0
mov dword [edi - 8], 0
mov word [edi - 4], 0
cmp dword [ebx + 8], edx
jg 0x4b54ec
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add eax, 4
inc ecx
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
cmp edx, ecx
jg 0x4b54ce
jmp 0x4b5644
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
imul eax, dword [ebx + 0xc]
lea eax, [eax + eax*2]
shl eax, 3
push eax
push ecx
push esi
call fcn.004f0400
add esp, 0xc
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x4b5644
xor edx, edx
xor eax, eax
mov ecx, dword [ebx + 8]
cmp ecx, eax
jle 0x4b5633
xor ecx, ecx
mov edi, dword [ebx + 0x8d64]
add ecx, 0x18
inc eax
mov edi, dword [edi + edx]
mov dword [edi + ecx - 8], 0
cmp dword [ebx + 8], eax
jg 0x4b5619
add edx, 4
mov eax, dword [ebp - 0x14]
inc eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jg 0x4b560e
push esi
mov ecx, dword [ebx + 0x8da0]
call fcn.0048c6b0
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4