Function at 0x4021b0
Capabilities:
Create process on windows
Delete file
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408690
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
lea eax, [ebp - 0x416]
push eax
call fcn.00408690
add esp, 0xc
lea eax, [ebp - 0x620]
push 0x200
push 0
push eax
call fcn.00408690
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x416ae4
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404c4b
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00402700
cmp dword [0x419fc8], 1
mov esi, eax
jne 0x402275
test esi, esi
jne 0x402275
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
call fcn.00402bd0
mov edi, eax
mov ebx, 0x51
mov eax, 0x2b8e
mov dword [ebp - 0x620], 0x504d534d
mov word [ebp - reloc.ntdll.dll_ZwClose], bx
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
xor ecx, ecx
movzx eax, word [ecx + reloc.ntdll.dll_ZwClose]
mov word [ebp + ecx - reloc.ntdll.dll_ZwClose], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4022a0
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ecx + reloc.ntdll.dll_ZwClose]
mov word [ebp + ecx - reloc.ntdll.dll_ZwClose], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4022c0
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ecx + reloc.ntdll.dll_ZwClose]
mov word [ebp + ecx - reloc.ntdll.dll_ZwClose], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4022e0
push 0x419fec
lea eax, [ebp - 0x498]
push 0x10
push eax
mov dword [ebp - 0x458], 5
call fcn.00404bef
add esp, 0xc
test esi, esi
jne 0x40231f
test edi, edi
je 0x402394
push 0x41a120
lea eax, [ebp - 0x59a]
push 0x10
push eax
call fcn.00404bef
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x41a0a0
push 0x40
push eax
call fcn.00404bef
add esp, 0xc
lea eax, [ebp - 0x57a]
push 0x41a018
push 0x40
push eax
call fcn.00404bef
movzx eax, word [0x41a098]
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
movzx eax, word [0x41a010]
mov word [ebp - reloc.ntdll.dll_ZwClose], ax
mov eax, dword [0x41a00c]
add esp, 0xc
test eax, eax
mov esi, 5
cmove eax, esi
mov dword [ebp - 0x458], eax
jmp 0x402399
mov esi, 5
mov ecx, 0x416b40
lea eax, [ebp - 0x61c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4023ca
test dx, dx
je 0x4023c6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4023ca
add eax, 4
add ecx, 4
test dx, dx
jne 0x4023a4
xor eax, eax
jmp 0x4023cf
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4023dc
cmp word [ebp - reloc.ntdll.dll_ZwClose], bx
je 0x402427
xor ecx, ecx
mov edi, edi
movzx eax, word [ecx + reloc.ntdll.dll_ZwClose]
mov word [ebp + ecx - reloc.ntdll.dll_ZwClose], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4023e0
mov word [ebp - reloc.ntdll.dll_ZwClose], bx
mov dword [ebp - 0x458], 5
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ecx + reloc.ntdll.dll_ZwClose]
mov word [ebp + ecx - reloc.ntdll.dll_ZwClose], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402410
mov ecx, 0x416b84
lea eax, [ebp - 0x57a]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402458
test dx, dx
je 0x402454
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402458
add eax, 4
add ecx, 4
test dx, dx
jne 0x402432
xor eax, eax
jmp 0x40245d
sbb eax, eax
or eax, 1
test eax, eax
je 0x402487
mov dword [ebp - 0x458], 5
xor ecx, ecx
lea ecx, [ecx]
movzx eax, word [ecx + reloc.ntdll.dll_ZwClose]
mov word [ebp + ecx - reloc.ntdll.dll_ZwClose], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402470
cmp word [ebp - reloc.ntdll.dll_ZwClose], 0
je 0x4026dd
cmp word [ebp - reloc.ntdll.dll_ZwClose], 0
jbe 0x4026dd
mov ecx, 0x419fec
mov dword [ebp - 0x620], 0x504d534d
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4024b5
sub ecx, edx
sar ecx, 1
je 0x4024f2
push 0x419fec
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x4024f2
push 0x419fec
lea eax, [ebp - 0x498]
push 0x10
push eax
call fcn.00404bef
add esp, 0xc
cmp word [ebp - reloc.ntdll.dll_ZwClose], 0
jne 0x402512
push 0x416bbc
lea eax, [ebp - 0x498]
push 0x10
push eax
call fcn.00404bef
add esp, 0xc
cmp word [ebp - reloc.ntdll.dll_ZwClose], 0
jne 0x402567
push 0x416bcc
lea eax, [ebp - 0x478]
push 0x10
push eax
call fcn.00404bef
mov ecx, 0x419fcc
add esp, 0xc
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402540
sub ecx, edx
sar ecx, 1
je 0x402567
push 0x419fcc
lea eax, [ebp - 0x478]
push 0x10
push eax
call fcn.00404bef
add esp, 0xc
mov eax, dword [ebp - 0x458]
test eax, eax
cmove eax, esi
mov dword [ebp - 0x454], 0x1000499
mov dword [ebp - 0x458], eax
mov ecx, 0x80
lea esi, [ebp - 0x620]
lea edi, [ebp - 0x820]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x620]
lea edx, [ebp - 0x41c]
mov eax, dword [ecx]
mov dword [ebp - 0x41c], 0x504d534d
cmp eax, dword [edx]
je 0x4025cd
cmp al, byte [edx]
jne 0x4025d1
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4025d1
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4025d1
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4025d1
xor eax, eax
jmp 0x4025d6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4026dd
lea ecx, [ebp - 0x820]
call fcn.004020c0
test eax, eax
je 0x4026dd
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x478]
call fcn.00402e10
push 0x104
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
xor edx, edx
mov ecx, 0x64
div ecx
lea ecx, [ebp - 0x418]
push edx
lea edx, [ebp - 0x210]
call fcn.00403470
add esp, 4
lea eax, [ebp - 0x824]
push eax
push 3
push 0
push 0x416be8
push closesocket
mov dword [ebp - 0x824], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4026c3
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402680
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x416bdc
push dword [ebp - 0x824]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4026c3
push dword [ebp - 0x824]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0
push 0x416be4
lea eax, [ebp - 0x210]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00404aaa
mov esp, ebp
pop ebp
ret