Function at 0x10017940
Capabilities:
Acquire debug privileges
Contain obfuscated stackstrings
Encode data using xor
Execute anti-debugging instructions
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x10091040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
mov byte [ebp - 0x110], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10017990
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, 0x100925cc
call fcn.10003620
mov al, 0x7e
mov byte [ebp - 0x132], 0
mov dl, 0x22
mov byte [ebp - 0x134], al
xor dl, al
mov byte [ebp - 0x132], 0
lea ebx, [ebp - 0x133]
mov byte [ebp - 0x12d], dl
mov byte [ebp - 0x133], dl
lea ecx, [ebx + 1]
nop word [eax + eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100179e0
mov eax, dword [0x100925dc]
sub ebx, ecx
cmp dword [0x100925e0], 0xf
mov ecx, 0x100925cc
cmova ecx, dword [0x100925cc]
or esi, 0xffffffff
mov dword [ebp - 0x12c], ecx
test ebx, ebx
jne 0x10017a1a
cmp eax, esi
mov edi, esi
cmovb edi, eax
jmp 0x10017ab7
cmp ebx, eax
ja 0x10017ab4
sub eax, ebx
mov edi, esi
cmp eax, 0xffffffff
cmovb edi, eax
add edi, ecx
nop
cmp byte [edi], dl
jne 0x10017a9f
mov esi, ebx
lea edx, [ebp - 0x133]
mov ecx, edi
sub esi, 4
jb 0x10017a54
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10017a59
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10017a43
cmp esi, 0xfffffffc
je 0x10017a8d
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10017a86
cmp esi, 0xfffffffd
je 0x10017a8d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10017a86
cmp esi, 0xfffffffe
je 0x10017a8d
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10017a86
cmp esi, 0xffffffff
je 0x10017a8d
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x10017a8d
sbb eax, eax
or eax, 1
jmp 0x10017a8f
xor eax, eax
test eax, eax
je 0x10017aa6
mov ecx, dword [ebp - 0x12c]
mov dl, byte [ebp - 0x12d]
cmp edi, ecx
je 0x10017ab1
dec edi
jmp 0x10017a30
sub edi, dword [ebp - 0x12c]
or esi, 0xffffffff
jmp 0x10017ab7
or esi, 0xffffffff
or edi, 0xffffffff
mov eax, dword [0x100925dc]
inc edi
mov dword [ebp - 0x140], 0
xorps xmm0, xmm0
mov dword [ebp - 0x13c], 0
movups xmmword [ebp - 0x150], xmm0
cmp eax, edi
jb 0x10017f3a
sub eax, edi
lea ecx, [ebp - 0x150]
cmp eax, 0xffffffff
cmovb esi, eax
cmp dword [0x100925e0], 0xf
mov eax, 0x100925cc
cmova eax, dword [0x100925cc]
push esi
add eax, edi
push eax
call fcn.100024a0
lea eax, [ebp - 0x150]
mov ecx, 0x100925cc
push eax
call fcn.1000b490
mov ecx, dword [ebp - 0x13c]
cmp ecx, 0xf
jbe 0x10017b5a
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017b50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10017b50
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007d105
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [0x10093470], eax
call fcn.10001d00
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x100934d4], eax
call esi
test eax, eax
jne 0x10017b7d
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
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
cmp esi, 0xffffffff
je 0x10017c79
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0
push eax
push 0x28
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10017c79
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x124]
push eax
push str.SeSecurityPrivilege
push 0
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x11c], 4
call ebx
test eax, eax
je 0x10017c79
push 0
push 0
push 0
lea eax, [ebp - 0x128]
push eax
push 0
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x10017c79
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x124]
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x11c], 4
call ebx
test eax, eax
je 0x10017c79
push 0
push 0
push 0
lea eax, [ebp - 0x128]
push eax
push 0
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x10017c79
push dword [ebp - 0x12c]
call edi
push esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x12c]
push eax
push 0xf01ff
call esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10017d3f
movaps xmm0, xmmword [0x1008a2b0]
xor ecx, ecx
movups xmmword [ebp - 0x148], xmm0
mov word [ebp - 0x138], 0x7d
nop word [eax + eax]
mov al, byte [ebp - 0x148]
xor byte [ebp + ecx - 0x147], al
inc ecx
cmp ecx, 0x10
jb 0x10017cc0
lea eax, [ebp - 0x118]
mov byte [ebp - 0x137], 0
push eax
lea eax, [ebp - 0x147]
push eax
push 0
call ebx
test eax, eax
je 0x10017d37
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x114]
push 0
push 0
push 0x10
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x128]
push eax
push 0
push dword [ebp - 0x12c]
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x12c]
call edi
movaps xmm0, xmmword [0x1008a140]
xor ecx, ecx
movups xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], 0x7c764f74
mov dword [ebp - 0x13c], 0x6b79745b
mov word [ebp - 0x138], 0x6b
nop dword [eax]
mov al, byte [ebp - 0x150]
xor byte [ebp + ecx - 0x14f], al
inc ecx
cmp ecx, 0x18
jb 0x10017d70
push 0
lea eax, [ebp - 0x14f]
mov byte [ebp - 0x137], 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x10017db0
push 9
call esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
sidt [ebp - 0x118]
mov eax, dword [ebp - 0x116]
and eax, 0xff000000
cmp eax, 0xff000000
jne 0x10017ddc
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 [ebp - 0x114], 0x1000
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0x114]
push eax
push edi
push 0x250000
call dword [sym.imp.MPR.dll_WNetGetProviderNameA]
test eax, eax
jne 0x10017e7f
movaps xmm0, xmmword [0x100892d0]
xor ecx, ecx
movups xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], 0x33551110
mov dword [ebp - 0x13c], 0x1011191a
mov word [ebp - 0x138], 0x607
mov byte [ebp - 0x136], al
nop
mov al, byte [ebp - 0x150]
xor byte [ebp + ecx - 0x14f], al
inc ecx
cmp ecx, 0x19
jb 0x10017e40
lea eax, [ebp - 0x14f]
mov byte [ebp - 0x136], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10017e7f
push 9
call esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.10002a90
test al, al
jne 0x10017d9d
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x12c], 0
rdtsc
mov dword [ebp - 0x114], eax
rdtsc
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
sub eax, dword [ebp - 0x114]
cmp eax, 0x1f4
ja 0x10017d9d
mov dword [ebp - 0x114], 0
mov eax, 0xcccccccc
smsw eax
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xcc000000
jne 0x10017f14
and ecx, 0xff0000
cmp ecx, 0xcc0000
jne 0x10017f14
push 9
call esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.1001fea0
mov dword [0x100934f8], eax
test eax, eax
je 0x10017f29
mov ecx, eax
call fcn.10020090
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007d0a4
mov esp, ebp
pop ebp
ret
call fcn.1000fb60
int3