Function at 0x49f8e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x88
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov al, 1
mov byte [esp], al
test al, 0x80
mov eax, dword [esp]
je 0x49f914
and eax, 0xff
shl eax, 1
xor eax, 0x71
jmp 0x49f91b
and eax, 0xff
shl eax, 1
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x10
mov byte [esp], al
jl 0x49f900
push ebx
push ebp
push esi
push edi
xor edi, edi
mov byte [esp + 0x10], 1
mov ebp, 0x17
mov edx, dword [esp + 0x9c]
xor ecx, ecx
lea eax, [esp + 0x23]
mov cl, byte [edx + ebp]
mov esi, ecx
mov ecx, 7
mov edx, 1
shl edx, cl
test esi, edx
setne dl
mov byte [eax], dl
dec ecx
dec eax
cmp ecx, 0xffffffff
jg 0x49f950
mov bl, byte [esp + edi + 0x28]
xor esi, esi
mov al, byte [esp + esi + 0x1c]
mov ecx, dword [esp + 0x10]
cmp al, 1
jne 0x49f989
xor eax, eax
mov edx, ecx
mov al, byte [esp + edi + 0x38]
and edx, 0xff
xor eax, edx
jmp 0x49f98f
xor eax, eax
mov al, byte [esp + edi + 0x38]
push ebx
push ecx
mov byte [esp + edi + 0x40], al
call fcn.0049fbe0
add esp, 8
inc esi
cmp esi, 8
mov byte [esp + 0x10], al
jl 0x49f96b
dec ebp
jns 0x49f939
inc edi
cmp edi, 0x10
jl 0x49f92f
xor eax, eax
mov ebp, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
xor eax, eax
test ebp, ebp
jle 0x49f9eb
lea edx, [esp + 0x58]
mov ecx, ebp
lea esi, [esp + eax + 0x38]
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
add edx, 8
and ecx, 3
inc eax
cmp eax, ebp
rep movsb byte es:[edi], byte [esi]
jl 0x49f9cd
lea ecx, [esp + 0x58]
push ebp
push ecx
call fcn.0049fc40
add esp, 8
mov byte [esp + 0x14], al
test al, al
jne 0x49fa07
dec ebp
cmp ebp, 1
jg 0x49f9c3
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], 0
and edx, 0xff
test ebp, ebp
mov al, byte [edx + 0x4e4c88]
mov byte [esp + 0x14], al
jle 0x49fa9d
lea ecx, [esp + ebp + 0x1b]
mov dword [esp + 0x18], ecx
xor eax, eax
lea edx, [esp + 0x58]
mov ecx, ebp
lea esi, [esp + eax + 0x38]
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
add edx, 8
and ecx, 3
inc eax
cmp eax, ebp
rep movsb byte es:[edi], byte [esi]
jl 0x49fa35
mov edi, dword [esp + 0x24]
xor eax, eax
lea esi, [esp + ebp + 0x38]
lea ecx, [esp + edi + 0x58]
mov dl, byte [esi + eax]
inc eax
mov byte [ecx], dl
add ecx, 8
cmp eax, ebp
jl 0x49fa61
lea eax, [esp + 0x58]
push ebp
push eax
call fcn.0049fc40
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
push ecx
push eax
mov byte [esi], al
call fcn.0049fbe0
add esp, 0x10
mov byte [esi], al
inc edi
dec esi
cmp edi, ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], esi
jl 0x49fa2f
cmp ebp, 1
jne 0x49faaa
mov dl, byte [esp + 0x38]
mov byte [esp + 0x1c], dl
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x38]
mov byte [esp + 0x10], 1
rep stosd dword es:[edi], eax
mov byte [esp + 0x28], 2
xor esi, esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0049fbe0
add esp, 8
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + 0x10], al
cmp esi, 8
jl 0x49fac3
lea edx, [esp + 0x38]
mov dword [esp + 0x14], 0
mov edi, 1
mov dword [esp + 0x18], edx
mov bl, 1
xor esi, esi
mov al, byte [esp + esi + 0x28]
mov cl, byte [esp + esi + 0x1c]
push eax
push ecx
call fcn.0049fbe0
add esp, 8
xor bl, al
inc esi
cmp esi, 8
jl 0x49fafc
test bl, bl
jne 0x49fb30
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc edx
mov dword [eax], edi
add eax, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x28]
test al, 0x80
je 0x49fb3e
shl al, 1
xor al, 0x71
jmp 0x49fb40
shl al, 1
mov byte [esp + 0x28], al
mov byte [esp + 0x10], al
mov esi, 1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0049fbe0
add esp, 8
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + 0x10], al
cmp esi, 8
jl 0x49fb4d
inc edi
cmp edi, 0x100
jl 0x49faf8
cmp dword [esp + 0x14], ebp
je 0x49fb89
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x88
ret
xor esi, esi
test ebp, ebp
jle 0x49fbd3
lea edi, [esp + 0x38]
mov ecx, dword [edi]
cmp ecx, 0x3f
jl 0x49fb7c
mov eax, ecx
mov edx, ecx
sar eax, 3
sub eax, 8
and edx, 0x80000007
jns 0x49fbb1
dec edx
or edx, 0xfffffff8
inc edx
mov ecx, 7
add edi, 4
sub ecx, edx
mov dl, 1
shl dl, cl
mov ecx, dword [esp + 0x9c]
mov bl, byte [eax + ecx]
xor bl, dl
inc esi
cmp esi, ebp
mov byte [eax + ecx], bl
jl 0x49fb93
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x88
ret