Function at 0x40cb40
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x565fdc
mov eax, dword fs:[0]
push eax
sub esp, 0x4dc
mov eax, dword [0x5d51c0]
xor eax, esp
mov dword [esp + 0x4d4], eax
push esi
push edi
mov eax, dword [0x5d51c0]
xor eax, esp
push eax
lea eax, [esp + 0x4e8]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004248f0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00429e63
mov dword [esp + 0x30], vtable.CRegCtrl.0
mov eax, dword [eax + 0x2b60]
mov dword [edi + 0x518], eax
xor eax, eax
mov dword [esp + 0x4f0], 0
push 0x206
push eax
mov word [esp + 0x2dc], ax
lea eax, [esp + 0x2de]
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0x104
call fcn.0054cbf0
add esp, 0xc
xor eax, eax
mov word [esp + 0xcc], ax
push 0x206
push eax
lea eax, [esp + 0xd6]
push eax
call fcn.0054cbf0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push str.SOFTWAREHNCSharedInstall_InformationHwp96
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40d133
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2d8]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push str.Path
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x2d4]
push eax
lea eax, [esp + 0xd0]
push 0x104
push eax
call fcn.0054b04d
add esp, 0xc
lea eax, [esp + 0xcc]
push str.HOffice96Bin_
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push str.HwpCtrl.ocx
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push eax
call fcn.0041f500
lea eax, [esp + 0xcc]
push eax
push 0x97
call fcn.00407d80
lea eax, [esp + 0x2d4]
push eax
lea eax, [esp + 0xd0]
push 0x104
push eax
call fcn.0054b04d
add esp, 0xc
lea eax, [esp + 0xcc]
push str.HOffice96Bin_
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push str.HncShellExt.dll
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push eax
call fcn.0041f500
lea eax, [esp + 0xcc]
push eax
push 0x98
call fcn.00407d80
mov ax, word [0x5af660]
movdqu xmm0, xmmword [str._SystemRoot__system32prevhost.exe]
mov word [esp + 0xb4], ax
mov al, byte [0x5af662]
mov byte [esp + 0xb6], al
lea eax, [esp + 0xc]
push eax
movdqu xmmword [esp + 0x98], xmm0
push str.AppIDB1FE9549_2089_4718_853B_0FE47D355DF1
movdqu xmm0, xmmword [0x5af650]
push SysReAllocString
mov dword [esp + 0x18], 0
movdqu xmmword [esp + 0xb0], xmm0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40cda4
push 0x23
lea eax, [esp + 0x98]
push eax
push 2
push 0
push str.DllSurrogate
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0xc]
call esi
lea eax, [esp + 0x2d4]
push eax
lea eax, [esp + 0xd0]
push 0x104
push eax
call fcn.0054b04d
add esp, 0xc
lea eax, [esp + 0xcc]
push str.HOffice96Bin_
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
mov dword [esp + 0xc], 0
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40ce18
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [esp + 0x20]
cmp dword [esp + 0xc], 0
je 0x40cf1d
push str.HncShellExt64.dll
lea eax, [esp + 0xd0]
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push eax
call fcn.0041f500
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push 0x106
push 0
push 0
push 0
push str.CLSID72722542_804D_470D_83AD_A9787AD56D98InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ce97
push 0x104
lea eax, [esp + 0xd0]
push eax
push 1
push 0
push 0
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0xc]
call esi
mov ax, word [0x5af7a0]
movdqu xmm0, xmmword [str._SystemRoot_SysWOW64prevhost.exe]
mov word [esp + 0xb4], ax
mov al, byte [0x5af7a2]
mov byte [esp + 0xb6], al
lea eax, [esp + 0xc]
push eax
movdqu xmmword [esp + 0x98], xmm0
push str.AppIDB1FE9549_2089_4718_853B_0FE47D355DF1
movdqu xmm0, xmmword [0x5af790]
push SysReAllocString
mov dword [esp + 0x18], 0
movdqu xmmword [esp + 0xb0], xmm0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40cf17
push 0x23
lea eax, [esp + 0x98]
push eax
push 2
push 0
push str.DllSurrogate
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0xc]
call esi
lea eax, [esp + 0x2d4]
push eax
lea eax, [esp + 0xd0]
push 0x104
push eax
call fcn.0054b04d
add esp, 0xc
lea eax, [esp + 0xcc]
push str.HOffice96Bin_
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push str.hwpautomation.dll
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push eax
call fcn.0041f500
lea eax, [esp + 0xcc]
push eax
push 0x9f
call fcn.00407d80
lea eax, [esp + 0x2d4]
push eax
lea eax, [esp + 0xd0]
push 0x104
push eax
call fcn.0054b04d
add esp, 0xc
lea eax, [esp + 0xcc]
push str.HOffice96Bin_
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push str.HwpObject.tlb
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push eax
push 0xa1
call fcn.00407d80
lea eax, [esp + 0x2d4]
push eax
lea eax, [esp + 0xd0]
push 0x104
push eax
call fcn.0054b04d
add esp, 0xc
lea eax, [esp + 0xcc]
push str.HOffice96Bin_
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push str.hwp.exe
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push eax
push 0xa6
call fcn.00407d80
lea eax, [esp + 0x2d4]
push eax
lea eax, [esp + 0xd0]
push 0x104
push eax
call fcn.0054b04d
add esp, 0xc
push str.HOffice96Bin_
push 0x104
lea eax, [esp + 0xd4]
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push str.HncAccessible.dll
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push eax
push 0xab
call fcn.00407d80
lea eax, [esp + 0x2d4]
push eax
lea eax, [esp + 0xd0]
push 0x104
push eax
call fcn.0054b04d
add esp, 0xc
lea eax, [esp + 0xcc]
push str.HOffice96Bin_
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push str.HncOcxOld_
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push str.HMapsiX.ocx
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0xcc]
push eax
push 0xb4
call fcn.00407d80
push dword [esp + 0x10]
call esi
push 0x5adca8
lea esi, [edi + 0x29c]
mov dword [esp + 0x10], 0
push 0x104
push esi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 0x104
call fcn.0054b04d
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SoftwareHncPath
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d1b0
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x28]
push eax
push 0
push str.Work
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d1b5
sub ecx, edx
sar ecx, 1
jne 0x40d207
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 2
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [esp + 0x24]
push eax
push esi
lea eax, [esp + 0x18]
push eax
push 0
push str.Personal
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [edi + 0x118]
call fcn.0042eea0
lea eax, [esp + 0xc]
mov dword [esp + 0x18], 4
push eax
push str.SoftwareHNCShared9.6Fonts
push SysReAllocString
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x40d293
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push str._font
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d289
cmp dword [esp + 0x10], 1
push eax
jne 0x40d27a
push 1
jmp 0x40d27c
push 0
push 0xf1
push dword [edi + 0x624]
call esi
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.UxTheme.dll_SetWindowTheme]
push 0x5adca8
push 0x5adca8
push dword [edi + 0x624]
call esi
push 0x5adca8
push 0x5adca8
push dword [edi + 0x4c4]
call esi
push 0x5adca8
push 0x5adca8
push dword [edi + 0x53c]
call esi
push 0x5adca8
push 0x5adca8
push dword [edi + 0x698]
call esi
push 0x5ad394
lea ecx, [esp + 0x20]
call fcn.004058d0
mov byte [esp + 0x4f0], 1
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004092f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
call fcn.00408c80
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4f4], 2
call fcn.00409360
mov byte [esp + 0x4f0], 1
or eax, 0xffffffff
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40d351
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
movdqa xmm0, xmmword [0x5b2770]
xor esi, esi
movdqu xmmword [esp + 0x94], xmm0
mov dword [esp + 0x10], esi
movdqa xmm0, xmmword [0x5b26d0]
movdqu xmmword [esp + 0xa4], xmm0
movdqa xmm0, xmmword [0x5b26e0]
movdqu xmmword [esp + 0xb4], xmm0
lea ebx, [ebx]
push 0x5c
lea eax, [esp + 0x38]
push 0
push eax
call fcn.0054cbf0
mov esi, dword [esp + esi*4 + 0xa0]
add esp, 0xc
mov ecx, edi
push esi
call fcn.0042e5d4
push 0
push 0
push 0x31
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.0043062c
lea ecx, [esp + 0x34]
push ecx
push 0x5c
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_GetObjectW]
push dword [esp + 0x1c]
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], vtable.CFont.0
lea eax, [esp + 0x34]
mov byte [esp + 0x4f0], 3
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0x2c]
call fcn.004303b3
push esi
mov ecx, edi
call fcn.0042e5d4
push 1
push dword [esp + 0x30]
push 0x30
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x28]
call fcn.0043052e
mov byte [esp + 0x4f0], 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], vtable.CFont.0
call fcn.00409160
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0xc
jl 0x40d390
mov byte [esp + 0x4f0], 0
or ecx, 0xffffffff
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d484
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [esp + 0x4e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x4d4]
xor ecx, esp
call fcn.0054a22c
mov esp, ebp
pop ebp
ret