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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3a55
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x639354]
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.0042e330
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 0x59640a
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 0x596445
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.0042e2d0
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.00560500
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 0x596486
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x596479
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5967cf
push ecx
push ebx
call fcn.0055c524
mov esi, dword [ebp - 0x14]
add esp, 8
cmp dword [ebp - 0x2c], 0
jne 0x59655a
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 0x5964d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x596557
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x596557
push esi
call edi
mov esi, dword [ebp - 0x70]
push esi
call fcn.005967e0
mov eax, dword [ebp - 0x2c]
add esp, 4
test eax, eax
je 0x5964fd
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 0x596537
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x59652d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5967cf
push edx
push ecx
call fcn.0055c524
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.0055c3a9
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.0042e330
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.0042e330
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 0x596649
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x59663f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5967d4
push edx
push ecx
call fcn.0055c524
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 0x59669b
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x596691
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5967d4
push edx
push ecx
call fcn.0055c524
add esp, 8
cmp ebx, esi
je 0x5966fa
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 0x5966fd
push 0
push 0
push 0
push 0x5952c0
push 0
push 0
call fcn.0056ad17
add esp, 0x18
mov dword [ebx], eax
jmp 0x5966fd
mov ebx, dword [ebp - 0x7c]
lea eax, [ebp - 0x6c]
push eax
call fcn.005967e0
add esp, 4
cmp dword [ebp - 0x5c], 0
mov byte [ebp - 4], 4
je 0x596749
mov esi, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.0043f4c0
lea ecx, [ebp - 0x6c]
call fcn.0042ab30
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5964fd
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5964f6
mov eax, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x596769
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.005967e0
add esp, 4
lea ecx, [ebp - 0x6c]
call fcn.0042ab30
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x596797
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 0x596537
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x59652d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x59652d
call fcn.0056af64
call fcn.0056af64
int3