Function at 0x407560
Capabilities:
Encode data using xor
Hash data using fnv
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446200
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
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 - 0x4ac], edx
mov esi, ecx
mov dword [ebp - 0x4b4], esi
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x4075a5
mov eax, dword [esi]
lea ecx, [ebp - 0x4a4]
push ecx
push 0x20119
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop
test eax, eax
jne 0x407e1a
mov eax, dword fs:[0x2c]
xor edi, edi
mov dword [ebp - 0x4b0], edi
mov dword [ebp - 0x4a0], 0x104
mov ecx, dword [eax]
mov eax, dword [0x46a2dc]
cmp eax, dword [ecx + 4]
jle 0x407630
push 0x46a2dc
call fcn.00444b9f
add esp, 4
cmp dword [0x46a2dc], 0xffffffff
jne 0x407630
mov ecx, 0x46a2bc
mov dword [ebp - 4], edi
call fcn.00407ee0
push 0x44a580
call fcn.00444e3f
push 0x46a2dc
mov dword [ebp - 4], 0xffffffff
call fcn.00444b4e
add esp, 8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x407e0e
nop dword [eax]
mov ecx, dword [esi + 0x10]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x407e3b
lfence
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x407680
mov eax, dword [esi]
push 1
push 0x44c4ec
push ecx
push eax
push ecx
push dword [ebp - 0x4b4]
lea ecx, [ebp - 0x478]
call fcn.00408c60
lea eax, [ebp - 0x418]
mov dword [ebp - 4], 1
push eax
lea edx, [ebp - 0x478]
lea ecx, [ebp - 0x448]
call fcn.00408260
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x464]
cmp ecx, 7
jbe 0x407708
mov edx, dword ds:[ebp - 0x478]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4076fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407e35
push ecx
push edx
call fcn.00444ae8
add esp, 8
xor eax, eax
mov dword [ebp - 0x468], 0
cmp dword [ebp - 0x434], 7
lea ecx, [ebp - 0x4a8]
push ecx
mov word [ebp - 0x478], ax
xorps xmm0, xmm0
push 0x20119
lea eax, [ebp - 0x448]
mov dword [ebp - 0x464], 7
cmova eax, dword [ebp - 0x448]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
movlpd qword [ebp - 0x4e0], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop
test eax, eax
jne 0x407d64
lea eax, [ebp - 0x4e0]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x4a8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea eax, ds:[ebp - 0x4bc]
push eax
lea eax, [ebp - 0x4e0]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x4bc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push dword [ebp - 0x4a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
mov dword [ebp - 0x450], 0
xor eax, eax
mov dword [ebp - 0x44c], 7
movups xmmword [ebp - 0x460], xmm0
mov word [ebp - 0x460], ax
lea eax, [ebp - 0x488]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x4bc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0
push 0x100
lea eax, [ebp - 0x210]
push eax
push str.yyyy_MM_dd
lea eax, [ebp - 0x488]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDateFormatEx]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407833
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.00408020
push 0x100
lea eax, [ebp - 0x210]
push eax
push str.HH:mm:ss
lea eax, [ebp - 0x488]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatEx]
push 0x44c4e8
lea ecx, [ebp - 0x460]
call fcn.00408140
lea ecx, [ebp - 0x210]
push ecx
mov ecx, eax
call fcn.00408140
lea eax, [ebp - 0x4d0]
push eax
push dword [ebp - 0x4ac]
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edi, dword ds:[ebp - 0x4bc]
mov edx, 0xe57a42bd
sub edi, dword [ebp - 0x4d0]
mov ecx, dword [ebp - 0x4b8]
mov eax, edi
sbb ecx, dword [ebp - 0x4cc]
mul edx
mov eax, edi
mov dword [ebp - 0x49c], ecx
mov esi, edx
mov edx, 0xd6bf94d5
mul edx
mov edi, eax
mov dword [ebp - 0x4c0], edx
mov eax, ecx
mov ecx, 0xe57a42bd
mul ecx
mov ecx, eax
mov dword [ebp - 0x4d4], edx
mov eax, dword [ebp - 0x49c]
mov edx, 0xd6bf94d5
mul edx
add ecx, esi
mov dword [ebp - 0x4c4], edx
mov edx, dword [ebp - 0x4d4]
adc edx, 0
mov dword [ebp - 0x49c], eax
mov esi, eax
add edi, ecx
mov ecx, dword [ebp - 0x4c0]
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0x4c4]
adc eax, eax
add esi, edx
adc ecx, eax
mov eax, dword [ebp - 0x4b8]
shrd esi, ecx, 0x17
cmp eax, dword [ebp - 0x4cc]
jbe 0x407cf7
cmp esi, 0xa
jle 0x407cf7
cmp dword [ebp - 0x434], 7
lea ecx, [ebp - 0x448]
mov edx, dword [ebp - 0x438]
cmova ecx, dword [ebp - 0x448]
push 4
push 0x44c4f0
push 0
call fcn.00408a00
add esp, 0xc
cmp eax, 0xffffffff
je 0x407a6e
lea edx, [eax + 4]
mov dword [ebp - 0x420], 0
mov eax, dword [ebp - 0x438]
xorps xmm0, xmm0
mov dword [ebp - 0x41c], 0
movups xmmword [ebp - 0x430], xmm0
cmp eax, edx
jb 0x407e45
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
lfence
cmovb ecx, eax
cmp dword [ebp - 0x434], 7
lea eax, [ebp - 0x448]
cmova eax, dword [ebp - 0x448]
push ecx
lea ecx, [ebp - 0x430]
lea eax, [eax + edx*2]
push eax
call fcn.004063e0
mov ecx, dword [ebp - 0x434]
cmp ecx, 7
jbe 0x407a33
mov edx, dword [ebp - 0x448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407a29
mov edx, dword ds:[eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407e35
push ecx
push edx
call fcn.00444ae8
add esp, 8
movups xmm0, xmmword [ebp - 0x430]
xor eax, eax
mov word [ebp - 0x430], ax
movups xmmword [ebp - 0x448], xmm0
movq xmm0, qword [ebp - 0x420]
movq qword [ebp - 0x438], xmm0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 7
mov ecx, 0x11
mov dword [ebp - 0x420], 0
cmp dword [ebp - 0x438], ecx
lea eax, [ebp - 0x448]
xorps xmm0, xmm0
mov dword [ebp - 0x41c], 0
cmovb ecx, dword [ebp - 0x438]
cmp dword [ebp - 0x434], 7
push ecx
cmova eax, dword [ebp - 0x448]
lea ecx, [ebp - 0x430]
push eax
movups xmmword [ebp - 0x430], xmm0
call fcn.004063e0
cmp dword [ebp - 0x41c], 7
lea esi, [ebp - 0x430]
mov eax, dword [ebp - 0x430]
mov edx, 0x811c9dc5
cmova esi, eax
mov dword [ebp - 0x49c], eax
mov eax, dword [ebp - 0x420]
lea edi, [eax + eax]
xor eax, eax
test edi, edi
je 0x407b04
nop
movzx ecx, byte ds:[eax + esi]
inc eax
xor ecx, edx
imul edx, ecx, 0x1000193
cmp eax, edi
jb 0x407af0
push edx
lea eax, [ebp - 0x430]
mov ecx, 0x46a2bc
push eax
lea eax, [ebp - 0x4e8]
push eax
call fcn.00409180
mov edi, dword [0x46a2c0]
mov esi, edi
mov eax, dword [eax + 4]
test eax, eax
cmovne esi, eax
mov eax, dword [ebp - 0x41c]
cmp eax, 7
jbe 0x407b79
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x49c]
mov edx, eax
cmp ecx, 0x1000
jb 0x407b6f
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x49c], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x407e35
mov eax, dword [ebp - 0x49c]
push ecx
push eax
call fcn.00444ae8
add esp, 8
xor eax, eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 7
mov word [ebp - 0x430], ax
cmp esi, edi
jne 0x407cf7
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.____Warning:_Unplugged_device_detected:
call fcn.00408320
cmp dword [ebp - 0x434], 7
lea edx, [ebp - 0x448]
push dword [ebp - 0x438]
cmova edx, dword [ebp - 0x448]
mov ecx, eax
call fcn.00408f60
add esp, 4
mov edx, str.._Ban_the_user_if_after_looking_for_the_VID_and_PID_on_Google__you_find_that_the_device_its_a_peripheral_device.
mov ecx, eax
call fcn.00408320
push 0x408660
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.____Device_was_unplugged_at:
call fcn.00408320
cmp dword [ebp - 0x44c], 7
lea edx, [ebp - 0x460]
push dword [ebp - 0x450]
cmova edx, dword [ebp - 0x460]
mov ecx, eax
call fcn.00408f60
add esp, 4
mov ecx, eax
push 0x408660
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov ecx, 0x11
mov dword [ebp - 0x420], 0
cmp dword [ebp - 0x438], ecx
lea eax, [ebp - 0x448]
xorps xmm0, xmm0
mov dword [ebp - 0x41c], 0
cmovb ecx, dword [ebp - 0x438]
cmp dword [ebp - 0x434], 7
push ecx
cmova eax, dword [ebp - 0x448]
lea ecx, [ebp - 0x430]
push eax
movups xmmword [ebp - 0x430], xmm0
call fcn.004063e0
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.004086a0
mov byte ds:[ebp - 4], 4
mov ecx, dword [ebp - 0x41c]
cmp ecx, 7
jbe 0x407cda
mov edx, dword [ebp - 0x430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407cd0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407e35
push ecx
push edx
call fcn.00444ae8
add esp, 8
xor eax, eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 7
mov word [ebp - 0x430], ax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44c]
cmp ecx, 7
jbe 0x407d3b
mov edx, dword [ebp - 0x460]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407d31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407e35
push ecx
push edx
call fcn.00444ae8
add esp, 8
mov esi, dword [ebp - 0x4b4]
xor eax, eax
mov edi, dword [ebp - 0x4b0]
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 7
mov word [ebp - 0x460], ax
mov eax, dword [ebp + 8]
test eax, eax
jle 0x407d88
mov edx, dword ds:[ebp - 0x4ac]
lea ecx, [ebp - 0x448]
dec eax
push eax
lfence
call fcn.00407560
add esp, 4
inc edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x4b0], edi
mov dword [ebp - 0x4a0], 0x104
cmp ecx, 7
jbe 0x407de2
mov edx, dword ds:[ebp - 0x448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407dd8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407e35
push ecx
push edx
call fcn.00444ae8
add esp, 8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x418]
push eax
push edi
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x407660
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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]
nop dword [eax + eax]
call fcn.00403ca0
call fcn.00408250
int3