Function at 0x48e160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], eax
mov esi, 0x66bbd4
xor eax, eax
push ebp
push 0x48e505
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00655790
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.006225bc
mov ebx, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 8]
mov eax, dword [0x669778]
mov eax, dword [eax]
mov dl, 3
call fcn.00618644
mov eax, dword [ebp - 8]
call fcn.0040351c
cmp eax, 0xc
jne 0x48e1ea
mov edi, dword [ebp - 8]
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
lea eax, [edi + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
add edi, 8
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x48e1e2
mov dword [ebp - 0x14], ebx
mov eax, dword [0x66908c]
mov byte [eax], 1
call fcn.0047a1bc
call fcn.0047b394
mov dword [ebp - 0x1c], eax
mov edx, 0x48e51c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 4]
lea ecx, [ebp - 0x18]
mov edx, 0x48e52c
mov eax, dword [ebp - 0x1c]
call fcn.006176ac
mov edi, eax
cmp dword [ebp - 0x18], 0
je 0x48e2a4
mov dl, 1
mov eax, dword [0x613eac]
call fcn.00402898
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0064daf4
mov eax, dword [ebp - 4]
call fcn.00618610
lea ecx, [ebp - 8]
mov dl, 3
mov eax, dword [ebp - 4]
call fcn.00618644
mov eax, dword [ebp - 8]
call fcn.0040351c
cmp eax, 0xc
jne 0x48e29c
mov edi, dword [ebp - 8]
mov edx, dword [edi]
mov eax, dword [ebp - 0xc]
call fcn.00652c54
mov dword [ebp - 0xc], eax
lea eax, [edi + 4]
mov edx, dword [eax]
mov eax, dword [ebp - 0x10]
call fcn.00652c5c
mov dword [ebp - 0x10], eax
lea eax, [edi + 8]
mov eax, dword [eax]
test eax, eax
je 0x48e294
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.00652c54
mov dword [ebp - 0x14], eax
mov eax, dword [0x66908c]
mov byte [eax], 1
mov eax, dword [ebp - 4]
call fcn.004028c0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00652c54
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.00652c54
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.00652c5c
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.00652c5c
mov ebx, eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
sub eax, 0x1e
jae 0x48e2e5
mov byte [esi + 0x10], 0
jmp 0x48e2fc
mov eax, ebx
sub eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
cmp eax, 0xa
jge 0x48e2f8
mov byte [esi + 0x10], 1
jmp 0x48e2fc
mov byte [esi + 0x10], 2
mov eax, dword [0x66908c]
cmp byte [eax], 0
je 0x48e345
lea eax, [ebp - 8]
mov edx, 0xc
call fcn.00403804
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
lea eax, [edi + 4]
mov dword [eax], ebx
mov al, byte [esi + 0x10]
dec eax
sub al, 2
setb al
and eax, 0x7f
imul dword [ebp - 0x14]
add edi, 8
mov dword [edi], eax
mov eax, dword [0x669778]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov dl, 3
call fcn.00618694
lea ecx, [ebp - 8]
mov eax, dword [0x669778]
mov eax, dword [eax]
mov dl, 4
call fcn.00618644
mov eax, dword [ebp - 8]
call fcn.0040351c
mov ebx, eax
cmp ebx, 1
jl 0x48e380
lea eax, [ebp - 8]
call fcn.004036ec
mov edx, dword [ebp - 8]
mov dl, byte [edx + ebx - 1]
xor dl, 0x17
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0x48e365
mov eax, dword [ebp - 8]
call fcn.0040351c
mov ecx, eax
shr ecx, 1
lea eax, [esi + 4]
mov edx, dword [ebp - 8]
call fcn.00403964
lea ecx, [ebp - 0x20]
mov eax, dword [0x669778]
mov eax, dword [eax]
mov dl, 5
call fcn.00618644
mov edx, dword [ebp - 0x20]
mov eax, esi
call fcn.004032c8
mov eax, dword [esi]
call fcn.0040351c
mov ebx, eax
cmp ebx, 1
jl 0x48e3d9
mov eax, esi
call fcn.004036ec
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
xor dl, 0x17
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0x48e3c0
mov edx, dword [esi]
mov eax, dword [esi + 4]
call fcn.0048e8f4
test al, al
jne 0x48e43c
lea eax, [ebp - 0x24]
call fcn.0061c4fc
lea eax, [ebp - 0x24]
mov edx, 0x48e538
call fcn.00403ac4
mov eax, dword [ebp - 0x24]
call fcn.0064d9e0
mov ebx, eax
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00403358
mov edx, dword [esi]
mov eax, dword [esi + 4]
call fcn.0048e8f4
test al, al
jne 0x48e428
mov eax, esi
call fcn.00403274
mov eax, ebx
call fcn.004028c0
cmp dword [esi], 0
jne 0x48e43c
lea eax, [esi + 4]
call fcn.00403880
mov eax, dword [esi + 4]
call fcn.00403ab8
mov ecx, eax
add ecx, ecx
lea eax, [ebp - 8]
mov edx, dword [esi + 4]
call fcn.00403358
mov eax, dword [ebp - 8]
call fcn.0040351c
mov ebx, eax
cmp ebx, 1
jl 0x48e47d
lea eax, [ebp - 8]
call fcn.004036ec
mov edx, dword [ebp - 8]
mov dl, byte [edx + ebx - 1]
xor dl, 0x17
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0x48e462
mov eax, dword [0x669778]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov dl, 4
call fcn.00618694
lea eax, [ebp - 8]
mov edx, dword [esi]
call fcn.0040330c
mov eax, dword [ebp - 8]
call fcn.0040351c
mov ebx, eax
cmp ebx, 1
jl 0x48e4c2
lea eax, [ebp - 8]
call fcn.004036ec
mov edx, dword [ebp - 8]
mov dl, byte [edx + ebx - 1]
xor dl, 0x17
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0x48e4a7
mov eax, dword [0x669778]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov dl, 5
call fcn.00618694
mov eax, dword [0x669778]
mov eax, dword [eax]
call fcn.006187a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e50c
lea eax, [ebp - 0x24]
call fcn.00403880
lea eax, [ebp - 0x20]
call fcn.00403274
lea eax, [ebp - 8]
call fcn.00403274
ret