Function at 0x401000
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x8ec
mov dword [ebp - 0x8b4], eax
mov eax, dword [edi]
movdqu xmm0, xmmword [str._s___s___s___s]
mov dword [ebp - 0x8c4], edx
mov dword [ebp - 0x8bc], eax
lea eax, [ebp - 0x418]
movups xmmword [ebp - 0x878], xmm0
movdqu xmm0, xmmword [0x40f0c0]
mov dword [ebp - 0x8c0], ecx
mov dword [ebp - 0x894], 0x300025
mov dword [ebp - 0x890], 0x580032
mov dword [ebp - 0x88c], 0x20
mov dword [ebp - 0x89c], 0x2e002e
mov dword [ebp - 0x898], 0x2e
mov dword [ebp - 0x868], 0x20003d
mov dword [ebp - 0x864], 0x730025
mov word [ebp - 0x860], si
mov dword [ebp - 0x854], 1
mov dword [ebp - 0x840], 0x100
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x858], 0xffff0002
mov dword [ebp - 0x85c], edx
mov dword [ebp - 0x8b8], edx
mov dword [ebp - 0x8b0], 0
movups xmmword [ebp - 0x888], xmm0
nop
lea eax, [ebp - 0x8a4]
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x618]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x8a0]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x8a8]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x818]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8b0]
mov dword [ebp - 0x8a8], 0x100
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8b4]
mov dword [ebp - 0x8a4], 0x200
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
jne 0x401475
cmp dword [ebp - 0x8a0], 3
mov ebx, dword [sym.imp.user32.dll_wsprintfW]
je 0x4013e0
mov edx, dword [ebp - 0x8a8]
lea eax, [ebp - 0x618]
test edx, edx
je 0x4013b8
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x818]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x8c0]
mov dword [esp + 8], eax
lea eax, [ebp - 0x878]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call ebx
mov eax, dword [0x41b4a8]
lea edi, [ebp - 0x85c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], edi
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call esi
add dword [ebp - 0x8b0], 1
mov dword [ebp - 0x8b8], eax
mov eax, dword [ebp - 0x8bc]
sub esp, 0x10
test eax, eax
je 0x4010e0
mov eax, dword [str.AppID]
cmp dword [ebp - 0x818], eax
jne 0x4010e0
mov eax, dword [0x40f0a4]
cmp dword [ebp - 0x814], eax
jne 0x4010e0
mov eax, dword [0x40f0a8]
cmp dword [ebp - 0x810], eax
jne 0x4010e0
xor eax, eax
nop
lea esi, [esi]
movzx edx, word [ebp + eax - 0x818]
mov word [ebp + eax - 0x418], dx
add eax, 2
test dx, dx
jne 0x401228
lea eax, [ebp - 0x618]
mov dword [esp + 8], 0x1f4
mov dword [esp + 4], eax
lea eax, [ebp - 0x60c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
xor eax, eax
nop
lea esi, [esi]
movzx edx, word [eax + 0x40f094]
mov word [ebp + eax - 0x618], dx
add eax, 2
test dx, dx
jne 0x401268
lea eax, [ebp - 0x8ac]
mov ecx, 0x5c
mov dword [esp], 0x80000000
mov dword [esp + 8], eax
lea eax, [ebp - 0x618]
mov word [ebp - 0x60e], cx
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x4010e0
mov eax, dword [0x41b4a8]
mov dword [esp + 0xc], edi
mov dword [ebp - 0x85c], 0xffff0000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call esi
mov dword [ebp - 0x8a8], 0x200
sub esp, 0x10
mov dword [ebp - 0x85c], eax
lea eax, [ebp - 0x8a8]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x818]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8ac]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov eax, dword [ebp - 0x8ac]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x818]
sub esp, 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x60c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x888]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call ebx
mov eax, dword [0x41b4a8]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x85c]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x41b4a8]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x8c4]
sub esp, 0x10
mov dword [ebp - 0x85c], eax
jmp 0x4010e0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x8c0]
mov dword [esp + 8], eax
lea eax, [ebp - 0x888]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call ebx
jmp 0x4011a6
lea esi, [ebp - 0x618]
lea edi, [ebp - 0x218]
lea esi, [esi]
movzx eax, byte [esi]
mov dword [esp], edi
add edi, 6
add esi, 2
mov dword [esp + 8], eax
lea eax, [ebp - 0x894]
mov dword [esp + 4], eax
call ebx
lea eax, [ebp - 0x20]
cmp eax, edi
jne 0x4013f0
mov eax, dword [ebp - 0x8a4]
mov edx, 0xff
lea eax, [eax + eax*2]
cmp eax, 0xff
cmova eax, edx
xor ecx, ecx
mov word [ebp + eax*2 - 0x218], cx
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0x218]
mov word [ebp + eax - 0x618], dx
add eax, 2
test dx, dx
jne 0x401438
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0x89c]
mov word [ebp + eax - 0x422], dx
add eax, 2
test dx, dx
jne 0x401458
jmp 0x401165
mov ebx, dword [ebp - 0x8b0]
test ebx, ebx
je 0x4015cd
mov ebx, 0xffffffff
lea edi, [ebp - 0x8ac]
mov esi, dword [ebp - 0x8b4]
lea eax, [ebp - 0x818]
add ebx, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x40154e
lea eax, [ebp - 0x818]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x40148e
mov esi, dword [ebp - 0x8bc]
mov edx, dword [ebp - 0x8b8]
lea ecx, [ebp - 0x818]
mov eax, dword [ebp - 0x8ac]
mov dword [esp], esi
call sym._CreateRegRec
mov eax, dword [ebp - 0x8b8]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp + 0xc], eax
mov eax, dword [0x41b4a8]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x8b0], eax
call eax
sub esp, 0x10
test esi, esi
jne 0x40155a
mov edx, dword [ebp - 0x8ac]
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], edx
call esi
sub esp, 4
jmp 0x40148e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, dword [str.ProgID]
cmp dword [ebp - 0x818], eax
je 0x401ac4
mov eax, 1
mov edx, dword [ebp - 0x8ac]
test eax, eax
je 0x401a30
lea eax, [ebp - 0x818]
mov dword [esp + 8], 0x22
mov dword [esp + 4], str.ProxyStubClsid32
mov dword [esp], eax
mov dword [ebp - 0x8c0], edx
call sym._memcmp
mov edx, dword [ebp - 0x8c0]
test eax, eax
je 0x401646
mov ecx, dword [ebp - 0x818]
cmp ecx, dword [0x40f03c]
je 0x401830
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x401541
mov eax, dword [ebp - 0x8c0]
cmp word [eax], 0
je 0x401483
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4015e0
sub eax, dword [ebp - 0x8c0]
cmp eax, 2
jle 0x401483
mov eax, dword [ebp - 0x8c0]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [ebp - 0x844], eax
lea eax, [ebp - 0x85c]
mov dword [esp + 0xc], eax
mov eax, dword [0x41b4a8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x8b8], eax
lea eax, [ebp - 0x418]
sub esp, 0x10
mov dword [ebp - 0x844], eax
jmp 0x401483
mov dword [esp], edx
lea eax, [ebp - 0x8a4]
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x618]
mov dword [ebp - 0x8c0], edx
mov dword [ebp - 0x8a4], 0x200
mov dword [esp + 8], eax
mov dword [esp + 4], 0
call edx
mov eax, dword [ebp - 0x8ac]
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 0x10
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], 0x40f094
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
lea eax, [ebp - 0x8a8]
mov edx, dword [ebp - 0x8c0]
mov dword [ebp - 0x8a8], 0x200
sub esp, 0xc
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x818]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8ac]
mov dword [esp + 4], 0
mov dword [esp], eax
call edx
lea eax, [ebp - 0x818]
mov dword [ebp - 0x85c], 0xffff0000
sub esp, 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x888]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp + 8], 0x40f094
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
lea eax, [ebp - 0x85c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x41b4a8]
mov dword [esp + 4], 0x1132
mov dword [esp], eax
mov eax, dword [ebp - 0x8b0]
call eax
mov dword [ebp - 0x85c], eax
mov eax, dword [ebp - 0x8ac]
sub esp, 0x10
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x8a4]
lea ecx, [ebp - 0x618]
sub esp, 4
mov dword [esp + 4], ecx
lea ecx, [ebp - 0x60c]
mov dword [esp], ecx
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [0x40f094]
lea ecx, [ebp - 0x618]
mov edx, 0x5c
mov dword [esp + 4], ecx
mov dword [ebp - 0x618], eax
mov eax, dword [0x40f098]
mov dword [esp + 8], edi
mov dword [ebp - 0x614], eax
mov eax, dword [0x40f09c]
mov dword [esp], 0x80000000
mov dword [ebp - 0x610], eax
mov word [ebp - 0x60e], dx
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
lea ecx, [ebp - 0x60c]
sub esp, 0xc
mov dword [esp], 0
mov edx, dword [ebp - 0x85c]
mov eax, dword [ebp - 0x8ac]
call sym._CreateRegRec
mov eax, dword [ebp - 0x85c]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp + 0xc], eax
mov eax, dword [0x41b4a8]
mov dword [esp], eax
mov eax, dword [ebp - 0x8b0]
call eax
mov eax, dword [ebp - 0x8c4]
mov edx, dword [ebp - 0x8ac]
sub esp, 0x10
mov dword [ebp - 0x85c], eax
jmp 0x401541
mov eax, dword [ebp - 0x814]
mov dword [ebp - 0x8c0], eax
cmp eax, dword [0x40f040]
jne 0x4015c2
mov eax, dword [ebp - 0x810]
mov dword [ebp - 0x8c8], eax
cmp eax, dword [0x40f044]
jne 0x4015c2
mov eax, dword [ebp - 0x80c]
mov dword [ebp - 0x8cc], eax
cmp eax, dword [0x40f048]
jne 0x4015c2
mov dword [esp], edx
lea eax, [ebp - 0x8a4]
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x618]
mov dword [ebp - 0x8d4], ecx
mov dword [ebp - 0x8d0], edx
mov dword [ebp - 0x8a4], 0x200
mov dword [esp + 8], eax
mov dword [esp + 4], 0
call edx
mov eax, dword [ebp - 0x8ac]
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 0x10
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], 0x40f03c
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
lea eax, [ebp - 0x8a8]
mov edx, dword [ebp - 0x8d0]
mov dword [ebp - 0x8a8], 0x200
sub esp, 0xc
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x818]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8ac]
mov dword [esp + 4], 0
mov dword [esp], eax
call edx
lea eax, [ebp - 0x818]
mov dword [ebp - 0x85c], 0xffff0000
sub esp, 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x888]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp + 8], 0x40f03c
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
lea eax, [ebp - 0x85c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x41b4a8]
mov dword [esp + 4], 0x1132
mov dword [esp], eax
mov eax, dword [ebp - 0x8b0]
call eax
mov dword [ebp - 0x85c], eax
mov eax, dword [ebp - 0x8ac]
sub esp, 0x10
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x8a4]
lea edx, [ebp - 0x608]
lea ecx, [ebp - 0x618]
sub esp, 4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov ecx, dword [ebp - 0x8d4]
mov dword [esp + 8], edi
mov eax, 0x5c
mov dword [esp], 0x80000000
mov dword [ebp - 0x618], ecx
mov ecx, dword [ebp - 0x8c0]
mov dword [ebp - 0x614], ecx
mov ecx, dword [ebp - 0x8c8]
mov dword [ebp - 0x610], ecx
mov ecx, dword [ebp - 0x8cc]
mov dword [ebp - 0x60c], ecx
lea ecx, [ebp - 0x618]
mov dword [esp + 4], ecx
mov word [ebp - 0x60a], ax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
lea edx, [ebp - 0x608]
sub esp, 0xc
mov ecx, edx
mov dword [esp], 0
jmp 0x4017db
lea eax, [ebp - 0x8a4]
mov dword [esp], edx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x618]
mov dword [ebp - 0x8a4], 0x200
mov dword [esp + 8], eax
mov dword [esp + 4], 0
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov eax, dword [ebp - 0x8ac]
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 0x10
mov dword [esp], eax
call esi
lea eax, [ebp - 0x618]
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x40148e
mov dword [esp], 0
mov eax, dword [ebp - 0x8ac]
mov edx, 0xffff0000
lea ecx, [ebp - 0x618]
call sym._CreateRegRec
mov edx, dword [ebp - 0x8ac]
jmp 0x401541
mov eax, dword [0x40f088]
cmp dword [ebp - 0x814], eax
jne 0x40156b
mov eax, dword [0x40f08c]
cmp dword [ebp - 0x810], eax
jne 0x40156b
movzx eax, word [0x40f090]
cmp word [ebp - 0x80c], ax
jne 0x40156b
xor eax, eax
jmp 0x401570