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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor edx, edx
push edi
inc edx
xor edi, edi
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x420], edi
cmp eax, 0xffffffff
je 0x1062a9c
push esi
mov esi, dword [ebp + 0x10]
mov eax, 0x100ca14
cmp esi, edi
je 0x1062779
mov eax, 0x100ca3c
cmp ecx, edi
jne 0x1062782
mov ecx, 0x100c900
push edx
push eax
push ecx
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x42c]
push eax
push edi
call fcn.01060c0b
test eax, eax
je 0x1062a89
neg esi
sbb esi, esi
add esi, 0x26d9
push esi
call fcn.010552a2
lea eax, [ebp - 0x448]
push eax
call fcn.0106058d
mov dword [ebp - 0x434], eax
cmp eax, edi
je 0x1062a89
push 0x1007d6c
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x1062a7d
push ebx
push 0x3a
push esi
mov dword [ebp - 0x428], edi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
cmp eax, edi
je 0x106280d
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.0105616a
mov dword [ebp - 0x428], eax
push esi
push 0x100d604
push 4
call fcn.01055c8a
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
push edi
push esi
push dword [ebp - 0x42c]
call fcn.0105c6af
test eax, eax
je 0x1062a64
push esi
push dword [ebp - 0x42c]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x424], ebx
call fcn.0105c576
push eax
mov dword [ebp - 0x430], eax
call fcn.0105508f
cmp dword [ebp - 0x430], ebx
jb 0x1062a64
push dword [ebp - 0x424]
call fcn.0105522c
inc dword [ebp - 0x424]
lea eax, [ebp - 0x448]
push eax
call fcn.0106058d
mov ebx, eax
cmp ebx, edi
je 0x1062a40
cmp dword [ebp + 0x14], edi
jne 0x10628da
mov eax, dword [ebp - 0x428]
and al, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffff0001
mov esi, 0xffff
add eax, esi
push eax
mov eax, dword [ebp - 0x428]
shr eax, 1
not eax
and eax, 1
push eax
push ebx
push edi
call fcn.0105983a
test eax, eax
jne 0x10628eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10628e5
and eax, esi
or eax, 0x80070000
jmp 0x10628e5
push ebx
push 0x1003d0c
call fcn.0105973a
mov dword [ebp - 0x418], eax
push 0x100d5f8
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x1062a00
xor eax, eax
cmp dword [ebp - 0x418], 0x80070001
mov dword [ebp - 0x41c], edi
sete al
mov esi, eax
cmp esi, edi
jne 0x1062980
lea eax, [ebp - 0x41c]
push eax
push 1
push edi
push 0x1002568
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10629ee
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push edi
push 0x100d5d4
push dword [ebp - 0x41c]
mov dword [ebp - 0x438], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1062970
xor esi, esi
inc esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x10629ee
push edi
lea eax, [ebp - 0x41c]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1001c88
push 0x80000002
mov dword [ebp - 0x418], 0xd2af9
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
jne 0x10629dc
push 4
lea eax, [ebp - 0x418]
push eax
push 4
push edi
push 0x100d5bc
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x41c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov dword [ebp - 0x418], 0xd2af8
push 0x100d57c
jmp 0x1062a10
push ebx
push 0x100d55c
push 4
call fcn.01055c8a
add esp, 0xc
jmp 0x1062a33
mov eax, dword [ebp - 0x418]
cmp eax, edi
jl 0x1062a1c
push ebx
push 0x100d55c
push 4
call fcn.01055c8a
add esp, 0xc
jmp 0x1062a39
push eax
push ebx
push 0x100d524
push 2
mov dword [ebp - 0x420], eax
call fcn.01055c8a
add esp, 0x10
mov dword [ebp - 0x418], edi
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
lea eax, [ebp - 0x448]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x1062a64
mov eax, dword [ebp - 0x430]
cmp dword [ebp - 0x424], eax
jbe 0x1062866
push 0x1007d6c
push edi
call dword [sym.imp.msvcrt.dll_wcstok]
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
jne 0x10627e4
pop ebx
push dword [ebp - 0x434]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov edx, dword [ebp - 0x418]
cmp edx, edi
pop esi
jl 0x1062a9c
cmp dword [ebp - 0x420], edi
jne 0x1062aa2
mov dword [ebp - 0x420], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x420]
xor ecx, ebp
pop edi
call fcn.01047480
leave
ret 0x10