Function at 0xa4cb43
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 [0xc940a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and eax, 1
mov dword [ebp - 0x4bc], ecx
mov dword [ebp - 0x4c0], eax
neg eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
sbb eax, eax
mov dword [ebp - 0x4c4], esi
lea edx, [ebp - 0x4c8]
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
jne 0xa4ce64
push ebx
lea eax, [ebp - 0x4d0]
xor ebx, ebx
push eax
mov eax, 0x9efb48
push eax
push eax
push edi
call dword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_QueryService]
test byte [0xc96fc1], 0x40
je 0xa4cbd1
push esi
mov edx, 0x9efb68
call fcn.00a4d165
xor eax, eax
lea ecx, [ebp - 0x4d4]
mov dword [ebp - 0x4b8], eax
push ecx
lea ecx, [ebp - 0x4b4]
mov dword [ebp - 0x4d8], 0x50
push ecx
lea ecx, [ebp - 0x4cc]
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 - 0x4c8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
mov edi, eax
cmp edi, 0xea
je 0xa4ce58
test edi, edi
je 0xa4cd75
sub edi, 0x103
mov dword [ebp - 0x4b8], ebx
neg edi
sbb edi, edi
not edi
and edi, 1
mov dword [ebp - 0x4e4], edi
test ebx, ebx
je 0xa4ce6b
push 0x200
lea eax, [ebp - 0x2a4]
push 0
push eax
call fcn.00ab4bf6
mov esi, dword [ebp - 0x4c4]
add esp, 0xc
cmp dword [ebp - 0x4bc], 0x80000002
je 0xa4cebc
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x4dc], eax
mov dword [ebp - 0x4bc], ecx
test eax, eax
jle 0xa4cd22
mov esi, dword [ebp - 0x4c0]
mov edi, eax
push 0x21
pop edx
mov eax, dword [ebx + 4]
mov ebx, dword [eax + ecx*4]
test esi, esi
jne 0xb1f25f
cmp word [ebp - 0x2a4], 0
jne 0xb1f288
push 0
push dword [ebp - 0x4e0]
lea eax, [ebx + 0x410]
push dword [ebp + 8]
lea esi, [ebx + 0x208]
push eax
push esi
push ebx
call fcn.00a4bf0b
cmp dword [ebp - 0x4c0], 0
jne 0xb1f2f3
mov esi, dword [ebp - 0x4c0]
push ebx
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov ecx, dword [ebp - 0x4bc]
mov ebx, dword [ebp - 0x4b8]
inc ecx
mov dword [ebp - 0x4bc], ecx
push 0x21
pop edx
cmp ecx, edi
jl 0xa4cca7
mov edi, dword [ebp - 0x4e4]
mov esi, dword [ebp - 0x4c4]
push ebx
call fcn.00a4d39f
test byte [0xc96fc1], 0x40
pop ebx
je 0xa4cd3d
push esi
mov edx, 0x9efb58
call fcn.00a4d165
push dword [ebp - 0x4c8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 0x4d0]
test ecx, ecx
je 0xa4cd63
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0xc99200]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00ab3c50
leave
ret 0x10
mov eax, dword [ebp - 0x4cc]
cmp eax, 1
jne 0xa4ce76
mov ecx, dword [ebp - 0x4d0]
test ecx, ecx
je 0xa4cdba
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0xa4]
push eax
push ecx
cmp esi, fcn.00a4bed0
jne 0xb1f1f8
call fcn.00a4bed0
test eax, eax
je 0xa4ce58
mov eax, dword [ebp - 0x4cc]
mov edi, 0x104
cmp eax, 2
je 0xa4ce81
push 0x43
call dword [sym.imp.api_ms_win_ntuser_sysparams_l1_1_0.dll_GetSystemMetrics]
test eax, eax
jne 0xb1f207
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 0xa4ce58
push dword [ebp - 0x4c4]
mov edx, edi
mov ecx, esi
call fcn.00a535e0
test eax, eax
js 0xa4ce58
lea eax, [ebp - 0xa4]
mov edx, edi
push eax
lea ecx, [esi + 0x208]
call fcn.00a535e0
test eax, eax
js 0xa4ce58
lea eax, [ebp - 0x4b4]
mov edx, edi
push eax
lea ecx, [esi + 0x410]
call fcn.00a535e0
test eax, eax
js 0xa4ce58
test ebx, ebx
jne 0xa4ce43
push 5
call fcn.00a51f82
mov ebx, eax
test ebx, ebx
je 0xb1f21a
push esi
push SysReAllocString
push ebx
call fcn.00a546af
cmp eax, 0xffffffff
je 0xb1f21a
mov eax, dword [ebp - 0x4b8]
inc eax
jmp 0xa4cbd3
xor edi, edi
jmp 0xa4cd63
mov esi, dword [ebp - 0x4c4]
jmp 0xa4cd28
cmp eax, 2
je 0xa4cd84
jmp 0xa4ce58
lea eax, [ebp - 0x4b4]
mov edx, edi
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00a535e0
test eax, eax
js 0xa4ce58
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 0xa4ce58
cmp eax, edi
jbe 0xa4cdc8
jmp 0xa4ce58
push 1
push 0xffffffffffffffff
push esi
push 0xffffffffffffffff
push 0x9efa30
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringOrdinal]
cmp eax, 2
jne 0xa4cc84
jmp 0xb1f226
mov ecx, esi
call dword [0xc99200]
call esi
jmp 0xa4cdac
cmp word [ebp - 0xa4], 0x2a
jne 0xa4ce58
jmp 0xa4cdd8
push esi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
jmp 0xa4ce58
lea eax, [ebp - 0x4bc]
mov dword [ebp - 0x4bc], 0x200
push eax
lea eax, [ebp - 0x2a4]
push eax
push 0
push 0x20000002
push 0xa277cc
push 0xa24c60
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
jmp 0xa4cc84
lea eax, [ebx + 0x208]
cmp word [eax], dx
je 0xa4ccb5
push eax
push dword [ebp - 0x4c8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, eax
jne 0xa4ccf5
jmp 0xa4ccb5
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x2a4]
push eax
push 0xffffffffffffffff
lea eax, [ebx + 0x208]
push eax
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringOrdinal]
cmp eax, 2
jne 0xa4ccc3
push 0x9f42b0
push 1
push 1
push 0
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0xb1f2d0
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push 0xa277cc
push 0xa24c60
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 0xa4ccc3
push 0x21
pop eax
cmp word [esi], ax
jne 0xa4ccef
push esi
push dword [ebp - 0x4c8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
jmp 0xa4ccef