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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2dc
mov eax, dword [0x5fde94a8]
xor eax, esp
mov dword [esp + 0x2d8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [esp + 0x18], eax
cmp dword [ebp + 8], 1
mov ebx, esi
push edi
mov edi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ebx
jne 0x5fdb9d69
test eax, eax
je 0x5fdb9e2b
push esi
push eax
mov dword [esp + 0x14], esi
call sym.DNSAPI.dll_DnsValidateName_W
mov esi, eax
test esi, esi
jne 0x5fdb9d04
push 0x2e
pop esi
push dword [esp + 0x1c]
mov edx, 0x1fc
mov word [esp + 0xe4], si
lea ecx, [esp + 0xe6]
call fcn.5fd9a15e
test eax, eax
js 0x5fda6546
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xe4]
call fcn.5fda656f
test eax, eax
js 0x5fda6546
mov edi, dword [esp + 0x1c]
mov eax, edi
shr eax, 1
cmp eax, 1
jbe 0x5fda631f
cmp word [esp + eax*2 + 0xde], si
je 0x5fdb9d15
mov eax, edi
mov edx, 0x200
and eax, 0xfffffffe
cmp eax, edx
jae 0x5fda6550
xor ecx, ecx
mov word [esp + eax + 0xe0], cx
add eax, 2
cmp eax, edx
jae 0x5fda6550
mov word [esp + eax + 0xe0], cx
add edi, 4
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x24]
push eax
push ecx
lea eax, [esp + 0xec]
push eax
call sym.DNSAPI.dll_DnsGetPolicyTableInfo
mov ebx, dword [esp + 0x20]
mov esi, eax
cmp esi, 0x2564
je 0x5fda64f7
test esi, esi
je 0x5fdb9d1d
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x5fdb9d4c
lea edx, [esp + 0x40]
lea ecx, [esp + 0x24]
call fcn.5fda04fb
test eax, eax
je 0x5fdb9d4c
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
push ecx
push 0xf003f
push 1
push ecx
push ecx
push 0x5fd9ffd8
push reloc.WS2_32.dll_bind
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x5fda64f7
xor ecx, ecx
lea eax, [esp + 0x14]
push ecx
push eax
push ecx
push 0xf003f
push 1
push ecx
push ecx
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x30]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x5fda64f7
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 4
push esi
push 0x5fda6558
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x5fda654b
push edi
lea eax, [esp + 0xe4]
xor edi, edi
push eax
push 7
push edi
push 0x5fda4c40
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x5fda654b
push 2
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edi
push eax
push 1
push edi
push 0x5fda4c4c
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x5fda654b
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 2
push eax
push 4
push edi
push 0x5fda4c14
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x5fda654b
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
push 4
push edi
push 0x5fda4c24
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x5fda654b
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edi
push eax
push 4
push edi
push 0x5fda4c74
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x5fda654b
push edi
push edi
call sym.DNSAPI.dll_DnsNotifyResolver
mov edi, dword [esp + 0x18]
test ebx, ebx
jne 0x5fdb9e33
cmp dword [esp + 0x14], 0
je 0x5fda6514
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
jne 0x5fdb9e3e
cmp dword [esp + 0x10], 0
je 0x5fda652d
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [esp + 0x2e4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.5fd83560
mov esp, ebp
pop ebp
ret 8
push 0x7b
pop esi
jmp 0x5fda6503
xor edi, edi
inc edi
jmp 0x5fda64fb
call fcn.5fdc0601
int3
cmp esi, 0x2554
je 0x5fda62c3
jmp 0x5fda6503
sub edi, 2
jmp 0x5fda631f
mov esi, ebx
test ebx, ebx
je 0x5fda6383
mov edx, dword [esi]
lea ecx, [esp + 0xe0]
call fcn.5fddc3f1
test eax, eax
jne 0x5fdb9d3f
test byte [esi + 0x48], 0x10
jne 0x5fdb9d57
mov esi, dword [esi + 0x4c]
test esi, esi
je 0x5fda6383
jmp 0x5fdb9d27
mov edi, dword [esp + 0x18]
push 8
jmp 0x5fdb9e2d
mov esi, dword [esi + 0x44]
neg esi
sbb esi, esi
and esi, 0x1392
jmp 0x5fda64f7
cmp dword [ebp + 8], 2
jne 0x5fdb9e2b
lea eax, [esp + 0x10]
push eax
push 0xf003f
push esi
push 0x5fd9ffd8
push reloc.WS2_32.dll_bind
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x5fda6503
push esi
push esi
push esi
push esi
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x50
push eax
lea eax, [esp + 0x54]
push eax
push edi
push dword [esp + 0x2c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x5fdb9e22
cmp esi, 0xea
je 0x5fdb9e07
test esi, esi
jne 0x5fdb9e14
push eax
push eax
push eax
push 0xffff
push 0x5fda6558
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov esi, eax
test esi, esi
jne 0x5fdb9e07
push eax
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
mov esi, eax
test esi, esi
jne 0x5fdb9e07
dec edi
inc edi
cmp edi, 0x3e8
jae 0x5fdb9e1b
xor esi, esi
jmp 0x5fdb9d96
mov edi, ebx
jmp 0x5fda6503
xor edi, edi
jmp 0x5fda64f0
xor edi, edi
mov esi, edi
jmp 0x5fda64f0
push 0x57
pop esi
jmp 0x5fda64fb
push ebx
call sym.DNSAPI.dll_DnsFreePolicyConfig
jmp 0x5fda6503
push 0
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
jmp 0x5fda651c