Function at 0x42b307
Capabilities:
Persist via windows service
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3890]
mov eax, 0x3890
call fcn.00439e90
push 0xffffffffffffffff
push 0x466490
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x498b28]
xor eax, ebp
mov dword [ebp + 0x388c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp]
call fcn.0040d9b1
mov edi, reloc.WS2_32.dll_bind
lea ecx, [ebp]
mov dword [ebp + 0x414], edi
call fcn.0040c026
xor esi, esi
cmp dword [ebp + 0x2a04], esi
jne 0x42b37e
push esi
push str.EnableRemoteWakeup:_m_dwEnableRemoteWakeup__d_n
call fcn.0041b266
pop ecx
pop ecx
jmp 0x42b72b
lea eax, [ebp + 0x2a08]
push eax
lea eax, [ebp + 0x3274]
push eax
mov word [ebp + 0x3274], si
call fcn.0043ad55
lea eax, [ebp + 0x3274]
push eax
push str.EnableRemoteWakeup:_szPidVidList__s_n
call fcn.0041b266
lea eax, [ebp + 0x3274]
push eax
call fcn.0043ada3
add esp, 0x14
test eax, eax
je 0x42b72b
lea eax, [ebp - 0x30]
push eax
push 0x20007
push esi
push str.SYSTEMCurrentControlSetServicesBthportParameters
push edi
call dword [0x46700c]
test eax, eax
jne 0x42b433
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
mov ebx, str.SystemRemoteWakeSupported
push ebx
push dword [ebp - 0x30]
mov dword [ebp - 0x14], esi
call dword [0x467040]
test eax, eax
jne 0x42b409
push dword [ebp - 0x14]
push str.EnableRemoteWakeup:_RegQueryValueEx_SystemRemoteWakeSupported_value___d_n
call fcn.0041b266
pop ecx
pop ecx
cmp dword [ebp - 0x14], esi
jne 0x42b428
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push esi
push ebx
push dword [ebp - 0x30]
mov dword [ebp - 0x14], 1
call dword [0x46703c]
push dword [ebp - 0x30]
call dword [0x467004]
jmp 0x42b43e
push str.EnableRemoteWakeup:_Reg_open_failed_HKLMSystemCCSServicesBthportParameters__n
call fcn.0041b266
pop ecx
mov ebx, dword [0x46700c]
lea eax, [ebp - 0x1c]
push eax
push 0x2000e
push esi
push str.SYSTEMCurrentControlSetEnumUSB
push edi
call ebx
test eax, eax
je 0x42b46c
push str.EnableRemoteWakeup:_Reg_open_failed_SYSTEMCurrentControlSetEnumUSB__n
call fcn.0041b266
pop ecx
xor eax, eax
jmp 0x42b72e
mov edi, dword [0x467044]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x3684]
push eax
mov dword [ebp - 0x20], esi
push esi
jmp 0x42b6fc
lea eax, [ebp + 0x3684]
push eax
push str.EnableRemoteWakeup:_found_VID_PID__s__n
call fcn.0041b266
lea eax, [ebp + 0x3684]
push eax
lea eax, [ebp + 0x3274]
push eax
call fcn.0043bc55
add esp, 0x10
test eax, eax
je 0x42b6e7
push str.EnableRemoteWakeup:_matches_PID_VID_in_list_n
call fcn.0041b266
pop ecx
lea eax, [ebp - 0x24]
push eax
push 0x2000e
push esi
lea eax, [ebp + 0x3684]
push eax
push dword [ebp - 0x1c]
call ebx
test eax, eax
jne 0x42b6d4
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x347c]
push eax
mov dword [ebp - 0x14], esi
push esi
jmp 0x42b6a3
lea eax, [ebp - 0x34]
push eax
push 0x2000e
push esi
lea eax, [ebp + 0x347c]
push eax
push dword [ebp - 0x24]
call ebx
test eax, eax
jne 0x42b67b
lea eax, [ebp - 0x18]
push eax
push 0x2000f
push esi
push str.Device_Parameters
push dword [ebp - 0x34]
call ebx
test eax, eax
jne 0x42b659
mov edi, dword [0x467040]
push 4
pop ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push str.RemoteWakeEnabled
push dword [ebp - 0x18]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x42b59f
push dword [ebp - 0x10]
push str.EnableRemoteWakeup:_RegQueryValueEx_RemoteWakeEnabled_value___d_n
call fcn.0041b266
cmp dword [ebp - 0x10], esi
pop ecx
pop ecx
je 0x42b59f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push str.DeviceRemoteWakeSupported
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x42b59f
push dword [ebp - 0x10]
push str.EnableRemoteWakeup:_RegQueryValueEx_DeviceRemoteWakeSupported_value___d_n
call fcn.0041b266
cmp dword [ebp - 0x10], esi
pop ecx
pop ecx
jne 0x42b664
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push str.RemoteWakeEnabled
push dword [ebp - 0x18]
xor edi, edi
inc edi
mov dword [ebp - 0x10], edi
call dword [0x46703c]
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push str.DeviceRemoteWakeSupported
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
call dword [0x46703c]
push str.EnableRemoteWakeup:_RemoteWakeEnabled__DeviceRemoteWakeSupported__1_set__n
call fcn.0041b266
pop ecx
push dword [ebp - 0x18]
call dword [0x467004]
push 0x46ff1c
call dword [0x46712c]
mov edi, eax
cmp edi, esi
je 0x42b664
push str.BT2K_RefreshDevice
push edi
call dword [0x467118]
mov ebx, eax
cmp ebx, esi
je 0x42b650
lea eax, [ebp + 0x3684]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0042af62
push dword [eax]
mov dword [ebp - 4], esi
call ebx
or dword [ebp - 4], 0xffffffff
mov ebx, eax
lea eax, [ebp - 0xb8]
cmp dword [ebp - 0xbc], eax
pop ecx
je 0x42b643
push dword [ebp - 0xbc]
call fcn.00439c78
pop ecx
push ebx
push str.EnableRemoteWakeup:_BT2K_RefreshDevice__d_n
call fcn.0041b266
pop ecx
pop ecx
push edi
call dword [0x467128]
jmp 0x42b664
push str.EnableRemoteWakeup:_RegOpenKeyEx_false_Device_Parameters__n
call fcn.0041b266
pop ecx
push dword [ebp - 0x34]
call dword [0x467004]
mov edi, dword [0x467044]
mov ebx, dword [0x46700c]
jmp 0x42b68e
lea eax, [ebp + 0x347c]
push eax
push str.EnableRemoteWakeup:_RegOpenKeyEx_false__s_n
call fcn.0041b266
pop ecx
pop ecx
inc dword [ebp - 0x14]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x347c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x24]
mov word [ebp + 0x347c], si
mov dword [ebp - 0x2c], 0x104
call edi
test eax, eax
je 0x42b4fa
push str.EnableRemoteWakeup:_RegEnumKeyEx_szKeyNameDevInstance_false_n
call fcn.0041b266
pop ecx
push dword [ebp - 0x24]
call dword [0x467004]
jmp 0x42b6e7
lea eax, [ebp + 0x3684]
push eax
push str.EnableRemoteWakeup:_RegOpenKeyEx_false__s_n
call fcn.0041b266
pop ecx
pop ecx
inc dword [ebp - 0x20]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x3684]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
mov word [ebp + 0x3684], si
mov dword [ebp - 0x28], 0x104
call edi
test eax, eax
je 0x42b48a
push str.EnableRemoteWakeup:_RegEnumKeyEx_szKeyNamePidVid_false_n
call fcn.0041b266
pop ecx
push dword [ebp - 0x1c]
call dword [0x467004]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x388c]
xor ecx, ebp
call fcn.004369c2
add ebp, 0x3890
leave
ret