Function at 0x402e40
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e42b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x429750]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
push 0x103
lea eax, [ebp - 0x217]
mov byte [ebp - 0x218], 0
push 0
push eax
call fcn.0040b570
mov edx, esi
add esp, 0xc
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x402e94
sub edx, ecx
lea eax, [edx - 1]
test eax, eax
js 0x402ec4
cmp byte [eax + esi], 0x5c
je 0x402eaf
dec eax
jns 0x402ea4
jmp 0x402ec4
test eax, eax
jle 0x402ec4
push eax
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004099d0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
test bl, bl
je 0x40346a
lea eax, [ebp - 0x234]
push eax
push str.SOFTWAREClasses_shell
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4031af
push 0x19
push str.SOFTWAREClasses_shell_
lea ecx, [ebp - 0x230]
call fcn.00403c10
push 0xd
push str.LiuLiuNotepad
mov ecx, eax
call fcn.00403c10
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4031af
push 0xfa
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0040b570
push 0x425a6c
lea eax, [ebp - 0x110]
push 0x425c30
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 0x110]
push 0xfa
push eax
push 1
push 0
push 0x425920
push dword [ebp - 0x234]
call esi
push 0xfa
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0040b570
lea ebx, [ebp - 0x218]
add esp, 0xc
lea ecx, [ebx + 1]
lea ebx, [ebx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x402fe0
push 0
push 0
sub ebx, ecx
lea eax, [ebp - 0x218]
push ebx
push eax
push 0
push 0
call edi
mov edi, eax
xor ecx, ecx
mov edx, 2
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408092
add esp, 4
mov esi, eax
lea eax, [ebp - 0x218]
push edi
push esi
push ebx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
push esi
mov word [esi + edi*2], ax
lea eax, [ebp - 0x110]
push str._sdata_notepad.ico
push eax
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x110]
add esp, 0xc
push 0xfa
push eax
push 1
push 0
push str.Icon
push dword [ebp - 0x234]
call esi
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
push 0x19
push str.SOFTWAREClasses_shell_
mov word [eax], cx
lea ecx, [ebp - 0x230]
call fcn.00403c10
push 0xd
push str.LiuLiuNotepad
mov ecx, eax
call fcn.00403c10
push 8
push str.Command
mov ecx, eax
call fcn.00403c10
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4031a9
push 0xfa
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0040b570
lea ebx, [ebp - 0x218]
add esp, 0xc
lea ecx, [ebx + 1]
mov edi, edi
mov al, byte [ebx]
inc ebx
test al, al
jne 0x403110
push 0
push 0
sub ebx, ecx
lea eax, [ebp - 0x218]
push ebx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
xor ecx, ecx
mov edx, 2
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408092
add esp, 4
mov esi, eax
lea eax, [ebp - 0x218]
push edi
push esi
push ebx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
push str.LiuLiuNotepad
push esi
mov word [esi + edi*2], ax
lea eax, [ebp - 0x110]
push str._s_s.exe___1
push eax
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x110]
add esp, 0x10
push 0xfa
push eax
push 1
push 0
push 0x425920
push dword [ebp - 0x234]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x234]
push eax
push str._shell
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4035f8
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
push 8
push str._shell_
mov word [eax], cx
lea ecx, [ebp - 0x230]
call fcn.00403c10
push 0xd
push str.LiuLiuNotepad
mov ecx, eax
call fcn.00403c10
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4035f8
push 0xfa
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0040b570
push 0x425a6c
lea eax, [ebp - 0x110]
push 0x425c30
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 0x110]
push 0xfa
push eax
push 1
push 0
push 0x425920
push dword [ebp - 0x234]
call esi
push 0xfa
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0040b570
lea ebx, [ebp - 0x218]
add esp, 0xc
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4032a0
push 0
push 0
sub ebx, ecx
lea eax, [ebp - 0x218]
push ebx
push eax
push 0
push 0
call edi
mov edi, eax
xor ecx, ecx
mov edx, 2
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408092
add esp, 4
mov esi, eax
lea eax, [ebp - 0x218]
push edi
push esi
push ebx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push esi
mov word [esi + edi*2], ax
lea eax, [ebp - 0x110]
push str._sdata_notepad.ico
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x110]
push 0xfa
push eax
push 1
push 0
push str.Icon
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
push 8
push str._shell_
mov word [eax], cx
lea ecx, [ebp - 0x230]
call fcn.00403c10
push 0xd
push str.LiuLiuNotepad
mov ecx, eax
call fcn.00403c10
push 8
push str.Command
mov ecx, eax
call fcn.00403c10
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4035f8
push 0xfa
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0040b570
lea ebx, [ebp - 0x218]
add esp, 0xc
lea ecx, [ebx + 1]
lea ebx, [ebx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4033d0
push 0
push 0
sub ebx, ecx
lea eax, [ebp - 0x218]
push ebx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
xor ecx, ecx
mov edx, 2
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408092
add esp, 4
mov esi, eax
lea eax, [ebp - 0x218]
push edi
push esi
push ebx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str.LiuLiuNotepad
xor eax, eax
push esi
mov word [esi + edi*2], ax
lea eax, [ebp - 0x110]
push str._s_s.exe___1
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x110]
push 0xfa
push eax
push 1
push 0
push 0x425920
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4035f8
push 0x19
xor eax, eax
mov dword [ebp - 0x220], 0
push str.SOFTWAREClasses_shell_
lea ecx, [ebp - 0x230]
mov word [ebp - 0x230], ax
call fcn.00403c10
push 0xd
push str.LiuLiuNotepad
mov ecx, eax
call fcn.00403c10
push 8
push str.Command
mov ecx, eax
call fcn.00403c10
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x80000002
call esi
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
push 0x19
push str.SOFTWAREClasses_shell_
mov word [eax], cx
lea ecx, [ebp - 0x230]
call fcn.00403c10
push 0xd
push str.LiuLiuNotepad
mov ecx, eax
call fcn.00403c10
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x80000002
call esi
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
push 8
push str._shell_
mov word [eax], cx
lea ecx, [ebp - 0x230]
call fcn.00403c10
push 0xd
push str.LiuLiuNotepad
mov ecx, eax
call fcn.00403c10
push 8
push str.Command
mov ecx, eax
call fcn.00403c10
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x80000000
call esi
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
push 8
push str._shell_
mov word [eax], cx
lea ecx, [ebp - 0x230]
call fcn.00403c10
push 0xd
push str.LiuLiuNotepad
mov ecx, eax
call fcn.00403c10
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
push 0x80000000
call esi
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x21c], 8
jb 0x40361b
push dword [ebp - 0x230]
call fcn.00409175
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408492
mov esp, ebp
pop ebp
ret