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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xa10]
sub rsp, 0xb10
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rbp + 0xa00], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r15d, r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], r15
mov qword [rcx + 0x20], r15
mov qword [rcx + 0x28], r15
mov qword [rcx + 0x30], r15
mov qword [rcx + 0x40], r15
mov qword [rcx + 0x48], 7
mov word [rcx + 0x30], r15w
mov dword [rcx + 0x50], r15d
mov byte [rcx + 0x54], r15b
mov qword [rcx + 0x60], r15
mov word [rcx + 0x6a], r15w
mov qword [rcx + 0x6c], r15
mov dword [rcx + 0x74], r15d
mov qword [rcx + 0x78], 1
mov qword [rcx + 0x80], r15
mov dword [rcx + 0x88], 0x10000
mov qword [rcx + 0x90], r15
mov byte [rcx + 0xa0], r15b
mov dword [rcx + 0xa4], r15d
mov qword [rcx + 0xa8], r15
mov word [rcx + 0xb0], r15w
mov qword [rcx + 0xb8], r15
add rcx, 0xc0
mov qword [rcx], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
xor r8d, r8d
lea rdx, [0x14010bc34]
call fcn.140017c00
nop
lea rcx, [rdi + 0xe0]
mov qword [rcx], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
lea r8d, [r15 + 5]
lea rdx, str.en_US
call fcn.140017c00
nop
lea rcx, [rdi + 0x100]
mov qword [rcx], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
lea r8d, [r15 + 2]
lea rdx, [0x14011d974]
call fcn.140017c00
nop
mov qword [rdi + 0x120], r15
mov qword [rdi + 0x128], r15
mov qword [rdi + 0x138], r15
mov qword [rdi + 0x140], r15
mov qword [rdi + 0x148], r15
mov byte [rdi + 0x150], r15b
mov qword [rdi + 0x158], r15
mov qword [rdi + 0x760], 0xffffffffffffffff
mov qword [rdi + 0x768], 0xffffffffffffffff
mov dword [rdi + 0x790], r15d
mov qword [rdi + 0x794], r15
mov dword [rdi + 0x94c], r15d
mov qword [rdi + 0x950], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x718], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x720], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x728], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x730], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x738], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x740], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x748], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x770], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x750], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x758], rax
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 4
mov r9, rdi
lea r8, [0x14003aab0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rdi + 0x760], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
mov qword [rdi + 0x778], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
mov qword [rdi + 0x780], rax
lea edx, [r15 + 1]
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 1]
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetSecurityDescriptorDacl]
mov dword [rsp + 0x50], 0x18
mov dword [rsp + 0x60], r15d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rax
lea r9, str.Global24b6161c_f853_48cc_a426_c3a9c6649fa7
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x788], rax
mov qword [rdi + 0x7a8], r15
lea rax, str.Global1ec69a9e_d4b4_440d_82a8_53705fe601ce
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1be
xor r9d, r9d
lea r8d, [r15 + 4]
lea rdx, [rsp + 0x50]
lea rcx, [r15 - 1]
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_CreateFileMappingW]
mov qword [rdi + 0x7a0], rax
test rax, rax
jne 0x140036e7d
lea rcx, str._AsusSync_CommMgr__CommMgr___CreateFileMapping_failed_n
jmp 0x140036ead
mov qword [rsp + 0x20], 0x1be
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
mov qword [rdi + 0x7a8], rax
test rax, rax
jne 0x140036eb2
lea rcx, str._AsusSync_CommMgr__CommMgr___MapViewOfFile_failed_n
call fcn.140095ab0
lea r9, str.Global1b804e5f_5e8b_4dcf_b465_74e015c1c157
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x7b0], rax
lea r9, str.Globald745b41d_643c_4596_8bea_6cdbf3441296
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x7b8], rax
lea r9, str.Global507d7159_b963_4494_8c98_4e48295f963c
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x7c0], rax
lea rcx, [rdi + 0x958]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
mov qword [rdi + 0x7d0], r15
lea rax, str.Globale648302e_d2d7_4e9b_b575_ecb27dd9b835
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1108
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x50]
lea rcx, [r9 - 1]
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_CreateFileMappingW]
mov qword [rdi + 0x7c8], rax
test rax, rax
jne 0x140036f64
lea rcx, str._AsusSync_CommMgr__CommMgr___CreateFileMapping_internal__failed_n
call fcn.140095ab0
jmp 0x140036fb8
mov qword [rsp + 0x20], 0x1108
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
mov qword [rdi + 0x7d0], rax
test rax, rax
jne 0x140036f9b
lea rcx, str._AsusSync_CommMgr__CommMgr___MapViewOfFile_internal__failed_n
call fcn.140095ab0
jmp 0x140036fb8
xor edx, edx
mov r8d, 0x1108
mov rcx, rax
call fcn.1400c5120
mov rax, qword [rdi + 0x7d0]
mov dword [rax], 0x10001
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x78], 4
mov dword [rsp + 0x70], 4
mov dword [rsp + 0x68], r15d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREASUSAsusSync
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400370e2
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.CommLogType
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edx, r15d
test eax, eax
setne dl
test eax, eax
je 0x140037057
lea rcx, str._AsusSync_CommMgr__UpdateDebugStringConfig__REG_NEAR_COMM_LOG_TYPE__RegQueryValueEx_fail:0x_X
call fcn.140095ab0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x1400370f0
mov edx, dword [rsp + 0x68]
lea rcx, str._AsusSync_CommMgr__UpdateDebugStringConfig__REG_NEAR_COMM_LOG_TYPE__Debug_setting:0x_X_n
call fcn.140095ab0
mov eax, dword [rsp + 0x68]
test al, 1
je 0x140037073
mov byte [rdi + 0x79], 1
test al, 2
je 0x14003707b
mov byte [rdi + 0x7a], 1
test al, 4
je 0x140037083
mov byte [rdi + 0x7b], 1
test al, 8
je 0x14003708b
mov byte [rdi + 0x7c], 1
test al, 0x10
je 0x140037093
mov byte [rdi + 0x7d], 1
test al, 0x20
je 0x14003709b
mov byte [rdi + 0x7e], 1
test al, 0x40
je 0x1400370a3
mov byte [rdi + 0x7f], 1
test al, al
jns 0x1400370ae
mov byte [rdi + 0x80], 1
bt eax, 8
jae 0x1400370bb
mov byte [rdi + 0x81], 1
bt eax, 9
jae 0x1400370c8
mov byte [rdi + 0x82], 1
bt eax, 0xa
jae 0x1400370d5
mov byte [rdi + 0x83], 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x1400370f0
mov edx, eax
lea rcx, str._AsusSync_CommMgr___UpdateDebugStringConfig___RegOpenKeyEx_REG_NEAR_DEBUG_PATH_fail:0x_X
call fcn.140095ab0
mov rcx, rdi
call fcn.14004a420
mov rcx, rdi
call fcn.14004a4f0
mov r8b, 1
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, rdi
call fcn.140045650
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r15w
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x10]
call fcn.1400c5120
lea r8, [rbp - 0x58]
call fcn.140046030
test al, al
je 0x140037187
lea r9, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae r9, qword [rbp - 0x58]
lea r8, str.__s___r
mov edx, 0x104
lea rcx, [rbp - 0x10]
call fcn.140017d20
mov r8b, 1
movzx edx, r8b
lea rcx, [rbp - 0x10]
call fcn.140097090
lea rdx, [rbp - 0x10]
lea rcx, str._AsusSync_CommMgr__RemoveAsusLinkNearExt___cmd:_s_n
call fcn.140095ab0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x1400371c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400371c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400374e2
call fcn.1400c2470
mov byte [rdi + 0xa0], 0
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREASUSASUS_System_Control_InterfaceLinktoMyASUS
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140037265
mov dword [rsp + 0x68], r15d
mov dword [rsp + 0x70], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.b769ecec_19dd_4bc6_b07b_9df35f99a86c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14003725a
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x14003725a
mov byte [rdi + 0xa0], 1
mov edx, 0x1000b
cmp eax, 0x7d4
cmove eax, edx
mov dword [rdi + 0x70], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400372f4
mov dword [rsp + 0x70], 0x1e
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.CurrentBuildNumber
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400372e9
lea rcx, [rbp - 0x58]
call fcn.1400cdfc4
mov dword [rdi + 0xa4], eax
mov edx, eax
lea rcx, str._AsusSync_CommMgr__GetOSReleaseId____d_n
call fcn.140095ab0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor r8d, r8d
lea rdx, [0x14010bc34]
lea rcx, [rdi + 0x30]
call fcn.140017c00
lea rcx, [rdi + 0x160]
xor edx, edx
mov r8d, 0x5b2
call fcn.1400c5120
mov rcx, rdi
call fcn.1400478d0
mov rcx, rdi
call fcn.140049120
mov rax, qword [rdi + 8]
sub rax, qword [rdi]
sar rax, 3
test rax, rax
je 0x14003734d
mov rcx, rdi
call fcn.14004a650
mov dword [0x140164ce8], 0x10
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x200]
call fcn.1400c5120
mov r8d, 0x400
lea rdx, [rbp + 0x200]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
mov ecx, 0x28
call fcn.1400c2704
mov rbx, rax
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
lea rcx, [rbp + 0x200]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx + 8], rax
lea rcx, str.AsusSync
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx + 0x18], rax
mov word [rbx + 0x20], 1
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
mov r9, rbx
lea r8, [0x14005a460]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx], rax
test rax, rax
je 0x140037400
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140037413
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx + 8], r15
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140037426
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx + 0x18], r15
mov edx, 0x28
mov rcx, rbx
call fcn.1400c2470
lea rdx, [rdi + 0x60]
call fcn.140045e30
mov ecx, 0x1080
call fcn.1400c2704
mov rbx, rax
mov qword [rsp + 0x48], rax
xor edx, edx
mov r8d, 0x1080
mov rcx, rax
call fcn.1400c5120
lea rdx, [rdi + 0x30]
lea rcx, [rbp - 0x58]
call fcn.140013730
movzx ecx, byte [rdi + 0x68]
mov byte [rsp + 0x30], cl
mov rcx, qword [rdi + 0x60]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rdi + 0x50]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rdi + 0xa4]
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.140070ac0
nop
mov qword [rdi + 0x130], rax
mov rcx, qword [rdi + 0x760]
test rcx, rcx
je 0x1400374b3
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ResumeThread]
nop
mov rax, rdi
mov rcx, qword [rbp + 0xa00]
xor rcx, rsp
call fcn.1400c2450
lea r11, [rsp + 0xb10]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400c8b64
nop
int3