Function at 0x65d40
Capabilities:
Delete file
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x65d48
push ecx
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00014684
xor eax, eax
push ebp
push 0x65fef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x800
call fcn.000126e0
mov dword [ebp - 0x10], eax
mov edx, 0x800
mov eax, dword [ebp - 0x10]
call fcn.000175a4
mov eax, esi
call fcn.00014084
xor eax, eax
push ebp
push 0x65f80
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x70348]
mov eax, dword [eax]
add eax, 0x20019
push eax
push 0
push reloc.user32.dll_IsZoomed
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne reloc.user32.dll_OemToCharA
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x800
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x66044
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov ebx, eax
test ebx, ebx
jne 0x65f18
cmp dword [ebp - 0xc], 1
jne 0x65f18
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.000141dc
mov eax, dword [ebp - 0x14]
call fcn.0001bb64
test al, al
je RegisterClassA
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.0001bae0
push dword [ebp - 0x1c]
push dword [ebp - 4]
push 0x66080
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00014394
mov eax, dword [ebp - 0x14]
call fcn.0001bbc4
test al, al
je 0x65ea3
mov eax, dword [ebp - 0x14]
call fcn.000142b4
push eax
call sub.kernel32.dll_DeleteFileW
test eax, eax
jne 0x65e92
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x24]
call fcn.00018f2c
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, InsertMenuItemA
call fcn.00013d20
mov edx, dword [ebp - 0x20]
mov eax, esi
call fcn.00014240
jmp 0x65f62
mov eax, esi
mov edx, 0x660a4
call fcn.000140c0
jmp 0x65f62
lea edx, [ebp - 0x30]
mov eax, 2
call fcn.00018f2c
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x660c8
call fcn.00013d20
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.00014240
mov ecx, dword [ebp - 0x28]
mov eax, esi
mov edx, 0x660d0
call fcn.00014330
jmp 0x65f62
lea edx, [ebp - 0x3c]
mov eax, 2
call fcn.00018f2c
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
mov edx, 0x660c8
call fcn.00013d20
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
call fcn.00014240
mov ecx, dword [ebp - 0x34]
mov eax, esi
mov edx, 0x660ec
call fcn.00014330
jmp 0x65f62
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.00018f2c
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov edx, 0x6610c
call fcn.00013d20
mov edx, dword [ebp - 0x40]
mov eax, esi
call fcn.00014240
jmp 0x65f62
lea edx, [ebp - 0x4c]
mov eax, ebx
call fcn.00018f2c
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
mov edx, 0x66120
call fcn.00013d20
mov edx, dword [ebp - 0x48]
mov eax, esi
call fcn.00014240
cmp dword [ebp - 0x18], 0
je 0x65f71
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65f8a
mov eax, dword [ebp - 0x10]
call fcn.000126f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push LoadStringW
lea eax, [ebp - 0x4c]
mov edx, 6
call fcn.00013a78
lea eax, [ebp - 0x34]
call fcn.00014084
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00013a78
lea eax, [ebp - 0x28]
call fcn.00014084
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00013a78
lea eax, [ebp - 0x1c]
call fcn.00014084
lea eax, [ebp - 0x14]
call fcn.00014084
lea eax, [ebp - 4]
call fcn.00014084
ret