Function at 0x4b5ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6935b8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x71a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4b5cff
mov ecx, dword [esi + 4]
lea edx, [ecx + 4]
cmp edx, dword [esi + 8]
ja 0x4b5cff
movzx ebx, byte [ecx + 3]
movzx eax, byte [ecx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx]
shl ebx, 8
lea ecx, [ebp - 0x44]
or ebx, eax
mov dword [esi + 4], edx
push ebx
call fcn.00440910
mov dword [ebp - 4], 0
mov ecx, dword [esi + 4]
mov edi, dword [ebp - 0x44]
lea eax, [ecx + ebx]
cmp eax, dword [esi + 8]
ja 0x4b5ce4
push ebx
push ecx
push edi
call fcn.006843a0
mov eax, dword [ebp - 0x30]
add esp, 0xc
add dword [esi + 4], ebx
mov edx, dword [ebp - 0x40]
cmp byte [eax + 0x34], 0
je 0x4b5b7e
mov ecx, edx
xor eax, eax
sub ecx, edi
test ecx, ecx
jle 0x4b5b7e
xor byte [edi + eax], 0x55
inc eax
cmp eax, ecx
jl 0x4b5b75
mov eax, edx
mov dword [ebp - 0x14], 0xf
sub eax, edi
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0xf
je 0x4b5bc0
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00402610
mov edx, dword [ebp - 0x40]
test al, al
je 0x4b5bc0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
push edx
push edi
call fcn.004b80b0
lea ecx, [ebx + 3]
mov byte [ebp - 4], 1
mov eax, dword [esi + 4]
and ecx, 0xfffffffc
sub ecx, ebx
add eax, ecx
cmp eax, dword [esi + 8]
ja 0x4b5cd8
mov dword [esi + 4], eax
mov ecx, esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
call fcn.0047ec60
test al, al
je 0x4b5cd8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
mov ecx, esi
call fcn.0047ec60
test al, al
je 0x4b5cd8
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
jle 0x4b5cd8
mov eax, dword [esi + 4]
add eax, ebx
cmp eax, dword [esi + 8]
ja 0x4b5cd8
push ebx
lea ecx, [ebp - 0x50]
call fcn.00440910
push ebx
mov byte [ebp - 4], 2
mov ecx, esi
mov ebx, dword [ebp - 0x50]
push ebx
call fcn.0047ef30
test al, al
je 0x4b5cc4
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx + 3]
and eax, 0xfffffffc
sub eax, ecx
mov ecx, esi
push eax
call fcn.0047ebe0
test al, al
je 0x4b5cc4
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
cmp byte [esi + 0x34], 0
je 0x4b5c99
cmp edx, 6
je 0x4b5c81
cmp edx, 7
jne 0x4b5c99
mov ecx, dword [ebp - 0x4c]
xor eax, eax
sub ecx, ebx
test ecx, ecx
jle 0x4b5c99
nop dword [eax]
xor byte [ebx + eax], 0x55
inc eax
cmp eax, ecx
jl 0x4b5c90
push dword [ebp - 0x38]
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
lea eax, [ebp - 0x28]
push eax
push edx
call fcn.004b5d20
test al, al
je 0x4b5cc4
lea ecx, [ebp - 0x50]
mov bl, 1
call fcn.00404550
lea ecx, [ebp - 0x28]
call fcn.00402270
jmp 0x4b5ce6
lea ecx, [ebp - 0x50]
xor bl, bl
call fcn.00404550
lea ecx, [ebp - 0x28]
call fcn.00402270
jmp 0x4b5ce6
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00402270
jmp 0x4b5ce6
xor bl, bl
test edi, edi
je 0x4b5cfb
mov edx, dword [ebp - 0x3c]
mov ecx, edi
push 1
sub edx, edi
call fcn.004020c0
add esp, 4
mov al, bl
jmp 0x4b5d01
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066bc45
mov esp, ebp
pop ebp
ret 8