Function at 0x1001597e
Capabilities:
Encode data using xor

Disassembly:
push 0xec
mov eax, 0x10035b0e
call fcn.10034356
mov ebx, ecx
xor ecx, ecx
lea edi, [ebp - 0x60]
mov dword [ebp - 0xa8], ecx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 4], ecx
mov al, byte [ebx + 0x13a]
mov byte [ebx + 0x13c], al
mov eax, dword [ebx + 0x114]
mov dword [ebx + 0x144], eax
mov ax, word [ebx + 0x136]
mov word [ebx + 0x13e], ax
mov ax, word [ebx + 0x138]
mov word [ebx + 0x140], ax
lea eax, [ebx + 0xd8]
cmp dword [eax + 0x14], 0xf
jbe 0x100159ed
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x54]
call fcn.10002607
mov byte [ebp - 4], 1
lea edx, [ebp - 0x54]
mov ecx, dword [ebx + 8]
call fcn.10009be1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.10002413
cmp byte [ebx + 0x13c], 0
movzx eax, word [ebx + 0x140]
movzx ecx, word [ebx + 0x13e]
push eax
push ecx
je 0x10015a79
movaps xmm0, xmmword [0x1003e500]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x1a57161b
mov byte [ebp - 0x40], 0
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x13
jb 0x10015a42
sub esp, 0x18
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10002607
lea eax, [ebp - 0xc4]
push eax
call fcn.1000485f
add esp, 0x24
xor ecx, ecx
mov byte [ebp - 4], 2
inc ecx
jmp 0x10015ae0
mov cl, 0x63
mov dword [ebp - 0xa0], 0x43074663
mov dword [ebp - 0x9c], 0x4643050c
xor eax, eax
mov word [ebp - 0x98], 7
xor byte [ebp + eax - 0x9f], cl
inc eax
cmp eax, 8
jae 0x10015aaf
mov cl, byte [ebp - 0xa0]
jmp 0x10015a9a
sub esp, 0x18
mov byte [ebp - 0x97], 0
lea eax, [ebp - 0x9f]
mov ecx, esp
push eax
call fcn.10002607
lea eax, [ebp - 0xdc]
push eax
call fcn.1000485f
add esp, 0x24
push 2
mov dword [ebp - 4], 3
pop ecx
cmp dword [eax + 0x14], 0xf
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x80], ecx
jbe 0x10015af1
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x78]
call fcn.10002607
mov dword [ebp - 4], 4
lea edx, [ebp - 0x78]
mov ecx, dword [ebx + 0xc]
call fcn.10009be1
lea ecx, [ebp - 0x78]
call fcn.10002413
mov eax, dword [ebp - 0x80]
test al, 2
je 0x10015b2f
and eax, 0xfffffffd
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x80], eax
call fcn.10002413
mov eax, dword [ebp - 0x80]
and dword [ebp - 4], 0
test al, 1
je 0x10015b42
lea ecx, [ebp - 0xc4]
call fcn.10002413
xor al, al
xor cl, cl
mov byte [ebp - 0x79], al
mov byte [ebp - 0x81], al
movzx ecx, cl
imul esi, ecx, 0x18
movzx eax, al
mov dword [ebp - 0x80], ecx
movzx eax, word [ebx + eax*2 + 0x124]
mov dword [esi + ebx + 0x44], eax
lea eax, [ecx + 3]
imul edi, eax, 0x18
mov ax, word [ebx + ecx*2 + 0x12a]
mov word [edi + ebx], ax
mov al, byte [ebx + 0x13b]
mov byte [esi + ebx + 0x4a], al
mov ecx, dword [esi + ebx + 0x44]
call fcn.10004cd0
mov dword [ebp - 0xac], eax
test eax, eax
je 0x10015d38
movzx ecx, word [edi + ebx]
xor eax, eax
push ecx
mov cl, 0x68
mov dword [ebp - 0x70], 0x61d2068
mov dword [ebp - 0x6c], 0x4845481c
mov dword [ebp - 0x68], 0x48474858
mov word [ebp - 0x64], 0xc4d
mov byte [ebp - 0x62], 0
xor byte [ebp + eax - 0x6f], cl
inc eax
cmp eax, 0xd
jae 0x10015bd1
mov cl, byte [ebp - 0x70]
jmp 0x10015bc2
sub esp, 0x18
mov byte [ebp - 0x62], 0
lea eax, [ebp - 0x6f]
mov ecx, esp
push eax
call fcn.10002607
lea eax, [ebp - 0xf8]
push eax
call fcn.1000485f
add esp, 0x20
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
jbe 0x10015bfe
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xdc]
call fcn.10002607
mov byte [ebp - 4], 6
lea edx, [ebp - 0xdc]
mov ecx, dword [esi + ebx + 0x50]
call fcn.10009be1
lea ecx, [ebp - 0xdc]
call fcn.10002413
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0
call fcn.10002413
mov ecx, dword [esi + ebx + 0x50]
or edx, 0xffffffff
call fcn.10009c27
movzx eax, word [edi + ebx]
mov ecx, dword [esi + ebx + 0x54]
push eax
call fcn.10009a2a
mov eax, dword [ebp - 0x80]
xorps xmm3, xmm3
pop ecx
mov ecx, dword [esi + ebx + 0x54]
xorps xmm2, xmm2
movzx eax, word [ebx + eax*2 + 0x130]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.10009a7f
mov eax, dword [ebp - 0xac]
add eax, 4
cmp dword [eax + 0x14], 0xf
jbe 0x10015c84
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xdc]
call fcn.10002607
mov byte [ebp - 4], 7
lea edx, [ebp - 0xdc]
mov ecx, dword [esi + ebx + 0x58]
call fcn.10009be1
lea ecx, [ebp - 0xdc]
call fcn.10002413
xor eax, eax
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
push 0xf
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x44], 0
pop edi
mov dword [ebp - 0x40], edi
mov byte [ebp - 0x54], 0
mov ecx, 0x35a4fc88
mov byte [ebp - 4], 8
call fcn.10004c37
test eax, eax
je 0x10015d01
push 0x35a4fc88
push 0
mov edx, eax
lea ecx, [ebp - 0xf8]
call fcn.10004d29
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.10005394
lea ecx, [ebp - 0xf8]
call fcn.10002413
mov ecx, dword [esi + ebx + 0x4c]
lea edx, [ebp - 0x54]
call fcn.10009853
mov eax, dword [ebp - 0x80]
mov dl, 1
mov ecx, dword [ebx + eax*4 + 0x24]
call fcn.10009377
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x40]
cmp edx, edi
jbe 0x10016050
mov ecx, dword [ebp - 0x54]
inc edx
call fcn.100023e6
jmp 0x10016050
cmp dword [esi + ebx + 0x44], 1
jne 0x10015eee
cmp byte [esi + ebx + 0x4a], 0
je 0x10015eee
movzx eax, word [edi + ebx]
mov cl, 0x44
push eax
mov dword [ebp - 0x8c], 0x6b647444
xor eax, eax
mov dword [ebp - 0x88], 0x206164
xor byte [ebp + eax - 0x8b], cl
inc eax
cmp eax, 6
jae 0x10015d80
mov cl, byte [ebp - 0x8c]
jmp 0x10015d6b
sub esp, 0x18
mov byte [ebp - 0x85], 0
lea eax, [ebp - 0x8b]
mov ecx, esp
push eax
call fcn.10002607
lea eax, [ebp - 0xf8]
push eax
call fcn.1000485f
add esp, 0x20
mov byte [ebp - 4], 9
mov edx, eax
mov ecx, dword [esi + ebx + 0x50]
call fcn.10009be1
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0
call fcn.10002413
mov ecx, dword [esi + ebx + 0x50]
or edx, 0xffffffff
call fcn.10009c27
movzx eax, word [edi + ebx]
mov ecx, dword [esi + ebx + 0x54]
push eax
call fcn.10009a2a
mov eax, dword [ebp - 0x80]
xorps xmm3, xmm3
pop ecx
mov ecx, dword [esi + ebx + 0x54]
xorps xmm2, xmm2
movzx eax, word [ebx + eax*2 + 0x130]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.10009a7f
xor eax, eax
cmp byte [esi + ebx + 0x4a], 1
jne 0x10015e4e
mov cl, 0x5d
mov dword [ebp - 0xb8], 0x3118615d
mov dword [ebp - 0xb4], 0x2f32107d
mov dword [ebp - 0xb0], 0x63393c
xor byte [ebp + eax - 0xb7], cl
inc eax
cmp eax, 0xa
jae 0x10015e3f
mov cl, byte [ebp - 0xb8]
jmp 0x10015e2a
mov byte [ebp - 0xad], 0
lea eax, [ebp - 0xb7]
jmp 0x10015e8d
mov cl, 0x45
mov dword [ebp - 0xa0], 0x240e7945
mov dword [ebp - 0x9c], 0x7b363037
mov byte [ebp - 0x98], 0
xor byte [ebp + eax - 0x9f], cl
inc eax
cmp eax, 7
jae 0x10015e80
mov cl, byte [ebp - 0xa0]
jmp 0x10015e6b
mov byte [ebp - 0x98], 0
lea eax, [ebp - 0x9f]
push eax
lea ecx, [ebp - 0xdc]
call fcn.10002607
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0xdc]
mov ecx, dword [esi + ebx + 0x58]
call fcn.10009be1
lea ecx, [ebp - 0xdc]
call fcn.10002413
xor eax, eax
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
push 0xf
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x44], 0
pop edi
mov dword [ebp - 0x40], edi
mov byte [ebp - 0x54], 0
mov ecx, 0x35a50840
mov byte [ebp - 4], 0xb
call fcn.10004c37
test eax, eax
je 0x10015d01
push 0x35a50840
jmp 0x10015cdc
mov eax, dword [ebp - 0x80]
xor dl, dl
mov ecx, dword [ebx + eax*4 + 0x24]
call fcn.10009377
movzx eax, word [edi + ebx]
push eax
sub esp, 0x18
mov word [ebp - 0x90], 0xc
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x8f], 0
mov ecx, esp
push eax
call fcn.10002607
lea eax, [ebp - 0xf8]
push eax
call fcn.1000485f
add esp, 0x20
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 0xf
jbe 0x10015f3d
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xdc]
call fcn.10002607
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0xdc]
mov ecx, dword [esi + ebx + 0x50]
call fcn.10009be1
lea ecx, [ebp - 0xdc]
call fcn.10002413
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0
call fcn.10002413
movzx eax, word [edi + ebx]
mov ecx, dword [esi + ebx + 0x54]
push eax
call fcn.10009a2a
mov eax, dword [ebp - 0x80]
xorps xmm3, xmm3
pop ecx
mov ecx, dword [esi + ebx + 0x54]
xorps xmm2, xmm2
movzx eax, word [ebx + eax*2 + 0x130]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.10009a7f
lea eax, [ebp - 0x93]
mov word [ebp - 0x94], 0x2e
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 0x93], 0
call fcn.10002607
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0xdc]
mov ecx, dword [esi + ebx + 0x58]
call fcn.10009be1
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0
call fcn.10002413
lea eax, [ebp - 0xa7]
mov word [ebp - 0xa8], 0x15
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 0xa7], 0
call fcn.10002607
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0xdc]
mov ecx, dword [esi + ebx + 0x4c]
call fcn.10009853
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0
call fcn.10002413
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x58]
je 0x10016040
mov al, byte [ebp - 0x79]
mov byte [ecx], al
inc dword [ebp - 0x5c]
jmp 0x10016053
lea eax, [ebp - 0x81]
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.100171c6
mov al, byte [ebp - 0x79]
inc al
mov cl, al
mov byte [ebp - 0x79], al
mov byte [ebp - 0x81], al
cmp cl, 3
jb 0x10015b4f
mov edx, dword [ebp - 0x60]
cmp edx, dword [ebp - 0x5c]
je 0x10016103
mov eax, edx
mov dword [ebp - 0x80], edx
movzx ecx, byte [eax]
mov eax, dword [ebp - 0x5c]
sub eax, edx
cmp eax, 2
lea edi, [ecx - 1]
cmovb edi, ecx
mov ecx, dword [ebx + edi*4 + 0x24]
call fcn.10009295
mov ecx, dword [ebx + edi*4 + 0x24]
mov esi, edx
call fcn.10009295
mov ecx, dword [ebx + 0x30]
mov edx, eax
push esi
call fcn.1000932e
pop ecx
mov ecx, dword [ebx]
lea eax, [ebp - 0xa4]
push eax
call fcn.100091b5
mov esi, eax
lea edi, [ebp - 0x70]
pop ecx
mov ecx, dword [ebx + 0x30]
lea eax, [ebp - 0x4c]
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.100091b5
mov esi, eax
lea edi, [ebp - 0xbc]
pop ecx
mov ecx, dword [ebx]
lea edx, [ebp - 0x70]
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 - 0xb0]
mov dword [ebp - 0x64], eax
call fcn.10009206
mov eax, dword [ebp - 0x80]
inc eax
mov dword [ebp - 0x80], eax
cmp eax, dword [ebp - 0x5c]
je 0x10016165
mov edx, dword [ebp - 0x60]
jmp 0x1001607a
mov ecx, dword [ebx + 0x2c]
call fcn.10009295
mov ecx, dword [ebx + 0x2c]
mov esi, edx
call fcn.10009295
lea ecx, [esi + 0x32]
mov edx, eax
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.1000932e
pop ecx
mov ecx, dword [ebx]
lea eax, [ebp - 0x4c]
push eax
call fcn.100091b5
mov esi, eax
lea edi, [ebp - 0x70]
pop ecx
mov ecx, dword [ebx + 0x30]
lea eax, [ebp - 0x4c]
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.100091b5
mov esi, eax
lea edi, [ebp - 0xbc]
pop ecx
mov ecx, dword [ebx]
lea edx, [ebp - 0x70]
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 - 0xb0]
mov dword [ebp - 0x64], eax
call fcn.10009206
mov eax, dword [ebx + 0xfc]
mov ecx, ebx
movss xmm0, dword [ebx + 0x118]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x100]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x104]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x108]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x10c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x110]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
movss dword [ebp - 0x20], xmm0
lea eax, [ebp - 0x2c]
movss xmm0, dword [ebx + 0x11c]
push eax
movss dword [ebp - 0x1c], xmm0
lea eax, [ebp - 0x38]
movss xmm0, dword [ebx + 0x120]
push eax
movss dword [ebp - 0x18], xmm0
call fcn.1001674e
mov ecx, dword [ebx + 0x18]
xor dl, dl
mov byte [ebx + 0xd4], 1
call fcn.10009377
mov ecx, dword [ebx + 0x14]
mov dl, 1
call fcn.10009377
mov ecx, dword [ebx + 0x20]
mov dl, 1
call fcn.10009377
mov ecx, dword [ebx + 0x30]
mov dl, 1
call fcn.10009377
mov ecx, ebx
call fcn.10015556
mov ecx, ebx
call fcn.10014894
cmp byte [ebx + 0xd4], 0
je 0x10016224
mov ecx, dword [ebx]
mov dl, 1
call fcn.10009377
lea ecx, [ebp - 0x60]
call fcn.10004ac0
call fcn.10034314
ret