Function at 0x402b10
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 [0x41b038]
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.0040a840
add esp, 0xc
xor edx, edx
mov word [ebp - 0x414], dx
push 0x206
push 0
lea eax, [ebp - 0x412]
push eax
call fcn.0040a840
add esp, 0xc
push 0x200
push 0
lea ecx, [ebp - 0x614]
push ecx
call fcn.0040a840
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x419af4
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00406def
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00403220
mov dword [ebp - 0x664], eax
cmp dword [0x41cfc8], 1
jne 0x402bf1
cmp dword [ebp - 0x664], 0
jne 0x402bf1
xor eax, eax
jmp 0x403203
call fcn.00403860
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], 0x419b0c
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 0x402c40
mov dword [ebp - 0x64c], 0x419b28
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 0x402caa
mov dword [ebp - 0x658], 0x419b44
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 0x402d14
mov dword [ebp - 0x44c], 5
push 0x41cfec
push 0x10
lea ecx, [ebp - 0x48c]
push ecx
call fcn.00406d93
add esp, 0xc
cmp dword [ebp - 0x664], 0
jne 0x402d8e
cmp dword [ebp - 0x66c], 0
je 0x402e04
push 0x41d120
lea edx, [ebp - 0x58e]
push edx
call fcn.00402500
add esp, 8
push 0x41d0a0
lea eax, [ebp - 0x610]
push eax
call fcn.004024e0
add esp, 8
push 0x41d018
lea ecx, [ebp - 0x56e]
push ecx
call fcn.004024e0
add esp, 8
mov dx, word [0x41d098]
mov word [ebp - 0x590], dx
mov ax, word [0x41d010]
mov word [ebp - 0x4ee], ax
mov ecx, dword [0x41d00c]
mov dword [ebp - 0x44c], ecx
cmp dword [0x41d00c], 0
jne 0x402e04
mov dword [ebp - 0x44c], 5
mov dword [ebp - 0x648], 0x419b50
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 0x402e80
cmp word [ebp - 0x652], 0
je 0x402e74
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 0x402e80
add dword [ebp - 0x640], 4
add dword [ebp - 0x648], 4
cmp word [ebp - 0x64e], 0
jne 0x402e1a
mov dword [ebp - 0x670], 0
jmp 0x402e8b
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 0x402f14
mov dword [ebp - 0x44c], 5
mov dword [ebp - 0x65c], 0x419b6c
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 0x402ecc
mov ecx, 2
imul ecx, ecx, 0
movzx edx, word [ebp + ecx - 0x610]
test edx, edx
je 0x402f33
movzx eax, word [ebp - 0x590]
test eax, eax
jg 0x402f3d
jmp 0x4031f3
mov dword [ebp - 0x614], 0x504d534d
mov dword [ebp - 0x62c], 0x41cfec
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 0x402f60
mov ecx, dword [ebp - 0x62c]
sub ecx, dword [ebp - 0x688]
sar ecx, 1
mov dword [ebp - 0x690], ecx
je 0x402fc3
push 0x41cfec
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402fc3
push 0x41cfec
push 0x10
lea edx, [ebp - 0x48c]
push edx
call fcn.00406d93
add esp, 0xc
mov eax, 2
imul eax, eax, 0
movzx ecx, word [ebp + eax - 0x48c]
test ecx, ecx
jne 0x402feb
push 0x419b88
lea edx, [ebp - 0x48c]
push edx
call fcn.00402500
add esp, 8
mov eax, 2
imul eax, eax, 0
movzx ecx, word [ebp + eax - 0x46c]
test ecx, ecx
jne 0x403077
push 0x419b98
lea edx, [ebp - 0x46c]
push edx
call fcn.00402500
add esp, 8
mov dword [ebp - 0x61c], 0x41cfcc
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 0x40302c
mov eax, dword [ebp - 0x61c]
sub eax, dword [ebp - 0x674]
sar eax, 1
mov dword [ebp - 0x680], eax
je 0x403077
push 0x41cfcc
lea ecx, [ebp - 0x46c]
push ecx
call fcn.00402500
add esp, 8
mov edx, dword [0x41bef0]
mov dword [ebp - 0x448], edx
cmp dword [ebp - 0x44c], 0
jne 0x403096
mov dword [ebp - 0x44c], 5
lea eax, [ebp - 0x614]
push eax
call fcn.00402930
add esp, 4
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 0
jne 0x4030be
jmp 0x4031f3
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x46c]
push edx
call fcn.00403bf0
add esp, 8
push 0x104
lea eax, [ebp - 0x414]
push eax
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 eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x414]
push ecx
call fcn.00404580
add esp, 0xc
mov dword [ebp - 0x618], 0
lea edx, [ebp - 0x618]
push edx
push 3
push 0
push 0x419ba8
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4031d9
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x624], eax
mov ecx, dword [ebp - 0x624]
add ecx, 2
mov dword [ebp - 0x684], ecx
mov edx, dword [ebp - 0x624]
mov ax, word [edx]
mov word [ebp - 0x650], ax
add dword [ebp - 0x624], 2
cmp word [ebp - 0x650], 0
jne 0x40316b
mov ecx, dword [ebp - 0x624]
sub ecx, dword [ebp - 0x684]
sar ecx, 1
mov dword [ebp - 0x678], ecx
mov edx, dword [ebp - 0x678]
lea eax, [edx + edx + 2]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 0
push 0x419c14
mov edx, dword [ebp - 0x618]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4031d9
mov eax, dword [ebp - 0x618]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0
push 0x419c1c
lea ecx, [ebp - 0x20c]
push ecx
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.00406b74
mov esp, ebp
pop ebp
ret