Function at 0x1004e4e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006786e
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10078014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0x2d], 0
cmp esi, edi
je 0x1004e834
nop dword [eax]
mov ebx, dword [esi]
test ebx, ebx
je 0x1004e826
mov eax, 0x10624dd3
mov ecx, 0xd78ae8
mul ebx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.10015280
mov ecx, eax
call dword [0x1006eb98]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1004e6d5
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov edx, ebx
mov cl, byte [eax + 4]
call fcn.10007cb0
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x1004e5a8
cmp dword [eax + 0x48], 0
je 0x1004e5a8
push ebx
push eax
xor edx, edx
lea ecx, [ebp - 0x68]
call fcn.10007f50
add esp, 8
mov ebx, eax
jmp 0x1004e5bb
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x68]
push ebx
push 0
call fcn.10007f50
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x2c]
cmp eax, ebx
je 0x1004e5f3
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1004e5d8
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.10002790
add esp, 4
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.10003730
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x1004e60d
mov ecx, dword [ebp - 0x68]
inc edx
push 1
call fcn.10002790
add esp, 4
mov eax, dword [ebp - 0x34]
movzx ebx, byte [ebp - 0x2d]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x1004e6b2
add ecx, 4
lea edx, [ebp - 0x2c]
call fcn.1000e460
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x50]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x50], edx
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x54], ecx
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x58], 0
test ecx, ecx
je 0x1004e668
movsx ecx, word [ecx + 0x56]
movsx eax, word [edx + 0x66]
add ecx, eax
jmp 0x1004e66c
movsx ecx, word [edx + 0x66]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x5c], ecx
mov eax, dword [edx + 0xc]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x1004e6b2
lea edx, [ebp - 0x2c]
call fcn.10014c60
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov ebx, dword [eax]
test ebx, ebx
je 0x1004e6b2
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004e6b2
push 1
mov ecx, ebx
call dword [0x1006ebec]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1004e823
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.10002790
add esp, 4
jmp 0x1004e823
mov eax, dword [ebp - 0x34]
movzx ebx, byte [ebp - 0x2d]
mov eax, dword [eax + 0xc]
cmp dword [eax + ebx*4], 0
je 0x1004e823
movaps xmm0, xmmword [0x1006f990]
xor ecx, ecx
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0x7a203126
mov dword [ebp - 0x38], 0x202c30
mov al, byte [ebp - 0x4c]
xor byte [ebp + ecx - 0x4b], al
inc ecx
cmp ecx, 0x16
jb 0x1004e704
cmp byte [ebp - 0x4b], 0
mov byte [ebp - 0x35], 0
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
jne 0x1004e731
xor ecx, ecx
jmp 0x1004e740
lea ecx, [ebp - 0x4b]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004e737
sub ecx, edx
push ecx
lea eax, [ebp - 0x4b]
push eax
lea ecx, [ebp - 0x68]
call fcn.100028c0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 4
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + ebx*4]
add ecx, 4
call fcn.1000e460
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x1004e77f
mov ecx, dword [ebp - 0x68]
inc edx
push 1
call fcn.10002790
add esp, 4
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
cmp dword [eax], 0
je 0x1004e823
movaps xmm0, xmmword [0x10070040]
xor eax, eax
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0x257f6e79
mov dword [ebp - 0x38], 0x7f736f
nop dword [eax]
mov cl, byte [ebp - 0x4c]
xor byte [ebp + eax - 0x4b], cl
inc eax
cmp eax, 0x16
jb 0x1004e7b0
lea eax, [ebp - 0x4b]
mov byte [ebp - 0x35], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.100029c0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 5
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx]
call fcn.10014c60
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x1004e7fe
mov ecx, dword [ebp - 0x68]
inc edx
push 1
call fcn.10002790
add esp, 4
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
mov ebx, dword [eax]
test ebx, ebx
je 0x1004e823
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004e823
push eax
mov ecx, ebx
call dword [0x1006ebec]
inc byte [ebp - 0x2d]
add esi, 4
cmp esi, edi
jne 0x1004e530
mov eax, dword [ebp - 0x34]
mov ecx, eax
call fcn.1004e0e0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1004e854
mov edx, dword [ebp + 0x10]
sub edx, ecx
push 4
sar edx, 2
call fcn.10002790
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 - 0x14]
xor ecx, ebp
call fcn.10063065
mov esp, ebp
pop ebp
ret 0xc