Function at 0x49c88c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
call fcn.0048fc8c
xor edx, edx
push ebp
push 0x49cc6c
push dword fs:[edx]
mov dword fs:[edx], esp
push dword [ebx + 4]
push dword [ebx]
mov eax, dword [ebp - 4]
call fcn.0049c560
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebx + 0x1c], 0
jne case.0x49c94b.0
mov eax, dword [0x4fe114]
mov al, byte [eax]
add al, 0xfc
sub al, 2
jae 0x49c8f5
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp - 8]
je 0x49c92a
mov dword [ebx + 0x1c], 1
mov eax, dword [ebp - 8]
mov dword [ebx + 0xc], eax
jmp case.0x49c94b.0
mov edi, dword [ebx]
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
je case.0x49c94b.0
mov edx, dword [0x4fe114]
movzx edx, byte [edx]
cmp edx, 7
ja case.0x49c94b.0
jmp dword [edx*4 + 0x49c952]
mov esi, eax
dec esi
test esi, esi
jl case.0x49c94b.0
inc esi
xor ecx, ecx
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xc]
mov edx, dword [ebp - 4]
movzx edx, byte [edx + 0xd]
add eax, edx
mov edx, dword [ebp - 4]
movzx edx, byte [edx + 0xe]
add eax, edx
mov edi, 0xff
xor edx, edx
div edi
push edx
mov eax, dword [ebx + 0x10]
xor edx, edx
push edx
push eax
mov eax, ecx
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
pop edx
xor byte [eax], dl
inc ecx
dec esi
jne 0x49c980
jmp case.0x49c94b.0
mov esi, dword [ebx + 0xc]
dec esi
test esi, esi
jl case.0x49c94b.0
inc esi
xor ecx, ecx
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, 0xa00000
cdq
cmp edx, dword [esp + 4]
jne 0x49c9f3
cmp eax, dword [esp]
pop edx
pop eax
ja 0x49c9ff
jmp 0x49c9f7
pop edx
pop eax
jg 0x49c9ff
cmp edi, 0xf00000
jbe 0x49ca27
mov eax, dword [ebx + 0x10]
xor edx, edx
push edx
push eax
mov eax, ecx
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push eax
mov eax, edi
and eax, 0x3ff
mov edx, dword [0x4fdd70]
mov al, byte [edx + eax]
pop edx
xor byte [edx], al
inc edi
inc ecx
dec esi
jne 0x49c9d2
jmp case.0x49c94b.0
mov eax, dword [ebx + 0xc]
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov ebx, dword [ebx + 0x10]
jmp 0x49cadb
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x18]
mov eax, 0x400
call fcn.00498590
mov edx, eax
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.004956e0
test al, al
je 0x49cab6
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add esi, dword [ebp - 0x1c]
dec esi
sub esi, ecx
jl 0x49cab6
inc esi
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, ecx
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edi, eax
mov al, byte [edi]
xor al, 0x79
push eax
mov eax, dword [ebp - 0x28]
add eax, ecx
sub eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
push ecx
mov ecx, 5
cdq
idiv ecx
pop ecx
pop eax
sub al, dl
push eax
pop eax
mov byte [edi], al
inc ecx
dec esi
jne 0x49ca7c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add eax, 0x400
adc edx, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
sub dword [ebp - 0x18], 0x400
sbb dword [ebp - 0x14], 0
add ebx, 0x400
cmp dword [ebp - 0x14], 0
jne 0x49caf3
cmp dword [ebp - 0x18], 0x400
ja 0x49ca43
jmp case.0x49c94b.0
jg 0x49ca43
jmp case.0x49c94b.0
mov eax, dword [ebx + 0xc]
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov ebx, dword [ebx + 0x10]
jmp 0x49cbc0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x18]
mov eax, 0x400
call fcn.00498590
mov edx, eax
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.004956e0
test al, al
je 0x49cb9b
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add esi, dword [ebp - 0x1c]
dec esi
sub esi, ecx
jl 0x49cb9b
inc esi
mov eax, dword [ebp - 0x28]
add eax, ecx
sub eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
push ecx
mov ecx, 5
cdq
idiv ecx
pop ecx
add dl, 0x6c
push edx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, ecx
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edi, eax
pop eax
xor al, byte [edi]
push eax
mov eax, dword [ebp - 0x28]
add eax, ecx
sub eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
push ecx
mov ecx, 5
cdq
idiv ecx
pop ecx
pop eax
sub al, dl
push eax
pop eax
mov byte [edi], al
inc ecx
dec esi
jne 0x49cb49
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add eax, 0x400
adc edx, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
sub dword [ebp - 0x18], 0x400
sbb dword [ebp - 0x14], 0
add ebx, 0x400
cmp dword [ebp - 0x14], 0
jne 0x49cbd5
cmp dword [ebp - 0x18], 0x400
ja 0x49cb10
jmp case.0x49c94b.0
jg 0x49cb10
jmp case.0x49c94b.0
mov esi, dword [ebx + 0xc]
dec esi
test esi, esi
jl case.0x49c94b.0
inc esi
xor ecx, ecx
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xc]
mov edx, dword [ebp - 4]
movzx edx, byte [edx + 0xd]
add eax, edx
mov edx, dword [ebp - 4]
movzx edx, byte [edx + 0xe]
add eax, edx
mov edi, 0xff
xor edx, edx
div edi
push edx
mov eax, dword [ebx + 0x10]
xor edx, edx
push edx
push eax
mov eax, ecx
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
pop edx
xor byte [eax], dl
inc ecx
dec esi
jne 0x49cbe8
jmp case.0x49c94b.0
mov esi, dword [ebx + 0xc]
dec esi
test esi, esi
jl case.0x49c94b.0
inc esi
xor ecx, ecx
mov eax, dword [ebx + 0x10]
xor edx, edx
push edx
push eax
mov eax, ecx
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [ebp - 4]
mov dl, byte [edx + 0x10]
xor byte [eax], dl
inc ecx
dec esi
jne 0x49cc33
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49cc73
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
call fcn.0048fc98
ret