Function at 0x4011d6
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
jmp 0x419490
mov eax, 0x168c
call fcn.0041be90
mov eax, dword [0x44e1b4]
xor eax, esp
mov dword [esp + 0x1688], eax
xor eax, eax
push ebp
push edi
xor ebp, ebp
push 0x200
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov word [esp + 0x48], ax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov word [esp + 0x34], ax
lea eax, [esp + 0x45c]
push ebp
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x104
call fcn.0041be10
push 0x410
lea ecx, [esp + 0x1290]
push ebp
push ecx
call fcn.0041be10
push 0x410
lea edx, [esp + 0xe8c]
push ebp
push edx
call fcn.0041be10
push 0x200
lea eax, [esp + 0xc98]
push ebp
push eax
call fcn.0041be10
push 0x208
lea ecx, [esp + 0x7c]
push ebp
push ecx
call fcn.0041be10
push 0x208
lea edx, [esp + 0x290]
push ebp
push edx
call fcn.0041be10
add esp, 0x48
push 0x208
lea eax, [esp + 0xa6c]
push ebp
push eax
call fcn.0041be10
push 0x208
lea ecx, [esp + 0x870]
push ebp
push ecx
call fcn.0041be10
push 0x208
lea edx, [esp + 0x674]
push ebp
push edx
call fcn.0041be10
add esp, 0x24
push 0x104
lea eax, [esp + 0xa6c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebp
push ebp
push ebp
push ebp
push 0x104
lea ecx, [esp + 0x874]
push ecx
push 0x104
lea edx, [esp + 0x674]
push edx
lea eax, [esp + 0xa88]
push eax
call fcn.0041c92d
lea ecx, [esp + 0x67c]
push ecx
lea edx, [esp + 0x278]
push 0x104
push edx
call fcn.0041c22f
lea eax, [esp + 0x890]
push eax
lea ecx, [esp + 0x284]
push 0x104
push ecx
call fcn.0041c1b5
push str.setup.ini
lea edx, [esp + 0x290]
push 0x104
push edx
call fcn.0041c1b5
add esp, 0x48
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x254]
push ecx
call fcn.004010e1
mov edi, eax
add esp, 8
cmp edi, ebp
mov dword [esp + 0xc], edi
jne 0x419668
pop edi
lea eax, [ebp + 1]
pop ebp
mov ecx, dword [esp + 0x1688]
xor ecx, esp
call fcn.0041bdf4
add esp, 0x168c
ret
cmp dword [esp + 8], ebp
push ebx
push esi
mov esi, edi
jbe 0x4198cb
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea esp, [esp]
cmp word [esi], 0x44
jne 0x4198b8
push 8
push esi
lea edx, [esp + 0x44]
push 9
push edx
call fcn.0041c29b
add esp, 0x10
lea eax, [esp + 0x3c]
push eax
push str.DSCInfo
mov word [esp + 0x54], 0
call ebx
test eax, eax
jne 0x4198b8
push 0x200
lea ecx, [esp + 0x464]
push ecx
add esi, 0x10
push esi
call fcn.004011fe
push 0x410
lea edx, [esp + 0x1298]
push edx
push eax
call fcn.004011fe
mov esi, eax
lea eax, [esp + 0x12a0]
push eax
call fcn.0040115e
push 0x410
lea ecx, [esp + 0xe98]
push ecx
push esi
call fcn.004011fe
lea edx, [esp + 0xea0]
push edx
mov esi, eax
call fcn.0040115e
push 0x200
lea eax, [esp + 0xca8]
push eax
push esi
call fcn.004011fe
mov esi, eax
sub eax, edi
mov ecx, eax
sar ecx, 1
add esp, 0x38
cmp ecx, dword [esp + 0x10]
jae 0x41979f
mov edi, eax
cmp word [esi], 0x49
jne 0x41978b
push 8
push esi
lea edx, [esp + 0x30]
push 9
push edx
call fcn.0041c29b
add esp, 0x10
push str.INST_MAX
lea eax, [esp + 0x2c]
push eax
call ebx
test eax, eax
je 0x419871
push str.INST_MIN
lea ecx, [esp + 0x2c]
push ecx
call ebx
test eax, eax
je 0x41988a
push 0x434c40
lea edx, [esp + 0x2c]
push edx
call ebx
test eax, eax
je 0x4198a3
add edi, 2
mov eax, edi
sar eax, 1
add esi, 2
cmp eax, dword [esp + 0x10]
jb 0x419737
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x18], 0
jne 0x4197ab
mov ebp, 1
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
push 0x435660
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4198f2
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push str.Common_Desktop
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41990d
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x435bfc
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x460]
push edx
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x436500
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebp
lea edx, [esp + 0xc7c]
push edx
lea eax, [esp + 0xe80]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x1298]
push edx
call fcn.00401037
add esp, 0x14
test eax, eax
je 0x4198bb
lea eax, [esp + 0x50]
push 0
push eax
call fcn.0040114a
add esp, 8
jmp 0x4198bb
mov edi, dword [esp + 0x14]
add esi, 0x10
mov ebp, 3
mov dword [esp + 0x18], 1
jmp 0x4197ab
mov edi, dword [esp + 0x14]
add esi, 0x10
mov ebp, 7
mov dword [esp + 0x18], 1
jmp 0x4197ab
mov edi, dword [esp + 0x14]
mov ebp, 1
add esi, 0x10
mov dword [esp + 0x18], ebp
jmp 0x4197ab
add esi, 2
mov ecx, esi
sub ecx, edi
sar ecx, 1
cmp ecx, dword [esp + 0x10]
jb 0x419680
push edi
call fcn.004012bc
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x1698]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.0041bdf4
add esp, 0x168c
ret
push 0
push str.Registry_access_error
push 0
call fcn.004010be
push edi
call fcn.004012bc
add esp, 0x10
xor eax, eax
jmp 0x4198d9
push 0
push str.Registry_access_error
push 0
call fcn.004010be
push edi
call fcn.004012bc
mov edx, dword [esp + 0x2c]
add esp, 0x10
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4198d9