Function at 0x1005a840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b51d
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x100a8080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
jbe 0x1005af24
test eax, eax
je 0x1005af24
xor cl, cl
lea eax, [esi + 0x110]
mov edx, 6
cmp dword [eax - 4], 0
je 0x1005a89f
cmp dword [eax], 0
jne 0x1005a8a1
inc cl
add eax, 0x14
sub edx, 1
jne 0x1005a894
test cl, cl
jne 0x1005aa29
movaps xmm0, xmmword [str.Y_t6._t_f_y_n_6_]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
nop
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x1005a8c0
xorps xmm0, xmm0
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x53]
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005a8f0
sub ecx, edx
lea eax, [ebp - 0x53]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.10005240
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x100a04c0]
movups xmmword [ebp - 0xf8], xmm0
mov byte [ebp - 0xd8], 0
movaps xmm0, xmmword [0x1009fcb0]
movups xmmword [ebp - 0xe8], xmm0
mov al, byte [ebp - 0xf8]
xor byte [ebp + ecx - 0xf7], al
inc ecx
cmp ecx, 0x1f
jb 0x1005a932
xorps xmm0, xmm0
mov byte [ebp - 0xd8], 0
lea ecx, [ebp - 0xf7]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005a970
sub ecx, edx
lea eax, [ebp - 0xf7]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10005240
push 0
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x70]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x44]
push eax
push eax
call dword [0x1009dff0]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x1005a9e0
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005a9d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005af41
push ecx
push edx
call fcn.100675d1
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0xf
jbe 0x1005af24
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005af1a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005af41
jmp 0x1005af1a
mov edx, dword [ebp + 0x14]
xor cl, cl
nop
movzx eax, cl
cmp edx, 1
jne 0x1005abb8
lea eax, [eax + eax*4]
add eax, 0x46
cmp dword [esi + eax*4], 2
jne 0x1005abc9
movaps xmm0, xmmword [0x1009f4c0]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
nop dword [eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x1005aa60
xorps xmm0, xmm0
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x53]
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005aa90
sub ecx, edx
lea eax, [ebp - 0x53]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.10005240
mov dword [ebp - 4], 2
xor ecx, ecx
movaps xmm0, xmmword [0x1009fb70]
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0x84], 0x2e217b7d
movaps xmm0, xmmword [0x1009fb60]
movups xmmword [ebp - 0xc4], xmm0
mov byte [ebp - 0x80], 0
movaps xmm0, xmmword [0x100a0150]
movups xmmword [ebp - 0xb4], xmm0
movaps xmm0, xmmword [0x1009fed0]
movups xmmword [ebp - 0xa4], xmm0
movaps xmm0, xmmword [0x100a02e0]
movups xmmword [ebp - 0x94], xmm0
nop dword [eax]
nop word [eax + eax]
mov al, byte [ebp - 0xd4]
xor byte [ebp + ecx - 0xd3], al
inc ecx
cmp ecx, 0x53
jb 0x1005ab10
xorps xmm0, xmm0
mov byte [ebp - 0x80], 0
lea ecx, [ebp - 0xd3]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005ab45
sub ecx, edx
lea eax, [ebp - 0xd3]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10005240
push 0
push ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x44]
push eax
push eax
call dword [0x1009dff0]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x1005a9e0
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005a9d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005af41
jmp 0x1005a9d6
cmp edx, 2
jne 0x1005abc9
lea eax, [eax + eax*4]
add eax, 0x46
cmp dword [esi + eax*4], 1
je 0x1005ac02
inc cl
cmp cl, 6
jb 0x1005aa30
xor al, al
movzx ecx, al
mov dword [ebp - 0x7c], ecx
lea edi, [ecx + ecx*4]
cmp dword [esi + edi*4 + 0x10c], 0
ja 0x1005abf7
cmp dword [esi + edi*4 + 0x110], 0
jbe 0x1005ad5b
inc al
cmp al, 6
jb 0x1005abd6
jmp 0x1005af24
movaps xmm0, xmmword [str.Z_n5___w]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
nop
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x1005ac10
xorps xmm0, xmm0
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x53]
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005ac40
sub ecx, edx
lea eax, [ebp - 0x53]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.10005240
mov dword [ebp - 4], 4
xor ecx, ecx
movaps xmm0, xmmword [0x1009fa40]
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0x84], 0x242b71
movaps xmm0, xmmword [0x100a01d0]
movups xmmword [ebp - 0xc4], xmm0
movaps xmm0, xmmword [0x100a03f0]
movups xmmword [ebp - 0xb4], xmm0
movaps xmm0, xmmword [0x100a02c0]
movups xmmword [ebp - 0xa4], xmm0
movaps xmm0, xmmword [0x100a0410]
movups xmmword [ebp - 0x94], xmm0
nop
mov al, byte [ebp - 0xd4]
xor byte [ebp + ecx - 0xd3], al
inc ecx
cmp ecx, 0x52
jb 0x1005acb0
xorps xmm0, xmm0
mov byte [ebp - 0x81], 0
lea ecx, [ebp - 0xd3]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005ace8
sub ecx, edx
lea eax, [ebp - 0xd3]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10005240
push 0
push ecx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x70]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x44]
push eax
push eax
call dword [0x1009dff0]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x1005a9e0
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005a9d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005af41
jmp 0x1005a9d6
mov eax, 0x10624dd3
mul dword [ebp - 0x2c]
mov eax, edx
shr eax, 6
mov dword [ebp - 0x78], eax
imul eax, eax, 0x3e8
push eax
call dword [0x1009df18]
mov ecx, eax
mov dword [ebp - 0x58], ecx
test ecx, ecx
je 0x1005af24
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 6
cmp dword [ecx], 0
je 0x1005ae5f
mov eax, 0x12e0be83
mul dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
mov dword [ebp - 0x74], eax
cmp eax, 4
jae 0x1005ae5f
cmp byte [ecx + 4], 0x2d
jae 0x1005ae5f
push 4
push 0x10b8050
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005ae5c
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x78]
imul eax, eax, 0x3e8
add eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x58]
movzx ecx, byte [eax + 4]
mov ecx, dword [ecx*4 + 0x10b8050]
call dword [0x1009df1c]
test eax, eax
je 0x1005ae5c
cmp dword [eax + 0x3c], 0
je 0x1005ae5c
push dword [ebp - 0x2c]
xor edx, edx
lea ecx, [ebp - 0x70]
push eax
call fcn.1000b1e0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000bc40
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0xf
jbe 0x1005aeb7
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005aead
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005aead
jmp 0x1005af41
mov ecx, dword [ebp - 0x58]
push dword [ebp - 0x2c]
mov edx, ecx
lea ecx, [ebp - 0xf0]
push 0
call fcn.1000b1e0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000bc40
mov ecx, dword [ebp - 0xdc]
cmp ecx, 0xf
jbe 0x1005aeb7
mov edx, dword [ebp - 0xf0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005aead
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005af41
push ecx
push edx
call fcn.100675d1
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [esi + edi*4 + 0x10c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + edi*4 + 0x110], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + edi*4 + 0x114], eax
mov eax, dword [ebp - 0x7c]
lea eax, [eax + eax*4]
mov dword [esi + eax*4 + 0x118], ecx
mov esi, dword [esi + edi*4 + 0x11c]
test esi, esi
je 0x1005af09
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005af09
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x1009df98]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1005af24
mov edx, dword [ebp - 0x28]
inc ecx
jmp 0x1005aa02
push ecx
push edx
call fcn.100675d1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067570
mov esp, ebp
pop ebp
ret 0x10
call fcn.1006cd3b
int3