Function at 0x403420
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x430c2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x52c
push ebx
push ebp
push esi
push edi
push 0x440398
call fcn.00402fc0
mov edx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x440]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x440]
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push ecx
xor ebx, ebx
push eax
push edx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bl
call fcn.004032e0
add esp, 0x14
cmp eax, ebx
je 0x4034a0
or eax, 0xffffffff
jmp 0x403735
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x44578c
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
call fcn.00421d6c
lea ecx, [esp + 0x20]
mov dword [esp + 0x544], ebx
push ecx
push 0x20019
push ebx
push 0x44035c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x403506
lea ecx, [esp + 0x10]
mov dword [esp + 0x544], 0xffffffff
call fcn.00421cfe
mov eax, 0xfffffffe
jmp 0x403735
mov ecx, dword [esp + 0x20]
push ebx
push ebx
push ebx
lea edx, [esp + 0x30]
push ebx
lea eax, [esp + 0x348]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4036bc
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x238]
lea edx, [esp + 0x338]
rep stosd dword es:[edi], eax
push edx
push 0x44035c
lea eax, [esp + 0x240]
push 0x440354
push eax
call fcn.00410b7b
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x148]
lea edx, [esp + 0x248]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x148]
push ecx
push 0x440348
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403390
add esp, 0x20
test eax, eax
je 0x403676
lea edi, [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x138]
push ecx
lea ecx, [esp + 0x440]
push eax
push ecx
call fcn.00411510
add esp, 0xc
test eax, eax
jne 0x403676
mov ecx, 0x40
lea edi, [esp + 0x138]
lea edx, [esp + 0x138]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x23c]
push 0x44033c
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403390
lea ecx, [esp + 0x148]
lea edx, [esp + 0x20]
push ecx
push 0x440334
push edx
call fcn.00420e11
mov eax, dword [esp + 0x2c]
add esp, 0x1c
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push eax
call esi
mov edx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
push ebx
push ecx
lea eax, [esp + 0x40]
push 0x100
push eax
lea ecx, [esp + 0x3c]
push 4
push ecx
push 0x170002
push edx
mov dword [esp + 0x4c], 0x1010101
call ebp
test eax, eax
jne 0x40374e
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x338]
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebx
lea edx, [esp + 0x30]
push ebx
lea ecx, [esp + 0x348]
inc eax
push edx
mov edx, dword [esp + 0x34]
push ecx
push eax
push edx
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x48], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x403543
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x19]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x17]
and ecx, 0xff
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x1a]
and eax, 0xff
push edx
mov edx, dword [esp + 0x1d]
push eax
mov eax, dword [esp + 0x20]
and ecx, 0xff
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x55c]
and eax, 0xff
push edx
push eax
push 0x440314
push ecx
call fcn.00410b7b
add esp, 0x20
lea ecx, [esp + 0x10]
mov dword [esp + 0x544], 0xffffffff
call fcn.00421cfe
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x538
ret
mov edx, dword [esp + 0x54c]
mov ecx, 8
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3d]
mov ecx, dword [esp + 0x3c]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x3f]
push ecx
mov ecx, dword [esp + 0x42]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x45]
push ecx
mov ecx, dword [esp + 0x48]
and eax, 0xff
and ecx, 0xff
push eax
push ecx
push 0x440314
push edx
call fcn.00410b7b
mov edx, dword [esp + 0x40]
add esp, 0x20
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x544], 0xffffffff
call fcn.00421cfe
xor eax, eax
jmp 0x403735