Function at 0x591de0
Capabilities:
Check mutex on windows
Create thread
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aef65
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x63434c]
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 dword [ebp - 0x7c], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
xor eax, eax
push 0x2e
mov dword [ebp - 0x44], 0
push str._KHDIDMGR_3E67DFEF_DF4E_4CC6_9413_5F71C7C96C04
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.0042e2d0
cmp dword [ebp - 0x30], 8
lea edi, [ebp - 0x44]
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
cmovae edi, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp ecx, 8
jae 0x591e9a
mov eax, dword [edi]
mov esi, 7
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
jmp 0x591ed5
mov esi, ecx
mov eax, 0x7ffffffe
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.0042e270
mov ecx, eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
lea eax, [eax*2 + 2]
push eax
push edi
push ecx
call fcn.0055bfb0
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x591f16
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x591f09
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59225f
push ecx
push ebx
call fcn.00558004
mov esi, dword [ebp - 0x14]
add esp, 8
cmp dword [ebp - 0x2c], 0
jne 0x591fea
cmp esi, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x591f67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x591fe7
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x591fe7
push esi
call edi
mov esi, dword [ebp - 0x70]
push esi
call fcn.00592270
mov eax, dword [ebp - 0x2c]
add esp, 4
test eax, eax
je 0x591f8d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x2c]
call edi
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x591fc7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x591fbd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59225f
push edx
push ecx
call fcn.00558004
add esp, 8
mov eax, esi
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.00557e89
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x2c], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x54]
push eax
call edi
movzx ebx, word [ebp - 0x4e]
lea ecx, [ebp - 0x6c]
push 7
xor eax, eax
mov dword [ebp - 0x6c], 0
push str.InfoHDt
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
call fcn.0042e2d0
push 0x23
push str.SoftwareKingsoftOffice6.0Common
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
call fcn.0042e2d0
cmp dword [ebp - 0x58], 8
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x74]
mov dword [ebp - 0x74], 0
push edx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x78], 4
cmovae ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push 0
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, dword [ebp - 0x74]
xor ecx, ecx
mov edx, dword [ebp - 0x30]
test eax, eax
cmovne esi, ecx
cmp edx, 8
jb 0x5920d9
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5920cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x592264
push edx
push ecx
call fcn.00558004
add esp, 8
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x59212b
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x592121
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x592264
push edx
push ecx
call fcn.00558004
add esp, 8
cmp ebx, esi
je 0x59218a
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x54]
push eax
call edi
movzx eax, word [ebp - 0x4e]
push 4
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
push 4
push str.InfoHDt
push str.SoftwareKingsoftOffice6.0Common
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ebx, dword [ebp - 0x7c]
cmp dword [ebx], 0
jne 0x59218d
push 0
push 0
push 0
push 0x590d50
push 0
push 0
call fcn.005667c7
add esp, 0x18
mov dword [ebx], eax
jmp 0x59218d
mov ebx, dword [ebp - 0x7c]
lea eax, [ebp - 0x6c]
push eax
call fcn.00592270
add esp, 4
cmp dword [ebp - 0x5c], 0
mov byte [ebp - 4], 4
je 0x5921d9
mov esi, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.0043f980
lea ecx, [ebp - 0x6c]
call fcn.0042aad0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x591f8d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x591f86
mov eax, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x5921f9
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebx]
call edi
mov dword [ebx], 0
mov esi, dword [ebp - 0x70]
push esi
call fcn.00592270
add esp, 4
lea ecx, [ebp - 0x6c]
call fcn.0042aad0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x592227
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x2c]
call edi
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x591fc7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x591fbd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x591fbd
call fcn.00566a14
call fcn.00566a14
int3