Function at 0x401320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x418028]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x64]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlWmiGlobalLogger
push SysStringLen
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], 0
call edi
test eax, eax
jne 0x4015c2
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x68]
push edx
push eax
push eax
mov eax, dword [ebp - 0x64]
push str.Start
push eax
mov dword [ebp - 0x5c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4015b8
cmp dword [ebp - 0x68], eax
je 0x4015b8
mov ecx, dword [esi]
mov eax, 8
lea edx, [ebp - 0x58]
call fcn.004012f0
mov ecx, 0x2d
mov word [ebp - 0x48], cx
movzx ecx, word [esi + 4]
mov eax, 4
lea edx, [ebp - 0x46]
call fcn.004012f0
movzx ecx, word [esi + 6]
mov edx, 0x2d
mov word [ebp - 0x3e], dx
lea eax, [edx - 0x29]
lea edx, [ebp - 0x3c]
call fcn.004012f0
mov eax, 0x2d
mov word [ebp - 0x34], ax
movzx eax, byte [esi + 8]
mov ecx, eax
and eax, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebp - 0x30], ax
movzx eax, byte [esi + 9]
shr ecx, 4
movzx edx, word [ecx*2 + str.0123456789abcdef]
mov ecx, eax
and eax, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
shr ecx, 4
mov word [ebp - 0x2c], ax
movzx eax, byte [esi + 0xa]
mov word [ebp - 0x32], dx
movzx edx, word [ecx*2 + str.0123456789abcdef]
mov word [ebp - 0x2e], dx
mov edx, eax
and eax, 0xf
shr edx, 4
mov ecx, 0x2d
mov word [ebp - 0x2a], cx
mov cx, word [edx*2 + str.0123456789abcdef]
movzx edx, word [eax*2 + str.0123456789abcdef]
movzx eax, byte [esi + 0xb]
mov word [ebp - 0x28], cx
mov ecx, eax
and eax, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebp - 0x22], ax
movzx eax, byte [esi + 0xc]
shr ecx, 4
mov word [ebp - 0x26], dx
movzx edx, word [ecx*2 + str.0123456789abcdef]
mov ecx, eax
and eax, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebp - 0x1e], ax
movzx eax, byte [esi + 0xd]
shr ecx, 4
mov word [ebp - 0x24], dx
movzx edx, word [ecx*2 + str.0123456789abcdef]
mov ecx, eax
and eax, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebp - 0x1a], ax
movzx eax, byte [esi + 0xe]
shr ecx, 4
mov word [ebp - 0x20], dx
movzx edx, word [ecx*2 + str.0123456789abcdef]
mov ecx, eax
and eax, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
shr ecx, 4
mov word [ebp - 0x16], ax
movzx eax, byte [esi + 0xf]
mov word [ebp - 0x1c], dx
movzx edx, word [ecx*2 + str.0123456789abcdef]
mov ecx, eax
shr ecx, 4
mov word [ebp - 0x18], dx
movzx edx, word [ecx*2 + str.0123456789abcdef]
mov word [ebp - 0x14], dx
and eax, 0xf
movzx eax, word [eax*2 + str.0123456789abcdef]
lea edx, [ebp - 0x60]
push edx
xor ecx, ecx
push 0x20019
push ecx
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x58]
mov word [ebp - 0x10], cx
mov ecx, dword [ebp - 0x64]
push eax
push ecx
call edi
test eax, eax
jne 0x4015b8
mov ecx, dword [ebp - 0x60]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push str.Flags
mov edi, 4
push ecx
mov dword [ebp - 0x5c], edi
call esi
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push str.Level
push ecx
mov dword [ebp - 0x5c], edi
call esi
cmp dword [ebp - 0x68], 1
jne 0x4015ae
call fcn.00401270
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 4], edx
mov edx, eax
or edx, dword [ecx + 4]
mov dword [ecx], eax
je 0x4015ae
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
mov dl, byte [ebp - 0x70]
and eax, 0x7fffffff
mov dword [ecx], eax
mov eax, dword [ebp - 0x78]
mov byte [eax], dl
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040864e
mov esp, ebp
pop ebp
ret