Function at 0x1006f590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008218d
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x10091040]
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
mov dword [ebp - 0x74], esi
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
jbe 0x1006fdc3
test eax, eax
je 0x1006fdc3
xor cl, cl
lea eax, [esi + 0x104]
mov edx, 6
cmp dword [eax - 4], 0
je 0x1006f5f2
cmp dword [eax], 0
jne 0x1006f5f4
inc cl
add eax, 0x18
sub edx, 1
jne 0x1006f5e7
test cl, cl
jne 0x1006f74d
movaps xmm0, xmmword [str..AYK_]
xor ecx, ecx
movups xmmword [ebp - 0x20], xmm0
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x1006f611
xorps xmm0, xmm0
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x1f]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x40], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006f640
sub ecx, edx
lea eax, [ebp - 0x1f]
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.100024a0
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x10089d70]
movups xmmword [ebp - 0x98], xmm0
mov byte [ebp - 0x78], 0
movaps xmm0, xmmword [0x100895c0]
movups xmmword [ebp - 0x88], xmm0
nop
mov al, byte [ebp - 0x98]
xor byte [ebp + ecx - 0x97], al
inc ecx
cmp ecx, 0x1f
jb 0x1006f680
xorps xmm0, xmm0
mov byte [ebp - 0x78], 0
lea ecx, [ebp - 0x97]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006f6b5
sub ecx, edx
lea eax, [ebp - 0x97]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.100024a0
push 0
push 0
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10020e90
mov ecx, dword [ebp - 0x14]
add esp, 8
cmp ecx, 0xf
jbe 0x1006f718
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006f70e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fdb3
push ecx
push edx
call fcn.1007d105
add esp, 8
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe 0x1006fdc3
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006f746
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fdb3
push ecx
push edx
jmp 0x1006fdbb
mov eax, dword [ebp + 0x14]
xor cl, cl
cmp eax, 1
jne 0x1006f8f4
movzx eax, cl
lea eax, [eax + eax*2]
cmp dword [esi + eax*8 + 0x10c], 2
jne 0x1006f909
movaps xmm0, xmmword [0x10088f70]
xor ecx, ecx
movups xmmword [ebp - 0x20], xmm0
nop dword [eax]
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x1006f780
xorps xmm0, xmm0
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x1f]
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x58], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006f7b0
sub ecx, edx
lea eax, [ebp - 0x1f]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.100024a0
mov dword [ebp - 4], 2
xor ecx, ecx
movaps xmm0, xmmword [0x100898a0]
movups xmmword [ebp - 0xec], xmm0
mov dword [ebp - 0x9c], 0x353a60
movaps xmm0, xmmword [0x100898b0]
movups xmmword [ebp - 0xdc], xmm0
movaps xmm0, xmmword [0x1008a180]
movups xmmword [ebp - 0xcc], xmm0
movaps xmm0, xmmword [0x1008a080]
movups xmmword [ebp - 0xbc], xmm0
movaps xmm0, xmmword [0x10089ec0]
movups xmmword [ebp - 0xac], xmm0
nop
mov al, byte [ebp - 0xec]
xor byte [ebp + ecx - 0xeb], al
inc ecx
cmp ecx, 0x52
jb 0x1006f820
xorps xmm0, xmm0
mov byte [ebp - 0x99], 0
lea ecx, [ebp - 0xeb]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x40], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006f858
sub ecx, edx
lea eax, [ebp - 0xeb]
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.100024a0
push 0
push 0
lea edx, [ebp - 0x6c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.10020e90
mov ecx, dword [ebp - 0x40]
add esp, 8
cmp ecx, 0xf
jbe 0x1006f8bb
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006f8b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fdb3
push ecx
push edx
call fcn.1007d105
add esp, 8
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xf
jbe 0x1006fdc3
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006f746
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fdb3
push ecx
push edx
jmp 0x1006fdbb
cmp eax, 2
jne 0x1006f90c
movzx eax, cl
lea eax, [eax + eax*2]
cmp dword [esi + eax*8 + 0x10c], 1
je 0x1006f952
mov eax, dword [ebp + 0x14]
inc cl
cmp cl, 6
jb 0x1006f752
xor cl, cl
nop dword [eax]
movzx eax, cl
mov dword [ebp - 0x70], eax
lea eax, [eax + eax*2]
cmp dword [esi + eax*8 + 0x100], 0
lea edi, [esi + eax*8]
mov dword [ebp - 0x3c], edi
ja 0x1006f946
cmp dword [edi + 0x104], 0
jbe 0x1006fae4
inc cl
cmp cl, 6
jb 0x1006f920
jmp 0x1006fdc3
movaps xmm0, xmmword [0x10088fb0]
xor ecx, ecx
movups xmmword [ebp - 0x20], xmm0
nop
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x1006f960
xorps xmm0, xmm0
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x1f]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x40], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006f990
sub ecx, edx
lea eax, [ebp - 0x1f]
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.100024a0
mov dword [ebp - 4], 4
xor ecx, ecx
movaps xmm0, xmmword [0x10089800]
movups xmmword [ebp - 0xec], xmm0
mov word [ebp - 0x9c], 0x2c23
movaps xmm0, xmmword [0x1008a260]
movups xmmword [ebp - 0xdc], xmm0
mov byte [ebp - 0x9a], 0
movaps xmm0, xmmword [0x10089820]
movups xmmword [ebp - 0xcc], xmm0
movaps xmm0, xmmword [0x1008a170]
movups xmmword [ebp - 0xbc], xmm0
movaps xmm0, xmmword [0x1008a1a0]
movups xmmword [ebp - 0xac], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0xec]
xor byte [ebp + ecx - 0xeb], al
inc ecx
cmp ecx, 0x51
jb 0x1006fa10
xorps xmm0, xmm0
mov byte [ebp - 0x9a], 0
lea ecx, [ebp - 0xeb]
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x58], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006fa48
sub ecx, edx
lea eax, [ebp - 0xeb]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.100024a0
push 0
push 0
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call fcn.10020e90
mov ecx, dword [ebp - 0x58]
add esp, 8
cmp ecx, 0xf
jbe 0x1006faab
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006faa1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fdb3
push ecx
push edx
call fcn.1007d105
add esp, 8
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe 0x1006fdc3
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006f746
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fdb3
push ecx
push edx
jmp 0x1006fdbb
mov esi, dword [0x10088ac8]
mov eax, 0x10624dd3
mul dword [ebp - 0x30]
mov ecx, 0xd78ae8
mov eax, edx
shr eax, 6
mov dword [ebp - 0x38], eax
imul eax, eax, 0x3e8
push eax
call fcn.10014f70
mov ecx, eax
call esi
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1006fdc3
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
mov esi, dword [ebp - 0x30]
mov dword [ebp - 4], 6
mov cl, byte [eax + 4]
mov eax, 0x12e0be83
mul esi
mov dword [ebp - 0x18], 0
sub esi, edx
mov byte [ebp - 0x28], 0
shr esi, 1
add esi, edx
mov byte [ebp - 0x29], cl
shr esi, 0x1d
cmp esi, 4
jae 0x1006fbe8
cmp cl, 0x2d
jae 0x1006fbe8
push 4
push 0xd78af0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006fbe8
sub esi, dword [ebp - 0x38]
movzx ecx, byte [ebp - 0x29]
mov edx, dword [0x10088acc]
imul eax, esi, 0x3e8
mov ecx, dword [ecx*4 + 0xd78af0]
add eax, dword [ebp - 0x30]
push eax
call edx
mov esi, eax
test eax, eax
je 0x1006fbea
cmp dword [eax + 0x48], 0
je 0x1006fbea
push dword [ebp - 0x30]
xor edx, edx
lea ecx, [ebp - 0x6c]
push eax
call fcn.100082f0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000b490
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xf
jbe 0x1006fc42
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006fc38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006fc38
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
xor esi, esi
push dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x90]
push 0
call fcn.100082f0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000b490
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0xf
jbe 0x1006fc42
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006fc38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006fc38
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007d105
add esp, 8
mov ecx, dword [edi + 0xfc]
test ecx, ecx
je 0x1006fd5d
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.1000edf0
mov eax, dword [edi + 0xfc]
mov edx, dword [ebp - 0x34]
mov dword [eax + 0x50], edx
mov eax, dword [edi + 0xfc]
mov dword [eax + 0x54], esi
mov eax, dword [edi + 0xfc]
mov dword [eax + 0x58], 1
test esi, esi
je 0x1006fc8d
movsx ecx, word [esi + 0x56]
movsx eax, word [edx + 0x66]
add ecx, eax
jmp 0x1006fc91
movsx ecx, word [edx + 0x66]
mov eax, dword [edi + 0xfc]
mov dword [eax + 0x5c], ecx
mov eax, dword [edi + 0xfc]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1006fd5d
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, dword [ebp - 0x28]
test eax, eax
jne 0x1006fd34
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
cmova ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006fcd0
sub ecx, edx
mov dword [ebp - 0x34], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007d113
push esi
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
push dword [ebp - 0x34]
cmova edx, dword [ebp - 0x28]
lea esi, [edi + 0x20]
push edx
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x34]
add esp, 0x1c
mov ecx, dword [ebp - 0x38]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x10088b50]
push edi
call fcn.1007d11c
mov edi, dword [ebp - 0x3c]
add esp, 4
mov esi, dword [ebp - 0x28]
mov eax, dword [edi + 0xfc]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1006fd60
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1006fd60
mov ecx, dword [ebp - 0x3c]
push 1
call dword [0x10088b1c]
jmp 0x1006fd60
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x74]
mov dword [edi + 0x100], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x104], eax
mov eax, dword [ebp - 0x70]
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 0x10]
mov dword [edx + ecx*8 + 0x108], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x10c], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x1006fdc3
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1006fdb9
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006fdb9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1007d105
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.1007d0a4
mov esp, ebp
pop ebp
ret 0x10