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

Disassembly:
sub esp, 0x218
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
mov byte [esp + 0x120], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x121]
mov esi, 2
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
mov dword [esp + 0x10], esi
push eax
push 0xf003f
push 0
push 0x10004e9c
push getpeername
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [esp + 0x228]
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1001bf52
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0x10004e8c
push ecx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x1001bcfe
lea edx, [esp + 0x1c]
push 0x22
push edx
call fcn.10022d00
add esp, 8
test eax, eax
je 0x1001bcb8
mov byte [eax], 0
lea eax, [esp + 0x1d]
lea ecx, [esp + 0x120]
push eax
push 0x10004e84
push ecx
call fcn.10022cae
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x120]
push 0
push edx
push 0
push 0
push 0x104
push eax
push 0x22001b
push edi
call ebp
mov ecx, dword [esp + 0xc]
push 0x10004e8c
push ecx
call esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0x10004e78
push edx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001bd8f
lea eax, [esp + 0x1c]
push 0x22
push eax
call fcn.10022d00
add esp, 8
test eax, eax
je 0x1001bd49
mov byte [eax], 0
lea ecx, [esp + 0x1d]
lea edx, [esp + 0x120]
push ecx
push 0x10004e84
push edx
call fcn.10022cae
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x120]
push 0
push eax
push 0
push 0
push 0x104
push ecx
push 0x22001b
push edi
call ebp
mov edx, dword [esp + 0xc]
push 0x10004e78
push edx
call esi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0x10004e5c
push eax
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001be20
lea ecx, [esp + 0x1c]
push 0x22
push ecx
call fcn.10022d00
add esp, 8
test eax, eax
je 0x1001bdda
mov byte [eax], 0
lea edx, [esp + 0x1d]
lea eax, [esp + 0x120]
push edx
push 0x10004e84
push eax
call fcn.10022cae
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x120]
push 0
push ecx
push 0
push 0
push 0x104
push edx
push 0x22001b
push edi
call ebp
mov eax, dword [esp + 0xc]
push 0x10004e5c
push eax
call esi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0x10004e54
push ecx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001beb1
lea edx, [esp + 0x1c]
push 0x22
push edx
call fcn.10022d00
add esp, 8
test eax, eax
je 0x1001be6b
mov byte [eax], 0
lea eax, [esp + 0x1d]
lea ecx, [esp + 0x120]
push eax
push 0x10004e84
push ecx
call fcn.10022cae
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x120]
push 0
push edx
push 0
push 0
push 0x104
push eax
push 0x22001b
push edi
call ebp
mov ecx, dword [esp + 0xc]
push 0x10004e54
push ecx
call esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0x10004e50
push edx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001bf42
lea eax, [esp + 0x1c]
push 0x22
push eax
call fcn.10022d00
add esp, 8
test eax, eax
je 0x1001befc
mov byte [eax], 0
lea ecx, [esp + 0x1d]
lea edx, [esp + 0x120]
push ecx
push 0x10004e84
push edx
call fcn.10022cae
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x120]
push 0
push eax
push 0
push 0
push 0x104
push ecx
push 0x22001b
push edi
call ebp
mov edx, dword [esp + 0xc]
push 0x10004e50
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 2
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push 0x10004e1c
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001c006
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
mov dword [esp + 0x20], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x10004e10
push edx
mov dword [esp + 0x2c], 0x104
call esi
test eax, eax
jne 0x1001bff9
lea eax, [esp + 0x1c]
push 0x22
push eax
call fcn.10022d00
add esp, 8
test eax, eax
je 0x1001bfbf
mov byte [eax], 0
lea ecx, [esp + 0x1d]
lea edx, [esp + 0x120]
push ecx
push 0x10004e84
push edx
call fcn.10022cae
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x120]
push 0
push eax
push 0
push 0
push 0x104
push ecx
push 0x22001b
push edi
call ebp
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001c00c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push 0x10004de0
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001c0bc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0x10004e10
push ecx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 2
call esi
test eax, eax
jne 0x1001c0b1
lea edx, [esp + 0x1c]
push 0x22
push edx
call fcn.10022d00
add esp, 8
test eax, eax
je 0x1001c077
mov byte [eax], 0
lea eax, [esp + 0x1d]
lea ecx, [esp + 0x120]
push eax
push 0x10004e84
push ecx
call fcn.10022cae
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x120]
push 0
push edx
push 0
push 0
push 0x104
push eax
push 0x22001b
push edi
call ebp
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push 0x10004db0
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001c16c
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0x10004e10
push eax
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 2
call esi
test eax, eax
jne 0x1001c161
lea ecx, [esp + 0x1c]
push 0x22
push ecx
call fcn.10022d00
add esp, 8
test eax, eax
je 0x1001c127
mov byte [eax], 0
lea edx, [esp + 0x1d]
lea eax, [esp + 0x120]
push edx
push 0x10004e84
push eax
call fcn.10022cae
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x120]
push 0
push ecx
push 0
push 0
push 0x104
push edx
push 0x22001b
push edi
call ebp
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push 0x10004d84
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001c21c
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0x10004e10
push edx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 2
call esi
test eax, eax
jne 0x1001c211
lea eax, [esp + 0x1c]
push 0x22
push eax
call fcn.10022d00
add esp, 8
test eax, eax
je 0x1001c1d7
mov byte [eax], 0
lea ecx, [esp + 0x1d]
lea edx, [esp + 0x120]
push ecx
push 0x10004e84
push edx
call fcn.10022cae
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x120]
push 0
push eax
push 0
push 0
push 0x104
push ecx
push 0x22001b
push edi
call ebp
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push 0x10004d58
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001c2cc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0x10004e10
push ecx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 2
call esi
test eax, eax
jne 0x1001c2c1
lea edx, [esp + 0x1c]
push 0x22
push edx
call fcn.10022d00
add esp, 8
test eax, eax
je 0x1001c287
mov byte [eax], 0
lea eax, [esp + 0x1d]
lea ecx, [esp + 0x120]
push eax
push 0x10004e84
push ecx
call fcn.10022cae
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x120]
push 0
push edx
push 0
push 0
push 0x104
push eax
push 0x22001b
push edi
call ebp
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push 0x10004d28
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001c37c
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0x10004e10
push eax
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 2
call esi
test eax, eax
jne 0x1001c371
lea ecx, [esp + 0x1c]
push 0x22
push ecx
call fcn.10022d00
add esp, 8
test eax, eax
je 0x1001c337
mov byte [eax], 0
lea edx, [esp + 0x1d]
lea eax, [esp + 0x120]
push edx
push 0x10004e84
push eax
call fcn.10022cae
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x120]
push 0
push ecx
push 0
push 0
push 0x104
push edx
push 0x22001b
push edi
call ebp
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x218
ret