Function at 0x491300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x636a28
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x71de04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], ecx
xor ecx, ecx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], edi
mov word [ebp - 0x60], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ecx
mov word [ebp - 0x48], cx
xor edx, edx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x20], edx
mov word [ebp - 0x30], cx
lea ecx, [eax + eax*2]
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x874]
lea eax, [eax + ecx*8]
lea ecx, [ebp - 0x30]
cmp ecx, eax
je 0x49139c
push 0xffffffffffffffff
push edx
push eax
call fcn.00415600
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x70], edx
mov eax, dword [esi + 0x228]
xor ebx, ebx
mov dword [esi + 0x1b0], eax
test edx, edx
jle 0x491554
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x60]
cmovae eax, dword [ebp - 0x30]
mov ax, word [eax + ebx*2]
mov word [ebp - 0x18], ax
xor eax, eax
push eax
push 0x646fb4
mov word [ebp - 0x16], ax
call fcn.00415720
push 0
push 0x646fb4
lea ecx, [ebp - 0x48]
call fcn.00415720
push dword [ebp - 0x7c]
lea eax, [ebp - 0x18]
mov ecx, esi
push dword [ebp + 0x10]
push eax
call fcn.004928d0
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x30]
cmp ecx, 8
mov edi, 0xff
cmovae eax, edx
cmp word [eax + ebx*2], di
mov edi, dword [ebp - 0x64]
jne 0x491644
cmp ecx, 8
lea eax, [ebp - 0x30]
mov edi, 0xff
cmovae eax, edx
cmp word [eax + ebx*2 + 2], di
mov edi, dword [ebp - 0x64]
jne 0x491644
cmp ecx, 8
lea eax, [ebp - 0x30]
cmovae eax, edx
movzx eax, word [eax + ebx*2 + 4]
add ebx, 3
mov dword [ebp - 0x74], eax
test eax, eax
je 0x491470
mov edi, eax
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x60]
cmovae eax, dword [ebp - 0x30]
movzx eax, word [eax + ebx*2]
push eax
push 1
call fcn.00415540
inc ebx
sub edi, 1
jne 0x491450
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
movzx ecx, word [eax + ebx*2]
inc ebx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x78], ebx
test ecx, ecx
je 0x4914b6
mov edi, ecx
nop dword [eax]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x48]
cmovae eax, dword [ebp - 0x30]
movzx eax, word [eax + ebx*2]
push eax
push 1
call fcn.00415540
inc ebx
sub edi, 1
jne 0x491490
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x78], ebx
mov edi, dword [esi + 0x48c]
mov eax, dword [esi + 0xc8]
add eax, edi
imul eax, ecx
inc ecx
imul ecx, edi
cdq
idiv dword [ebp - 0x74]
add ecx, dword [esi + 0x1b0]
add ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 0x564]
mov dword [ebp - 0x80], eax
mov dword [esi + 0x564], 1
cmp ecx, dword [esi + 0x22c]
jl 0x4915ba
mov ecx, dword [esi + 0x1a8]
mov eax, dword [esi + 0x228]
mov dword [ebp - 0x64], 1
mov dword [esi + 0x1b0], eax
cmp ecx, dword [esi + 0xb4]
jge 0x491576
mov eax, dword [esi + 0x490]
add eax, dword [esi + 0xcc]
add dword [esi + 0x1b4], eax
lea eax, [ecx + 1]
inc dword [esi + 0x1ac]
mov dword [esi + 0x1a8], eax
mov eax, dword [esi + 0x1a4]
add eax, 3
cmp dword [ebp - 0x70], eax
jg 0x4915ba
mov dword [esi + 0x1a4], 0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x49179b
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x30]
cmp eax, 0x7fffffff
jbe 0x491756
call fcn.005e567f
mov edx, dword [esi + 0x490]
mov edi, dword [esi + 0xcc]
mov ecx, dword [esi + 0x1b4]
lea eax, [edi + edx]
lea eax, [ecx + eax*2]
mov ecx, dword [esi + 0x1a8]
cmp eax, 0xbe
jge 0x491554
mov eax, dword [esi + 0x1b4]
add eax, edi
add eax, edx
inc dword [esi + 0x1ac]
mov dword [esi + 0x1b4], eax
lea eax, [ecx + 1]
mov dword [esi + 0x1a8], eax
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x60]
push eax
call fcn.00415600
push dword [ebp - 0x68]
mov ecx, esi
push dword [ebp - 0x74]
call fcn.00492230
xor edi, edi
cmp dword [ebp - 0x68], edi
jbe 0x491636
mov ebx, dword [ebp - 0x68]
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push 0
cmovae eax, dword [ebp - 0x48]
mov ecx, esi
mov ax, word [eax + edi*2]
xor ax, word [esi + 0x976]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push eax
call fcn.00491990
mov eax, dword [esi + 0xc8]
inc edi
add eax, dword [esi + 0x48c]
add dword [esi + 0x1b0], eax
cmp edi, ebx
jl 0x4915f5
mov ebx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x80]
mov dword [esi + 0x564], eax
jmp 0x491748
mov ax, word [ebp - 0x18]
mov ecx, 0xfe
inc ebx
cmp ax, cx
jne 0x4916a9
test edi, edi
jne 0x491748
mov edx, dword [esi + 0x490]
mov ecx, dword [esi + 0xcc]
mov eax, dword [esi + 0x228]
inc dword [esi + 0x1a8]
inc dword [esi + 0x1ac]
mov dword [esi + 0x1b0], eax
lea eax, [ecx + edx]
add dword [esi + 0x1b4], eax
mov eax, dword [esi + 0x1b4]
add eax, ecx
mov dword [ebp - 0x64], 1
add eax, edx
cmp eax, 0xbe
jge 0x491554
jmp 0x491748
xor ax, word [esi + 0x976]
mov ecx, esi
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00491990
mov eax, dword [esi + 0xd4]
xor edi, edi
mov ecx, dword [esi + 0x48c]
add eax, eax
mov edx, dword [esi + 0x1b0]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], edi
lea eax, [edx + ecx*2]
add eax, dword [ebp - 0x6c]
cmp eax, dword [esi + 0x22c]
jl 0x491738
mov edx, dword [esi + 0x490]
mov ecx, dword [esi + 0xcc]
mov eax, dword [esi + 0x228]
mov dword [esi + 0x1b0], eax
mov dword [ebp - 0x64], 1
lea eax, [ecx + edx]
add dword [esi + 0x1b4], eax
mov eax, dword [esi + 0x1b4]
add eax, ecx
add eax, edx
cmp eax, 0xbe
jge 0x491554
mov eax, 0xfe
cmp word [ebp - 0x18], ax
jne 0x491748
add ebx, 2
jmp 0x491748
mov eax, dword [esi + 0xc8]
add eax, edx
add eax, ecx
mov dword [esi + 0x1b0], eax
cmp ebx, dword [ebp - 0x70]
jl 0x4913b2
jmp 0x491554
add eax, eax
cmp eax, 0x1000
jb 0x491792
test byte [ebp - 0x30], 0x1f
je 0x49176a
call fcn.005e567f
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx - 4]
cmp ecx, edx
jb 0x491779
call fcn.005e567f
mov eax, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 4
jae 0x491788
call fcn.005e567f
cmp eax, 0x23
jbe 0x491792
call fcn.005e567f
push ecx
call fcn.004a94b8
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
cmp eax, 8
jb 0x491808
mov ecx, dword [ebp - 0x48]
inc eax
cmp eax, 0x7fffffff
jbe 0x4917c7
call fcn.005e567f
add eax, eax
cmp eax, 0x1000
jb 0x4917ff
test byte [ebp - 0x48], 0x1f
je 0x4917db
call fcn.005e567f
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4917e7
call fcn.005e567f
sub ecx, eax
cmp ecx, 4
jae 0x4917f3
call fcn.005e567f
cmp ecx, 0x23
jbe 0x4917fd
call fcn.005e567f
mov ecx, eax
push ecx
call fcn.004a94b8
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x38], 0
cmp eax, 8
jb 0x491875
mov ecx, dword [ebp - 0x60]
inc eax
cmp eax, 0x7fffffff
jbe 0x491834
call fcn.005e567f
add eax, eax
cmp eax, 0x1000
jb 0x49186c
test byte [ebp - 0x60], 0x1f
je 0x491848
call fcn.005e567f
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x491854
call fcn.005e567f
sub ecx, eax
cmp ecx, 4
jae 0x491860
call fcn.005e567f
cmp ecx, 0x23
jbe 0x49186a
call fcn.005e567f
mov ecx, eax
push ecx
call fcn.004a94b8
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005e0710
mov esp, ebp
pop ebp
ret 0xc