Function at 0x1001ec1e
Capabilities:
Encode data using xor

Disassembly:
push 0xf0
mov eax, 0x10074e07
call fcn.1003d3a0
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov dword [0x1009ee80], eax
test ecx, ecx
je 0x1001f4a0
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], ebx
jne 0x1001f4a0
cmp dword [0x1009ec60], 0
je 0x1001f4a0
cmp dword [esi + 4], 0
je 0x1001ec71
cmp ecx, dword [esi + 4]
jne 0x1001ec71
mov ecx, esi
call fcn.1001fc5e
jmp 0x1001f49c
mov eax, dword [esi + 0x138]
test eax, eax
je 0x1001ec90
cmp ecx, eax
jne 0x1001ec90
mov eax, dword [esi + 0x144]
cmp eax, ebx
jle 0x1001f49c
dec eax
jmp 0x1001ecb1
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x1001ecc7
cmp ecx, eax
jne 0x1001ecc7
mov eax, dword [esi + 0x144]
cmp eax, dword [esi + 0x148]
jge 0x1001f49c
inc eax
mov dword [esi + 0x144], eax
mov ecx, esi
movzx eax, al
push eax
call fcn.10020b6e
jmp 0x1001f49c
mov eax, dword [esi + 0x15c]
sub eax, dword [esi + 0x158]
push 0x68
pop edi
cdq
idiv edi
mov dword [ebp - 0xc8], edi
test eax, eax
je 0x1001f49c
push 4
lea eax, [esi + 0x30]
pop edx
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], edx
cmp dword [eax], 0
je 0x1001f481
cmp ecx, dword [eax]
jne 0x1001f481
mov ebx, dword [eax - 0x14]
xor eax, eax
mov edi, eax
mov eax, dword [esi + 0x15c]
sub eax, dword [esi + 0x158]
cdq
idiv dword [ebp - 0xc8]
test eax, eax
jle 0x1001f475
mov ecx, dword [esi + 0x158]
add ecx, 0x18
cmp dword [ecx], ebx
je 0x1001ed5b
push 0x68
pop eax
add ecx, eax
inc edi
mov eax, dword [esi + 0x15c]
sub eax, dword [esi + 0x158]
cdq
idiv dword [ebp - 0xc8]
cmp edi, eax
jl 0x1001ed35
jmp 0x1001f472
or dword [ebp - 0xcc], 0xffffffff
mov dword [esi + 0x140], ebx
mov eax, dword [esi + 0x158]
imul ebx, edi, 0x68
mov dword [ebp - 0x9c], ebx
cmp byte [ebx + eax + 0x65], 2
jne 0x1001ee05
movaps xmm0, xmmword [0x1008fee0]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x2325382d
mov edx, eax
mov word [ebp - 0x14], 0x1122
mov byte [ebp - 0x12], al
mov cl, byte [ebp - 0x28]
xor byte [ebp + edx - 0x27], cl
inc edx
cmp edx, 0x15
jb 0x1001eda1
xor eax, eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x27]
push eax
call fcn.10004179
xor eax, eax
lea edx, [ebp - 0xe4]
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x7c]
call fcn.1000de50
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
xor eax, eax
push eax
inc eax
push eax
call fcn.1000402e
mov ecx, dword [esi + 0x7c]
mov edx, 0xff5cb9fe
call fcn.1000de96
mov dword [ebp - 0xcc], 0xff808080
jmp 0x1001ee9a
xor eax, eax
mov dword [ebp - 0xb8], 0x360d0358
mov cl, 0x58
mov dword [ebp - 0xb4], 0x782a3d3c
mov dword [ebp - 0xb0], 0x521392f
mov edx, eax
mov byte [ebp - 0xac], al
xor cl, byte [ebp + edx - 0xb7]
mov byte [ebp + edx - 0xb7], cl
inc edx
cmp edx, 0xb
jae 0x1001ee4b
mov cl, byte [ebp - 0xb8]
jmp 0x1001ee2f
xor eax, eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 0xac], al
lea eax, [ebp - 0xb7]
push eax
call fcn.10004179
xor eax, eax
lea edx, [ebp - 0xe4]
inc eax
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x7c]
call fcn.1000de50
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
xor eax, eax
push eax
inc eax
push eax
call fcn.1000402e
mov ecx, dword [esi + 0x7c]
mov edx, 0xffc4fc03
call fcn.1000de96
lea edi, [ebx + 0x58]
mov dword [ebp - 0x5c], 0x48
lea ecx, [esi + 0x84]
mov dword [ebp - 0xc4], edi
lea ebx, [esi + 0xa8]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x98], 4
mov eax, dword [esi + 0x158]
xor edx, edx
cmp word [edi + eax - 0x10], dx
je 0x1001f204
mov cl, 0x3a
mov dword [ebp - 0x88], 0x51546f3a
mov dword [ebp - 0x84], 0x544d5554
mov byte [ebp - 0x80], dl
xor cl, byte [ebp + edx - 0x87]
mov byte [ebp + edx - 0x87], cl
inc edx
cmp edx, 7
jae 0x1001ef0e
mov cl, byte [ebp - 0x88]
jmp 0x1001eef2
xor eax, eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x80], al
lea eax, [ebp - 0x87]
push eax
call fcn.10004179
xor eax, eax
mov dword [ebp - 4], 2
mov word [ebp - 0x60], 0x45
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x5f], al
lea eax, [ebp - 0x5f]
push eax
call fcn.10004179
mov ecx, dword [ebp - 0x5c]
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x158]
add eax, dword [ebp - 0x9c]
movzx ecx, word [ecx + eax]
call fcn.10008ecc
test eax, eax
je 0x1001ef8f
add eax, 4
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x1001ef74
push 0xffffffffffffffff
push 0
push eax
call fcn.10003dff
mov ecx, dword [ebx]
xor eax, eax
lea edx, [eax + 1]
call fcn.1000d5f0
mov ecx, dword [ebx + 4]
xor dl, dl
call fcn.1000d5f0
jmp 0x1001f0a0
mov eax, dword [esi + 0x158]
xor ecx, ecx
inc ecx
cmp word [edi + eax - 0x10], cx
jne 0x1001f0a0
cmp byte [0x1009ec7b], 0
mov ebx, dword [0x1009ec60]
je 0x1001efe7
mov ecx, 0x10b8134
call fcn.1000df8f
mov edi, eax
test edi, edi
je 0x1001efe7
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001efe7
push 4
add edi, 0x6dc
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001efe7
mov al, byte [edi]
mov byte [ebx + 0x38], al
mov al, byte [ebx + 0x38]
xor ebx, ebx
inc ebx
cmp al, bl
jne 0x1001f045
push 0x68
xor ebx, ebx
mov word [ebp - 0xa8], 0x4104
pop eax
mov dl, 4
mov byte [ebp - 0xa6], al
mov dword [ebp - 0xa5], 0x766b4924
mov ecx, ebx
mov word [ebp - 0xa1], 0x6065
mov byte [ebp - 0x9f], bl
xor byte [ebp + ecx - 0xa7], dl
inc ecx
cmp ecx, 8
jae 0x1001f037
mov dl, byte [ebp - 0xa8]
jmp 0x1001f022
mov byte [ebp - 0x9f], bl
lea edi, [ebp - 0xa7]
jmp 0x1001f070
xor ebx, ebx
mov dword [ebp - 0x7c], 0x2e3d175c
mov dl, 0x5c
mov word [ebp - 0x78], 0x2f29
mov byte [ebp - 0x76], bl
mov ecx, ebx
xor byte [ebp + ecx - 0x7b], dl
inc ecx
cmp ecx, 5
jae 0x1001f06a
mov dl, byte [ebp - 0x7c]
jmp 0x1001f05b
mov byte [ebp - 0x76], bl
lea edi, [ebp - 0x7b]
push edi
call fcn.1000415c
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.100040e3
mov ebx, dword [ebp - 0x74]
xor eax, eax
mov ecx, dword [ebx + 4]
lea edx, [eax + 1]
call fcn.1000d5f0
mov ecx, dword [ebx]
xor dl, dl
call fcn.1000d5f0
mov edi, dword [ebp - 0xc4]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xe4]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.10004179
mov byte [ebp - 4], 4
lea edx, [ebp - 0xe4]
mov ecx, dword [ebx + 8]
call fcn.1000de50
xor eax, eax
mov byte [ebp - 4], 3
push eax
inc eax
lea ecx, [ebp - 0xe4]
push eax
call fcn.1000402e
mov edx, dword [ebp - 0xcc]
mov ecx, dword [ebx + 8]
call fcn.1000de96
mov ecx, dword [esi + 0x158]
mov dl, 7
movzx eax, word [edi + ecx]
push eax
movzx eax, word [ecx + edi - 8]
push eax
xor eax, eax
mov dword [ebp - 0x94], 0x27632207
mov dword [ebp - 0x90], 0x63222728
mov ecx, eax
mov byte [ebp - 0x8c], al
xor byte [ebp + ecx - 0x93], dl
inc ecx
cmp ecx, 7
jae 0x1001f131
mov dl, byte [ebp - 0x94]
jmp 0x1001f11c
xor eax, eax
sub esp, 0x18
mov byte [ebp - 0x8c], al
mov ecx, esp
lea eax, [ebp - 0x93]
push eax
call fcn.10004179
lea eax, [ebp - 0x28]
push eax
call fcn.10003c43
add esp, 0x24
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x1001f162
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xe4]
call fcn.10004179
mov byte [ebp - 4], 6
lea edx, [ebp - 0xe4]
mov ecx, dword [ebx + 0xc]
call fcn.1000de50
xor eax, eax
lea ecx, [ebp - 0xe4]
push eax
inc eax
push eax
call fcn.1000402e
xor eax, eax
mov byte [ebp - 4], 3
push eax
inc eax
lea ecx, [ebp - 0x28]
push eax
call fcn.1000402e
mov eax, dword [esi + 0x158]
mov ecx, dword [ebx + 0x10]
movzx eax, word [edi + eax]
push eax
call fcn.1000dc9e
mov eax, dword [esi + 0x158]
xorps xmm3, xmm3
pop ecx
mov ecx, dword [ebx + 0x10]
xorps xmm2, xmm2
movzx eax, word [edi + eax - 8]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.1000dcf3
mov ecx, dword [ebp - 0x70]
xor eax, eax
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.1000d5f0
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.1000402e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
xor eax, eax
push eax
inc eax
push eax
call fcn.1000402e
jmp 0x1001f20d
mov ecx, dword [ecx]
xor dl, dl
call fcn.1000d5f0
mov ecx, dword [ebp - 0x70]
add edi, 2
add dword [ebp - 0x5c], 2
add ecx, 4
add ebx, 0x14
mov dword [ebp - 0xc4], edi
sub dword [ebp - 0x98], 1
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ebx
jne 0x1001eec6
mov ecx, dword [ebp - 0x9c]
lea eax, [esi + 0x94]
add ecx, 0x34
mov dword [ebp - 0x5c], eax
lea edi, [esi + 0xf8]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x74], 5
mov eax, dword [esi + 0x158]
mov ebx, dword [ecx + eax - 0x14]
mov eax, dword [ecx + eax]
mov ecx, 0x35a4f8a0
mov dword [ebp - 0x9c], eax
lea eax, [ebx - 1]
cmp eax, 0x5f5e0fe
cmovbe ebx, ecx
mov ecx, ebx
call fcn.10008e40
mov dword [ebp - 0x70], eax
test eax, eax
je 0x1001f39e
xor eax, eax
mov word [ebp - 0x64], 0x7b
mov byte [ebp - 0x63], al
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x63]
push eax
call fcn.10004179
mov ecx, dword [ebp - 0x70]
mov edx, ebx
mov dword [ebp - 4], 7
call fcn.10008e60
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x1001f2f1
cmp dword [eax + 0x3c], 0
je 0x1001f2f1
push ebx
push eax
xor edx, edx
lea ecx, [ebp - 0x58]
call fcn.10008f24
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10005f9d
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.1000402e
mov ebx, dword [ebp - 0x70]
jmp 0x1001f31a
push ebx
mov ebx, dword [ebp - 0x70]
lea ecx, [ebp - 0x58]
xor eax, eax
mov edx, ebx
push eax
call fcn.10008f24
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10005f9d
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.1000402e
mov ecx, dword [edi]
test ecx, ecx
je 0x1001f361
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.1000b24e
mov eax, dword [edi]
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x9c]
mov dword [eax + 0x60], ebx
mov eax, dword [edi]
mov dword [eax + 0x64], ecx
mov eax, dword [edi]
mov dword [eax + 0x68], edx
test ecx, ecx
je 0x1001f356
movsx ecx, word [ecx + 0x4e]
movsx eax, word [ebx + 0x5e]
add ecx, eax
jmp 0x1001f35a
movsx ecx, word [ebx + 0x5e]
mov eax, dword [edi]
mov dword [eax + 0x6c], ecx
jmp 0x1001f367
mov edx, dword [ebp - 0x9c]
mov ecx, dword [edi + 4]
call fcn.1000de73
mov ecx, dword [edi + 8]
lea edx, [ebp - 0x28]
call fcn.1000dacb
mov ecx, dword [ebp - 0x5c]
xor ebx, ebx
inc ebx
mov dl, bl
mov ecx, dword [ecx]
call fcn.1000d5f0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
xor eax, eax
push eax
push ebx
call fcn.1000402e
jmp 0x1001f452
mov ecx, dword [ebp - 0x5c]
xor dl, dl
mov ecx, dword [ecx]
call fcn.1000d5f0
mov ecx, dword [edi + 4]
xor edx, edx
call fcn.1000de73
lea eax, [ebp - 0x67]
mov word [ebp - 0x68], 0x71
xor ebx, ebx
lea ecx, [ebp - 0xe4]
push eax
mov byte [ebp - 0x67], bl
call fcn.10004179
mov dword [ebp - 4], 8
lea edx, [ebp - 0xe4]
mov ecx, dword [edi + 8]
call fcn.1000dacb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
xor eax, eax
push ebx
inc eax
push eax
call fcn.1000402e
cmp dword [edi], ebx
je 0x1001f452
lea eax, [ebp - 0x6b]
mov word [ebp - 0x6c], 0x16
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 0x6b], bl
call fcn.10004179
mov dword [ebp - 4], 9
lea edx, [ebp - 0xfc]
mov ecx, dword [edi]
add ecx, 4
call fcn.1000b24e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
xor eax, eax
push ebx
inc eax
push eax
call fcn.1000402e
mov eax, dword [edi]
mov dword [eax + 0x60], ebx
mov eax, dword [edi]
mov dword [eax + 0x64], ebx
mov eax, dword [edi]
mov dword [eax + 0x68], ebx
mov eax, dword [edi]
mov dword [eax + 0x6c], ebx
mov ecx, dword [ebp - 0x98]
add edi, 0xc
add dword [ebp - 0x5c], 4
add ecx, 4
sub dword [ebp - 0x74], 1
mov dword [ebp - 0x98], ecx
jne 0x1001f25b
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xc0]
add eax, 0x18
sub edx, 1
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], edx
jne 0x1001ecf9
xor ebx, ebx
inc ebx
mov al, bl
jmp 0x1001f4a2
xor al, al
call fcn.1003d34a
ret 8