Function at 0x1001bea6
Capabilities:
Encode data using xor

Disassembly:
push 0xf0
mov eax, 0x1007131c
call fcn.10039b20
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov dword [0x10095db0], eax
test ecx, ecx
je 0x1001c71d
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], ebx
jne 0x1001c71d
cmp dword [0x10095bc0], 0
je 0x1001c71d
cmp dword [esi + 4], 0
je 0x1001bef9
cmp ecx, dword [esi + 4]
jne 0x1001bef9
mov ecx, esi
call fcn.1001cee7
jmp 0x1001c719
mov eax, dword [esi + 0x138]
test eax, eax
je 0x1001bf18
cmp ecx, eax
jne 0x1001bf18
mov eax, dword [esi + 0x144]
cmp eax, ebx
jle 0x1001c719
dec eax
jmp 0x1001bf39
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x1001bf4f
cmp ecx, eax
jne 0x1001bf4f
mov eax, dword [esi + 0x144]
cmp eax, dword [esi + 0x148]
jge 0x1001c719
inc eax
mov dword [esi + 0x144], eax
mov ecx, esi
movzx eax, al
push eax
call fcn.1001ddff
jmp 0x1001c719
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 0x1001c719
push 4
lea eax, [esi + 0x30]
pop edx
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], edx
cmp dword [eax], 0
je 0x1001c6fe
cmp ecx, dword [eax]
jne 0x1001c6fe
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 0x1001c6f2
mov ecx, dword [esi + 0x158]
add ecx, 0x18
cmp dword [ecx], ebx
je 0x1001bfe3
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 0x1001bfbd
jmp 0x1001c6ef
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 0x1001c08d
movaps xmm0, xmmword [0x10087530]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0xc0a1702
mov edx, eax
mov word [ebp - 0x14], 0x3e0d
mov byte [ebp - 0x12], al
mov cl, byte [ebp - 0x28]
xor byte [ebp + edx - 0x27], cl
inc edx
cmp edx, 0x15
jb 0x1001c029
xor eax, eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x27]
push eax
call fcn.10002907
xor eax, eax
lea edx, [ebp - 0xe4]
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x7c]
call fcn.1000c667
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
xor eax, eax
push eax
inc eax
push eax
call fcn.100027bc
mov ecx, dword [esi + 0x7c]
mov edx, 0xff5cb9fe
call fcn.1000c6ad
mov dword [ebp - 0xcc], 0xff808080
jmp 0x1001c122
xor eax, eax
mov dword [ebp - 0xb8], 0x73c3269
mov cl, 0x69
mov dword [ebp - 0xb4], 0x491b0c0d
mov dword [ebp - 0xb0], 0x3410081e
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 0x1001c0d3
mov cl, byte [ebp - 0xb8]
jmp 0x1001c0b7
xor eax, eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 0xac], al
lea eax, [ebp - 0xb7]
push eax
call fcn.10002907
xor eax, eax
lea edx, [ebp - 0xe4]
inc eax
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x7c]
call fcn.1000c667
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
xor eax, eax
push eax
inc eax
push eax
call fcn.100027bc
mov ecx, dword [esi + 0x7c]
mov edx, 0xffc4fc03
call fcn.1000c6ad
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 0x1001c481
mov cl, 0x2c
mov dword [ebp - 0x88], 0x4742792c
mov dword [ebp - 0x84], 0x425b4342
mov byte [ebp - 0x80], dl
xor cl, byte [ebp + edx - 0x87]
mov byte [ebp + edx - 0x87], cl
inc edx
cmp edx, 7
jae 0x1001c196
mov cl, byte [ebp - 0x88]
jmp 0x1001c17a
xor eax, eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x80], al
lea eax, [ebp - 0x87]
push eax
call fcn.10002907
xor eax, eax
mov dword [ebp - 4], 2
mov word [ebp - 0x60], 0x25
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x5f], al
lea eax, [ebp - 0x5f]
push eax
call fcn.10002907
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.10007704
test eax, eax
je 0x1001c217
add eax, 4
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x1001c1fc
push 0xffffffffffffffff
push 0
push eax
call fcn.1000258d
mov ecx, dword [ebx]
xor eax, eax
lea edx, [eax + 1]
call fcn.1000be07
mov ecx, dword [ebx + 4]
xor dl, dl
call fcn.1000be07
jmp 0x1001c31d
mov eax, dword [esi + 0x158]
xor ecx, ecx
inc ecx
cmp word [edi + eax - 0x10], cx
jne 0x1001c31d
cmp byte [0x10095bdb], 0
mov ebx, dword [0x10095bc0]
je 0x1001c26f
mov ecx, 0x10b8134
call fcn.1000c7a6
mov edi, eax
test edi, edi
je 0x1001c26f
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001c26f
push 4
add edi, 0x6dc
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001c26f
mov al, byte [edi]
mov byte [ebx + 0x38], al
mov al, byte [ebx + 0x38]
xor ebx, ebx
inc ebx
cmp al, bl
jne 0x1001c2bf
xor ebx, ebx
mov dword [ebp - 0xa8], 0x4b072e6b
mov dl, 0x6b
mov dword [ebp - 0xa4], 0xa190426
mov word [ebp - 0xa0], 0xf
mov ecx, ebx
xor byte [ebp + ecx - 0xa7], dl
inc ecx
cmp ecx, 8
jae 0x1001c2b1
mov dl, byte [ebp - 0xa8]
jmp 0x1001c29c
mov byte [ebp - 0x9f], bl
lea edi, [ebp - 0xa7]
jmp 0x1001c2ed
push 0x68
pop eax
mov dl, al
mov dword [ebp - 0x7b], 0x1d1a0923
xor ebx, ebx
mov byte [ebp - 0x7c], dl
mov word [ebp - 0x77], 0x1b
mov ecx, ebx
xor byte [ebp + ecx - 0x7b], dl
inc ecx
cmp ecx, 5
jae 0x1001c2e7
mov dl, byte [ebp - 0x7c]
jmp 0x1001c2d8
mov byte [ebp - 0x76], bl
lea edi, [ebp - 0x7b]
push edi
call fcn.100028ea
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.10002871
mov ebx, dword [ebp - 0x74]
xor eax, eax
mov ecx, dword [ebx + 4]
lea edx, [eax + 1]
call fcn.1000be07
mov ecx, dword [ebx]
xor dl, dl
call fcn.1000be07
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.10002907
mov byte [ebp - 4], 4
lea edx, [ebp - 0xe4]
mov ecx, dword [ebx + 8]
call fcn.1000c667
xor eax, eax
mov byte [ebp - 4], 3
push eax
inc eax
lea ecx, [ebp - 0xe4]
push eax
call fcn.100027bc
mov edx, dword [ebp - 0xcc]
mov ecx, dword [ebx + 8]
call fcn.1000c6ad
mov ecx, dword [esi + 0x158]
mov dl, 0x69
movzx eax, word [edi + ecx]
push eax
movzx eax, word [ecx + edi - 8]
push eax
xor eax, eax
mov dword [ebp - 0x94], 0x490d4c69
mov dword [ebp - 0x90], 0xd4c4946
mov ecx, eax
mov byte [ebp - 0x8c], al
xor byte [ebp + ecx - 0x93], dl
inc ecx
cmp ecx, 7
jae 0x1001c3ae
mov dl, byte [ebp - 0x94]
jmp 0x1001c399
xor eax, eax
sub esp, 0x18
mov byte [ebp - 0x8c], al
mov ecx, esp
lea eax, [ebp - 0x93]
push eax
call fcn.10002907
lea eax, [ebp - 0x28]
push eax
call fcn.100072fa
add esp, 0x24
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x1001c3df
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xe4]
call fcn.10002907
mov byte [ebp - 4], 6
lea edx, [ebp - 0xe4]
mov ecx, dword [ebx + 0xc]
call fcn.1000c667
xor eax, eax
lea ecx, [ebp - 0xe4]
push eax
inc eax
push eax
call fcn.100027bc
xor eax, eax
mov byte [ebp - 4], 3
push eax
inc eax
lea ecx, [ebp - 0x28]
push eax
call fcn.100027bc
mov eax, dword [esi + 0x158]
mov ecx, dword [ebx + 0x10]
movzx eax, word [edi + eax]
push eax
call fcn.1000c4b5
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.1000c50a
mov ecx, dword [ebp - 0x70]
xor eax, eax
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.1000be07
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.100027bc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
xor eax, eax
push eax
inc eax
push eax
call fcn.100027bc
jmp 0x1001c48a
mov ecx, dword [ecx]
xor dl, dl
call fcn.1000be07
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 0x1001c14e
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.10007678
mov dword [ebp - 0x70], eax
test eax, eax
je 0x1001c61b
xor eax, eax
mov word [ebp - 0x64], 0x1a
mov byte [ebp - 0x63], al
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x63]
push eax
call fcn.10002907
mov ecx, dword [ebp - 0x70]
mov edx, ebx
mov dword [ebp - 4], 7
call fcn.10007698
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x1001c56e
cmp dword [eax + 0x3c], 0
je 0x1001c56e
push ebx
push eax
xor edx, edx
lea ecx, [ebp - 0x58]
call fcn.1000775c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.1000472a
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.100027bc
mov ebx, dword [ebp - 0x70]
jmp 0x1001c597
push ebx
mov ebx, dword [ebp - 0x70]
lea ecx, [ebp - 0x58]
xor eax, eax
mov edx, ebx
push eax
call fcn.1000775c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.1000472a
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.100027bc
mov ecx, dword [edi]
test ecx, ecx
je 0x1001c5de
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.10009a86
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 0x1001c5d3
movsx ecx, word [ecx + 0x4e]
movsx eax, word [ebx + 0x5e]
add ecx, eax
jmp 0x1001c5d7
movsx ecx, word [ebx + 0x5e]
mov eax, dword [edi]
mov dword [eax + 0x6c], ecx
jmp 0x1001c5e4
mov edx, dword [ebp - 0x9c]
mov ecx, dword [edi + 4]
call fcn.1000c68a
mov ecx, dword [edi + 8]
lea edx, [ebp - 0x28]
call fcn.1000c2e2
mov ecx, dword [ebp - 0x5c]
xor ebx, ebx
inc ebx
mov dl, bl
mov ecx, dword [ecx]
call fcn.1000be07
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
xor eax, eax
push eax
push ebx
call fcn.100027bc
jmp 0x1001c6cf
mov ecx, dword [ebp - 0x5c]
xor dl, dl
mov ecx, dword [ecx]
call fcn.1000be07
mov ecx, dword [edi + 4]
xor edx, edx
call fcn.1000c68a
lea eax, [ebp - 0x67]
mov word [ebp - 0x68], 0x24
xor ebx, ebx
lea ecx, [ebp - 0xe4]
push eax
mov byte [ebp - 0x67], bl
call fcn.10002907
mov dword [ebp - 4], 8
lea edx, [ebp - 0xe4]
mov ecx, dword [edi + 8]
call fcn.1000c2e2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
xor eax, eax
push ebx
inc eax
push eax
call fcn.100027bc
cmp dword [edi], ebx
je 0x1001c6cf
lea eax, [ebp - 0x6b]
mov word [ebp - 0x6c], 0x5d
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 0x6b], bl
call fcn.10002907
mov dword [ebp - 4], 9
lea edx, [ebp - 0xfc]
mov ecx, dword [edi]
add ecx, 4
call fcn.10009a86
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
xor eax, eax
push ebx
inc eax
push eax
call fcn.100027bc
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 0x1001c4d8
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 0x1001bf81
xor ebx, ebx
inc ebx
mov al, bl
jmp 0x1001c71f
xor al, al
call fcn.10039aca
ret 8