Function at 0x40b690
Capabilities:
Create process on windows
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [0x41f0bc]
sub esp, 0x24c
push ebx
push ebp
push esi
push edi
push str._inst_d.exe
push eax
xor ebp, ebp
call fcn.00405470
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x40ba27
mov ecx, dword [0x41f35c]
push ebp
push ecx
call fcn.00401140
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x40ba1e
cmp dword [esp + 0x264], ebp
je 0x40b6e9
mov edi, dword [0x41f274]
jmp 0x40b77d
push esi
call fcn.0040b020
add esp, 4
test eax, eax
je 0x40ba27
mov edx, dword [0x41f278]
push edx
push esi
call fcn.00401260
add esp, 8
mov word [esp + 0x14], bp
mov edi, 0x7f7f
lea eax, [esp + 0x14]
push 8
push eax
push esi
call fcn.004011c0
add esp, 0xc
test eax, eax
jne 0x40ba27
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40b73b
cmp word [esp + 0x14], di
jne 0x40b714
push esi
call fcn.00401240
mov edx, dword [esp + 0x1c]
add esp, 4
add eax, edx
cmp word [esp + 0x14], di
je 0x40b76f
push eax
push esi
call fcn.00401260
add esp, 8
cmp word [esp + 0x14], di
jne 0x40b714
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
push esi
call fcn.00401240
mov edi, eax
add esp, 4
add edi, 4
test edi, edi
je 0x40ba27
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 0x40b7c0
mov ebp, dword [esp + 0x10]
push edi
push ebp
push esi
call fcn.004011c0
push edi
push ebp
push ebx
call fcn.00401200
lea edx, [esp + 0x28]
push edx
call fcn.00402200
add esp, 0x1c
push esi
call fcn.004013c0
push ebx
call fcn.004013c0
mov eax, dword [esp + 0x26c]
add esp, 8
or ecx, 0xffffffff
test eax, eax
je 0x40b988
mov eax, dword [0x41f33c]
mov edx, dword [0x41f0bc]
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 [0x41a2b8]
add esp, 0xc
test eax, eax
jne 0x40b829
mov edi, dword [0x41f0bc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, dword [0x41a9d4]
mov dword [edi - 1], ecx
mov edx, dword [0x41f0c0]
mov eax, dword [0x41f0bc]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov edi, 0x41a314
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dl, 0xa5
test ecx, ecx
lea ebp, [esp + 0x54]
jle 0x40b878
mov al, dl
shl al, 7
shr dl, 1
add dl, al
mov al, byte [esi + 0x41a314]
xor al, dl
mov byte [ebp], al
inc ebp
inc esi
cmp esi, ecx
jl 0x40b85e
xor edi, edi
lea ecx, [esp + 0x10]
push edi
push ecx
push edi
push 0xf003f
push edi
push edi
lea edx, [esp + 0x6c]
push edi
push edx
push 0x80000002
mov byte [ebp], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b8be
lea eax, [esp + 0x10]
lea ecx, [esp + 0x54]
push eax
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40ba0e
mov eax, dword [0x41f0b0]
cmp eax, 0x64
jge 0x40b96d
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push str.ICLaunch
lea edx, [esp + 0x28]
push str._s_3.3d
push edx
call ebx
mov eax, dword [0x41f0b0]
add esp, 0x10
inc eax
lea ecx, [esp + 0x158]
mov dword [0x41f0b0], eax
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push edi
push eax
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], 0x104
call esi
test eax, eax
jne 0x40b946
mov eax, dword [0x41f0b0]
cmp eax, 0x64
jl 0x40b8d2
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24c
ret
mov edx, dword [0x41f0bc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24c
ret
mov edi, dword [0x41f0bc]
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [str.__S_]
dec edi
or ecx, 0xffffffff
mov dword [edi], edx
mov al, byte [0x41a9d0]
mov byte [edi + 4], al
mov edi, dword [0x41f35c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [0x41f0bc]
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 [0x41f0bc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [str.___DEL]
dec edi
mov dword [edi], eax
mov cx, word [0x41a9c8]
mov eax, dword [esp + 0x260]
mov word [edi + 4], cx
mov dl, byte [0x41a9ca]
push eax
mov byte [edi + 6], dl
mov ecx, dword [0x41f0bc]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24c
ret
push ebx
call fcn.004013c0
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret