Function at 0x100001030
Capabilities:
Check for peb beingdebugged flag
Check systemkerneldebuggerinformation
Get system information on windows
Move file
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov rax, qword [0x10001d1d0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor r15d, r15d
xor eax, eax
mov ebx, edx
mov bpl, cl
lea rdx, [rsp + 0x30]
lea r8d, [r15 + 2]
lea ecx, [rax + 0x23]
xor r9d, r9d
mov r12b, r15b
mov dil, r15b
mov dword [rsp + 0x34], r15d
mov byte [rsp + 0x30], r15b
mov byte [rsp + 0x31], al
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp byte [rsp + 0x30], r15b
je 0x10000935e
mov r12b, 1
lea rax, [rsp + 0x40]
lea rdx, str.SYSTEMCurrentControlSetControlWininit
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov r13d, 4
mov esi, eax
cmp eax, r15d
je 0x10000937a
cmp bpl, r15b
jne 0x1000064f6
cmp dword [0x10001d948], r15d
jne 0x1000093e4
cmp dil, r15b
jne 0x1000093ce
mov eax, esi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.100001000
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp dword [0x10001d948], r15d
jne 0x1000093e4
mov eax, dword [rsp + 0x34]
cmp eax, r15d
jne 0x1000093de
cmp ebx, r15d
jne 0x1000093c6
cmp r12b, r15b
je 0x1000010f9
mov dword [0x10001d1b4], r13d
mov dil, r15b
jmp 0x10000652e
mov ebx, 0x78
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8, rbx
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x50]
lea rdx, str.umstartup
xor ecx, ecx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x7c], 0x20000
call qword [sym.imp.ADVAPI32.dll_QueryTraceW]
cmp eax, r15d
je 0x1000093ec
mov rcx, r15
cmp eax, 0xea
je 0x1000093ec
mov rax, qword [0x10001d238]
mov ebp, 0xe
cmp rax, r15
cmove rax, rcx
lea rcx, str.umstartup.etl
mov qword [0x10001d238], rax
mov rax, rbp
cmp word [rcx], r15w
je 0x1000065ad
add rcx, 2
sub rax, 1
jne 0x10000659d
cmp rax, r15
je 0x1000010f9
mov edx, 0xa
sub rbp, rax
lea rcx, str.umstartup
mov rax, rdx
cmp word [rcx], r15w
je 0x1000065d8
add rcx, 2
sub rax, 1
jne 0x1000065c8
cmp rax, r15
je 0x1000010f9
mov r13, rdx
xor ecx, ecx
mov esi, r15d
sub r13, rax
lea eax, [r13 + rbp]
lea r14d, [rax + rax + 0x7c]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
cmp rax, r15
je 0x1000093f6
cmp esi, r15d
jne 0x100006746
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x78]
call sub.msvcrt.dll_memset
mov dword [rbx], r14d
lea esi, [rbp + rbp + 0x7a]
mov dword [rbx + 0x74], esi
mov dword [rbx + 0x2c], 0x20000
mov dword [rbx + 0x28], 2
mov dword [rbx + 0x70], 0x78
mov dword [rbx + 0x30], 3
mov dword [rbx + 0x34], 0xa
mov dword [rbx + 0x40], 0x10000002
mov r14d, 5
cmp qword [0x10001d238], r15
jne 0x100006684
lea rdx, [rbp + 1]
lea rcx, [rbx + 0x78]
lea r8, str.umstartup.etl
mov dword [rbx + 0x3c], r14d
mov dword [rbx + 0x70], 0x78
call fcn.100006764
mov dword [rbx + 0x74], esi
mov ecx, esi
lea rsi, str.umstartup
lea rdx, [r13 + 1]
mov r8, rsi
add rcx, rbx
call fcn.100006764
cmp dil, r15b
jne 0x100009403
mov rcx, qword [0x10001d238]
cmp rcx, r15
jne 0x10000941a
lea rdx, str.umstartup000.etl
lea rcx, str.umstartup.etl
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rcx, [0x10001d238]
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_StartTraceW]
jmp 0x1000066e7
mov rax, qword [0x10001d238]
cmp rax, r15
je 0x100009432
mov r8d, dword [0x10001d1b4]
mov edi, 0xffff
lea r9, [0x10001db50]
mov edx, edi
mov ecx, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnableTrace]
mov r11, qword [0x10001d238]
mov r8d, dword [0x10001d1b4]
lea r9, [0x10001db60]
mov edx, edi
mov ecx, 1
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_EnableTrace]
mov esi, r15d
cmp rbx, r15
je 0x1000010f9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
jmp 0x1000010f9
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
cmp byte [rcx + 2], r15b
jne 0x10000109f
jmp 0x1000010a2
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
lea rdx, str.TracingControlLevel
xor r8d, r8d
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
mov esi, eax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp esi, r15d
sete dil
jmp 0x1000010da
mov dword [0x10001d1b4], ebx
jmp 0x1000093e4
mov eax, dword [rsp + 0x34]
cmp eax, dword [0x10001d1b4]
je 0x1000010f9
mov dword [0x10001d1b4], eax
mov dil, 1
jmp 0x10000652e
mov rcx, qword [rsp + 0x58]
jmp 0x100006579
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10000660b
cmp r12b, r15b
je 0x1000066a8
bts dword [rbx + 0x40], 0x13
mov dword [rbx + 0x44], r14d
jmp 0x1000066a8
mov r9d, 2
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlTraceW]
nop
jmp 0x1000066e7
mov esi, 0xd
jmp 0x100006746