Function at 0x10016710
Capabilities:
Create process on windows
Get common file path
Manipulate boot configuration
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101138b0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1a0
mov eax, dword [0x10138018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x120]
call fcn.100175d0
push eax
call fcn.100178a0
add esp, 4
lea eax, [ebp - 0x16c]
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100169c0
push 9
mov dword [ebp - 0x198], eax
lea ecx, [ebp - 0x198]
push str.main.exe
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], 0xf
mov byte [ebp - 0x198], al
call fcn.1000fb80
lea esi, [ebp - 0x120]
mov dword [ebp - 4], 0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100167e0
mov edx, dword [ebp - 0x184]
sub esi, ecx
mov ecx, dword [ebp - 0x188]
mov eax, edx
sub eax, ecx
cmp esi, eax
ja 0x100168af
lea eax, [ecx + esi]
cmp edx, 0x10
mov dword [ebp - 0x188], eax
lea edi, [ebp - 0x198]
cmovae edi, dword [ebp - 0x198]
lea eax, [ebp - 0x120]
add eax, esi
cmp eax, edi
jbe 0x10016857
lea eax, [edi + ecx]
lea edx, [ebp - 0x120]
cmp edx, eax
ja 0x10016857
mov eax, edx
cmp edi, eax
ja 0x10016845
mov dword [ebp - 0x180], 0
jmp 0x1001685d
mov eax, edi
lea edx, [ebp - 0x120]
sub eax, edx
mov dword [ebp - 0x180], eax
jmp 0x1001685d
mov dword [ebp - 0x180], esi
lea eax, [ecx + 1]
push eax
lea eax, [edi + esi]
push edi
push eax
call fcn.100d2b90
add esp, 0xc
lea eax, [ebp - 0x120]
push dword [ebp - 0x180]
push eax
push edi
call fcn.100d2b90
mov ecx, dword [ebp - 0x180]
lea edx, [ebp - 0x120]
add esp, 0xc
mov eax, esi
sub eax, ecx
push eax
lea eax, [ecx + esi]
add eax, edx
push eax
lea eax, [edi + ecx]
push eax
call fcn.100d2b90
add esp, 0xc
lea eax, [ebp - 0x198]
jmp 0x100168d1
push esi
lea eax, [ebp - 0x120]
mov byte [ebp - 0x180], 0
push eax
push ecx
push dword [ebp - 0x180]
lea ecx, [ebp - 0x198]
push esi
call fcn.10018010
movups xmm0, xmmword [eax]
push 0x10
push str.DisableNXShowUI
movups xmmword [ebp - 0x1b0], xmm0
push 1
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1a0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x1b0]
cmp dword [ebp - 0x19c], 0x10
push 0
cmovae eax, dword [ebp - 0x1b0]
push eax
push dword [ebp - 0x16c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x19c]
cmp edx, 0x10
jb 0x1001695f
mov ecx, dword [ebp - 0x1b0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016955
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016a79
push edx
push ecx
call fcn.100853b9
add esp, 8
mov edx, dword [ebp - 0x184]
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], 0xf
mov byte [ebp - 0x1b0], 0
cmp edx, 0x10
jb 0x100169b4
mov ecx, dword [ebp - 0x198]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100169aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016a79
push edx
push ecx
call fcn.100853b9
add esp, 8
push dword [ebp - 0x16c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x168], 0x44
push eax
lea eax, [ebp - 0x168]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push str._C_bcdedit.exe__set_current_nx_OptOut
push str.cmd.exe
movlpd qword [ebp - 0x164], xmm0
movlpd qword [ebp - 0x15c], xmm0
movlpd qword [ebp - 0x154], xmm0
movlpd qword [ebp - 0x14c], xmm0
movlpd qword [ebp - 0x144], xmm0
movlpd qword [ebp - 0x13c], xmm0
movlpd qword [ebp - 0x134], xmm0
movlpd qword [ebp - 0x12c], xmm0
movups xmmword [ebp - 0x17c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10016a5b
push dword [ebp - 0x178]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x17c]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1008500c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100e838e
int3