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

Disassembly:
push ebp
mov eax, 0x25
mov edx, 0x25
mov ecx, 0x73
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
lea esi, [ebp - 0x618]
sub esp, 0x6bc
mov word [ebp - 0x690], ax
mov word [ebp - 0x68a], dx
mov eax, 0x73
lea edx, [ebp - 0x684]
mov word [ebp - 0x686], bx
mov word [ebp - 0x68e], ax
lea ebx, [ebp - 0x418]
mov eax, 0xa
mov word [ebp - 0x68c], ax
mov word [ebp - 0x688], cx
xor eax, eax
mov edi, edx
mov ecx, 0xa
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
mov edi, ebx
mov dword [ebp - 0x684], 1
mov dword [ebp - 0x674], esi
mov dword [ebp - 0x670], 0x100
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113e
mov dword [ebp - 0x680], eax
mov eax, dword [0x41a4d0]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x6a8], eax
call eax
mov eax, dword [ebp - 0x660]
sub esp, 0x10
test eax, eax
jne 0x402424
mov ecx, dword [ebp - 0x674]
xor eax, eax
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x402000
mov eax, dword [0x41a4a0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowTextW]
mov eax, dword [0x41a4a4]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x130c
mov dword [esp], eax
call dword [ebp - 0x6a8]
mov eax, dword [ebp - 0x660]
sub esp, 0x10
test eax, eax
je 0x402061
test byte [eax], 4
jne 0x40244f
mov eax, dword [0x41a4a4]
mov ebx, dword [ebp - 0x6a8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1308
mov dword [esp], eax
mov eax, ebx
call eax
mov eax, dword [0x41a4a4]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1308
mov dword [esp], eax
mov eax, ebx
call eax
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x100
mov dword [esp + 4], esi
mov dword [esp], eax
call dbg.CreateRegPath
test eax, eax
je 0x402370
mov eax, dword [0x41a4a4]
mov dword [esp + 4], 5
lea edi, [ebp - 0x616]
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x41a4a8]
sub esp, 8
mov ebx, dword [ebp - 0x6a8]
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 [0x41a4a8]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1114
mov dword [esp], eax
mov eax, ebx
call eax
mov eax, dword [0x41a4a8]
sub esp, 0x10
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1101
mov dword [esp], eax
mov eax, ebx
mov ebx, 0xffff0000
call eax
lea eax, [ebp - 0x218]
sub esp, 0x10
mov dword [ebp - 0x654], 1
mov dword [ebp - 0x640], 0x100
mov dword [ebp - 0x658], 0xffff0002
mov dword [ebp - 0x6a0], eax
mov dword [ebp - 0x644], eax
mov dword [ebp - 0x65c], 0xffff0000
mov dword [ebp - 0x6a4], 0xffffffff
jmp 0x4021bb
test ax, ax
je 0x4021c5
add edi, 2
movzx eax, word [edi - 2]
cmp ax, 0x5c
jne 0x4021b3
cmp ax, 0x5c
jne 0x402560
xor eax, eax
mov word [edi - 2], ax
lea eax, [ebp - 0x698]
mov dword [esp + 4], esi
mov dword [esp], 0x80000000
mov dword [esp + 8], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x4023fe
cmp word [ebp - 0x618], 0
je 0x402406
mov eax, esi
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402210
sub eax, esi
sar eax, 1
mov dword [ebp - 0x69c], eax
mov eax, 0x5c
mov dword [ebp - 0x694], 0x200
mov word [edi - 2], ax
lea eax, [ebp - 0x694]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x6a0]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x698]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
je 0x402291
mov eax, dword [ebp - 0x698]
mov dword [ebp - 0x65c], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x69c]
sub esp, 4
mov dword [ebp - 0x6a4], eax
jmp 0x4021b8
mov eax, dword [ebp - 0x6a4]
mov ecx, dword [ebp - 0x694]
mov edx, dword [ebp - 0x69c]
add eax, 1
mov dword [esp + 8], ecx
mov dword [ebp - 0x6ac], ecx
sub edx, eax
mov ecx, dword [ebp - 0x6a0]
mov dword [ebp - 0x6a4], eax
lea ebx, [edx + edx + 6]
mov dword [ebp - 0x6b0], edx
lea eax, [ecx + ebx]
mov dword [esp + 4], ecx
sub ebx, 6
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [ebp - 0x6a4]
mov ecx, dword [ebp - 0x6a0]
mov dword [esp + 8], ebx
lea eax, [esi + eax*2]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym._memcpy
mov ecx, dword [ebp - 0x6ac]
mov edx, dword [ebp - 0x6b0]
cmp ecx, 1
je 0x402415
mov eax, 0x20
mov ecx, 0x3d
mov ebx, 0x20
mov word [ebp + edx*2 - 0x218], ax
mov word [ebp + edx*2 - 0x216], cx
mov word [ebp + edx*2 - 0x214], bx
lea eax, [ebp - 0x65c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp + 0xc], eax
mov eax, dword [0x41a4a8]
mov dword [esp], eax
call dword [ebp - 0x6a8]
sub esp, 0x10
mov ebx, eax
jmp 0x402268
mov eax, dword [0x41a4a4]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x41a4a8]
sub esp, 8
mov esi, dword [ebp - 0x6a8]
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 4
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x41a4a8]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1114
mov dword [esp], eax
mov eax, esi
call eax
mov eax, dword [0x41a4a8]
sub esp, 0x10
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1101
mov dword [esp], eax
mov eax, esi
call eax
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x69c], 0
jmp 0x402223
xor eax, eax
mov word [ebp + edx*2 - 0x218], ax
jmp 0x402336
add eax, 0x202
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x674]
mov dword [esp + 8], eax
lea eax, [ebp - 0x690]
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_wsprintfW]
jmp 0x402010
mov eax, dword [0x41a4a4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1304
mov dword [esp], eax
call dword [ebp - 0x6a8]
sub esp, 0x10
cmp eax, 1
jne 0x4020b5
lea eax, [ebp - 0x218]
mov dword [ebp - 0x6a0], eax
xor eax, eax
mov ecx, dword [ebp - 0x6a0]
mov dword [ecx + eax], 0
add eax, 4
cmp eax, 0x1c
jb 0x40248f
mov eax, dword [0x41a4dc]
mov ebx, dword [sym.imp.user32.dll_LoadStringW]
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], 0x100
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], 0xfb
mov dword [esp], eax
call ebx
mov edi, dword [ebp - 0x6a0]
mov eax, dword [0x41a4a4]
sub esp, 0x10
mov dword [esp + 8], 1
mov dword [esp + 4], 0x133e
mov dword [esp + 0xc], edi
mov dword [esp], eax
call dword [ebp - 0x6a8]
mov eax, dword [0x41a4dc]
sub esp, 0x10
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], 0xfc
mov dword [esp], eax
call ebx
mov eax, dword [0x41a4a4]
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x133e
mov dword [esp], eax
call dword [ebp - 0x6a8]
sub esp, 0x10
jmp 0x4020b5
lea eax, [ebp - 0x698]
mov dword [esp + 4], esi
mov dword [esp], 0x80000000
mov dword [esp + 8], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x4023fe
mov eax, dword [ebp - 0x6a4]
mov edx, ebx
mov dword [esp], 1
lea ecx, [esi + eax*2 + 2]
mov eax, dword [ebp - 0x698]
mov esi, ebx
call dbg.CreateRegRec
mov eax, dword [ebp - 0x698]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [0x41a4a8]
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp - 0x6a8]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp], eax
mov eax, ebx
call eax
mov eax, dword [0x41a4a8]
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1114
mov dword [esp], eax
mov eax, ebx
call eax
sub esp, 0x10
jmp 0x4023fe