Function at 0x1004fc50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097886
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push esi
push edi
mov eax, dword [0x100be084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 0x110]
xor bl, bl
mov edx, eax
mov esi, 6
nop
cmp dword [edx - 4], 0
je 0x1004fc9b
cmp dword [edx], 0
jne 0x1004fc9d
inc bl
add edx, 0x14
sub esi, 1
jne 0x1004fc90
cmp bl, 6
jne 0x1004fdee
movaps xmm0, xmmword [0x100b21a0]
xor ecx, ecx
movups xmmword [ebp - 0x4c], xmm0
nop dword [eax + eax]
mov al, byte [ebp - 0x4c]
xor byte [ebp + ecx - 0x4b], al
inc ecx
cmp ecx, 0xe
jb 0x1004fcc0
cmp byte [ebp - 0x4b], 0
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x7c], 0
jne 0x1004fced
xor ecx, ecx
jmp 0x1004fcfc
lea ecx, [ebp - 0x4b]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004fcf3
sub ecx, edx
push ecx
lea eax, [ebp - 0x4b]
push eax
lea ecx, [ebp - 0x7c]
call fcn.100055d0
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x100b3060]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x3e696460
mov word [ebp - 0x14], 0x31
nop word [eax + eax]
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x1004fd30
cmp byte [ebp - 0x27], 0
mov byte [ebp - 0x13], 0
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jne 0x1004fd5d
xor ecx, ecx
jmp 0x1004fd6c
lea ecx, [ebp - 0x27]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004fd63
sub ecx, edx
push ecx
lea eax, [ebp - 0x27]
push eax
lea ecx, [ebp - 0x64]
call fcn.100055d0
push 0
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x7c]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x64]
push eax
push eax
call dword [0x100b0960]
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
jb 0x1004fdb1
inc eax
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
call fcn.10005480
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
cmp eax, 0x10
jb 0x1004ffa0
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.10005480
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
lea ecx, [esi + 6]
cmp dword [eax - 4], 0
jbe 0x1004fe01
cmp dword [eax], 0
jbe 0x1004fe01
add esi, dword [eax + 4]
add eax, 0x14
sub ecx, 1
jne 0x1004fdf3
mov edi, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push edi
call ebx
test eax, eax
jne 0x1004fe4c
push 4
add edi, 0xe5
push edi
call ebx
test eax, eax
jne 0x1004fe4c
mov al, byte [edi]
test al, al
je 0x1004fe4c
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x34]
test edi, edi
je 0x1004fe4c
push 4
push edi
call ebx
test eax, eax
jne 0x1004fe4c
push eax
mov ecx, edi
call dword [0x100b08d4]
push ecx
mov edx, esi
lea ecx, [ebp - 0xac]
call fcn.10013f20
add esp, 4
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x1004fe6c
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b2ca0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x144247
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x12
jb 0x1004fe81
sub esp, 0x18
mov byte [ebp - 0x29], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1004feaf
mov eax, dword [edx]
jmp 0x1004feb1
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x3b], 0
jne 0x1004febe
xor ecx, ecx
jmp 0x1004fecd
lea ecx, [ebp - 0x3b]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004fec4
sub ecx, esi
push ecx
lea eax, [ebp - 0x3b]
mov ecx, edx
push eax
call fcn.100055d0
lea eax, [ebp - 0x94]
push eax
call fcn.10004f40
add esp, 0x20
mov edi, eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 3
mov esi, dword [eax + 0x100]
test esi, esi
je 0x1004ff0d
push 4
push esi
call ebx
test eax, eax
jne 0x1004ff0d
push edi
mov ecx, esi
call dword [0x100b0938]
mov eax, dword [ebp - 0x80]
cmp eax, 0x10
jb 0x1004ff28
inc eax
lea ecx, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
call fcn.10005480
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], 0
cmp eax, 0x10
jb 0x1004ff65
inc eax
lea ecx, [ebp - 0xac]
push eax
push dword [ebp - 0xac]
call fcn.10005480
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0xac], 0
mov esi, dword [eax + 0xfc]
test esi, esi
je 0x1004ffa0
push 4
push esi
call ebx
test eax, eax
jne 0x1004ffa0
push 1
mov ecx, esi
call dword [0x100b08d4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret