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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a0
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x664], 0
mov dword [ebp - 0x66c], 0
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.004096e0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x414], dx
push 0x206
push 0
lea eax, [ebp - 0x412]
push eax
call fcn.004096e0
add esp, 0xc
push 0x200
push 0
lea ecx, [ebp - 0x614]
push ecx
call fcn.004096e0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x418af8
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00405c95
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00403140
mov dword [ebp - 0x664], eax
cmp dword [0x41bfc8], 1
jne 0x402b21
cmp dword [ebp - 0x664], 0
jne 0x402b21
xor eax, eax
jmp 0x40312c
call fcn.00403770
mov dword [ebp - 0x66c], eax
mov dword [ebp - 0x614], 0x504d534d
mov edx, 0x51
mov word [ebp - 0x590], dx
mov eax, 0x2b8e
mov word [ebp - 0x4ee], ax
mov dword [ebp - 0x660], 0x418b10
lea ecx, [ebp - 0x56e]
mov dword [ebp - 0x634], ecx
mov edx, dword [ebp - 0x634]
mov dword [ebp - 0x69c], edx
mov eax, dword [ebp - 0x660]
mov cx, word [eax]
mov word [ebp - 0x620], cx
mov edx, dword [ebp - 0x634]
mov ax, word [ebp - 0x620]
mov word [edx], ax
mov ecx, dword [ebp - 0x660]
add ecx, 2
mov dword [ebp - 0x660], ecx
mov edx, dword [ebp - 0x634]
add edx, 2
mov dword [ebp - 0x634], edx
cmp word [ebp - 0x620], 0
jne 0x402b70
mov dword [ebp - 0x64c], 0x418b2c
lea eax, [ebp - 0x610]
mov dword [ebp - 0x630], eax
mov ecx, dword [ebp - 0x630]
mov dword [ebp - 0x694], ecx
mov edx, dword [ebp - 0x64c]
mov ax, word [edx]
mov word [ebp - 0x628], ax
mov ecx, dword [ebp - 0x630]
mov dx, word [ebp - 0x628]
mov word [ecx], dx
mov eax, dword [ebp - 0x64c]
add eax, 2
mov dword [ebp - 0x64c], eax
mov ecx, dword [ebp - 0x630]
add ecx, 2
mov dword [ebp - 0x630], ecx
cmp word [ebp - 0x628], 0
jne 0x402bda
mov dword [ebp - 0x658], 0x418b48
lea edx, [ebp - 0x58e]
mov dword [ebp - 0x638], edx
mov eax, dword [ebp - 0x638]
mov dword [ebp - 0x698], eax
mov ecx, dword [ebp - 0x658]
mov dx, word [ecx]
mov word [ebp - 0x61e], dx
mov eax, dword [ebp - 0x638]
mov cx, word [ebp - 0x61e]
mov word [eax], cx
mov edx, dword [ebp - 0x658]
add edx, 2
mov dword [ebp - 0x658], edx
mov eax, dword [ebp - 0x638]
add eax, 2
mov dword [ebp - 0x638], eax
cmp word [ebp - 0x61e], 0
jne 0x402c44
mov dword [ebp - 0x44c], 5
push 0x41bfec
push 0x10
lea ecx, [ebp - 0x48c]
push ecx
call fcn.00405c39
add esp, 0xc
cmp dword [ebp - 0x664], 0
jne 0x402cbe
cmp dword [ebp - 0x66c], 0
je 0x402d34
push 0x41c120
lea edx, [ebp - 0x58e]
push edx
call fcn.00402430
add esp, 8
push 0x41c0a0
lea eax, [ebp - 0x610]
push eax
call fcn.00402410
add esp, 8
push 0x41c018
lea ecx, [ebp - 0x56e]
push ecx
call fcn.00402410
add esp, 8
mov dx, word [0x41c098]
mov word [ebp - 0x590], dx
mov ax, word [0x41c010]
mov word [ebp - 0x4ee], ax
mov ecx, dword [0x41c00c]
mov dword [ebp - 0x44c], ecx
cmp dword [0x41c00c], 0
jne 0x402d34
mov dword [ebp - 0x44c], 5
mov dword [ebp - 0x648], 0x418b54
lea edx, [ebp - 0x56e]
mov dword [ebp - 0x640], edx
mov eax, dword [ebp - 0x640]
mov cx, word [eax]
mov word [ebp - 0x652], cx
mov edx, dword [ebp - 0x648]
cmp cx, word [edx]
jne 0x402db0
cmp word [ebp - 0x652], 0
je 0x402da4
mov eax, dword [ebp - 0x640]
mov cx, word [eax + 2]
mov word [ebp - 0x64e], cx
mov edx, dword [ebp - 0x648]
cmp cx, word [edx + 2]
jne 0x402db0
add dword [ebp - 0x640], 4
add dword [ebp - 0x648], 4
cmp word [ebp - 0x64e], 0
jne 0x402d4a
mov dword [ebp - 0x670], 0
jmp 0x402dbb
sbb eax, eax
or eax, 1
mov dword [ebp - 0x670], eax
mov ecx, dword [ebp - 0x670]
mov dword [ebp - 0x67c], ecx
cmp dword [ebp - 0x67c], 0
je 0x402e44
mov dword [ebp - 0x44c], 5
mov dword [ebp - 0x65c], 0x418b70
lea edx, [ebp - 0x56e]
mov dword [ebp - 0x644], edx
mov eax, dword [ebp - 0x644]
mov dword [ebp - 0x6a0], eax
mov ecx, dword [ebp - 0x65c]
mov dx, word [ecx]
mov word [ebp - 0x626], dx
mov eax, dword [ebp - 0x644]
mov cx, word [ebp - 0x626]
mov word [eax], cx
mov edx, dword [ebp - 0x65c]
add edx, 2
mov dword [ebp - 0x65c], edx
mov eax, dword [ebp - 0x644]
add eax, 2
mov dword [ebp - 0x644], eax
cmp word [ebp - 0x626], 0
jne 0x402dfc
mov ecx, 2
imul ecx, ecx, 0
movzx edx, word [ebp + ecx - 0x610]
test edx, edx
je 0x402e63
movzx eax, word [ebp - 0x590]
test eax, eax
jg 0x402e6d
jmp 0x40311c
mov dword [ebp - 0x614], 0x504d534d
mov dword [ebp - 0x62c], 0x41bfec
mov ecx, dword [ebp - 0x62c]
add ecx, 2
mov dword [ebp - 0x688], ecx
mov edx, dword [ebp - 0x62c]
mov ax, word [edx]
mov word [ebp - 0x666], ax
add dword [ebp - 0x62c], 2
cmp word [ebp - 0x666], 0
jne 0x402e90
mov ecx, dword [ebp - 0x62c]
sub ecx, dword [ebp - 0x688]
sar ecx, 1
mov dword [ebp - 0x690], ecx
je 0x402ef3
push 0x41bfec
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402ef3
push 0x41bfec
push 0x10
lea edx, [ebp - 0x48c]
push edx
call fcn.00405c39
add esp, 0xc
mov eax, 2
imul eax, eax, 0
movzx ecx, word [ebp + eax - 0x48c]
test ecx, ecx
jne 0x402f1b
push 0x418b8c
lea edx, [ebp - 0x48c]
push edx
call fcn.00402430
add esp, 8
mov eax, 2
imul eax, eax, 0
movzx ecx, word [ebp + eax - 0x46c]
test ecx, ecx
jne 0x402fa7
push 0x418b9c
lea edx, [ebp - 0x46c]
push edx
call fcn.00402430
add esp, 8
mov dword [ebp - 0x61c], 0x41bfcc
mov eax, dword [ebp - 0x61c]
add eax, 2
mov dword [ebp - 0x674], eax
mov ecx, dword [ebp - 0x61c]
mov dx, word [ecx]
mov word [ebp - 0x654], dx
add dword [ebp - 0x61c], 2
cmp word [ebp - 0x654], 0
jne 0x402f5c
mov eax, dword [ebp - 0x61c]
sub eax, dword [ebp - 0x674]
sar eax, 1
mov dword [ebp - 0x680], eax
je 0x402fa7
push 0x41bfcc
lea ecx, [ebp - 0x46c]
push ecx
call fcn.00402430
add esp, 8
mov edx, dword [0x41aef0]
mov dword [ebp - 0x448], edx
cmp dword [ebp - 0x44c], 0
jne 0x402fc6
mov dword [ebp - 0x44c], 5
lea eax, [ebp - 0x614]
push eax
call fcn.00402860
add esp, 4
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 0
jne 0x402fee
jmp 0x40311c
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x46c]
call fcn.00403a70
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
xor edx, edx
mov ecx, 0x64
div ecx
mov dword [ebp - 0x68c], edx
mov edx, dword [ebp - 0x68c]
push edx
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x414]
call fcn.004041b0
add esp, 4
mov dword [ebp - 0x618], 0
lea eax, [ebp - 0x618]
push eax
push 3
push 0
push 0x418bb8
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403102
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x624], ecx
mov edx, dword [ebp - 0x624]
add edx, 2
mov dword [ebp - 0x684], edx
mov eax, dword [ebp - 0x624]
mov cx, word [eax]
mov word [ebp - 0x650], cx
add dword [ebp - 0x624], 2
cmp word [ebp - 0x650], 0
jne 0x403094
mov edx, dword [ebp - 0x624]
sub edx, dword [ebp - 0x684]
sar edx, 1
mov dword [ebp - 0x678], edx
mov eax, dword [ebp - 0x678]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 1
push 0
push 0x418bac
mov eax, dword [ebp - 0x618]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x403102
mov ecx, dword [ebp - 0x618]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0
push 0x418bb4
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x63c], 1
mov eax, dword [ebp - 0x63c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a1a
mov esp, ebp
pop ebp
ret