Function at 0x1004a430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100637bc
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x10075604]
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 ebx, ecx
mov dword [ebp - 0x34], ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov byte [ebp - 0x29], 0
cmp esi, edi
je 0x1004a76b
nop dword [eax]
mov ebx, dword [esi]
test ebx, ebx
je 0x1004a75d
push ebx
call fcn.10007eb0
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1004a60f
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
movzx eax, byte [eax + 4]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.10007ef0
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1004a4e3
cmp dword [eax + 0x48], 0
je 0x1004a4e3
push ebx
push eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10009560
add esp, 0x10
mov ebx, eax
jmp 0x1004a4f7
push ebx
push 0
push dword [ebp - 0x30]
lea eax, [ebp - 0x68]
push eax
call fcn.10009560
add esp, 0x10
mov ebx, eax
lea eax, [ebp - 0x28]
cmp eax, ebx
je 0x1004a530
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1004a515
push 1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10002610
add esp, 0xc
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10003770
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x1004a54b
push 1
inc eax
push eax
push dword [ebp - 0x68]
call fcn.10002610
add esp, 0xc
mov eax, dword [ebp - 0x34]
movzx ebx, byte [ebp - 0x29]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x1004a5eb
lea ecx, [ebp - 0x28]
add eax, 4
push ecx
push eax
call fcn.1000d800
mov ecx, dword [ebp - 0x34]
add esp, 8
mov edx, dword [ebp - 0x30]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x50], edx
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp - 0x38]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x54], edx
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x58], 0
mov eax, edx
mov edx, dword [ebp - 0x30]
test eax, eax
je 0x1004a5b3
movsx eax, word [eax + 0x56]
mov dword [ebp - 0x38], eax
movsx eax, word [edx + 0x66]
mov edx, dword [ebp - 0x38]
add edx, eax
jmp 0x1004a5b7
movsx edx, word [edx + 0x66]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x5c], edx
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
test eax, eax
je 0x1004a5eb
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.100131b0
mov eax, dword [ebp - 0x34]
push 1
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
push dword [eax]
call fcn.10012b10
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x1004a75a
push 1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10002610
add esp, 0xc
jmp 0x1004a75a
mov ebx, dword [ebp - 0x34]
movzx ecx, byte [ebp - 0x29]
shl ecx, 2
mov dword [ebp - 0x30], ecx
mov eax, dword [ebx + 0xc]
cmp dword [ecx + eax], 0
je 0x1004a75a
movaps xmm0, xmmword [0x1006ba10]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0x653f2e39
mov dword [ebp - 0x3c], 0x3f332f
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x16
jb 0x1004a644
cmp byte [ebp - 0x4f], 0
mov byte [ebp - 0x39], 0
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
jne 0x1004a671
xor ecx, ecx
jmp 0x1004a680
lea ecx, [ebp - 0x4f]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004a677
sub ecx, edx
push ecx
lea eax, [ebp - 0x4f]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002800
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx + 0xc]
mov byte [ebp - 4], 4
mov eax, dword [ecx + eax]
add eax, 4
push eax
call fcn.1000d800
mov eax, dword [ebp - 0x54]
add esp, 8
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x1004a6c5
inc eax
push 1
push eax
push dword [ebp - 0x68]
call fcn.10002610
add esp, 0xc
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + eax]
cmp dword [eax], 0
je 0x1004a75a
movaps xmm0, xmmword [0x1006ba20]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0x663c2d3a
mov dword [ebp - 0x3c], 0x3c302c
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x16
jb 0x1004a6f2
lea eax, [ebp - 0x4f]
mov byte [ebp - 0x39], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.100017e0
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx + 0xc]
mov byte [ebp - 4], 5
mov eax, dword [ecx + eax]
push dword [eax]
call fcn.100131b0
mov eax, dword [ebp - 0x54]
add esp, 8
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x1004a745
push 1
inc eax
push eax
push dword [ebp - 0x68]
call fcn.10002610
add esp, 0xc
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x30]
push 0
mov eax, dword [ecx + eax]
push dword [eax]
call fcn.10012b10
add esp, 8
inc byte [ebp - 0x29]
add esi, 4
cmp esi, edi
jne 0x1004a480
mov ebx, dword [ebp - 0x34]
push dword [ebx]
call fcn.10012750
add esp, 4
test al, al
jne 0x1004a7ac
mov eax, dword [0x10075f30]
mov eax, dword [eax + 0x88]
test eax, eax
je 0x1004a7a0
push dword [eax]
call fcn.10012510
push edx
add eax, 0x12c
push eax
push dword [ebx]
call fcn.100129e0
add esp, 0x10
push 1
push dword [ebx]
call fcn.10012b10
add esp, 8
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1004a7c7
mov eax, dword [ebp + 0x10]
sub eax, ecx
push 4
sar eax, 2
push eax
push ecx
call fcn.10002610
add esp, 0xc
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.1005e77e
mov esp, ebp
pop ebp
ret 0xc