Function at 0x106270d
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 0x1062a7e
push esi
mov esi, dword [ebp + 0x10]
mov eax, 0x100ca14
cmp esi, edi
je 0x106275b
mov eax, 0x100ca3c
cmp ecx, edi
jne 0x1062764
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.01060bed
test eax, eax
je 0x1062a6b
neg esi
sbb esi, esi
add esi, 0x26d9
push esi
call fcn.01055281
lea eax, [ebp - 0x448]
push eax
call fcn.0106056f
mov dword [ebp - 0x434], eax
cmp eax, edi
je 0x1062a6b
push 0x1007d6c
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x1062a5f
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 0x10627ef
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.01056149
mov dword [ebp - 0x428], eax
push esi
push 0x100d604
push 4
call fcn.01055c69
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
push edi
push esi
push dword [ebp - 0x42c]
call fcn.0105c68e
test eax, eax
je 0x1062a46
push esi
push dword [ebp - 0x42c]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x424], ebx
call fcn.0105c555
push eax
mov dword [ebp - 0x430], eax
call fcn.0105506e
cmp dword [ebp - 0x430], ebx
jb 0x1062a46
push dword [ebp - 0x424]
call fcn.0105520b
inc dword [ebp - 0x424]
lea eax, [ebp - 0x448]
push eax
call fcn.0106056f
mov ebx, eax
cmp ebx, edi
je 0x1062a22
cmp dword [ebp + 0x14], edi
jne 0x10628bc
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.01059819
test eax, eax
jne 0x10628cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10628c7
and eax, esi
or eax, 0x80070000
jmp 0x10628c7
push ebx
push 0x1003d0c
call fcn.01059719
mov dword [ebp - 0x418], eax
push 0x100d5f8
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x10629e2
xor eax, eax
cmp dword [ebp - 0x418], 0x80070001
mov dword [ebp - 0x41c], edi
sete al
mov esi, eax
cmp esi, edi
jne 0x1062962
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 0x10629d0
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 0x1062952
xor esi, esi
inc esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x10629d0
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 0x10629be
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 0x10629f2
push ebx
push 0x100d55c
push 4
call fcn.01055c69
add esp, 0xc
jmp 0x1062a15
mov eax, dword [ebp - 0x418]
cmp eax, edi
jl 0x10629fe
push ebx
push 0x100d55c
push 4
call fcn.01055c69
add esp, 0xc
jmp 0x1062a1b
push eax
push ebx
push 0x100d524
push 2
mov dword [ebp - 0x420], eax
call fcn.01055c69
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 0x1062a46
mov eax, dword [ebp - 0x430]
cmp dword [ebp - 0x424], eax
jbe 0x1062848
push 0x1007d6c
push edi
call dword [sym.imp.msvcrt.dll_wcstok]
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
jne 0x10627c6
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 0x1062a7e
cmp dword [ebp - 0x420], edi
jne 0x1062a84
mov dword [ebp - 0x420], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x420]
xor ecx, ebp
pop edi
call fcn.01047464
leave
ret 0x10