Function at 0x420380
Capabilities:
Create process on windows
Persist via run registry key
Query or enumerate registry value
Schedule task via schtasks
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594921
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5fcffc]
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 dword [ebp - 4], 2
mov eax, dword [ecx + 0x368]
mov ecx, 0x5d90d4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4203e6
test dx, dx
je 0x4203e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4203e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4203c0
xor eax, eax
jmp 0x4203eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x420815
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x420a17
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x5d8d04
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call fcn.00402a50
test al, al
jne 0x42043a
push 1
push 0x5d8d04
lea ecx, [ebp - 0x21c]
call fcn.00403260
mov byte [ebp - 4], 4
mov ecx, 0x5d9118
mov eax, dword [ebp + 0x10]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42046c
test dx, dx
je 0x420468
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42046c
add eax, 4
add ecx, 4
test dx, dx
jne 0x420446
xor eax, eax
jmp 0x420471
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp + 8]
push eax
push str.schtasks__create__tn
jne 0x420557
lea eax, [ebp - 0x220]
push eax
call fcn.00422650
push str.__tr__
push eax
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 5
push eax
call fcn.00422a00
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00420cc0
push str.___sc_onlogon__f__rl_highest
push eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 7
push eax
call fcn.00422a00
add esp, 0x30
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 8
call fcn.00422d00
mov byte [ebp - 4], 7
or esi, 0xffffffff
mov edx, dword [ebp - 0x234]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420506
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420527
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420548
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x220]
jmp 0x420627
lea eax, [ebp - 0x22c]
push eax
call fcn.00422650
push str.__tr__
push eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 9
push eax
call fcn.00422a00
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xa
push ecx
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00420cc0
push str.___sc_onlogon__f
push eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xb
push eax
call fcn.00422a00
add esp, 0x30
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0xc
call fcn.00422d00
mov byte [ebp - 4], 0xb
or esi, 0xffffffff
mov edx, dword [ebp - 0x220]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4205db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, esi
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4205fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, esi
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42061d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x22c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42063e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 0x230], 0
nop
push esi
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0
call fcn.00420a30
push 0
mov byte [ebp - 4], 0xd
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
mov dword [ebp - 0x220], esp
mov edi, dword [ebp + 8]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi - 4], 0
mov ecx, eax
lea eax, [edi - 4]
jl 0x4206ad
cmp ecx, dword [edi - 0x10]
jne 0x4206ad
lea ebx, [edi - 0x10]
lock inc dword [eax]
jmp 0x4206d9
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x420a21
mov ecx, dword [edi - 0xc]
lea eax, [ebx + 0x10]
mov dword [ebx + 4], ecx
mov edx, dword [edi - 0xc]
inc edx
push edx
push edi
push edx
push eax
call fcn.00403400
add esp, 0x10
mov ecx, dword [ebp - 0x220]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.00407040
cmp eax, 1
je 0x420756
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov edx, dword [ebp - 0x22c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42071d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x230]
inc ebx
mov dword [ebp - 0x230], ebx
cmp ebx, 3
jl 0x420650
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x420a10
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x42079a
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov edx, dword [ebp - 0x22c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42077a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x420795
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4207b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4207d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4207f5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0056eb08
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x234], 0
or edi, 0xffffffff
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x224]
mov ebx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x230]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x420899
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420860
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push ebx
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x42089f
push dword [ebp - 0x230]
call ebx
jmp 0x42089f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005711a0
add esp, 0xc
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42092e
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push esi
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x420926
push 0x5d8d04
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x22c]
call ebx
call fcn.004255be
test eax, eax
je 0x420a17
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402a50
test al, al
jne 0x420992
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420970
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00403260
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x420a17
mov esi, dword [ebp - 0x21c]
mov ecx, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4209cb
test dx, dx
je 0x4209c7
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4209cb
add ecx, 4
add eax, 4
test dx, dx
jne 0x4209a5
xor eax, eax
jmp 0x4209d0
sbb eax, eax
or eax, 1
test eax, eax
je 0x42077e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4209fa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x234], eax
cmp eax, 3
jl 0x420822
xor esi, esi
jmp 0x42079a
push 0x80004005
call fcn.004033d0
call fcn.004033f0
int3