Function at 0x437160
Capabilities:
Persist via com hijack
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e03f6
mov eax, dword fs:[0]
push eax
sub esp, 0xc68
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc70], edi
mov dword [ebp - 0xc6c], edi
lea eax, [ebp - 0xc68]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0xc68], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
push 0x208
lea eax, [ebp - 0xa38]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push esi
push str.SoftwareClassesCLSID_sDefaultIcon
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.00412150
push 0x208
lea eax, [ebp - 0xc40]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push esi
push str.SoftwareClassesCLSID_sInProcServer32
lea eax, [ebp - 0xc40]
push 0x104
push eax
call fcn.00412150
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x44
lea eax, [ebp - 0x420]
push 0x208
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x628]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x830]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
mov dword [ebp - 0xc5c], edi
cmp dword [ebp - 0xc68], edi
mov eax, 0x20119
mov esi, 0x20019
cmovne esi, eax
lea eax, [ebp - 0xc5c]
push eax
push esi
push edi
lea eax, [ebp - 0xa38]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x437306
mov edi, dword [ebp - 0xc5c]
lea eax, [ebp - 0xc5c]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0xc5c], 0x208
push eax
lea eax, [ebp - 0xc64]
push eax
push 0
push 0x4f0da4
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4372f3
mov eax, dword [ebp - 0xc64]
cmp eax, 1
je 0x4372e1
cmp eax, 2
jne 0x4372f3
cmp dword [ebp - 0xc5c], 0
jne 0x4372f3
xor eax, eax
mov word [ebp - 0x218], ax
test edi, edi
je 0x4372fc
push edi
call ebx
xor edi, edi
mov dword [ebp - 0xc70], 0
lea eax, [ebp - 0xc5c]
mov dword [ebp - 0xc5c], 0
push eax
push esi
push 0
lea eax, [ebp - 0xc40]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4373b7
test edi, edi
je 0x43733b
push edi
call ebx
mov edi, dword [ebp - 0xc5c]
and esi, 0x300
mov dword [ebp - 0xc70], esi
test eax, eax
jne 0x4373b7
lea eax, [ebp - 0xc5c]
mov dword [ebp - 0xc5c], 0x208
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc64]
push eax
push 0
push 0x4f0da4
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4373a4
mov eax, dword [ebp - 0xc64]
cmp eax, 1
je 0x437392
cmp eax, 2
jne 0x4373a4
cmp dword [ebp - 0xc5c], 0
jne 0x4373a4
xor eax, eax
mov word [ebp - 0x420], ax
test edi, edi
je 0x4373ad
push edi
call ebx
xor edi, edi
mov dword [ebp - 0xc70], 0
cmp dword [ebp - 0xc68], 0
mov eax, 0xf013f
mov esi, 0xf003f
mov dword [ebp - 0xc5c], 0
cmovne esi, eax
lea eax, [ebp - 0xc5c]
push eax
push esi
push 0
lea eax, [ebp - 0xa38]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x437536
test edi, edi
je 0x437400
push edi
call ebx
mov edi, dword [ebp - 0xc5c]
mov ecx, esi
and ecx, 0x300
mov dword [ebp - 0xc70], ecx
test eax, eax
jne 0x437536
lea eax, [ebp - 0xc5c]
mov dword [ebp - 0xc5c], 0x208
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0xc64]
push eax
push 0
push 0x4f0da4
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x437523
mov eax, dword [ebp - 0xc64]
cmp eax, 1
je 0x437465
cmp eax, 2
jne 0x437523
mov eax, dword [ebp - 0xc5c]
test eax, eax
je 0x437489
test al, 1
jne 0x437523
shr eax, 1
cmp word [ebp + eax*2 - 0x62a], 0
je 0x437492
jmp 0x437523
xor eax, eax
mov word [ebp - 0x628], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x4374a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4374a0
sub ecx, edx
sar ecx, 1
je 0x437523
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4374c0
sub ecx, edx
sar ecx, 1
je 0x437523
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x437523
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4374f5
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x4f0da4
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x43752c
push edi
call ebx
xor edi, edi
mov dword [ebp - 0xc70], 0
lea eax, [ebp - 0xc5c]
mov byte [ebp - 0xc5d], 0
push eax
push esi
push 0
lea eax, [ebp - 0xc40]
mov dword [ebp - 0xc5c], 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x437780
test edi, edi
je 0x437572
push edi
call ebx
mov edi, dword [ebp - 0xc5c]
and esi, 0x300
mov dword [ebp - 0xc74], edi
mov dword [ebp - 0xc70], esi
test eax, eax
jne 0x437780
lea eax, [ebp - 0xc5c]
mov dword [ebp - 0xc5c], 0x208
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0xc64]
push eax
push 0
push 0x4f0da4
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43769e
mov eax, dword [ebp - 0xc64]
cmp eax, 1
je 0x4375db
cmp eax, 2
jne 0x43769e
mov eax, dword [ebp - 0xc5c]
test eax, eax
je 0x4375ff
test al, 1
jne 0x43769e
shr eax, 1
cmp word [ebp + eax*2 - 0x832], 0
je 0x437608
jmp 0x43769e
xor eax, eax
mov word [ebp - 0x830], ax
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437611
sub ecx, edx
sar ecx, 1
je 0x43769e
lea ecx, [ebp - 0x830]
lea edx, [ecx + 2]
jmp 0x437630
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437630
sub ecx, edx
sar ecx, 1
je 0x43769e
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x43769e
lea ecx, [ebp - 0x420]
mov byte [ebp - 0xc5d], 1
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437670
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
push 0
push 0x4f0da4
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x4376ad
push edi
call ebx
xor edi, edi
mov dword [ebp - 0xc74], edi
cmp byte [ebp - 0xc5d], 0
mov dword [ebp - 0xc70], 0
je 0x437780
lea eax, [ebp - 0xc58]
push 0x13
push eax
call fcn.00416f00
cmp dword [ebp - 0xc44], 8
lea eax, [ebp - 0xc58]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0xc58]
push eax
call fcn.004168a0
add esp, 0xc
test al, al
je 0x43773e
cmp dword [ebp - 0xc44], 8
lea eax, [ebp - 0xc58]
push 0
cmovae eax, dword [ebp - 0xc58]
push str._regyunpan__forceperusermode
push eax
call fcn.004548c0
add esp, 0xc
test eax, eax
jns 0x43773e
push eax
push str.Failed_run_ksomisc_:_0x_08x..
push str.kupdate::KWpsUpdateImpl::_execProcSyncYunpanHkey
push 0x10fc
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 0
call fcn.00412750
add esp, 0x18
mov edx, dword [ebp - 0xc44]
cmp edx, 8
jb 0x437780
mov ecx, dword [ebp - 0xc58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437776
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x437776
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
test edi, edi
je 0x437787
push edi
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret