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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50307b
mov eax, dword fs:[0]
push eax
sub esp, 0xc68
mov eax, dword [0x567e00]
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
mov dword [ebp - 0xc68], edi
lea eax, [ebp - 0xc74]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0xc74], 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.00411c10
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.00411c10
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 esi, 0x20019
cmp dword [ebp - 0xc74], edi
mov eax, 0x20119
cmovne esi, eax
lea eax, [ebp - 0xc5c]
mov dword [ebp - 0xc5c], edi
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 0x4381d8
mov edi, dword [ebp - 0xc5c]
lea eax, [ebp - 0xc5c]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0xc70], edi
push eax
lea eax, [ebp - 0xc64]
mov dword [ebp - 0xc5c], 0x208
push eax
push 0
push 0x516c74
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4381bf
mov eax, dword [ebp - 0xc64]
cmp eax, 1
je 0x4381ad
cmp eax, 2
jne 0x4381bf
cmp dword [ebp - 0xc5c], 0
jne 0x4381bf
xor eax, eax
mov word [ebp - 0x218], ax
test edi, edi
je 0x4381ce
push edi
call ebx
xor edi, edi
mov dword [ebp - 0xc70], edi
mov dword [ebp - 0xc6c], 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 0x438295
test edi, edi
je 0x43820d
push edi
call ebx
mov edi, dword [ebp - 0xc5c]
and esi, 0x300
mov dword [ebp - 0xc70], edi
mov dword [ebp - 0xc6c], esi
test eax, eax
jne 0x438295
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 0x516c74
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43827c
mov eax, dword [ebp - 0xc64]
cmp eax, 1
je 0x43826a
cmp eax, 2
jne 0x43827c
cmp dword [ebp - 0xc5c], 0
jne 0x43827c
xor eax, eax
mov word [ebp - 0x420], ax
test edi, edi
je 0x43828b
push edi
call ebx
xor edi, edi
mov dword [ebp - 0xc70], edi
mov dword [ebp - 0xc6c], 0
cmp dword [ebp - 0xc74], 0
mov esi, 0xf003f
mov eax, 0xf013f
cmovne esi, eax
lea eax, [ebp - 0xc5c]
mov dword [ebp - 0xc5c], 0
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 0x43841c
test edi, edi
je 0x4382de
push edi
call ebx
mov edi, dword [ebp - 0xc5c]
mov ecx, esi
and ecx, 0x300
mov dword [ebp - 0xc70], edi
mov dword [ebp - 0xc6c], ecx
test eax, eax
jne 0x43841c
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 0x516c74
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x438403
mov eax, dword [ebp - 0xc64]
cmp eax, 1
je 0x438349
cmp eax, 2
jne 0x438403
mov eax, dword [ebp - 0xc5c]
test eax, eax
je 0x43836d
test al, 1
jne 0x438403
shr eax, 1
cmp word [ebp + eax*2 - 0x62a], 0
je 0x438376
jmp 0x438403
xor eax, eax
mov word [ebp - 0x628], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438380
sub ecx, edx
sar ecx, 1
je 0x438403
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4383a0
sub ecx, edx
sar ecx, 1
je 0x438403
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 0x438403
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4383d5
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x516c74
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x438412
push edi
call ebx
xor edi, edi
mov dword [ebp - 0xc70], edi
mov dword [ebp - 0xc6c], 0
mov byte [ebp - 0xc5d], 0
lea eax, [ebp - 0xc5c]
mov dword [ebp - 0xc5c], 0
push eax
push esi
push 0
lea eax, [ebp - 0xc40]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43846c
test edi, edi
je 0x438454
push edi
call ebx
mov edi, dword [ebp - 0xc5c]
and esi, 0x300
mov dword [ebp - 0xc70], edi
mov dword [ebp - 0xc6c], esi
mov byte [ebp - 4], 0
test eax, eax
jne 0x438660
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 0x516c74
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43857e
mov eax, dword [ebp - 0xc64]
cmp eax, 1
je 0x4384c1
cmp eax, 2
jne 0x43857e
mov eax, dword [ebp - 0xc5c]
test eax, eax
je 0x4384e5
test al, 1
jne 0x43857e
shr eax, 1
cmp word [ebp + eax*2 - 0x832], 0
je 0x4384ee
jmp 0x43857e
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 0x4384f7
sub ecx, edx
sar ecx, 1
je 0x43857e
lea ecx, [ebp - 0x830]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438511
sub ecx, edx
sar ecx, 1
je 0x43857e
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 0x43857e
lea ecx, [ebp - 0x420]
mov byte [ebp - 0xc5d], 1
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438550
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
push 0
push 0x516c74
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x43858d
push edi
call ebx
xor edi, edi
mov dword [ebp - 0xc70], edi
cmp byte [ebp - 0xc5d], 0
mov dword [ebp - 0xc6c], 0
je 0x438660
lea eax, [ebp - 0xc58]
push 0x15
push eax
call fcn.00417040
cmp dword [ebp - 0xc44], 8
lea eax, [ebp - 0xc58]
mov byte [ebp - 4], 5
cmovae eax, dword [ebp - 0xc58]
push eax
call fcn.00416b00
add esp, 0xc
test al, al
je 0x43861e
cmp dword [ebp - 0xc44], 8
lea eax, [ebp - 0xc58]
push 0
cmovae eax, dword [ebp - 0xc58]
push str._regyunpan__forceperusermode
push eax
call fcn.004566b0
add esp, 0xc
test eax, eax
jns 0x43861e
push eax
push str.Failed_run_ksomisc_:_0x_08x..
push str.kupdate::KWpsUpdateImpl::_execProcSyncYunpanHkey
push 0x1137
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 0
call fcn.00412230
add esp, 0x18
mov edx, dword [ebp - 0xc44]
cmp edx, 8
jb 0x438660
mov ecx, dword [ebp - 0xc58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438656
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x438656
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
test edi, edi
je 0x438667
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.004c6f8b
mov esp, ebp
pop ebp
ret