Function at 0x4051e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446017
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x467040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb4], edx
mov eax, ecx
mov dword [ebp - 0xb8], eax
lea ecx, [ebp - 0x9c]
push ecx
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405791
push eax
push eax
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x94]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x405791
mov eax, dword [ebp - 0x94]
xor ecx, ecx
inc eax
mov edx, 2
mov dword [ebp - 0x94], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov dword [ebp - 0x90], ecx
call fcn.00444af6
push dword [ebp - 0x90]
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0xc4], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x40576b
mov esi, dword [ebp - 0xa0]
push esi
call fcn.00444af6
push esi
mov esi, eax
mov dword [ebp - 0x90], eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0xc8], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x40575e
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa4]
push eax
push esi
lea eax, [ebp - 0xac]
push eax
push 0
lea eax, [ebp - 0x98]
push eax
push edi
push 0
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop dword [eax]
cmp eax, 0x103
je 0x40575e
nop dword [eax + eax]
test eax, eax
jne 0x405708
cmp dword ds:[ebp - 0xac], 3
jne 0x405708
push str.Device_
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
je 0x405708
mov eax, dword ds:[ebp - 0x98]
xorps xmm0, xmm0
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
lea ecx, [eax + eax]
lea eax, [ecx + edi]
cmp edi, eax
jne 0x4053ba
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
jmp 0x4053c6
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x68]
call fcn.004063e0
mov byte [ebp - 4], 2
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xbc], ecx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, ds:[ebp - 0x50]
push eax
lea eax, [ebp - 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
xorps xmm0, xmm0
lea ecx, [ebp - 0x78]
movups xmmword [ebp - 0x78], xmm0
call fcn.00430b60
test al, al
je 0x4056c8
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, ds:[ebp - 0xd0]
push eax
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x4056c8
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x28]
call fcn.00442b60
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.00404f40
add esp, 8
test al, al
jne 0x405683
mov byte [ebp - 0xb0], al
lea edx, [ebp - 0x28]
push dword [ebp - 0xb0]
lea ecx, [ebp - 0x40]
call fcn.00406dc0
add esp, 4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00404e80
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 0x89], al
cmp ecx, 7
jbe 0x4054ef
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4054df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4057ac
push ecx
push edx
call fcn.00444ae8
mov al, byte [ebp - 0x89]
add esp, 8
test al, al
lea eax, [ebp - 0x28]
je 0x4055a5
push eax
call fcn.00443080
test al, al
jne 0x405683
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ecx
mov esi, eax
lea ecx, [ebp - 0x40]
push esi
call fcn.00410260
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
push 0
cmova ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
push 0
cmova eax, dword [ebp - 0x28]
push esi
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte ds:[ebp - 4], 5
lea ecx, [ebp - 0x40]
movzx eax, word [ebp - 0x44]
cmp dword [ebp - 0x2c], 0xf
push eax
movzx eax, word [ebp - 0x46]
cmova ecx, dword [ebp - 0x40]
push eax
movzx eax, word [ebp - 0x48]
push eax
movzx eax, word [ebp - 0x4a]
push eax
movzx eax, word [ebp - 0x4e]
push eax
movzx eax, word [ebp - 0x50]
push eax
push ecx
push str.___Executed__Unsigned_file:__hs_at:__04d__02d__02d__02d:_02d:_02d_n
jmp 0x405631
cmp dword ds:[ebp - 0x14], 7
push 0
cmova eax, dword [ebp - 0x28]
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ecx
mov esi, eax
lea ecx, [ebp - 0x40]
push esi
call fcn.00410260
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
push 0
cmova ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
push 0
cmova eax, dword [ebp - 0x28]
push esi
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
movzx eax, word [ebp - 0x44]
cmp dword [ebp - 0x2c], 0xf
push eax
movzx eax, word [ebp - 0x46]
cmova ecx, dword [ebp - 0x40]
push eax
movzx eax, word [ebp - 0x48]
push eax
movzx eax, word [ebp - 0x4a]
push eax
movzx eax, word [ebp - 0x4e]
push eax
movzx eax, word [ebp - 0x50]
push eax
push ecx
push str.___Executed__Deleted_file:__hs._File_was_executed_at:__04d__02d__02d__02d:_02d:_02d_n
call fcn.00403b00
add esp, 0x20
lea ecx, [ebp - 0x28]
call fcn.00404f20
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x40567d
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405673
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4057ac
push ecx
push edx
call fcn.00444ae8
add esp, 8
mov esi, dword [ebp - 0x90]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4056c8
mov edx, dword ds:[ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4056bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4057ac
push ecx
push edx
call fcn.00444ae8
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x54]
cmp ecx, 7
jbe 0x405708
mov edx, dword [ebp - 0x68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4056fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4057ac
push ecx
push edx
call fcn.00444ae8
add esp, 8
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x98], eax
inc ecx
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa4]
push eax
push esi
lea eax, [ebp - 0xac]
mov dword [ebp - 0xa8], ecx
push eax
push 0
lea eax, [ebp - 0x98]
push eax
push edi
push ecx
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x405350
push esi
mov byte [ebp - 4], 0
call fcn.00444aae
add esp, 4
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb8]
call fcn.00405080
push edi
call fcn.00444aae
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444aa0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3