Function at 0x4017b0
Capabilities:
Persist via run registry key
Set registry value
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x421738
mov eax, dword fs:[0]
push eax
sub esp, 0xa4c
mov eax, dword [0x42ab14]
xor eax, esp
mov dword [esp + 0xa48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42ab14]
xor eax, esp
push eax
lea eax, [esp + 0xa60]
mov dword fs:[0], eax
call fcn.00402270
xor ebx, ebx
xor edi, edi
cmp dword [0x42bed8], ebx
je 0x401967
mov eax, 0x42bed8
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x24]
call fcn.00402650
mov esi, eax
push 0x425d04
lea ecx, [esp + 0x20]
push 0x42ea60
push ecx
mov dword [esp + 0xa74], ebx
call fcn.00401d50
push esi
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0xa80], 1
call fcn.00402490
add esp, 0x18
mov byte [esp + 0xa68], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40186f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa68], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401896
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004034f3
test eax, eax
je 0x401907
test byte [esp + 0x50], 0x10
jne 0x401907
mov dword [esp + 0xa68], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 1
cmp dword [edi*4 + 0x42bed8], ebx
lea eax, [edi*4 + 0x42bed8]
jne 0x401805
jmp 0x40196a
push ebx
push str.st_delete:st_menu
push 0x425d50
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [esp + 0xa68], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40193d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0xa60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa48]
xor ecx, esp
call fcn.0040c9e3
add esp, 0xa58
ret
or ebp, 0xffffffff
push str._setup
lea ecx, [esp + 0x20]
push 0x42ea60
push ecx
call fcn.00401d50
add esp, 0xc
mov dword [esp + 0xa68], 5
mov eax, dword [eax]
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004034f3
test eax, eax
jne 0x4019b9
xor al, al
jmp 0x4019c2
mov al, byte [esp + 0x50]
shr al, 4
and al, 1
cmp al, bl
mov dword [esp + 0xa68], ebp
mov eax, dword [esp + 0x1c]
sete byte [esp + 0x17]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], bl
je 0x401a0c
push ebx
push str.st_delete:st_menu
push 0x425da8
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40193d
push 0x42ea60
call fcn.00401390
add esp, 4
test al, al
je 0x40193d
push 0x800
lea ecx, [esp + 0x260]
push ebx
push ecx
call fcn.0040f180
add esp, 0xc
push 0x3fc
lea edx, [esp + 0x260]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00403c29
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401a6c
push 0x80004005
call fcn.00402140
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x25c]
push ecx
lea edx, [esp + 0x1c]
push str.cmd__c_del___s_
push edx
mov dword [esp + 0xa74], 6
call fcn.00402250
add esp, 0xc
call fcn.00403c29
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401abb
push 0x80004005
call fcn.00402140
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0xa68], 7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0x7fffffff
push eax
lea ecx, [esp + 0x24]
push str.del_stmenuexe__d
push ecx
call fcn.00402250
add esp, 0xc
push ebx
lea edx, [esp + 0x2c]
push edx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x401bc9
mov ecx, eax
lea esi, [esp + 0x1c]
call fcn.004023a0
lea eax, [esp + 0x24]
push str.RegCreateKeyEx
push eax
mov ecx, esi
mov byte [esp + 0xa70], 8
call fcn.00401e30
mov eax, dword [eax]
add esp, 8
push ebx
push str.st_delete:st_menu
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa68], 7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa68], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401919
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401919
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push ebx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x401cb4
mov ecx, eax
lea esi, [esp + 0x24]
call fcn.004023a0
lea eax, [esp + 0x2c]
push str.RegSetValueEx
push eax
mov ecx, esi
mov byte [esp + 0xa70], 9
call fcn.00401e30
mov eax, dword [eax]
add esp, 8
push ebx
push str.st_delete:st_menu
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa68], 7
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0xa68], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0xa68], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x401931
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]