Function at 0x1065373
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 [0x107fa78]
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
cmp eax, 0xffffffff
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x420], edi
je 0x10656df
push esi
mov esi, dword [ebp + 0x10]
cmp esi, edi
mov eax, 0x100d424
je 0x10653c1
mov eax, 0x100d44c
cmp ecx, edi
jne 0x10653ca
mov ecx, 0x100d310
push edx
push eax
push ecx
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x42c]
push eax
push edi
call fcn.0106374b
test eax, eax
je 0x10656cc
neg esi
sbb esi, esi
add esi, 0x26d9
push esi
call fcn.0105db8a
lea eax, [ebp - 0x448]
push eax
call fcn.01062d78
cmp eax, edi
mov dword [ebp - 0x434], eax
je 0x10656cc
push 0x1007e00
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x10656c0
push ebx
push 0x3a
push esi
mov dword [ebp - 0x428], edi
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, edi
pop ecx
pop ecx
je 0x1065453
mov word [eax], di
add eax, 2
push eax
call fcn.01056ec2
mov dword [ebp - 0x428], eax
push esi
push 0x100e0c4
push 4
call fcn.0105e5ad
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
push edi
push esi
push dword [ebp - 0x42c]
call fcn.0105e74d
test eax, eax
je 0x10656a7
push esi
push dword [ebp - 0x42c]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x424], ebx
call fcn.0105e614
push eax
mov dword [ebp - 0x430], eax
call fcn.0105d977
cmp dword [ebp - 0x430], ebx
jb 0x10656a7
push dword [ebp - 0x424]
call fcn.0105db14
inc dword [ebp - 0x424]
lea eax, [ebp - 0x448]
push eax
call fcn.01062d78
mov ebx, eax
cmp ebx, edi
je 0x1065683
cmp dword [ebp + 0x14], edi
jne 0x106551d
mov eax, dword [ebp - 0x428]
and al, 1
neg al
mov esi, 0xffff
sbb eax, eax
and eax, 0xffff0001
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.0105ab51
test eax, eax
jne 0x106552e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1065528
and eax, esi
or eax, 0x80070000
jmp 0x1065528
push ebx
push 0x10040a0
call fcn.0105aa51
mov dword [ebp - 0x418], eax
push 0x100e0b8
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x1065643
xor eax, eax
cmp dword [ebp - 0x418], 0x80070001
mov dword [ebp - 0x41c], edi
sete al
mov esi, eax
cmp esi, edi
jne 0x10655c3
lea eax, [ebp - 0x41c]
push eax
push 1
push edi
push 0x10026d8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1065631
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push edi
push 0x100e094
push dword [ebp - 0x41c]
mov dword [ebp - 0x438], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10655b3
xor esi, esi
inc esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x1065631
push edi
lea eax, [ebp - 0x41c]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1001b08
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x418], 0xd2af9
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
jne 0x106561f
push 4
lea eax, [ebp - 0x418]
push eax
push 4
push edi
push 0x100e07c
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 0x100e03c
jmp 0x1065653
push ebx
push 0x100e01c
push 4
call fcn.0105e5ad
add esp, 0xc
jmp 0x1065676
mov eax, dword [ebp - 0x418]
cmp eax, edi
jl 0x106565f
push ebx
push 0x100e01c
push 4
call fcn.0105e5ad
add esp, 0xc
jmp 0x106567c
push eax
push ebx
push 0x100dfe4
push 2
mov dword [ebp - 0x420], eax
call fcn.0105e5ad
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 0x10656a7
mov eax, dword [ebp - 0x430]
cmp dword [ebp - 0x424], eax
jbe 0x10654ac
push 0x1007e00
push edi
call dword [sym.imp.msvcrt.dll_wcstok]
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
jne 0x106542c
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 0x10656df
cmp dword [ebp - 0x420], edi
jne 0x10656e5
mov dword [ebp - 0x420], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x420]
xor ecx, ebp
pop edi
call fcn.01047417
leave
ret 0x10