Function at 0x1005a270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084f96
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x100a2078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x110]
xor bl, bl
mov edx, eax
mov esi, 6
nop dword [eax]
cmp dword [edx - 4], 0
je 0x1005a2bb
cmp dword [edx], 0
jne 0x1005a2bd
inc bl
add edx, 0x18
sub esi, 1
jne 0x1005a2b0
cmp bl, 6
jne 0x1005a401
movaps xmm0, xmmword [str._aWhpbuRwTshub]
xor ecx, ecx
movups xmmword [ebp - 0x48], xmm0
nop dword [eax + eax]
mov al, byte [ebp - 0x48]
xor byte [ebp + ecx - 0x47], al
inc ecx
cmp ecx, 0xe
jb 0x1005a2e0
cmp byte [ebp - 0x47], 0
mov byte [ebp - 0x39], 0
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
jne 0x1005a30d
xor ecx, ecx
jmp 0x1005a31c
lea ecx, [ebp - 0x47]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005a313
sub ecx, edx
push ecx
lea eax, [ebp - 0x47]
push eax
lea ecx, [ebp - 0x78]
call fcn.10002710
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x10099340]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x7f282521
mov word [ebp - 0x10], 0x70
nop word [eax + eax]
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x14
jb 0x1005a350
cmp byte [ebp - 0x23], 0
mov byte [ebp - 0xf], 0
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
jne 0x1005a37d
xor ecx, ecx
jmp 0x1005a38c
lea ecx, [ebp - 0x23]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005a383
sub ecx, edx
push ecx
lea eax, [ebp - 0x23]
push eax
lea ecx, [ebp - 0x60]
call fcn.10002710
push 0
push 0
lea edx, [ebp - 0x78]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.10021730
mov eax, dword [ebp - 0x4c]
add esp, 8
cmp eax, 0x10
jb 0x1005a3c4
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.100025f0
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
cmp eax, 0x10
jb 0x1005a563
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.100025f0
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 0x1005a414
cmp dword [eax], 0
jbe 0x1005a414
add esi, dword [eax + 4]
add eax, 0x18
sub ecx, 1
jne 0x1005a406
mov ecx, edi
call fcn.10059370
mov ecx, edi
call fcn.100596e0
push 0x2e
mov edx, esi
lea ecx, [ebp - 0xa8]
call fcn.100149c0
add esp, 4
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x1005a44b
mov eax, dword [eax]
movaps xmm0, xmmword [0x10099790]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x227471
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x12
jb 0x1005a460
sub esp, 0x18
mov byte [ebp - 0x25], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1005a48e
mov eax, dword [edx]
jmp 0x1005a490
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x37], 0
jne 0x1005a49d
xor ecx, ecx
jmp 0x1005a4ac
lea ecx, [ebp - 0x37]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005a4a3
sub ecx, esi
push ecx
lea eax, [ebp - 0x37]
mov ecx, edx
push eax
call fcn.10002710
lea eax, [ebp - 0x90]
push eax
call fcn.1000bf20
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [edi + 0x7c]
call fcn.10017a20
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x1005a4f0
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.100025f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
cmp eax, 0x10
jb 0x1005a52a
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.100025f0
mov esi, dword [edi + 0x20]
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
test esi, esi
je 0x1005a563
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005a563
push 1
mov ecx, esi
call dword [0x100981e8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret