Function at 0x40b570
Capabilities:
Create process on windows
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [0x41efd8]
sub esp, 0x148
push ebx
push ebp
push esi
push edi
push str._inst_d.exe
push eax
xor ebx, ebx
call fcn.00405440
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x40b8c6
mov ecx, dword [0x41f27c]
push ebx
push ecx
call fcn.00401140
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x40b8bd
cmp dword [esp + 0x160], ebx
je 0x40b5c9
mov edi, dword [0x41f194]
jmp 0x40b65d
push esi
call fcn.0040af00
add esp, 4
test eax, eax
je 0x40b8c6
mov edx, dword [0x41f198]
push edx
push esi
call fcn.00401260
add esp, 8
mov word [esp + 0x14], bx
mov edi, 0x7f7f
lea eax, [esp + 0x14]
push 8
push eax
push esi
call fcn.004011c0
add esp, 0xc
test eax, eax
jne 0x40b8c6
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40b61b
cmp word [esp + 0x14], di
jne 0x40b5f4
push esi
call fcn.00401240
mov edx, dword [esp + 0x1c]
add esp, 4
add eax, edx
cmp word [esp + 0x14], di
je 0x40b64f
push eax
push esi
call fcn.00401260
add esp, 8
cmp word [esp + 0x14], di
jne 0x40b5f4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x148
ret
push esi
call fcn.00401240
mov edi, eax
add esp, 4
add edi, 4
test edi, edi
je 0x40b8c6
push 0
push esi
call fcn.00401260
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.00402180
add esp, 0x10
test eax, eax
je 0x40b6a0
mov ebx, dword [esp + 0x10]
push edi
push ebx
push esi
call fcn.004011c0
push edi
push ebx
push ebp
call fcn.00401200
lea edx, [esp + 0x28]
push edx
call fcn.00402200
add esp, 0x1c
push esi
call fcn.004013c0
push ebp
call fcn.004013c0
mov eax, dword [esp + 0x168]
add esp, 8
or ecx, 0xffffffff
test eax, eax
je 0x40b827
mov eax, dword [0x41f25c]
mov edx, dword [0x41efd8]
inc eax
mov edi, edx
push eax
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push str.__B_d__DEL
not ecx
dec ecx
add ecx, edx
push ecx
call ebx
mov eax, dword [0x41a268]
xor ebp, ebp
add esp, 0xc
cmp eax, ebp
jne 0x40b70b
mov edi, dword [0x41efd8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, dword [0x41a8fc]
mov dword [edi - 1], ecx
mov edx, dword [0x41efdc]
mov eax, dword [0x41efd8]
mov edi, 0x104
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0x10]
push ebp
push ecx
push ebp
push 0xf003f
push ebp
push ebp
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b764
lea edx, [esp + 0x10]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40b8ad
mov eax, dword [0x41efcc]
cmp eax, 0x64
jge 0x40b80c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push str.ICLaunch
lea eax, [esp + 0x28]
push str._s_3.3d
push eax
call ebx
mov eax, dword [0x41efcc]
add esp, 0x10
inc eax
lea ecx, [esp + 0x1c]
mov dword [0x41efcc], eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ebp
push ecx
push edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], edi
call esi
test eax, eax
jne 0x40b7e5
mov eax, dword [0x41efcc]
cmp eax, 0x64
jl 0x40b778
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x148
ret
mov edx, dword [0x41efd8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 1
push ebp
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x148
ret
mov edi, dword [0x41efd8]
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [str.__S_]
dec edi
mov dword [edi], eax
mov cl, byte [0x41a8f8]
xor eax, eax
mov byte [edi + 4], cl
mov edi, dword [0x41f27c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [0x41efd8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x41efd8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [str.___DEL]
dec edi
mov dword [edi], eax
mov cx, word [0x41a8f0]
mov eax, dword [esp + 0x15c]
mov word [edi + 4], cx
mov dl, byte [0x41a8f2]
push eax
mov byte [edi + 6], dl
mov ecx, dword [0x41efd8]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x148
ret
push ebp
call fcn.004013c0
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x148
ret