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

Disassembly:
push 0x30
push 0x1001748
call fcn.010015a0
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x1b], bl
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], 0x103
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x20], bl
xor eax, eax
lea edi, [ebp - 0x1f]
stosb byte es:[edi], al
push ebx
push 2
lea eax, [ebp - 0x20]
push eax
push 0x23
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp byte [ebp - 0x20], bl
je 0x101a74c
mov byte [ebp - 0x1a], 1
lea eax, [ebp - 0x34]
push eax
push 0x20019
push ebx
push 0x10016f0
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x100168f
mov dword [ebp - 0x3c], 4
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
push 0x10016c4
push dword [ebp - 0x34]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x34]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp dword [ebp - 0x24], ebx
sete byte [ebp - 0x1b]
cmp byte [ebp + 8], bl
jne 0x10117fb
cmp dword [0x1042c4c], ebx
jne 0x10119be
cmp byte [ebp - 0x1b], bl
jne 0x101a763
mov dword [ebp - 4], 0xfffffffe
call fcn.01001769
mov eax, dword [ebp - 0x24]
call fcn.01001580
ret 8
cmp dword [0x1042c4c], ebx
jne 0x10119be
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x10119b9
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x10119b9
cmp byte [ebp - 0x1a], bl
je 0x10016ad
mov dword [0x10401ac], 4
mov byte [ebp - 0x19], bl
mov ebx, str.umstartup
call fcn.01010d13
xor esi, esi
cmp dword [0x1040270], esi
jne 0x101185a
cmp dword [0x1040274], esi
jne 0x101185a
mov dword [0x1040270], eax
mov dword [0x1040274], edx
lea eax, [ebp - 0x38]
push eax
push 0xe
push str.umstartup.etl
call fcn.010119cc
test eax, eax
jl 0x10016ad
lea eax, [ebp - 0x28]
push eax
push 0xa
push ebx
call fcn.010119cc
test eax, eax
jl 0x10016ad
mov eax, dword [ebp - 0x28]
lea eax, [eax + eax + 0x7a]
mov edi, dword [ebp - 0x38]
lea eax, [eax + edi*2 + 2]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.01010d78
mov dword [ebp - 0x24], eax
cmp eax, esi
jne 0x10016ad
push 0x78
push esi
mov esi, dword [ebp - 0x30]
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, edi
lea eax, [eax + eax + 0x7c]
mov dword [esi], eax
mov dword [esi + 0x2c], 0x20000
mov dword [esi + 0x28], 2
mov dword [esi + 0x30], 3
mov dword [esi + 0x34], 0xa
mov dword [esi + 0x40], 0x10000002
cmp dword [0x1040270], 0
je 0x101a777
lea edi, [edi + edi + 0x7a]
mov dword [esi + 0x70], edi
push ebx
mov eax, dword [ebp - 0x28]
inc eax
push eax
add edi, esi
push edi
call fcn.010056eb
cmp byte [ebp - 0x19], 0
jne 0x101a7a9
mov eax, dword [0x1040270]
test eax, eax
je 0x101a7c6
push 2
push esi
push ebx
push dword [0x1040274]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlTraceW]
mov dword [ebp - 0x24], eax
mov eax, dword [0x1040270]
mov edx, eax
mov ecx, dword [0x1040274]
or edx, ecx
je 0x101a7f6
push ecx
push eax
push str._dQc
push dword [0x10401ac]
push dword [0x1042ca4]
push 1
mov esi, dword [sym.imp.ADVAPI32.dll_EnableTrace]
call esi
mov dword [ebp - 0x24], eax
push dword [0x1040274]
push dword [0x1040270]
push 0x1040854
push dword [0x10401ac]
push dword [0x1042ca4]
push 1
call esi
mov dword [ebp - 0x24], eax
push dword [0x1040274]
push dword [0x1040270]
push 0x1040844
push dword [0x10401ac]
push dword [0x1042ca4]
push 1
call esi
mov dword [ebp - 0x24], eax
and dword [ebp - 0x24], 0
jmp 0x10016ad
mov dword [0x10401ac], eax
mov byte [ebp - 0x19], 1
jmp 0x1011833
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp byte [eax + 2], bl
jne 0x1001635
jmp 0x1001639
mov eax, dword [ebp - 0x2c]
cmp eax, dword [0x10401ac]
jne 0x10119b9
jmp 0x10016ad
cmp dword [0x1040274], 0
jne 0x10118f3
mov dword [esi + 0x3c], 5
mov dword [esi + 0x6c], 0x78
push str.umstartup.etl
lea eax, [edi + 1]
push eax
lea eax, [esi + 0x78]
push eax
call fcn.010056eb
jmp 0x10118f3
cmp byte [ebp - 0x1a], 0
je 0x1011912
or dword [esi + 0x40], 0x80000
mov dword [esi + 0x44], 5
jmp 0x1011912
cmp dword [0x1040274], eax
jne 0x101191f
push 1
push str.umstartup000.etl
push str.umstartup.etl
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
push ebx
push 0x1040270
call dword [sym.imp.ADVAPI32.dll_StartTraceW]
jmp 0x1011930
mov dword [ebp - 0x24], 0xd
jmp 0x10016ad