Function at 0x417770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421242
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x42e024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x180], ebx
cmp dword [ebx + 0x1c], 8
lea eax, [ebx + 8]
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x168], 0
jb 0x4177c8
mov eax, dword [eax]
lea ecx, [ebp - 0x168]
push ecx
push 0x201
push 0
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x168]
test ecx, ecx
jne 0x417875
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.LoadRepo:_RegOpenKey_failed___d_
push str.stealth_manager
call fcn.00402590
add esp, 0xc
call esi
push eax
push str.LoadRepo:_RegOpenKey_failed___d_
lea eax, [ebp - 0x78]
push 0x64
push eax
call fcn.00405120
sub esp, 8
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x78], 0
jne 0x41783c
xor ecx, ecx
jmp 0x41784b
lea ecx, [ebp - 0x78]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417842
sub ecx, esi
push ecx
lea eax, [ebp - 0x78]
mov ecx, edx
push eax
call fcn.00404270
push 0xf
lea ecx, [ebp - 0x108]
call fcn.0040c940
push 0x42cc24
lea eax, [ebp - 0x108]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
cmp dword [ebx + 0x34], 8
lea esi, [ebx + 0x20]
jb 0x417882
mov eax, dword [esi]
jmp 0x417884
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x164]
push edx
push 0
push 0
push 0
push eax
push ecx
call edi
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x417a6e
push eax
call fcn.0041e087
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x17c], ebx
jb 0x4178c2
mov esi, dword [esi]
lea eax, [ebp - 0x164]
push eax
push ebx
push 0
push 0
push esi
push dword [ebp - 0x168]
call edi
test eax, eax
je 0x417935
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.LoadRepo:_RegQueryValueEx_failed___d_
push str.stealth_manager
call fcn.00402590
add esp, 0xc
call esi
push eax
push str.LoadRepo:_RegQueryValueEx_failed___d_
lea eax, [ebp - 0x78]
push 0x64
push eax
call fcn.00405120
sub esp, 8
lea eax, [ebp - 0x78]
mov ecx, esp
push eax
call fcn.00404030
push 0xf
lea ecx, [ebp - 0x134]
call fcn.0040c940
push 0x42cc24
lea eax, [ebp - 0x134]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [ebp - 4], 0
push dword [ebp - 0x164]
push 4
push 0
call fcn.004176c0
push dword [ebp - 0x164]
push 4
mov esi, dword [eax + ebx]
push eax
mov dword [ebp - 0x170], esi
call fcn.004176c0
mov edi, eax
xor eax, eax
mov dword [ebp - 0x178], eax
cmp eax, esi
jae 0x417a65
push dword [ebp - 0x164]
mov eax, dword [edi + ebx]
push 4
push edi
mov dword [ebp - 0x16c], eax
call fcn.004176c0
push dword [ebp - 0x164]
push 4
mov esi, dword [eax + ebx]
push eax
call fcn.004176c0
mov edi, eax
test esi, esi
je 0x417a53
push esi
call fcn.0041e087
add esp, 4
mov dword [ebp - 0x174], eax
lea ecx, [edi + ebx]
push esi
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
push 0xc
call fcn.0041e041
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x184], ebx
mov byte [ebp - 4], 1
push esi
mov dword [ebx], vtable.Buffer.0
call fcn.0041e087
add esp, 4
mov dword [ebx + 4], eax
push esi
push dword [ebp - 0x174]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x180]
add esp, 0xc
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x18c]
mov dword [ebx + 8], esi
push eax
lea ecx, [ecx + 0x38]
call fcn.00417be0
mov eax, dword [ebp - 0x18c]
push dword [ebp - 0x174]
mov dword [eax + 0x14], ebx
call fcn.0041e03c
add esp, 4
push dword [ebp - 0x164]
push esi
push edi
call fcn.004176c0
mov ebx, dword [ebp - 0x17c]
mov edi, eax
mov eax, dword [ebp - 0x178]
mov esi, dword [ebp - 0x170]
inc eax
jmp 0x417966
push ebx
call fcn.0041e03c
add esp, 4
push dword [ebp - 0x168]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e02b
mov esp, ebp
pop ebp
ret