Function at 0x1000f640
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082911
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x130
push esi
push edi
mov eax, dword [0x100a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 1
lea edi, [esi + 4]
xorps xmm0, xmm0
mov dword [esi], 0
movups xmmword [edi], xmm0
push 8
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.10045fe0
add esp, 4
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x14], 0
cmp dword [esi + 0x18], 0xf
mov dword [ebp - 0x28], 1
jbe 0x1000f701
mov edi, dword [edi]
mov eax, dword [ebp - 0x1c]
mov byte [edi], 0
mov dword [ebp - 0x14], 0x64
mov dword [ebp - 0x20], 0x2710
test eax, eax
je 0x1000f8ff
mov ecx, dword [eax + 0x4c]
mov eax, 0xcccccccd
mul ecx
mov edi, ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub edi, eax
mov eax, edx
xor edx, edx
div dword [ebp - 0x14]
mov eax, 0x10624dd3
mov dword [ebp - 0x18], edx
mul ecx
push edi
shr edx, 6
mov eax, edx
xor edx, edx
div dword [ebp - 0x20]
push dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, 0x6b5fca6b
mul ecx
push dword [ebp - 0x14]
mov ecx, edx
mov eax, 0x12e0be83
mul dword [ebx + 0xc]
mov eax, dword [ebx + 0xc]
sub eax, edx
shr ecx, 0x16
shr eax, 1
add eax, edx
shr eax, 0x1d
dec eax
push ecx
xor ecx, ecx
cmp eax, 2
jbe 0x1000f839
movaps xmm0, xmmword [0x1009fb40]
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x30], 0x4e425e14
movaps xmm0, xmmword [0x1009fee0]
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x2c], cl
mov al, byte [ebp + ecx - 0x4f]
xor al, byte [ebp - 0x50]
mov byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x23
jb 0x1000f7a5
sub esp, 0x1c
mov byte [ebp - 0x2c], 0
mov edx, esp
lea ecx, [ebp - 0x4f]
xorps xmm0, xmm0
lea edi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f7e0
sub ecx, edi
lea eax, [ebp - 0x4f]
push ecx
push eax
mov ecx, edx
call fcn.10003350
lea eax, [ebp - 0xe8]
push eax
call fcn.1000d820
mov edi, eax
add esp, 0x30
cmp esi, edi
je 0x1000f819
mov ecx, esi
call fcn.10002f50
push edi
mov ecx, esi
call fcn.10007c30
lea ecx, [ebp - 0xe8]
call fcn.10002f50
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xe8], 0
jmp 0x1000f8f4
movaps xmm0, xmmword [0x1009fd20]
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x58], 0x6a667a30
movaps xmm0, xmmword [0x1009fff0]
movups xmmword [ebp - 0x68], xmm0
mov byte [ebp - 0x54], 0
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x77]
xor al, byte [ebp - 0x78]
mov byte [ebp + ecx - 0x77], al
inc ecx
cmp ecx, 0x23
jb 0x1000f860
sub esp, 0x1c
mov byte [ebp - 0x54], 0
mov edx, esp
lea ecx, [ebp - 0x77]
xorps xmm0, xmm0
lea edi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f8a0
sub ecx, edi
lea eax, [ebp - 0x77]
push ecx
push eax
mov ecx, edx
call fcn.10003350
lea eax, [ebp - 0x104]
push eax
call fcn.1000d820
mov edi, eax
add esp, 0x30
cmp esi, edi
je 0x1000f8d9
mov ecx, esi
call fcn.10002f50
push edi
mov ecx, esi
call fcn.10007c30
lea ecx, [ebp - 0x104]
call fcn.10002f50
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x104], 0
push 8
push eax
call fcn.10046080
add esp, 8
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1000fb32
mov edi, dword [eax + 0x48]
test edi, edi
je 0x1000fb32
mov eax, 0xcccccccd
mul edi
mov eax, edi
shr edx, 3
lea ecx, [edx + edx*4]
add ecx, ecx
sub eax, ecx
mov ecx, 0x64
mov dword [ebp - 0x14], eax
mov eax, edx
xor edx, edx
div ecx
mov eax, 0x10624dd3
mov ecx, 0x2710
mov dword [ebp - 0x18], edx
mul edi
push dword [ebp - 0x14]
shr edx, 6
mov eax, edx
xor edx, edx
div ecx
push dword [ebp - 0x18]
mov eax, 0x6b5fca6b
push edx
mul edi
mov edi, dword [ebx + 0xc]
mov eax, 0x12e0be83
mov ecx, edx
mul edi
shr ecx, 0x16
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 0x1d
dec edi
push ecx
xor ecx, ecx
cmp edi, 2
jbe 0x1000fa56
movaps xmm0, xmmword [0x1009fde0]
movups xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0x80], 0x7b776b21
movaps xmm0, xmmword [0x1009ff70]
movups xmmword [ebp - 0x90], xmm0
mov byte [ebp - 0x7c], cl
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x9f]
xor al, byte [ebp - 0xa0]
mov byte [ebp + ecx - 0x9f], al
inc ecx
cmp ecx, 0x23
jb 0x1000f9b0
sub esp, 0x1c
mov byte [ebp - 0x7c], 0
mov edx, esp
lea ecx, [ebp - 0x9f]
xorps xmm0, xmm0
lea edi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f9f7
sub ecx, edi
lea eax, [ebp - 0x9f]
push ecx
push eax
mov ecx, edx
call fcn.10003350
lea eax, [ebp - 0x120]
push eax
call fcn.1000d820
mov edi, eax
add esp, 0x30
cmp esi, edi
je 0x1000fa33
mov ecx, esi
call fcn.10002f50
push edi
mov ecx, esi
call fcn.10007c30
lea ecx, [ebp - 0x120]
call fcn.10002f50
mov ecx, dword [ebp - 0x120]
push 8
mov dword [ebp - 0x120], 0
push ecx
jmp 0x1000fb2a
movaps xmm0, xmmword [0x1009fae0]
movups xmmword [ebp - 0xc8], xmm0
mov dword [ebp - 0xa8], 0x4e425e14
movaps xmm0, xmmword [0x1009fee0]
movups xmmword [ebp - 0xb8], xmm0
mov byte [ebp - 0xa4], 0
mov al, byte [ebp + ecx - 0xc7]
xor al, byte [ebp - 0xc8]
mov byte [ebp + ecx - 0xc7], al
inc ecx
cmp ecx, 0x23
jb 0x1000fa83
sub esp, 0x1c
mov byte [ebp - 0xa4], 0
mov edx, esp
lea ecx, [ebp - 0xc7]
xorps xmm0, xmm0
lea edi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000fad0
sub ecx, edi
lea eax, [ebp - 0xc7]
push ecx
push eax
mov ecx, edx
call fcn.10003350
lea eax, [ebp - 0x13c]
push eax
call fcn.1000d820
mov edi, eax
add esp, 0x30
cmp esi, edi
je 0x1000fb0c
mov ecx, esi
call fcn.10002f50
push edi
mov ecx, esi
call fcn.10007c30
lea ecx, [ebp - 0x13c]
call fcn.10002f50
mov eax, dword [ebp - 0x13c]
push 8
mov dword [ebp - 0x13c], 0
push eax
call fcn.10046080
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret