Function at 0x1030ff0
Capabilities:
Check for peb beingdebugged flag
Check systemkerneldebuggerinformation
Create thread
Get system information on windows
Query environment variable
Query or enumerate registry value
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x10723e4]
push ebx
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 0x214], eax
push 2
lea eax, [ebp - 0x210]
push eax
push 0x23
mov dword [ebp - 0x220], ebx
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp byte [ebp - 0x210], bl
jne 0x103103e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp byte [eax + 2], bl
je 0x103107d
push 0x102fe7a
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push ebx
push 0x1014020
push 0x1010acc
mov dword [0x107390c], 1
call dword [sym.imp.KERNEL32.dll_GetProfileIntW]
test eax, eax
jne 0x103107d
push ebx
mov eax, 0xea60
push eax
push eax
push ebx
push 0x103084d
push ebx
call dword [sym.imp.KERNEL32.dll_SetTimerQueueTimer]
push esi
call fcn.01028d98
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jne 0x103109d
push 0x400
call edi
push eax
call esi
lea eax, [ebp - 0x218]
push eax
push 0x20019
push ebx
push 0x1014014
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10310ca
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0102fe86
push dword [ebp - 0x214]
call fcn.010301f3
test eax, eax
jne 0x10310e8
push 0x400
call edi
push eax
call esi
cmp dword [0x1073938], ebx
je 0x1031109
push 1
push ebx
push 1
call dword [sym.imp.ntdll.dll_RtlSetProcessIsCritical]
push 1
push ebx
push 1
call dword [sym.imp.ntdll.dll_RtlSetThreadIsCritical]
add esp, 0x18
cmp dword [0x10733c4], ebx
jne 0x1031116
call fcn.01028dc5
call fcn.01026e5d
test eax, eax
jne 0x1031129
push 0x401
call edi
push eax
call esi
call fcn.0103098c
test eax, eax
jne 0x103113c
push 0x407
call edi
push eax
call esi
mov eax, dword [0x10733bc]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x218]
push eax
push 0x20019
push ebx
push 0x1013a50
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10311bb
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x22c]
push eax
push ebx
push 0x1010af8
push dword [ebp - 0x218]
mov dword [ebp - 0x224], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], 1
jne 0x10311bb
mov eax, dword [ebp - 0x214]
mov dword [eax + 0x30], 1
mov eax, dword [ebp - 0x214]
mov eax, dword [eax + 8]
push dword [eax + 0x14]
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push ebx
push dword [0x1073914]
push ebx
push ebx
push dword [ebp - 0x214]
call fcn.010278f2
cmp dword [0x10733c4], ebx
jne 0x10311ee
call fcn.010301b6
cmp dword [0x1073938], ebx
je 0x10311fd
call fcn.010289b9
jmp 0x1031224
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [0x7ffe02d8]
cmp ecx, dword [eax + 0x1d4]
je 0x1031224
push 0xffffffffffffffff
push ebx
call sub.WINSTA.dll_WinStationIsHelpAssistantSession
movzx eax, al
mov dword [0x10733a0], eax
push dword [ebp - 0x214]
call fcn.01038f89
test eax, eax
je 0x1031245
call fcn.0103c8f2
test eax, eax
je 0x1031245
call fcn.0101e977
test eax, eax
jne 0x103124f
push 0x40a
call edi
push eax
call esi
mov eax, dword [ebp - 0x214]
mov eax, dword [eax + 8]
push dword [eax + 0x14]
call dword [sym.imp.USER32.dll_SetThreadDesktop]
cmp dword [0x1073938], ebx
je 0x103126e
call fcn.01038949
call fcn.01039978
test eax, eax
jne 0x1031281
push 0x40a
call edi
push eax
call esi
cmp dword [0x1073938], ebx
je 0x103128f
call dword [sym.imp.USERENV.dll_Ordinal_117]
call fcn.0103a252
cmp dword [0x10733a0], ebx
jne 0x10312a1
call sub.KERNEL32.dll_BaseInitAppcompatCacheSupport
call fcn.01029674
test eax, eax
jne 0x10312b4
push 0x403
call edi
push eax
call esi
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [ebp - 0x214]
mov dword [esi + 0x54], eax
cmp dword [0x1073938], ebx
je 0x10312d5
call fcn.010389c6
push esi
call fcn.01020e5f
push 0x58
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb eax, eax
neg eax
mov dword [0x1073900], eax
mov dword [0x10738fc], ebx
mov edi, 0x104
je 0x10313d0
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x1013fec
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, 0x10113f4
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0101d92e
test eax, eax
jl 0x10313ca
push 1
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0102fad5
test eax, eax
je 0x10313ca
push esi
mov dword [0x10738fc], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
jne 0x1031364
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x10313ca
push 2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x23c], eax
je 0x10313ca
push 0x30
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x10313ca
push dword [ebp - 0x214]
lea eax, [esi + 4]
push 0x101ddbf
push eax
push ebx
push ebx
call dword [ebp - 0x23c]
push 0x20
push 0x7530
push 0x2710
push esi
mov dword [esi], eax
mov eax, dword [ebp - 0x214]
push 0x1033f22
mov dword [esi + 0x2c], eax
push ebx
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
jmp 0x10313d0
mov dword [0x10738fc], ebx
push dword [ebp - 0x214]
call fcn.01025ac4
test eax, eax
jne 0x10313f1
push 0x408
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [0x10733a0], ebx
jne 0x1031406
push dword [ebp - 0x214]
call fcn.01030ddd
jmp 0x1031410
call fcn.01028ca0
mov dword [0x10733b4], eax
cmp dword [0x1073938], ebx
je 0x103144c
lea eax, [ebp - 0x228]
push eax
push ebx
push ebx
push fcn.01030101
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x1031446
push 0xfffffffffffffff1
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x103144c
push ebx
call fcn.01030101
push 0x208
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
jne 0x1031471
push 0x40a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
push esi
call fcn.010308c1
mov eax, dword [ebp - 0x214]
cmp dword [eax + 0x30], ebx
push edi
push esi
je 0x1031492
push 0x1013fa8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x10314c2
mov edi, 0x10116a4
push edi
push 0x1011694
push 0x1010fcc
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
cmp dword [0x1073938], ebx
jne 0x10314c2
cmp dword [0x10733a0], ebx
je 0x10314c2
push edi
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov edi, dword [ebp - 0x214]
push 0xc
lea eax, [ebp - 0x238]
push eax
push esi
push edi
call sub.ntdll.dll_RtlCheckProcessParameters
lea eax, [ebp - 0x21c]
push eax
push esi
push edi
mov dword [ebp - 0x21c], ebx
call fcn.0101e60f
test eax, eax
jne 0x1031502
push 0x402
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.0102f4c2
push 0xf
push 0x1013f88
push ebx
push ebx
push 1
push 0x1031d4f
call fcn.01038e83
push 0xe100
push 0x1013f68
push ebx
push ebx
push 3
push 0x1030f4b
call fcn.01038e83
cmp dword [0x1073934], ebx
je 0x1031588
cmp dword [0x1073938], ebx
je 0x1031551
call fcn.0102c5bb
cmp dword [0x1073934], ebx
je 0x1031588
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [0x7ffe02d8]
cmp ecx, dword [eax + 0x1d4]
je 0x1031588
push ebx
call sub.WINSTA.dll_WinStationAutoReconnect
test eax, eax
jl 0x1031588
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 1
push ebx
push 0x1013f50
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, ebx
jne 0x10315a7
push 0x400
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1013f3c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10315be
mov byte [0x1073904], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x230], 6
pop esi
jne 0x10315d5
push edi
call fcn.0103739c
cmp dword [0x1073934], ebx
je 0x1031629
mov eax, dword [edi + 0x38]
cmp eax, 5
je 0x10315ef
cmp eax, 0xb
je 0x10315ef
cmp eax, 0xa
jne 0x103160f
cmp dword [0x1073938], ebx
jne 0x1031608
cmp dword [ebp - 0x21c], ebx
je 0x1031608
mov dword [edi + 0x38], 2
jmp 0x103160f
push eax
push edi
call fcn.0101f691
push 1
call sub.MSGINA.dll_Ordinal_12
cmp dword [0x1073938], ebx
je 0x1031632
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x1031632
push dword [edi + 0x38]
push edi
call fcn.0101f691
push 0x405
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop ebx
call fcn.0103d24a
leave
ret 0x10