Function at 0x1002faf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0x29330547
push edi
mov cl, 0x47
mov dword [esp + 0x10], 0x372e1118
mov dword [esp + 0x14], 0x2b322611
xor eax, eax
mov word [esp + 0x18], 0x33
xor byte [esp + eax + 0xd], cl
inc eax
cmp eax, 0xc
jae 0x1002fb31
mov cl, byte [esp + 0xc]
jmp 0x1002fb21
cmp byte [esp + 0xd], 0
mov byte [esp + 0x19], 0
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
jne 0x1002fb56
xor ecx, ecx
jmp 0x1002fb69
lea ecx, [esp + 0xd]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fb60
sub ecx, edx
push ecx
lea eax, [esp + 0x11]
push eax
lea ecx, [esp + 0x28]
call fcn.10002840
mov ecx, dword [esi]
lea edx, [esp + 0x20]
call fcn.1001b710
mov dword [esi + 4], eax
mov eax, dword [esp + 0x34]
cmp eax, 0x10
jb 0x1002fb9e
inc eax
lea ecx, [esp + 0x20]
push eax
push dword [esp + 0x24]
call fcn.10002720
push 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1002fbb4
mov dword [esi + 4], 0
mov byte [esp + 0xc], 0x5b
mov al, 0x3a
xor al, byte [esp + 0xc]
mov cl, 0x28
mov bh, 0x39
mov byte [esp + 0xe], al
mov al, byte [esp + 0xc]
mov dh, cl
xor bh, byte [esp + 0xc]
mov dl, 0x3e
mov bl, 4
mov byte [esp + 0x15], 0
mov ah, 0x38
mov byte [esp + 0xd], bh
mov ch, 0x34
mov byte [esp + 0x15], 0
xor cl, al
mov dword [esp + 0x34], 0xf
xor dl, al
mov byte [esp + 0xf], cl
xor bl, al
mov byte [esp + 0x10], dl
xor ah, al
mov byte [esp + 0x11], bl
xor ch, al
mov byte [esp + 0x12], ah
xor dh, al
mov byte [esp + 0x13], ch
mov byte [esp + 0x14], dh
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
test bh, bh
jne 0x1002fc28
xor ecx, ecx
jmp 0x1002fc39
lea ecx, [esp + 0xd]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fc30
sub ecx, edx
push ecx
lea eax, [esp + 0x11]
push eax
lea ecx, [esp + 0x28]
call fcn.10002840
mov ecx, dword [esi]
lea edx, [esp + 0x20]
call fcn.1001b710
mov dword [esi + 8], eax
mov eax, dword [esp + 0x34]
cmp eax, 0x10
jb 0x1002fc6e
inc eax
lea ecx, [esp + 0x20]
push eax
push dword [esp + 0x24]
call fcn.10002720
movaps xmm0, xmmword [0x100c8640]
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov byte [esp + 0x1c], 0
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0xf
jb 0x1002fc81
cmp byte [esp + 0xd], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
jne 0x1002fcb4
xor ecx, ecx
jmp 0x1002fcc9
lea ecx, [esp + 0xd]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fcc0
sub ecx, edx
push ecx
lea eax, [esp + 0x11]
push eax
lea ecx, [esp + 0x28]
call fcn.10002840
mov ecx, dword [esi]
lea edx, [esp + 0x20]
call fcn.1001b710
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x34]
cmp eax, 0x10
jb 0x1002fcfe
inc eax
lea ecx, [esp + 0x20]
push eax
push dword [esp + 0x24]
call fcn.10002720
movaps xmm0, xmmword [0x100c8f90]
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov word [esp + 0x1c], 0x4b59
mov byte [esp + 0x1e], 0
nop dword [eax + eax]
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x11
jb 0x1002fd20
cmp byte [esp + 0xd], 0
mov byte [esp + 0x1e], 0
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
jne 0x1002fd53
xor ecx, ecx
jmp 0x1002fd69
lea ecx, [esp + 0xd]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fd60
sub ecx, edx
push ecx
lea eax, [esp + 0x11]
push eax
lea ecx, [esp + 0x28]
call fcn.10002840
mov ecx, dword [esi]
lea edx, [esp + 0x20]
call fcn.1001b710
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x34]
cmp eax, 0x10
jb 0x1002fd9e
inc eax
lea ecx, [esp + 0x20]
push eax
push dword [esp + 0x24]
call fcn.10002720
movaps xmm0, xmmword [0x100c8fe0]
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov word [esp + 0x1c], 0x495b
mov byte [esp + 0x1e], 0
nop dword [eax + eax]
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x11
jb 0x1002fdc0
cmp byte [esp + 0xd], 0
mov byte [esp + 0x1e], 0
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
jne 0x1002fdf3
xor ecx, ecx
jmp 0x1002fe09
lea ecx, [esp + 0xd]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fe00
sub ecx, edx
push ecx
lea eax, [esp + 0x11]
push eax
lea ecx, [esp + 0x28]
call fcn.10002840
mov ecx, dword [esi]
lea edx, [esp + 0x20]
call fcn.1001b710
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x34]
cmp eax, 0x10
jb 0x1002fe3e
inc eax
lea ecx, [esp + 0x20]
push eax
push dword [esp + 0x24]
call fcn.10002720
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push dword [esi + 8]
call ebx
test eax, eax
je 0x1002fe56
mov dword [esi + 8], 0
push 4
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x1002fe68
mov dword [esi + 0xc], 0
push 4
push dword [esi + 0x10]
call ebx
test eax, eax
je 0x1002fe7a
mov dword [esi + 0x10], 0
push 4
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x1002fe8c
mov dword [esi + 0x14], 0
mov edi, dword [esi + 0xc]
test edi, edi
je 0x1002feb9
cmp dword [0x100df924], 0
push 4
push edi
je 0x1002fea9
call ebx
test eax, eax
jne 0x1002feb9
push 3
jmp 0x1002feb1
call ebx
test eax, eax
jne 0x1002feb9
push 2
mov ecx, edi
call dword [0x100c6828]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1002fee6
cmp dword [0x100df928], 0
push 4
push edi
je 0x1002fed6
call ebx
test eax, eax
jne 0x1002fee6
push 3
jmp 0x1002fede
call ebx
test eax, eax
jne 0x1002fee6
push 2
mov ecx, edi
call dword [0x100c6828]
cmp dword [esi + 0x14], 0
je 0x1002ff46
cmp dword [0x100df92c], 0
mov eax, 0xeb
mov ecx, 0x74
cmovne eax, ecx
mov byte [0x427dcd], al
cmp dword [0x100df92c], 0
mov esi, dword [esi + 0x14]
je 0x1002ff2f
test esi, esi
je 0x1002ff46
push 4
push esi
call ebx
test eax, eax
jne 0x1002ff46
push 3
mov ecx, esi
call dword [0x100c6828]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1002ff46
push 4
push esi
call ebx
test eax, eax
jne 0x1002ff46
push 2
mov ecx, esi
call dword [0x100c6828]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret