Function at 0x49ef60
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, 0x672c0c
xor eax, eax
push ebp
push 0x49f305
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.006560d8
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.006228e4
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 [0x66f914]
mov eax, dword [eax]
mov dl, 3
call fcn.00618ae8
mov eax, dword [ebp - 8]
call fcn.0040351c
cmp eax, 0xc
jne 0x49efea
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 0x49efe2
mov dword [ebp - 0x14], ebx
mov eax, dword [0x66e814]
mov byte [eax], 1
call fcn.0048c8fc
call fcn.0048dacc
mov dword [ebp - 0x1c], eax
mov edx, 0x49f31c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 4]
lea ecx, [ebp - 0x18]
mov edx, 0x49f32c
mov eax, dword [ebp - 0x1c]
call fcn.00617b50
mov edi, eax
cmp dword [ebp - 0x18], 0
je 0x49f0a4
mov dl, 1
mov eax, dword [0x616b4c]
call fcn.00402898
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0064e2c4
mov eax, dword [ebp - 4]
call fcn.00618ab4
lea ecx, [ebp - 8]
mov dl, 3
mov eax, dword [ebp - 4]
call fcn.00618ae8
mov eax, dword [ebp - 8]
call fcn.0040351c
cmp eax, 0xc
jne 0x49f09c
mov edi, dword [ebp - 8]
mov edx, dword [edi]
mov eax, dword [ebp - 0xc]
call fcn.00653538
mov dword [ebp - 0xc], eax
lea eax, [edi + 4]
mov edx, dword [eax]
mov eax, dword [ebp - 0x10]
call fcn.00653540
mov dword [ebp - 0x10], eax
lea eax, [edi + 8]
mov eax, dword [eax]
test eax, eax
je 0x49f094
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.00653538
mov dword [ebp - 0x14], eax
mov eax, dword [0x66e814]
mov byte [eax], 1
mov eax, dword [ebp - 4]
call fcn.004028c0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00653538
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.00653538
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.00653540
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.00653540
mov ebx, eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
sub eax, 0x1e
jae 0x49f0e5
mov byte [esi + 0x10], 0
jmp 0x49f0fc
mov eax, ebx
sub eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
cmp eax, 0xa
jge 0x49f0f8
mov byte [esi + 0x10], 1
jmp 0x49f0fc
mov byte [esi + 0x10], 2
mov eax, dword [0x66e814]
cmp byte [eax], 0
je 0x49f145
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 [0x66f914]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov dl, 3
call fcn.00618b38
lea ecx, [ebp - 8]
mov eax, dword [0x66f914]
mov eax, dword [eax]
mov dl, 4
call fcn.00618ae8
mov eax, dword [ebp - 8]
call fcn.0040351c
mov ebx, eax
cmp ebx, 1
jl 0x49f180
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 0x49f165
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 [0x66f914]
mov eax, dword [eax]
mov dl, 5
call fcn.00618ae8
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 0x49f1d9
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 0x49f1c0
mov edx, dword [esi]
mov eax, dword [esi + 4]
call fcn.0049f690
test al, al
jne 0x49f23c
lea eax, [ebp - 0x24]
call fcn.0061c97c
lea eax, [ebp - 0x24]
mov edx, 0x49f338
call fcn.00403ab4
mov eax, dword [ebp - 0x24]
call fcn.0064e1b0
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.0049f690
test al, al
jne 0x49f228
mov eax, esi
call fcn.00403274
mov eax, ebx
call fcn.004028c0
cmp dword [esi], 0
jne 0x49f23c
lea eax, [esi + 4]
call fcn.00403880
mov eax, dword [esi + 4]
call fcn.00403aa8
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 0x49f27d
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 0x49f262
mov eax, dword [0x66f914]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov dl, 4
call fcn.00618b38
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 0x49f2c2
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 0x49f2a7
mov eax, dword [0x66f914]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov dl, 5
call fcn.00618b38
mov eax, dword [0x66f914]
mov eax, dword [eax]
call fcn.00618c48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f30c
lea eax, [ebp - 0x24]
call fcn.00403880
lea eax, [ebp - 0x20]
call fcn.00403274
lea eax, [ebp - 8]
call fcn.00403274
ret