Function at 0x1001b340
Capabilities:
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 dword [esp + 0x10], 2
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
mov dword [esp + 0x18], 0
push eax
push 0x20019
push 0
push 0x10004d80
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, dword [esp + 0x228]
test eax, eax
jne 0x1001b54e
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 0x10004d64
push ecx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 2
call ebp
test eax, eax
jne 0x1001b441
lea edx, [esp + 0x1c]
push 0x22
push edx
call fcn.10022090
add esp, 8
test eax, eax
je 0x1001b407
mov byte [eax], 0
lea eax, [esp + 0x1d]
lea ecx, [esp + 0x120]
push eax
push 0x10004d5c
push ecx
call fcn.1002203e
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 esi
call edi
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 0x10004d54
push ecx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 2
call ebp
test eax, eax
jne 0x1001b4c2
lea edx, [esp + 0x1c]
push 0x22
push edx
call fcn.10022090
add esp, 8
test eax, eax
je 0x1001b488
mov byte [eax], 0
lea eax, [esp + 0x1d]
lea ecx, [esp + 0x120]
push eax
push 0x10004d5c
push ecx
call fcn.1002203e
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 esi
call edi
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 0x10004d50
push ecx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 2
call ebp
test eax, eax
jne 0x1001b543
lea edx, [esp + 0x1c]
push 0x22
push edx
call fcn.10022090
add esp, 8
test eax, eax
je 0x1001b509
mov byte [eax], 0
lea eax, [esp + 0x1d]
lea ecx, [esp + 0x120]
push eax
push 0x10004d5c
push ecx
call fcn.1002203e
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 esi
call edi
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 0x10004d1c
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001b5fe
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 0x10004d10
push eax
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 2
call ebp
test eax, eax
jne 0x1001b5f3
lea ecx, [esp + 0x1c]
push 0x22
push ecx
call fcn.10022090
add esp, 8
test eax, eax
je 0x1001b5b9
mov byte [eax], 0
lea edx, [esp + 0x1d]
lea eax, [esp + 0x120]
push edx
push 0x10004d5c
push eax
call fcn.1002203e
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 esi
call edi
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 0x10004ce0
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001b6ae
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 0x10004d10
push edx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 2
call ebp
test eax, eax
jne 0x1001b6a3
lea eax, [esp + 0x1c]
push 0x22
push eax
call fcn.10022090
add esp, 8
test eax, eax
je 0x1001b669
mov byte [eax], 0
lea ecx, [esp + 0x1d]
lea edx, [esp + 0x120]
push ecx
push 0x10004d5c
push edx
call fcn.1002203e
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 esi
call edi
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 0x10004cb0
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001b75e
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 0x10004d10
push ecx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 2
call ebp
test eax, eax
jne 0x1001b753
lea edx, [esp + 0x1c]
push 0x22
push edx
call fcn.10022090
add esp, 8
test eax, eax
je 0x1001b719
mov byte [eax], 0
lea eax, [esp + 0x1d]
lea ecx, [esp + 0x120]
push eax
push 0x10004d5c
push ecx
call fcn.1002203e
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 esi
call edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x218
ret 4