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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e4
mov eax, dword [0xd08954]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and eax, 1
mov dword [ebp - 0x4b8], ecx
mov dword [ebp - 0x4cc], eax
neg eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
sbb eax, eax
mov dword [ebp - 0x4bc], esi
lea edx, [ebp - 0x4c4]
mov dword [ebp - 0x4e0], edi
push edx
and eax, 0x10006
add eax, 0x20019
push eax
push 0
push esi
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0xb8dbc0
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret 0x10
push ebx
lea eax, [ebp - 0x4d0]
xor ebx, ebx
push eax
mov eax, 0xb26b20
push eax
push eax
push edi
call dword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_QueryService]
test dword [0xd0a5c0], 0x4000
je 0xb8dbef
push esi
mov edx, 0xb269b0
call fcn.00b90dd1
xor eax, eax
lea ecx, [ebp - 0x4d4]
mov dword [ebp - 0x4c0], eax
push ecx
lea ecx, [ebp - 0x4b4]
mov dword [ebp - 0x4d8], 0x50
push ecx
lea ecx, [ebp - 0x4c8]
mov dword [ebp - 0x4d4], 0x208
push ecx
push 0
lea ecx, [ebp - 0x4d8]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
push eax
push dword [ebp - 0x4c4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
mov edi, eax
cmp edi, 0xea
je 0xb8dd25
test edi, edi
jne 0xb8dd43
mov eax, dword [ebp - 0x4c8]
cmp eax, 1
jne 0xb8de89
mov ecx, dword [ebp - 0x4d0]
test ecx, ecx
je 0xb8dc98
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0xa4]
push eax
push ecx
cmp esi, fcn.00b8e250
jne 0xbd4894
call fcn.00b8e250
test eax, eax
je 0xb8dd25
mov eax, dword [ebp - 0x4c8]
mov edi, 0x104
cmp eax, 2
je 0xb8de97
push 0x43
call dword [sym.imp.api_ms_win_ntuser_sysparams_l1_1_0.dll_GetSystemMetrics]
test eax, eax
jne 0xbd48a3
push 0x618
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0xb8dd25
push dword [ebp - 0x4bc]
mov edx, edi
mov ecx, esi
call fcn.00b7db60
test eax, eax
js 0xb8dd25
lea eax, [ebp - 0xa4]
mov edx, edi
push eax
lea ecx, [esi + 0x208]
call fcn.00b7db60
test eax, eax
js 0xb8dd25
lea eax, [ebp - 0x4b4]
mov edx, edi
push eax
lea ecx, [esi + 0x410]
call fcn.00b7db60
test eax, eax
js 0xb8dd25
test ebx, ebx
je 0xb8dd31
push esi
push SysReAllocString
push ebx
call fcn.00b7e9de
cmp eax, 0xffffffff
je 0xbd48b6
mov eax, dword [ebp - 0x4c0]
inc eax
jmp 0xb8dbf1
push 5
call fcn.00b7e928
mov ebx, eax
test ebx, ebx
jne 0xb8dd10
jmp 0xbd48b6
sub edi, 0x103
mov dword [ebp - 0x4c0], ebx
neg edi
sbb edi, edi
not edi
and edi, 1
mov dword [ebp - 0x4e4], edi
test ebx, ebx
je 0xbd49b4
push 0x200
lea eax, [ebp - 0x2a4]
push 0
push eax
call fcn.00bc259b
mov esi, dword [ebp - 0x4bc]
add esp, 0xc
cmp dword [ebp - 0x4b8], 0x80000002
jne 0xb8dda9
push 1
push 0xffffffffffffffff
push esi
push 0xffffffffffffffff
push 0xb26c10
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringOrdinal]
cmp eax, 2
je 0xbd48c2
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x4dc], eax
mov dword [ebp - 0x4b8], ecx
test eax, eax
jle 0xb8de3c
push 0x21
pop edx
mov edi, eax
cmp dword [ebp - 0x4cc], 0
mov eax, dword [ebx + 4]
mov esi, dword [eax + ecx*4]
jne 0xbd48fb
cmp word [ebp - 0x2a4], 0
jne 0xbd492b
push 0
push dword [ebp - 0x4e0]
lea eax, [esi + 0x410]
push dword [ebp + 8]
lea ebx, [esi + 0x208]
push eax
push ebx
push esi
call fcn.00b8dedd
cmp dword [ebp - 0x4cc], 0
jne 0xbd4996
push esi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov ebx, dword [ebp - 0x4c0]
mov ecx, dword [ebp - 0x4b8]
inc ecx
mov dword [ebp - 0x4b8], ecx
push 0x21
pop edx
cmp ecx, edi
jl 0xb8ddc2
mov edi, dword [ebp - 0x4e4]
mov esi, dword [ebp - 0x4bc]
push ebx
call fcn.00b8c817
test dword [0xd0a5c0], 0x4000
pop ebx
je 0xb8de5a
push esi
mov edx, 0xb269c0
call fcn.00b90dd1
push dword [ebp - 0x4c4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 0x4d0]
test ecx, ecx
je 0xb8dbac
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0xd0cffc]
call esi
jmp 0xb8dbac
cmp eax, 2
je 0xb8dc62
jmp 0xb8dd25
lea eax, [ebp - 0x4b4]
mov edx, edi
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00b7db60
test eax, eax
js 0xb8dd25
push edi
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_SHExpandEnvironmentStringsW]
test eax, eax
je 0xb8dd25
cmp eax, edi
jbe 0xb8dca6
jmp 0xb8dd25
mov ecx, esi
call dword [0xd0cffc]
call esi
jmp 0xb8dc8a
cmp word [ebp - 0xa4], 0x2a
jne 0xb8dd25
jmp 0xb8dcb6
push esi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
jmp 0xb8dd25
lea eax, [ebp - 0x4b8]
mov dword [ebp - 0x4b8], 0x200
push eax
lea eax, [ebp - 0x2a4]
push eax
push 0
push 0x20000002
push 0xb49d44
push 0xb485a8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
jmp 0xb8dda9
lea eax, [esi + 0x208]
cmp word [eax], dx
je 0xb8ddd5
push eax
push dword [ebp - 0x4c4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, eax
je 0xb8ddd5
push esi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
jmp 0xb8de1c
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x2a4]
push eax
push 0xffffffffffffffff
lea eax, [esi + 0x208]
push eax
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringOrdinal]
cmp eax, 2
jne 0xb8dde3
push 0xb2aeb8
push 1
push 1
push 0
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov ebx, eax
test ebx, ebx
je 0xbd4973
push ebx
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
push ebx
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push 0xb49d44
push 0xb485a8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHDeleteValueW]
xor eax, eax
mov word [ebp - 0x2a4], ax
jmp 0xb8dde3
push 0x21
pop eax
cmp word [ebx], ax
jne 0xb8de0f
push ebx
push dword [ebp - 0x4c4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
jmp 0xb8de0f
mov esi, dword [ebp - 0x4bc]
jmp 0xb8de42