Function at 0x434130
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4face0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x192c
call fcn.004f2630
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push 0x100
mov dword [ebp - 4], esi
call fcn.004f266a
mov edi, eax
mov eax, 0x800
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
push 0x20019
push esi
push str.SAMSAMDomainsAccountUsers
push closesocket
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], esi
mov dword [0xe56de0], esi
mov byte [ebp - 0x93c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x43445e
mov dword [ebp - 0x28], esi
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push 0
push ecx
push edi
push edx
push eax
mov dword [ebp - 0x3c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
mov dword [ebp - 0x38], eax
je 0x43444c
push edi
lea ecx, [ebp - 0x13c]
push str.SAMSAMDomainsAccountUsers_s
push ecx
call fcn.004f175f
lea eax, [esi + esi*2]
push edi
shl eax, 3
sub eax, esi
push str.HKLMSAMSAMDomainsAccountUsers_s
lea ebx, [eax + eax*2]
shl ebx, 6
lea edx, [ebx + 0xc647c8]
push edx
call fcn.004f175f
push edi
lea eax, [ebx + 0xc648c8]
push 0x50d39c
push eax
call fcn.004f175f
add esp, 0x24
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x13c]
push ecx
push 0x20019
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x113c]
push eax
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x30]
push ecx
push edx
push 0
push 0x51a4a8
push eax
mov dword [ebp - 0x30], 3
mov byte [ebp - 0x113c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x434318
mov ecx, dword [ebp - 0x1c]
mov eax, 0x800
cmp ecx, eax
jbe 0x434289
mov dword [ebp - 0x1c], eax
mov edi, 0x51a4a4
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0xc64908]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x1c]
jae 0x434333
xor ecx, ecx
lea edx, [ebp - 0x93c]
mov cl, byte [ebp + eax - 0x113c]
mov byte [ebp - 0x93c], 0
push ecx
push 0x51a4a0
push edx
call fcn.004f175f
lea edi, [ebp - 0x93c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [ebx + 0xc64908]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x14]
mov ecx, edx
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x14], eax
jmp 0x4342b6
push str.NULL
lea eax, [ebx + 0xc64908]
push 0x50d39c
push eax
call fcn.004f175f
add esp, 0xc
jmp 0x434339
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x193c]
push ecx
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x30]
push edx
push eax
push 0
push 0x51a49c
push ecx
mov byte [ebp - 0x193c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4343fd
mov ecx, dword [ebp - 0x18]
mov eax, 0x800
cmp ecx, eax
jbe 0x434377
mov dword [ebp - 0x18], eax
mov edi, 0x51a498
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebx + 0xc65108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x14], ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
cmp ebx, dword [ebp - 0x18]
jae 0x434418
xor eax, eax
lea ecx, [ebp - 0x93c]
mov al, byte [ebp + ebx - 0x193c]
mov byte [ebp - 0x93c], 0
push eax
push 0x51a4a0
push ecx
call fcn.004f175f
lea edi, [ebp - 0x93c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp - 0x14]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
jmp 0x4343a4
push str.NULL
lea eax, [ebx + 0xc65108]
push 0x50d39c
push eax
call fcn.004f175f
add esp, 0xc
jmp 0x43441e
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x2c]
inc esi
cmp esi, 0x80
mov dword [ebp - 0x20], esi
jle 0x43443f
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
inc edx
cmp eax, 0x103
mov dword [ebp - 0x28], edx
jne 0x4341b0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov dword [0xe56de0], esi
call fcn.004f265f
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret