Function at 0x4b5b44
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4b5b4d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b5d8c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404ec8
mov eax, dword [ebp - 0x10]
call fcn.00405100
and eax, 0x80000001
jns 0x4b5b8e
dec eax
or eax, 0xfffffffe
inc eax
dec eax
je 0x4b5d64
lea ecx, [ebp - 0x14]
mov edx, 0x4b5da4
mov eax, dword [ebp - 4]
call fcn.004b5f08
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.00404ec8
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00404ec8
mov eax, dword [ebp - 0x14]
call fcn.00405100
mov esi, eax
sar esi, 1
jns 0x4b5bcc
adc esi, 0
cmp esi, 1
jl 0x4b5d31
mov eax, dword [ebp - 0x14]
call fcn.00405100
sar eax, 1
jns 0x4b5be4
adc eax, 0
cmp esi, eax
je 0x4b5bf3
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
call fcn.00404ec8
lea eax, [ebp - 0x1c]
call fcn.00404e30
mov eax, dword [ebp - 0x18]
call fcn.00405100
mov edi, eax
sar edi, 1
jns 0x4b5c0c
adc edi, 0
test edi, edi
jle 0x4b5d28
mov ebx, 1
mov edx, 0x4b5db0
lea eax, [ebp - 0x24]
call fcn.004034dc
lea eax, [ebp - 0x28]
mov edx, ebx
add edx, edx
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + edx - 2]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
mov cl, 2
call fcn.004034ac
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x2c]
call fcn.004034dc
lea eax, [ebp - 0x28]
mov edx, ebx
add edx, edx
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + edx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov cl, 3
call fcn.004034ac
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x20]
call fcn.004050a4
mov eax, dword [ebp - 0x20]
call fcn.0040a310
mov byte [ebp - 9], al
mov edx, 0x4b5db0
lea eax, [ebp - 0x24]
call fcn.004034dc
lea eax, [ebp - 0x28]
mov edx, esi
add edx, edx
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + edx - 2]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
mov cl, 2
call fcn.004034ac
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x2c]
call fcn.004034dc
lea eax, [ebp - 0x28]
mov edx, esi
add edx, edx
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + edx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov cl, 3
call fcn.004034ac
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
call fcn.004050a4
mov eax, dword [ebp - 0x30]
call fcn.0040a310
xor al, byte [ebp - 9]
mov byte [ebp - 0xa], al
lea eax, [ebp - 0x38]
mov dl, byte [ebp - 0xa]
call fcn.00405018
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.004b5f08
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x1c]
call fcn.00405108
inc ebx
dec edi
jne 0x4b5c19
dec esi
test esi, esi
jne 0x4b5bd5
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004b5db4
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
sete al
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov edx, dword [ebp - 8]
call fcn.0043ceb8
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
call fcn.00404e84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5d93
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.00404e54
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00404e54
ret