Function at 0x10016070
Capabilities:
Encode data using xor

Disassembly:
push 0xcc
mov eax, 0x10036e7d
call fcn.10035531
mov esi, ecx
mov dword [ebp - 0xa4], esi
xor ecx, ecx
lea edi, [ebp - 0x50]
mov dword [ebp - 0x90], ecx
xor eax, eax
stosd dword es:[edi], eax
mov ebx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov al, byte [esi + 0x13a]
mov byte [esi + 0x13c], al
mov eax, dword [esi + 0x114]
mov dword [esi + 0x144], eax
mov ax, word [esi + 0x136]
mov word [esi + 0x13e], ax
mov ax, word [esi + 0x138]
mov word [esi + 0x140], ax
lea eax, [esi + 0xd8]
cmp dword [eax + 0x14], 0x10
jb 0x100160e9
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x80]
call fcn.10002845
mov byte [ebp - 4], 1
lea edx, [ebp - 0x80]
mov ecx, dword [esi + 8]
call fcn.10009ed2
push 0
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
call fcn.100026f1
cmp byte [esi + 0x13c], 0
movzx eax, word [esi + 0x140]
push eax
movzx eax, word [esi + 0x13e]
push eax
je 0x10016176
movaps xmm0, xmmword [0x1003f560]
xor edx, edx
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x70], 0x68256469
mov byte [ebp - 0x6c], 0
mov cl, byte [ebp - 0x80]
xor byte [ebp + edx - 0x7f], cl
inc edx
cmp edx, 0x13
jb 0x10016142
sub esp, 0x18
mov byte [ebp - 0x6c], 0
lea eax, [ebp - 0x7f]
mov ecx, esp
push eax
call fcn.10002845
lea eax, [ebp - 0x44]
push eax
call fcn.10004ac0
add esp, 0x24
xor ecx, ecx
mov byte [ebp - 4], 2
inc ecx
jmp 0x100161c8
mov dl, 0x63
mov dword [ebp - 0x1c], 0x43074663
mov dword [ebp - 0x18], 0x4643050c
xor ecx, ecx
mov word [ebp - 0x14], 7
xor byte [ebp + ecx - 0x1b], dl
inc ecx
cmp ecx, 8
jae 0x1001619d
mov dl, byte [ebp - 0x1c]
jmp 0x1001618e
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10002845
lea eax, [ebp - 0xbc]
push eax
call fcn.10004ac0
add esp, 0x24
push 2
mov dword [ebp - 4], 3
pop ecx
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], ecx
jb 0x100161dc
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002845
mov dword [ebp - 4], 4
lea edx, [ebp - 0x68]
mov ecx, dword [esi + 0xc]
call fcn.10009ed2
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.100026f1
mov eax, dword [ebp - 0x8c]
test al, 2
je 0x1001622b
push 0
and eax, 0xfffffffd
lea ecx, [ebp - 0xbc]
push 1
mov dword [ebp - 0x8c], eax
call fcn.100026f1
mov eax, dword [ebp - 0x8c]
and dword [ebp - 4], 0
test al, 1
je 0x1001623f
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.100026f1
xor al, al
mov byte [ebp - 0x81], al
movzx edx, al
imul ecx, edx, 0x18
mov dword [ebp - 0x90], edx
movzx eax, word [esi + edx*2 + 0x124]
mov dword [ebp - 0x88], ecx
mov dword [ecx + esi + 0x44], eax
lea eax, [edx + 3]
imul edx, eax, 0x18
mov eax, dword [ebp - 0x90]
mov ax, word [esi + eax*2 + 0x12a]
mov dword [ebp - 0x8c], edx
mov word [edx + esi], ax
mov al, byte [esi + 0x13b]
mov byte [ecx + esi + 0x4a], al
mov ecx, dword [ecx + esi + 0x44]
call fcn.10004ec3
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x10016420
mov ecx, dword [ebp - 0x8c]
mov dl, 0x38
movzx ecx, word [ecx + esi]
push ecx
mov dword [ebp - 0x60], 0x564d7038
xor ecx, ecx
mov dword [ebp - 0x5c], 0x1815184c
mov dword [ebp - 0x58], 0x18171808
mov word [ebp - 0x54], 0x5c1d
mov byte [ebp - 0x52], 0
xor byte [ebp + ecx - 0x5f], dl
inc ecx
cmp ecx, 0xd
jae 0x100162e1
mov dl, byte [ebp - 0x60]
jmp 0x100162d2
sub esp, 0x18
mov byte [ebp - 0x52], 0
lea eax, [ebp - 0x5f]
mov ecx, esp
push eax
call fcn.10002845
lea eax, [ebp - 0xd8]
push eax
call fcn.10004ac0
add esp, 0x20
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x1001630e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xbc]
call fcn.10002845
mov ecx, dword [ebp - 0x88]
lea edx, [ebp - 0xbc]
mov byte [ebp - 4], 6
mov ecx, dword [ecx + esi + 0x50]
call fcn.10009ed2
push 0
push 1
lea ecx, [ebp - 0xbc]
call fcn.100026f1
push 0
push 1
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0
call fcn.100026f1
mov eax, dword [ebp - 0x88]
or edx, 0xffffffff
mov ecx, dword [eax + esi + 0x50]
call fcn.10009f18
mov eax, dword [ebp - 0x8c]
movzx eax, word [eax + esi]
push eax
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + esi + 0x54]
call fcn.10009d20
mov eax, dword [ebp - 0x90]
xorps xmm3, xmm3
pop ecx
xorps xmm2, xmm2
movzx eax, word [esi + eax*2 + 0x130]
movd xmm1, eax
mov eax, dword [ebp - 0x88]
cvtdq2ps xmm1, xmm1
mov ecx, dword [eax + esi + 0x54]
call fcn.10009d75
mov eax, dword [ebp - 0xa0]
add eax, 4
cmp dword [eax + 0x14], 0x10
jb 0x100163bd
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xbc]
call fcn.10002845
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0xbc]
mov byte [ebp - 4], 7
mov ecx, dword [eax + esi + 0x58]
call fcn.10009ed2
push 0
push 1
lea ecx, [ebp - 0xbc]
call fcn.100026f1
and dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
mov ecx, 0x35a4fc88
mov byte [ebp - 4], 8
call fcn.10004e37
test eax, eax
je 0x100165f3
push 0x35a4fc88
jmp 0x100165ca
mov eax, dword [ebp - 0x88]
cmp dword [eax + esi + 0x44], 1
jne 0x1001662b
cmp byte [eax + esi + 0x4a], 0
je 0x1001662b
mov eax, dword [ebp - 0x8c]
mov dl, 0x3e
xor ecx, ecx
movzx eax, word [eax + esi]
push eax
mov dword [ebp - 0x28], 0x111e0e3e
mov dword [ebp - 0x24], 0x5a1b1e
xor byte [ebp + ecx - 0x27], dl
inc ecx
cmp ecx, 6
jae 0x10016468
mov dl, byte [ebp - 0x28]
jmp 0x10016459
sub esp, 0x18
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10002845
lea eax, [ebp - 0xd8]
push eax
call fcn.10004ac0
add esp, 0x20
mov edx, eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + esi + 0x50]
call fcn.10009ed2
push 0
push 1
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0
call fcn.100026f1
mov eax, dword [ebp - 0x88]
or edx, 0xffffffff
mov ecx, dword [eax + esi + 0x50]
call fcn.10009f18
mov eax, dword [ebp - 0x8c]
movzx eax, word [eax + esi]
push eax
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + esi + 0x54]
call fcn.10009d20
mov eax, dword [ebp - 0x90]
xorps xmm3, xmm3
pop ecx
xorps xmm2, xmm2
movzx eax, word [esi + eax*2 + 0x130]
movd xmm1, eax
mov eax, dword [ebp - 0x88]
cvtdq2ps xmm1, xmm1
mov ecx, dword [eax + esi + 0x54]
call fcn.10009d75
mov eax, dword [ebp - 0x88]
xor ecx, ecx
cmp byte [eax + esi + 0x4a], 1
jne 0x10016546
mov dl, 0x78
mov dword [ebp - 0x38], 0x143d4478
mov dword [ebp - 0x34], 0xa173558
mov dword [ebp - 0x30], 0x461c19
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 0xa
jae 0x1001653d
mov dl, byte [ebp - 0x38]
jmp 0x1001652e
mov byte [ebp - 0x2d], 0
lea eax, [ebp - 0x37]
jmp 0x10016570
mov dl, 0x3f
mov dword [ebp - 0x1c], 0x5e74033f
mov dword [ebp - 0x18], 0x14c4a4d
mov byte [ebp - 0x14], 0
xor byte [ebp + ecx - 0x1b], dl
inc ecx
cmp ecx, 7
jae 0x10016569
mov dl, byte [ebp - 0x1c]
jmp 0x1001655a
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x1b]
push eax
lea ecx, [ebp - 0xbc]
call fcn.10002845
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0xbc]
mov byte [ebp - 4], 0xa
mov ecx, dword [eax + esi + 0x58]
call fcn.10009ed2
push 0
push 1
lea ecx, [ebp - 0xbc]
call fcn.100026f1
and dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
mov ecx, 0x35a50840
mov byte [ebp - 4], 0xb
call fcn.10004e37
test eax, eax
je 0x100165f3
push 0x35a50840
push 0
mov edx, eax
lea ecx, [ebp - 0xd8]
call fcn.10004f1e
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x80]
call fcn.100056a7
push 0
push 1
lea ecx, [ebp - 0xd8]
call fcn.100026f1
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x80]
mov ecx, dword [eax + esi + 0x4c]
call fcn.10009b4d
mov eax, dword [ebp - 0x90]
mov dl, 1
mov ecx, dword [esi + eax*4 + 0x24]
call fcn.10009671
push 0
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
call fcn.100026f1
jmp 0x1001680a
mov eax, dword [ebp - 0x90]
xor dl, dl
mov ecx, dword [esi + eax*4 + 0x24]
call fcn.10009671
mov eax, dword [ebp - 0x8c]
movzx eax, word [eax + esi]
push eax
sub esp, 0x18
mov word [ebp - 0x94], 0x7d
lea eax, [ebp - 0x93]
mov byte [ebp - 0x93], 0
mov ecx, esp
push eax
call fcn.10002845
lea eax, [ebp - 0xd8]
push eax
call fcn.10004ac0
add esp, 0x20
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 0x10
jb 0x10016683
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xbc]
call fcn.10002845
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0xbc]
mov byte [ebp - 4], 0xd
mov ecx, dword [eax + esi + 0x50]
call fcn.10009ed2
push 0
push 1
lea ecx, [ebp - 0xbc]
call fcn.100026f1
push 0
push 1
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0
call fcn.100026f1
mov eax, dword [ebp - 0x8c]
movzx eax, word [eax + esi]
push eax
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + esi + 0x54]
call fcn.10009d20
mov eax, dword [ebp - 0x90]
xorps xmm3, xmm3
pop ecx
xorps xmm2, xmm2
movzx eax, word [esi + eax*2 + 0x130]
movd xmm1, eax
mov eax, dword [ebp - 0x88]
cvtdq2ps xmm1, xmm1
mov ecx, dword [eax + esi + 0x54]
call fcn.10009d75
lea eax, [ebp - 0x97]
mov word [ebp - 0x98], 0x67
push eax
lea ecx, [ebp - 0xbc]
mov byte [ebp - 0x97], 0
call fcn.10002845
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0xbc]
mov byte [ebp - 4], 0xe
mov ecx, dword [eax + esi + 0x58]
call fcn.10009ed2
push 0
push 1
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0
call fcn.100026f1
lea eax, [ebp - 0x9b]
mov word [ebp - 0x9c], 0x45
push eax
lea ecx, [ebp - 0xbc]
mov byte [ebp - 0x9b], 0
call fcn.10002845
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0xbc]
mov byte [ebp - 4], 0xf
mov ecx, dword [eax + esi + 0x4c]
call fcn.10009b4d
push 0
push 1
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0
call fcn.100026f1
lea eax, [ebp - 0x81]
cmp eax, edi
jae 0x100167e5
cmp ebx, eax
ja 0x100167e5
sub eax, ebx
mov dword [ebp - 0xa0], eax
cmp edi, dword [ebp - 0x48]
jne 0x100167dc
push 1
lea ecx, [ebp - 0x50]
call fcn.10004d27
mov ebx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0xa0]
test edi, edi
je 0x10016806
mov al, byte [ebx + eax]
jmp 0x10016804
cmp edi, dword [ebp - 0x48]
jne 0x100167fa
push 1
lea ecx, [ebp - 0x50]
call fcn.10004d27
mov ebx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x10016806
mov al, byte [ebp - 0x81]
mov byte [edi], al
inc edi
mov dword [ebp - 0x4c], edi
mov al, byte [ebp - 0x81]
inc al
mov byte [ebp - 0x81], al
cmp al, 3
jb 0x10016247
cmp ebx, edi
je 0x100168c9
mov ecx, edi
sub ecx, ebx
mov dword [ebp - 0xa0], ecx
movzx eax, byte [ebx]
cmp ecx, 2
lea edi, [eax - 1]
cmovb edi, eax
mov ecx, dword [esi + edi*4 + 0x24]
call fcn.1000958d
mov ecx, dword [ebp - 0xa4]
mov esi, edx
mov dword [ebp - 0x28], eax
mov ecx, dword [ecx + edi*4 + 0x24]
call fcn.1000958d
push esi
mov esi, dword [ebp - 0xa4]
mov dword [ebp - 0x24], edx
mov edx, eax
mov ecx, dword [esi + 0x30]
call fcn.10009628
pop ecx
mov ecx, dword [esi]
lea eax, [ebp - 0x20]
push eax
call fcn.100094ae
mov esi, eax
lea edi, [ebp - 0x60]
pop ecx
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0x78]
push eax
movsd dword es:[edi], dword [esi]
mov ecx, dword [ecx + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100094ae
mov esi, eax
lea edi, [ebp - 0x3c]
pop ecx
lea edx, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
mov ecx, dword [esi]
call fcn.100094ff
mov ecx, dword [ebp - 0xa0]
inc ebx
cmp ebx, dword [ebp - 0x4c]
jne 0x10016832
jmp 0x10016933
mov ecx, dword [esi + 0x2c]
call fcn.1000958d
mov ebx, dword [ebp - 0xa4]
mov esi, edx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebx + 0x2c]
call fcn.1000958d
lea ecx, [esi + 0x32]
mov dword [ebp - 0x24], edx
push ecx
mov ecx, dword [ebx + 0x30]
mov edx, eax
call fcn.10009628
pop ecx
mov ecx, dword [ebx]
lea eax, [ebp - 0x78]
push eax
call fcn.100094ae
mov esi, eax
lea edi, [ebp - 0x60]
pop ecx
mov ecx, dword [ebx + 0x30]
lea eax, [ebp - 0x78]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100094ae
mov esi, eax
lea edi, [ebp - 0x3c]
pop ecx
lea edx, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x30]
mov esi, ebx
mov dword [ebp - 0x54], eax
mov ecx, dword [esi]
call fcn.100094ff
mov eax, dword [esi + 0xfc]
mov ecx, esi
movss xmm0, dword [esi + 0x118]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x100]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x104]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x108]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10c]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x110]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x38]
push eax
movss dword [ebp - 0x38], xmm0
lea eax, [ebp - 0x1c]
movss xmm0, dword [esi + 0x11c]
push eax
movss dword [ebp - 0x34], xmm0
lea eax, [ebp - 0x2c]
movss xmm0, dword [esi + 0x120]
push eax
movss dword [ebp - 0x30], xmm0
call fcn.10016f51
mov ecx, dword [esi + 0x18]
xor dl, dl
mov byte [esi + 0xd4], 1
call fcn.10009671
mov ecx, dword [esi + 0x14]
mov dl, 1
call fcn.10009671
mov ecx, dword [esi + 0x20]
mov dl, 1
call fcn.10009671
mov ecx, dword [esi + 0x30]
mov dl, 1
call fcn.10009671
mov ecx, esi
call fcn.10015c3f
mov ecx, esi
call fcn.10014f4b
cmp byte [esi + 0xd4], 0
je 0x100169f2
mov ecx, dword [esi]
mov dl, 1
call fcn.10009671
lea ecx, [ebp - 0x50]
call fcn.10004d7f
call fcn.100354db
ret