Function at 0x401ee0
Capabilities:
Hide graphical window
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6a0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x684], 0x730025
mov dword [ebp - 0x680], 0x25000a
mov dword [ebp - 0x67c], 0x73
mov dword [ebp + eax - 0x670], edx
add eax, 4
cmp eax, 0x20
jb 0x401f11
lea esi, [ebp - 0x40c]
xor eax, eax
mov ecx, pe_nt_image_headers32
mov dword [ebp - 0x678], 1
mov edi, esi
mov dword [ebp - 0x674], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x60c]
mov dword [ebp - 0x664], 0x100
mov dword [ebp - 0x668], eax
lea eax, [ebp - 0x678]
mov dword [esp + 0xc], eax
mov eax, dword [0x41b4d0]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 4], 0x113e
mov dword [ebp - 0x694], eax
call eax
mov eax, dword [ebp - 0x654]
sub esp, 0x10
test eax, eax
jne 0x402450
mov ecx, dword [ebp - 0x668]
xor eax, eax
nop
movzx edx, word [ecx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x401fa0
mov eax, dword [0x41b4a0]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowTextW]
mov eax, dword [0x41b4a4]
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x694]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x130c
call eax
mov eax, dword [ebp - 0x654]
mov edx, dword [0x41b4a4]
sub esp, 0x10
test eax, eax
je 0x402009
test byte [eax], 4
jne 0x4024a0
mov dword [esp], edx
mov esi, dword [ebp - 0x694]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1308
call esi
mov eax, dword [0x41b4a4]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1308
mov dword [esp], eax
call esi
sub esp, 0x10
lea eax, [ebp - 0x60c]
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._CreateRegPath
test eax, eax
je 0x4023b8
mov eax, dword [0x41b4a4]
mov ebx, 0xffff0000
mov esi, 0xffffffff
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x41b4a8]
mov edi, dword [ebp - 0x694]
sub esp, 8
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 4
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call edi
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x41b4a8]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1114
mov dword [esp], eax
call edi
mov eax, dword [0x41b4a8]
sub esp, 0x10
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1101
mov dword [esp], eax
call edi
lea eax, [ebp - 0x20c]
lea edi, [ebp - 0x60a]
mov dword [ebp - 0x648], 1
mov dword [ebp - 0x634], 0x100
sub esp, 0x10
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x64c], 0xffff0002
mov dword [ebp - 0x650], 0xffff0000
jmp 0x402153
add edi, 2
movzx eax, word [edi - 2]
cmp ax, 0x5c
je 0x40216c
test ax, ax
jne 0x402150
cmp ax, 0x5c
jne 0x402240
xor eax, eax
mov word [edi - 2], ax
lea eax, [ebp - 0x68c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x60c]
mov dword [esp + 4], eax
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x4022dd
cmp word [ebp - 0x60c], 0
je 0x402490
lea eax, [ebp - 0x60c]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4021b8
lea ecx, [ebp - 0x60c]
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x690], eax
mov dword [ebp - 0x688], 0x200
mov eax, 0x5c
mov word [edi - 2], ax
lea eax, [ebp - 0x688]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x20c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x68c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
je 0x4022e8
mov eax, dword [ebp - 0x68c]
mov dword [ebp - 0x650], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov esi, dword [ebp - 0x690]
sub esp, 4
jmp 0x402150
lea eax, [ebp - 0x68c]
mov dword [esp], 0x80000000
mov dword [esp + 8], eax
lea eax, [ebp - 0x60c]
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x4022dd
mov dword [esp], 1
mov eax, dword [ebp - 0x68c]
lea ecx, [ebp + esi*2 - 0x60a]
mov edx, ebx
call sym._CreateRegRec
mov eax, dword [ebp - 0x68c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41b4a8]
mov esi, dword [ebp - 0x694]
sub esp, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp], eax
call esi
mov eax, dword [0x41b4a8]
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1114
mov dword [esp], eax
call esi
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x690]
add esi, 1
mov ecx, dword [ebp - 0x688]
lea eax, [ebp - 0x20c]
mov dword [esp + 4], eax
sub edx, esi
mov dword [esp + 8], ecx
lea ebx, [edx + edx + 6]
mov dword [ebp - 0x69c], edx
add eax, ebx
mov dword [ebp - 0x698], ecx
sub ebx, 6
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
lea eax, [ebp + esi*2 - 0x60c]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sym._memcpy
mov ecx, dword [ebp - 0x698]
mov edx, dword [ebp - 0x69c]
cmp ecx, 1
je 0x402480
mov eax, 0x20
mov ecx, 0x3d
mov ebx, 0x20
mov word [ebp + edx*2 - 0x20c], ax
mov word [ebp + edx*2 - 0x20a], cx
mov word [ebp + edx*2 - 0x208], bx
lea eax, [ebp - 0x650]
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 - 0x694]
call eax
sub esp, 0x10
mov ebx, eax
jmp 0x40221a
mov eax, dword [0x41b4a4]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x41b4a8]
mov ebx, dword [ebp - 0x694]
sub esp, 8
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 4
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call ebx
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x41b4a8]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1114
mov dword [esp], eax
call ebx
mov eax, dword [0x41b4a8]
sub esp, 0x10
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1101
mov dword [esp], eax
call ebx
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, 0x202
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x668]
mov dword [esp + 8], eax
lea eax, [ebp - 0x684]
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_wsprintfW]
jmp 0x401fb0
xor esi, esi
mov word [ebp + edx*2 - 0x20c], si
jmp 0x40237e
mov dword [ebp - 0x690], 0
jmp 0x4021d1
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x694]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1304
mov dword [esp], edx
call eax
sub esp, 0x10
cmp eax, 1
jne 0x402054
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x208], edx
add eax, 4
cmp eax, 0x18
jb 0x4024d3
lea eax, [ebp - 0x60c]
lea esi, [ebp - 0x20c]
mov edi, dword [sym.imp.user32.dll_LoadStringW]
mov dword [ebp - 0x20c], 1
mov dword [ebp - 0x200], eax
mov dword [esp + 8], eax
mov eax, dword [0x41b4dc]
mov dword [ebp - 0x1fc], 0x100
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0xfb
mov dword [esp], eax
call edi
mov eax, dword [0x41b4a4]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [ebp - 0x694]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x133e
call eax
mov eax, dword [0x41b4dc]
lea ecx, [ebp - 0x60c]
sub esp, 0x10
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0xfc
mov dword [esp], eax
call edi
mov eax, dword [0x41b4a4]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [ebp - 0x694]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x133e
call eax
sub esp, 0x10
jmp 0x402054