Function at 0x603f78
Capabilities:
Persist via contextmenuhandlers registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x603f81
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
mov eax, dword [ebp + 0xc]
call fcn.0040507c
xor eax, eax
push ebp
push 0x60453d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.005f7b84
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, edi
call fcn.0040508c
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x604016
mov eax, esi
call fcn.00404e8c
push eax
mov eax, esi
call fcn.0040508c
push eax
push 1
push 0
push 0x604550
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x60400b
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x604018
mov bl, 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, esi
call fcn.0040508c
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x604078
mov eax, dword [ebp - 4]
call fcn.00404e8c
push eax
mov eax, dword [ebp - 4]
call fcn.0040508c
push eax
push 1
push 0
push 0x604550
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x60406d
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x60407a
mov bl, 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x18]
mov ecx, 0x60455c
mov edx, esi
call fcn.00404ed8
mov eax, dword [ebp - 0x18]
call fcn.0040508c
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x6040f8
lea eax, [ebp - 0x10]
mov edx, dword [0x6dc84c]
call fcn.00404c38
mov eax, dword [ebp - 0x10]
call fcn.00404e8c
push eax
lea eax, [ebp - 0x10]
call fcn.004050e4
push eax
push 1
push 0
push 0x604550
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x6040ed
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x6040fa
mov bl, 1
mov eax, dword [0x6e3838]
cmp byte [eax], 1
jne 0x60417e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
mov ecx, 0x60458c
mov edx, esi
call fcn.00404ed8
mov eax, dword [ebp - 0x1c]
call fcn.0040508c
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x60417c
mov eax, dword [0x6e5230]
mov eax, dword [eax]
call fcn.00404e8c
push eax
mov eax, dword [0x6e5230]
mov eax, dword [eax]
call fcn.0040508c
push eax
push 1
push 0
push 0x604550
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x604171
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x60417e
mov bl, 1
mov eax, dword [0x6e6644]
cmp dword [eax], 2
jge 0x6042fa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push esi
push 0x60459c
push dword [ebp + 0x18]
push 0x6045ac
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404f4c
mov eax, dword [ebp - 0x20]
call fcn.0040508c
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x604208
mov eax, dword [ebp + 0x14]
call fcn.00404e8c
push eax
mov eax, dword [ebp + 0x14]
call fcn.0040508c
push eax
push 1
push 0
push 0x604550
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x6041fd
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x60420a
mov bl, 1
cmp byte [ebp + 0x10], 1
jne 0x604278
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
lea eax, [ebp - 0x24]
mov ecx, 0x6045c0
mov edx, esi
call fcn.00404ed8
mov eax, dword [ebp - 0x24]
call fcn.0040508c
push eax
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x604276
mov eax, dword [ebp + 0x18]
call fcn.00404e8c
push eax
mov eax, dword [ebp + 0x18]
call fcn.0040508c
push eax
push 1
push 0
push 0x604550
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x60426b
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x604278
mov bl, 1
cmp dword [ebp + 0xc], 0
je 0x604418
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push esi
push 0x60459c
push dword [ebp + 0x18]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404f4c
mov eax, dword [ebp - 0x28]
call fcn.0040508c
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x604418
mov eax, dword [ebp + 0xc]
call fcn.00404e8c
push eax
lea eax, [ebp + 0xc]
call fcn.004050e4
push eax
push 1
push 0
push 0x604550
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x604418
cmp byte [ebp + 0x10], 1
jne 0x604418
lea eax, [ebp - 0x30]
mov ecx, 0x6045c0
mov edx, esi
call fcn.00404ed8
mov eax, dword [ebp - 0x30]
call fcn.0040508c
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404da8
mov edx, dword [ebp - 0x2c]
mov eax, 0x80000000
call fcn.005f5a20
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push esi
push 0x60459c
push dword [ebp + 0x18]
push 0x6045ac
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00404f4c
mov eax, dword [ebp - 0x34]
call fcn.0040508c
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x6043ae
mov eax, dword [ebp + 0x14]
call fcn.00404e8c
push eax
mov eax, dword [ebp + 0x14]
call fcn.0040508c
push eax
push 1
push 0
push 0x604550
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x6043a3
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x6043b0
mov bl, 1
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
lea eax, [ebp - 0x38]
mov ecx, 0x6045c0
mov edx, esi
call fcn.00404ed8
mov eax, dword [ebp - 0x38]
call fcn.0040508c
push eax
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x604416
mov eax, dword [ebp + 0x18]
call fcn.00404e8c
push eax
mov eax, dword [ebp + 0x18]
call fcn.0040508c
push eax
push 1
push 0
push 0x604550
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x60440b
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x604418
mov bl, 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov edx, dword [0x6e3810]
mov edx, dword [edx]
lea eax, [ebp - 0x3c]
mov ecx, edi
call fcn.00404ed8
mov eax, dword [ebp - 0x3c]
call fcn.0040508c
push eax
push 0x80000001
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x604487
mov eax, esi
call fcn.00404e8c
push eax
mov eax, esi
call fcn.0040508c
push eax
push 1
push 0
push 0x6045c8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x60447e
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x40]
mov ecx, 0x6045d8
mov edx, esi
call fcn.00404ed8
mov eax, dword [ebp - 0x40]
call fcn.0040508c
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x604517
mov eax, dword [ebp + 8]
sub eax, 1
jb 0x6044ce
je 0x6044db
jmp 0x6044ea
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00404c38
jmp 0x6044ea
lea edx, [ebp - 0x10]
mov eax, dword [0x6e53c4]
mov eax, dword [eax]
call fcn.0048edd4
mov eax, dword [ebp - 0x10]
call fcn.00404e8c
push eax
lea eax, [ebp - 0x10]
call fcn.004050e4
push eax
push 1
push 0
push 0x604550
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x604544
lea eax, [ebp - 0x40]
mov edx, 0xd
call fcn.00404bc4
lea eax, [ebp + 0xc]
call fcn.00404ba0
ret