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

Disassembly:
push ebp
xor eax, eax
mov ecx, 8
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x684]
lea esi, [ebp - 0x618]
push ebx
lea ebx, [ebp - 0x67c]
mov edi, ebx
lea ebx, [ebp - 0x418]
sub esp, 0x6bc
mov dword [ebp - 0x690], 0x730025
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
mov edi, ebx
mov dword [ebp - 0x68c], 0x25000a
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x688], 0x73
mov dword [ebp - 0x684], 1
mov dword [ebp - 0x680], eax
mov eax, dword [0x40e330]
mov dword [ebp - 0x674], esi
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x670], 0x100
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113e
mov dword [ebp - 0x6a0], eax
call eax
mov eax, dword [ebp - 0x660]
sub esp, 0x10
test eax, eax
jne 0x40b5d0
mov ecx, dword [ebp - 0x674]
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ecx + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x40b0c0
mov eax, dword [0x40e308]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowTextW]
mov eax, dword [0x40e30c]
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x6a0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x130c
call eax
mov eax, dword [ebp - 0x660]
sub esp, 0x10
test eax, eax
je 0x40b123
test byte [eax], 4
jne 0x40b4cd
mov eax, dword [0x40e30c]
mov ebx, dword [ebp - 0x6a0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1308
mov dword [esp], eax
call ebx
mov eax, dword [0x40e30c]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1308
mov dword [esp], eax
call ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x100
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._CreateRegPath
test eax, eax
je 0x40b360
mov eax, dword [0x40e30c]
mov dword [esp + 4], 5
mov ebx, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x40e310]
mov edi, dword [ebp - 0x6a0]
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 [0x40e310]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1114
mov dword [esp], eax
call edi
mov eax, dword [0x40e310]
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 - 0x218]
lea edi, [ebp - 0x616]
mov dword [ebp - 0x654], 1
mov dword [ebp - 0x640], 0x100
sub esp, 0x10
mov dword [ebp - 0x644], eax
mov dword [ebp - 0x658], 0xffff0002
mov dword [ebp - 0x65c], 0xffff0000
mov dword [ebp - 0x6a4], 0xffff0000
jmp 0x40b343
cmp ax, 0x5c
jne 0x40b620
xor eax, eax
mov word [edi - 2], ax
lea eax, [ebp - 0x698]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x40b3ea
cmp word [ebp - 0x618], 0
je 0x40b610
mov eax, esi
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40b2c0
sub eax, esi
sar eax, 1
mov dword [ebp - 0x69c], eax
mov dword [ebp - 0x694], 0x200
mov eax, 0x5c
mov word [edi - 2], ax
lea eax, [ebp - 0x694]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x218]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x698]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
je 0x40b3f8
mov eax, dword [ebp - 0x6a4]
mov dword [ebp - 0x65c], eax
mov eax, dword [ebp - 0x698]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x69c]
sub esp, 4
add edi, 2
movzx eax, word [edi - 2]
cmp ax, 0x5c
je 0x40b27a
test ax, ax
jne 0x40b340
jmp 0x40b270
mov eax, dword [0x40e30c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x40e310]
mov esi, dword [ebp - 0x6a0]
sub esp, 8
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 [0x40e310]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1114
mov dword [esp], eax
call esi
mov eax, dword [0x40e310]
sub esp, 0x10
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1101
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 - 0x69c]
lea ecx, [ebx + 1]
mov eax, dword [ebp - 0x694]
mov dword [ebp - 0x6ac], ecx
sub edx, ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x6a4], eax
lea ebx, [edx + edx + 6]
mov dword [esp + 8], eax
lea eax, [ecx + ebx]
mov dword [ebp - 0x6a8], edx
sub ebx, 6
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov ecx, dword [ebp - 0x6ac]
mov dword [esp + 8], ebx
lea eax, [esi + ecx*2]
lea ecx, [ebp - 0x218]
mov dword [esp + 4], eax
mov dword [esp], ecx
call sym._memcpy
cmp dword [ebp - 0x6a4], 1
mov edx, dword [ebp - 0x6a8]
je 0x40b600
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 + 0xc], eax
mov eax, dword [0x40e310]
mov dword [esp + 4], 0x1132
mov dword [esp], eax
mov eax, dword [ebp - 0x6a0]
call eax
mov dword [ebp - 0x6a4], eax
sub esp, 0x10
jmp 0x40b31c
mov eax, dword [0x40e30c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x6a0]
mov dword [esp + 4], 0x1304
call eax
sub esp, 0x10
cmp eax, 1
jne 0x40b173
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x214], edx
add eax, 4
cmp eax, 0x18
jb 0x40b505
mov eax, dword [0x40e33c]
mov dword [esp + 8], esi
lea ebx, [ebp - 0x218]
mov edi, dword [sym.imp.user32.dll_LoadStringW]
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x208], 0x100
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0xfb
mov dword [esp], eax
call edi
mov eax, dword [0x40e30c]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [ebp - 0x6a0]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x133e
call eax
mov eax, dword [0x40e33c]
sub esp, 0x10
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], 0xfc
mov dword [esp], eax
call edi
mov eax, dword [0x40e30c]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [ebp - 0x6a0]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 0x133e
call eax
sub esp, 0x10
jmp 0x40b173
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 0x40b0d0
xor eax, eax
mov word [ebp + edx*2 - 0x218], ax
jmp 0x40b495
mov dword [ebp - 0x69c], 0
jmp 0x40b2d3
lea eax, [ebp - 0x698]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x40b3ea
lea ecx, [esi + ebx*2 + 2]
mov dword [esp], 1
mov esi, dword [ebp - 0x6a4]
mov eax, dword [ebp - 0x698]
mov edx, esi
call sym._CreateRegRec
mov eax, dword [ebp - 0x698]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x40e310]
mov ebx, dword [ebp - 0x6a0]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp], eax
call ebx
mov eax, dword [0x40e310]
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1114
mov dword [esp], eax
call ebx
sub esp, 0x10
jmp 0x40b3ea