Function at 0x10116520
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x104
mov eax, dword [0x1020c0c0]
xor eax, esp
mov dword [esp + 0xfc], eax
mov eax, dword [0x10229c78]
push ebx
push ebp
push esi
cmp byte [eax + 0x37fc], 0
push edi
mov dword [esp + 0x20], ecx
je 0x10116ab8
mov eax, dword [0x1022bebc]
mov ecx, dword [eax]
test ecx, ecx
je 0x10116ab8
mov eax, dword [ecx]
mov eax, dword [eax + 0x270]
call eax
test al, al
je 0x10116ab8
mov eax, dword [0x10229c80]
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x20]
push edx
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
movd xmm0, dword [esp + 0x40]
lea ecx, [esp + 0x78]
mov eax, dword [0x10229c78]
mov edx, 6
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 0x3800]
movss dword [esp + 0x44], xmm0
nop dword [eax]
lea ecx, [ecx + 0x18]
xorps xmm0, xmm0
movups xmmword [ecx - 0x18], xmm0
mov dword [ecx - 8], 0
mov dword [ecx - 4], 0xf
mov byte [ecx - 0x18], 0
sub edx, 1
jne 0x101165b0
cmp byte [eax + 0x3804], dl
je 0x10116600
lea esi, [esp + 0x78]
lea ebx, [edx + 3]
mov edi, 2
push 1
push 0x101f9904
mov ecx, esi
call fcn.10022c30
add esi, 0x18
sub edi, 1
jne 0x101165e5
sub ebx, 1
jne 0x101165e0
mov eax, dword [0x10453b04]
test al, 4
je 0x10116670
mov ax, word [0x101e3f44]
mov word [esp + 0x14], ax
test ah, ah
je 0x10116649
xor ebx, ebx
nop word [eax + eax]
mov eax, 0x3521cfb3
mov cl, bl
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul eax, eax, 0x35
sub cl, al
add cl, 0x32
xor byte [esp + ebx + 0x14], cl
inc ebx
cmp ebx, 2
jl 0x10116620
lea ecx, [esp + 0x14]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10116650
sub ecx, edx
lea eax, [esp + 0x14]
push ecx
push eax
lea ecx, [esp + 0x80]
call fcn.10022c30
mov eax, dword [0x10453b04]
test al, 8
je 0x1011669f
cmp dword [0x1022a9bc], 0x10
lea ecx, [esp + 0xa8]
push dword [0x1022a9b8]
mov eax, 0x1022a9a8
cmovae eax, dword [0x1022a9a8]
push eax
call fcn.10022c30
mov eax, dword [0x10453b04]
test al, 2
je 0x10116704
mov ax, word [0x101e3df0]
mov word [esp + 0x14], ax
test ah, ah
je 0x101166dd
xor ebx, ebx
mov eax, 0x3521cfb3
mov cl, bl
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul eax, eax, 0x35
sub cl, al
add cl, 0x32
xor byte [esp + ebx + 0x14], cl
inc ebx
cmp ebx, 2
jl 0x101166b4
lea ecx, [esp + 0x14]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101166e4
sub ecx, edx
lea eax, [esp + 0x14]
push ecx
push eax
lea ecx, [esp + 0xe0]
call fcn.10022c30
mov eax, dword [0x10453b04]
test eax, 0x200
je 0x10116736
cmp dword [0x1022a9a4], 0x10
lea ecx, [esp + 0x90]
push dword [0x1022a9a0]
mov eax, 0x1022a990
cmovae eax, dword [0x1022a990]
push eax
call fcn.10022c30
mov eax, dword [0x10453b04]
test al, 0x10
je 0x10116765
cmp dword [0x1022a974], 0x10
lea ecx, [esp + 0xc0]
push dword [0x1022a970]
mov eax, 0x1022a960
cmovae eax, dword [0x1022a960]
push eax
call fcn.10022c30
mov eax, dword [0x10453b04]
test eax, 0x400
je 0x10116792
cmp dword [0x1022a98c], 0x10
lea ecx, [esp + 0xf0]
push dword [0x1022a988]
mov eax, 0x1022a978
cmovae eax, dword [0x1022a978]
push eax
call fcn.10022c30
mov ecx, dword [0x10229c84]
mov dword [esp + 0x6c], 0xc20c0000
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0x420c0000
mov ecx, dword [ecx + 0x1c]
call fcn.101615a0
lea eax, [esp + 0x6c]
mov dword [esp + 0x24], 3
lea esi, [esp + 0x78]
mov dword [esp + 0x14], eax
nop dword [eax]
xor ebp, ebp
mov edi, dword [esi + 0x14]
mov ecx, esi
cmp edi, 0x10
jb 0x101167de
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push 0
push 0x101d9e4f
call fcn.1002f620
test al, al
jne 0x10116a37
mov eax, esi
cmp edi, 0x10
jb 0x101167fe
mov eax, dword [esi]
mov ecx, dword [0x10453c48]
movss xmm2, dword [ecx + 0x1988]
test eax, eax
jne 0x10116815
xorps xmm1, xmm1
jmp 0x10116859
movss xmm3, dword [0x10202414]
push 0
push 0
push eax
push ecx
mov ecx, dword [ecx + 0x1984]
lea eax, [esp + 0x64]
mov dword [esp], 0xbf800000
push eax
call fcn.1016dac0
movss xmm0, dword [esp + 0x54]
addss xmm0, dword [0x10202058]
cvttss2si eax, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x54], xmm1
cmp dword [esi + 0x14], 0x10
mov edi, esi
movss dword [esp + 0x18], xmm1
jb 0x10116869
mov edi, dword [esi]
mov eax, dword [0x10229c78]
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
xor dl, dl
mov dword [esp + 0x48], 0
movss xmm0, dword [eax + 0x3811]
movss dword [esp + 0x4c], xmm0
movups xmm0, xmmword [esp + 0x40]
mov dword [esp + 0x50], 0x3f19999a
mov eax, dword [esp + 0x50]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov byte [ecx + 0x14], dl
call fcn.100bfbf0
movd xmm0, dword [esp + 0x1c]
mov ebx, eax
movss xmm1, dword [esp + 0x18]
mulss xmm1, dword [0x10201ff4]
mov eax, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x18], xmm1
mulss xmm0, dword [0x10201ff4]
subss xmm0, xmm1
addss xmm0, dword [eax]
addss xmm0, dword [0x10202060]
movss dword [esp + 0x5c], xmm0
movd xmm0, ebp
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esp + 0x44]
movss dword [esp + 0x48], xmm0
addss xmm0, dword [0x10202060]
movss dword [esp + 0x60], xmm0
test ebx, 0xff000000
je 0x10116977
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10116930
sub ecx, edx
add ecx, edi
cmp edi, ecx
je 0x10116977
push dword [esp + 0x60]
mov edx, dword [esp + 0x24]
push dword [esp + 0x60]
push 0
mov eax, dword [edx + 0x2c]
movups xmm0, xmmword [edx + 0x60]
push ecx
mov dword [esp], 0
movss xmm2, dword [eax + 0xc]
push ecx
push edi
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [eax + 8]
push ebx
push edx
movups xmmword [esp + 0x4c], xmm0
call fcn.1016dc80
cmp dword [esi + 0x14], 0x10
mov edi, esi
jb 0x10116981
mov edi, dword [esi]
mov edx, dword [0x10229c78]
sub esp, 0x18
mov ecx, esp
movups xmm0, xmmword [edx + 0x3805]
mov eax, dword [edx + 0x3815]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov al, byte [edx + 0x3819]
mov byte [ecx + 0x14], al
call fcn.100bfbf0
movd xmm0, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x10201ff4]
subss xmm0, dword [esp + 0x18]
addss xmm0, dword [eax]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esp + 0x48]
movss dword [esp + 0x68], xmm0
test ebx, 0xff000000
je 0x10116a3b
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101169f0
sub ecx, edx
add ecx, edi
cmp edi, ecx
je 0x10116a37
push dword [esp + 0x68]
mov edx, dword [esp + 0x24]
push dword [esp + 0x68]
push 0
mov eax, dword [edx + 0x2c]
movups xmm0, xmmword [edx + 0x60]
push ecx
mov dword [esp], 0
movss xmm2, dword [eax + 0xc]
push ecx
push edi
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [eax + 8]
push ebx
push edx
movups xmmword [esp + 0x4c], xmm0
call fcn.1016dc80
mov eax, dword [esp + 0x14]
add ebp, 0x19
add esi, 0x18
cmp ebp, 0x32
jl 0x101167d2
add eax, 4
sub dword [esp + 0x24], 1
mov dword [esp + 0x14], eax
jne 0x101167d0
call fcn.10161650
mov edi, 6
lea esi, [esp + 0x108]
nop dword [eax]
mov ecx, dword [esi - 4]
lea esi, [esi - 0x18]
dec edi
cmp ecx, 0x10
jb 0x10116aa3
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x10116a99
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10116ad1
mov eax, edx
push ecx
push eax
call fcn.101a043c
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
test edi, edi
jne 0x10116a70
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101a0143
add esp, 0x104
ret
call fcn.101a56c6
int3