Function at 0x1004f100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063d38
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
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 edi, ecx
cmp dword [ebp + 8], 0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], esi
jbe 0x1004f578
test esi, esi
je 0x1004f578
xor cl, cl
lea eax, [edi + 0x104]
mov edx, 6
cmp dword [eax - 4], 0
je 0x1004f160
cmp dword [eax], 0
jne 0x1004f162
inc cl
add eax, 0x18
sub edx, 1
jne 0x1004f155
test cl, cl
jne 0x1004f221
movaps xmm0, xmmword [0x1006baa0]
xor ecx, ecx
movups xmmword [ebp - 0x3c], xmm0
nop
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0xe
jb 0x1004f180
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2d], 0
push eax
lea ecx, [ebp - 0x5c]
call fcn.100017e0
movaps xmm0, xmmword [0x1006bc50]
xor ecx, ecx
movups xmmword [ebp - 0xec], xmm0
mov dword [ebp - 4], 0
movaps xmm0, xmmword [0x1006bd80]
movups xmmword [ebp - 0xdc], xmm0
mov byte [ebp - 0xcc], 0
nop dword [eax]
mov al, byte [ebp - 0xec]
xor byte [ebp + ecx - 0xeb], al
inc ecx
cmp ecx, 0x1f
jb 0x1004f1d0
lea eax, [ebp - 0xeb]
mov byte [ebp - 0xcc], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.100017e0
push 0
push 0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.1001d450
add esp, 0x10
lea ecx, [ebp - 0x74]
call fcn.10001840
lea ecx, [ebp - 0x5c]
jmp 0x1004f573
mov ebx, dword [ebp + 0x14]
mov ecx, edi
push ebx
call fcn.1004f5a0
test al, al
je 0x1004f3fe
cmp ebx, 1
jne 0x1004f31e
movaps xmm0, xmmword [0x1006bb30]
xor ecx, ecx
movups xmmword [ebp - 0x3c], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0xe
jb 0x1004f250
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2d], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.100017e0
movaps xmm0, xmmword [0x1006bd90]
xor ecx, ecx
movups xmmword [ebp - 0xc8], xmm0
mov dword [ebp - 4], 2
movaps xmm0, xmmword [0x1006bda0]
movups xmmword [ebp - 0xb8], xmm0
mov dword [ebp - 0x78], 0x79762c
movaps xmm0, xmmword [0x1006bc70]
movups xmmword [ebp - 0xa8], xmm0
movaps xmm0, xmmword [0x1006bca0]
movups xmmword [ebp - 0x98], xmm0
movaps xmm0, xmmword [0x1006bc40]
movups xmmword [ebp - 0x88], xmm0
nop dword [eax]
nop word [eax + eax]
mov al, byte [ebp - 0xc8]
xor byte [ebp + ecx - 0xc7], al
inc ecx
cmp ecx, 0x52
jb 0x1004f2d0
lea eax, [ebp - 0xc7]
mov byte [ebp - 0x75], 0
push eax
lea ecx, [ebp - 0x5c]
call fcn.100017e0
push 0
push 0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.1001d450
add esp, 0x10
lea ecx, [ebp - 0x5c]
call fcn.10001840
lea ecx, [ebp - 0x74]
jmp 0x1004f573
cmp ebx, 2
jne 0x1004f578
movaps xmm0, xmmword [str.2b_EW_]
xor ecx, ecx
movups xmmword [ebp - 0x3c], xmm0
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0xe
jb 0x1004f334
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2d], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.100017e0
movaps xmm0, xmmword [0x1006bd40]
xor ecx, ecx
movups xmmword [ebp - 0xc8], xmm0
mov dword [ebp - 4], 4
movaps xmm0, xmmword [0x1006bb90]
movups xmmword [ebp - 0xb8], xmm0
mov word [ebp - 0x78], 0x5956
movaps xmm0, xmmword [0x1006bd30]
movups xmmword [ebp - 0xa8], xmm0
mov byte [ebp - 0x76], 0
movaps xmm0, xmmword [0x1006bbd0]
movups xmmword [ebp - 0x98], xmm0
movaps xmm0, xmmword [0x1006bbc0]
movups xmmword [ebp - 0x88], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0xc8]
xor byte [ebp + ecx - 0xc7], al
inc ecx
cmp ecx, 0x51
jb 0x1004f3b0
lea eax, [ebp - 0xc7]
mov byte [ebp - 0x76], 0
push eax
lea ecx, [ebp - 0x5c]
call fcn.100017e0
push 0
push 0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.1001d450
add esp, 0x10
lea ecx, [ebp - 0x5c]
call fcn.10001840
lea ecx, [ebp - 0x74]
jmp 0x1004f573
xor bl, bl
movzx eax, bl
lea eax, [eax + eax*2]
cmp dword [edi + eax*8 + 0x100], 0
ja 0x1004f41a
cmp dword [edi + eax*8 + 0x104], 0
jbe 0x1004f426
inc bl
cmp bl, 6
jb 0x1004f400
jmp 0x1004f578
push esi
call fcn.10007eb0
mov esi, eax
add esp, 4
mov dword [ebp - 0x40], esi
test esi, esi
je 0x1004f578
mov dword [ebp - 0x14], 0xf
push dword [ebp - 0x2c]
movzx eax, byte [esi + 4]
push eax
mov dword [ebp - 4], 6
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10007ef0
add esp, 8
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1004f492
cmp dword [eax + 0x48], 0
je 0x1004f492
push dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.10009560
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.10007d70
lea ecx, [ebp - 0x5c]
jmp 0x1004f4b6
push dword [ebp - 0x2c]
lea eax, [ebp - 0x104]
push 0
push esi
push eax
call fcn.10009560
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.10007d70
lea ecx, [ebp - 0x104]
call fcn.10001840
movzx ebx, bl
lea eax, [ebx + ebx*2]
lea esi, [edi + eax*8]
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x1004f548
lea ecx, [ebp - 0x28]
add eax, 4
push ecx
push eax
call fcn.1000d800
mov eax, dword [esi + 0xfc]
add esp, 8
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
mov dword [eax + 0x50], ecx
mov eax, dword [esi + 0xfc]
mov dword [eax + 0x54], edx
mov eax, dword [esi + 0xfc]
mov dword [eax + 0x58], 1
test edx, edx
je 0x1004f513
movsx edx, word [edx + 0x56]
movsx eax, word [ecx + 0x66]
add edx, eax
jmp 0x1004f517
movsx edx, word [ecx + 0x66]
mov eax, dword [esi + 0xfc]
mov dword [eax + 0x5c], edx
mov eax, dword [esi + 0xfc]
mov eax, dword [eax]
test eax, eax
je 0x1004f548
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.100131b0
mov eax, dword [esi + 0xfc]
push 1
push dword [eax]
call fcn.10012b10
add esp, 0x10
mov eax, dword [ebp + 8]
lea ecx, [ebx + ebx*2]
mov dword [esi + 0x100], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x104], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + ecx*8 + 0x108], eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10c], eax
call fcn.10001840
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 0x10