Function at 0x4079b0
Capabilities:
Persist via run registry key
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cf8b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x40], 1
jne 0x407c32
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call fcn.005149a0
add esp, 0xc
lea edx, [ebp - 0x424]
lea edi, [esi + 0x154]
push edx
mov ecx, edi
call fcn.00403c60
mov eax, dword [ebp - 0x424]
mov esi, 1
mov dword [ebp - 4], 0
cmp dword [eax - 4], esi
jle 0x407a47
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x424]
call fcn.004036b0
mov eax, dword [ebp - 0x424]
push eax
push str.DEL___s__r_n
lea ecx, [ebp - 0x420]
push 0x104
push ecx
call fcn.00515c51
mov eax, dword [ebp - 0x424]
add esp, 0x10
mov dword [ebp - 0x42c], 0
cmp dword [eax - 4], esi
jle 0x407a8b
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x424]
call fcn.004036b0
mov eax, dword [ebp - 0x424]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407ad6
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407acf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x407c37
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x420]
push 0x104
push edx
call fcn.0051611e
add esp, 8
push eax
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x428]
push ecx
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x428], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407c09
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.005149a0
mov eax, dword [ebp - 0x424]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x407b82
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x424]
call fcn.004036b0
mov eax, dword [ebp - 0x424]
push eax
push str.Command.com__C_START__M_Command.com__C_CALL___s_
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.00515c51
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0051611e
add esp, 0x18
lea ecx, [ebp - 0x430]
push ecx
mov ecx, edi
lea esi, [eax + 1]
call fcn.00403b70
mov eax, dword [eax]
push esi
lea edx, [ebp - 0x218]
push edx
push 1
push 0
push eax
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407bfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407c32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret