joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004e920
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, qword [0x140169680]
xor ebp, ebp
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x50], reloc.WS2_32.dll_recv
mov qword [rsp + 0x58], 0xc5
mov rcx, qword [rdi + 8]
mov dword [rdi + 0x10], edx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x68], 0xbb8
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_SetServiceStatus]
test eax, eax
je 0x14004e98b
mov ebx, ebp
jmp 0x14004e993
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], rbp
lea rsi, [rdi + 0x30]
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x20], rsi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageW]
test ebx, ebx
je 0x14004ea05
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14004ea05
mov r9d, 1
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov word [rsp + 0x28], r9w
lea edx, [r9 + 1]
xor r9d, r9d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400c2450
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14004ea30
Capabilities:
Stop service

Disassembly:
push rsi
sub rsp, 0x70
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], 0
mov rsi, rcx
call fcn.14004e800
test al, al
je 0x14004eaee
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x48]
mov edx, 1
mov qword [rsp + 0x88], rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
je 0x14004ea88
xor ebx, ebx
jmp 0x14004ea90
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
lea rdx, [rsi + 0x30]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov qword [rsp + 0x20], rdx
mov r8d, ebx
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageW]
mov rcx, qword [rsp + 0x40]
test ebx, ebx
sete bl
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
movzx eax, bl
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x70
pop rsi
ret
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x70
pop rsi
ret
Function at 0x14004eb10
Capabilities:
Delete registry key
Delete service

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
call fcn.14004ea30
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], 0
mov rcx, rbx
call fcn.14004e800
test al, al
je 0x14004ec24
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x78], rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
test eax, eax
je 0x14004eb63
xor edi, edi
jmp 0x14004eb6b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
lea rcx, [rbx + 0x30]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov qword [rsp + 0x20], rcx
mov r8d, edi
mov ecx, 0x1000
xor edx, edx
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageW]
mov rcx, qword [rsp + 0x40]
test edi, edi
sete dil
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], 0
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesEventLogSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004ec08
mov rdx, qword [rbx]
mov rcx, rbx
mov rax, qword [rdx]
call qword [0x1400fac68]
mov rcx, qword [rsp + 0x48]
mov rdx, rax
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movzx eax, dil
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x60
pop rbx
ret
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x60
pop rbx
ret
Function at 0x14004f200
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov rdi, rdx
mov qword [rsp + 0x48], rdx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov qword [rdx], r14
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], 7
mov word [rdx], r14w
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r14w
lea rcx, str.wtsapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
lea rbx, [r14 - 1]
test rax, rax
je 0x14004f300
lea rdx, str.WTSQuerySessionInformationW
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x14004f300
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_WTSGetActiveConsoleSessionId]
mov edx, eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r14 + 5]
mov rax, rsi
call qword [0x1400fac68]
cmp eax, 1
jne 0x14004f300
mov rdx, qword [rsp + 0x50]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14004f2e0
lea rcx, [rsp + 0x68]
call fcn.140017c00
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov dword [rsp + 0x60], 0x100
mov dword [rsp + 0x5c], 0x100
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
test eax, eax
je 0x14004f3ca
lea rcx, str.Advapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14004f3ca
lea rdx, str.ConvertSidToStringSidW
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test rax, rax
je 0x14004f3c0
mov qword [rsp + 0x50], r14
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call qword [0x1400fac68]
test eax, eax
je 0x14004f3c0
mov rdx, qword [rsp + 0x50]
nop dword [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x14004f3a0
mov r8, rbx
mov rcx, rdi
call fcn.140017c00
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14004f407
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f402
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f431
call fcn.1400c2470
mov rax, rdi
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.1400c2450
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400c8b64
int3
Function at 0x140051980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x2d0
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
xor sil, sil
mov rdi, rdx
cmp qword [rcx + 0x18], 0
mov rbx, rcx
je 0x140051b9b
cmp qword [rcx + 0x20], 0
je 0x140051b9b
cmp qword [rcx + 0x28], 0
je 0x140051b9b
cmp qword [rcx + 0x30], 0
je 0x140051b9b
cmp qword [rcx + 0x38], 0
je 0x140051b9b
cmp qword [rcx + 0x40], 0
je 0x140051b9b
mov rcx, rdx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140051b95
xor edx, edx
mov qword [rsp + 0x300], rbp
mov r8d, 0x208
lea rcx, [rsp + 0xb0]
call fcn.1400c5120
lea rcx, str.RootAsusSharedCam
mov r8d, 0x100
lea rax, [rsp + 0xb0]
sub rcx, rax
lea rdx, [rsp + 0xb0]
nop word [rax + rax]
lea rax, [r8 + 0x7ffffefe]
test rax, rax
je 0x140051a62
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140051a62
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x140051a40
test r8, r8
lea rax, [rdx - 2]
cmovne rax, rdx
xor ebp, ebp
mov word [rax], bp
test r8, r8
je 0x140051b8d
mov rax, qword [rbx + 0x18]
lea r9d, [rbp + 0x20]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [0x1400fac68]
test eax, eax
je 0x140051b8d
mov rax, qword [rbx + 0x20]
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [0x1400fac68]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140051b8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x308], r14
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov rax, qword [rbx + 0x28]
lea rdx, [rsp + 0x70]
mov r14d, 1
mov dword [rsp + 0x50], 0x20
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call qword [0x1400fac68]
test eax, eax
je 0x140051b78
lea rcx, [rsp + 0xb0]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140051b20
lea ecx, [rax*2 + 4]
mov r8d, r14d
mov rax, qword [rbx + 0x30]
lea r9, [rsp + 0xb0]
mov dword [rsp + 0x20], ecx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [0x1400fac68]
test eax, eax
je 0x140051b78
mov rax, qword [rbx + 0x38]
lea r8, [rsp + 0x50]
mov rdx, rdi
mov ecx, 0x19
call qword [0x1400fac68]
test eax, eax
movzx esi, sil
cmovne esi, r14d
mov rax, qword [rbx + 0x40]
mov rcx, rdi
call qword [0x1400fac68]
mov r14, qword [rsp + 0x308]
mov rbp, qword [rsp + 0x300]
movzx eax, sil
jmp 0x140051b9d
xor al, al
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x2d0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14005ab30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdx
call fcn.140028c90
nop
xor ebp, ebp
mov qword [rdi + 0xd8], rbp
lea rcx, [rdi + 0xe0]
mov rdx, rsi
call fcn.140013730
nop
mov qword [rdi + 0x100], rbx
mov dword [rdi + 0x108], 0x40000000
mov dword [rdi + 0x10c], 0x40000000
mov dword [rdi + 0x114], 0xffffffff
lea rcx, [rdi + 0x118]
lea edx, [rbp + 2]
call fcn.14009a738
nop
mov byte [rdi + 0x168], bpl
mov qword [rdi + 0x170], rbp
mov qword [rdi + 0x178], rbp
mov qword [rdi + 0x180], rbp
mov qword [rdi + 0x188], rbp
xor eax, eax
mov byte [rdi + 0x190], al
lea rcx, [rdi + 0x198]
lea edx, [rbp + 2]
call fcn.14009a738
nop
lea rcx, [rdi + 0x1e8]
call fcn.14009a8e8
nop
xorps xmm0, xmm0
movups xmmword [rdi + 0x230], xmm0
mov byte [rdi + 0x240], 1
lea rcx, [rdi + 0x248]
lea edx, [rbp + 2]
call fcn.14009a738
nop
lea rcx, [rdi + 0x298]
call fcn.14009a8e8
nop
mov byte [rdi + 0x2e0], 1
mov qword [rdi + 0x2f8], rbp
mov qword [rdi + 0x300], rbp
mov qword [rdi + 0x308], rbp
mov qword [rdi + 0x320], rbp
mov qword [rdi + 0x328], rbp
mov qword [rdi + 0x338], rbp
mov qword [rdi + 0x340], 7
mov word [rdi + 0x328], bp
mov qword [rdi + 0x348], rbp
mov qword [rdi + 0x350], rbp
mov qword [rdi + 0x360], rbp
mov qword [rdi + 0x368], 7
mov word [rdi + 0x350], bp
mov qword [rdi + 0x370], rbp
mov qword [rdi + 0x388], rbp
mov qword [rdi + 0x390], rbp
mov qword [rdi + 0x3a8], rbp
mov qword [rdi + 0x3b0], rbp
mov qword [rdi + 0x3c8], rbp
mov qword [rdi + 0x3d0], rbp
xorps xmm0, xmm0
movups xmmword [rdi + 0x3e8], xmm0
xor eax, eax
mov byte [rdi + 0x3f8], al
lea ecx, [rbp + 0x10]
call fcn.1400c2704
mov qword [rax], rdi
lea rcx, [0x14005c700]
mov qword [rax + 8], rcx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x140017150]
xor edx, edx
xor ecx, ecx
call fcn.1400d715c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14005ada3
cmp dword [rdi + 0x238], ebp
jne 0x14005ad9d
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi + 0x230], xmm0
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x14005ad6e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14005ad69
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005adb2
mov rcx, r8
call fcn.1400c2470
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], 7
mov word [rsi], bp
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c2450
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
call fcn.1400d6dc4
nop
mov dword [rsp + 0x38], ebp
mov ecx, 6
call fcn.14009a3f0
nop
call fcn.1400c8b64
int3
Function at 0x14006a1c0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 9], 1
mov rbx, rcx
jne 0x14006a247
mov byte [rcx + 9], 0
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x14006a22f
mov rax, qword [rbx + 0x30]
cmp rax, 0xffffffffffffffff
je 0x14006a1f3
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, qword [rbx + 0x28]
mov edx, 0x3a98
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14006a21d
lea rcx, str._AsusSync_MdnsDev__Stop___thread_seems_be_blocked__terminate_it._n
call fcn.140095ab0
mov rcx, qword [rbx + 0x28]
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateThread]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x28], 0
mov rcx, qword [rbx + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x14006a247
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x30], 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x14006b760
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov qword [rcx + 0x10], rdx
mov qword [rcx], rsi
mov rdi, rdx
mov qword [rcx + 0x18], rsi
mov rbx, rcx
mov byte [rcx + 0x28], sil
mov byte [rcx + 0x2a], sil
mov qword [rcx + 8], r8
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
mov qword [rbx], rax
mov rax, qword [rbx + 8]
test rax, rax
je 0x14006b818
movzx eax, byte [rax + 0x1b]
mov byte [rbx + 0x29], al
test al, al
jne 0x14006b814
lea ecx, [rsi + 0x20]
call fcn.1400c2704
xorps xmm0, xmm0
mov qword [rsp + 0x28], rsi
lea rcx, [0x140078190]
mov qword [rsp + 0x40], rax
mov r9, rbx
mov dword [rsp + 0x20], esi
movups xmmword [rax], xmm0
lea r8, [0x14006b830]
xor edx, edx
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x18], rcx
xor ecx, ecx
mov qword [rax], rdi
mov byte [rax + 8], sil
mov qword [rax + 0x10], 0xffffffffffffffff
mov qword [rbx + 0x18], rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x20], rax
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov byte [rbx + 0x28], 1
mov rsi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14006bb60
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
xor esi, esi
mov rbx, rcx
test dl, dl
je 0x14006bb78
mov dword [rcx + 0x1c], esi
jmp 0x14006bb85
cmp dword [rcx + 0x1c], 0x14
jge 0x14006bb85
mov dword [rcx + 0x1c], socket
mov byte [rcx + 0x24], sil
lea r8, [0x14010bc34]
add rcx, 8
mov edx, 0xa
call fcn.1400cc908
cmp byte [rbx + 0x48], sil
je 0x14006bcde
mov byte [rbx + 0x48], sil
cmp qword [rbx + 0x70], rsi
je 0x14006bbde
lea rcx, str._AsusSync_WebsocketConnectionHandler__Uninit___clean_working_thread_n
call fcn.140095ab0
cmp byte [rbx + 0x68], sil
je 0x14006bbd0
mov rcx, qword [rbx + 0x70]
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateThread]
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x70], rsi
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x14006bc42
mov rax, qword [rbx + 0xa8]
test rax, rax
je 0x14006bc06
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
mov edx, 0x1388
mov byte [rbx + 0x98], sil
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14006bc2e
mov rcx, qword [rbx + 0xa0]
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateThread]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0xa0], rsi
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x14006bc5b
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0xa8], rsi
mov rcx, rbx
call fcn.140070870
mov byte [rbx + 0xde], sil
cmp qword [rbx + 0x78], rsi
je 0x14006bcb3
mov rax, qword [rbx + 0x60]
lea rcx, str._AsusSync_WebsocketConnectionHandler__Uninit___clean_TcpService_port:_d_n
mov qword [rsp + 0x30], rdi
movzx edx, word [rax + 0x67f]
call fcn.140095ab0
mov rdi, qword [rbx + 0x78]
test rdi, rdi
je 0x14006bcaa
mov rcx, rdi
call fcn.1400941d0
mov edx, 0x88
mov rcx, rdi
call fcn.1400c2470
mov rdi, qword [rsp + 0x30]
mov qword [rbx + 0x78], rsi
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x14006bcde
add rdx, 8
lea rcx, str._AsusSync_WebsocketConnectionHandler__Uninit___clean_ConnectionInfo__pairCode:_s_n
call fcn.140095ab0
mov rcx, qword [rbx + 0x60]
mov edx, 0x681
call fcn.1400c2470
mov qword [rbx + 0x60], rsi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret

Function at 0x14006bcf0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x58], 0
mov rbx, rcx
je 0x14006bd26
mov rdx, qword [rcx]
lea rcx, str._AsusSync_WebsocketConnectionHandler__RefreshWebsocketConnection___requestId:0x_I64X_n
call fcn.140095ab0
mov dl, 1
mov rcx, rbx
call fcn.14006bb60
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14006ba90
add rsp, 0x20
pop rbx
ret
Function at 0x14006bd30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov esi, r9d
mov ebp, r8d
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rdx
cmp r8d, 0x1a
jne 0x14006bd73
mov eax, dword [rcx + 0x1c]
sub eax, 5
cmp eax, 0xe
ja 0x14006bd73
mov rdx, qword [rdx + 0x18]
jmp 0x14006be50
mov rax, qword [rcx + 0x50]
cmp byte [rax + 0x209], 0
je 0x14006bd8f
mov edx, dword [rcx + 0x1c]
lea rcx, str._AsusSync_WebsocketConnectionHandler__UpdateWebsocketConnectionState__taskState__d_to__d__n
call fcn.140095ab0
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
mov qword [rdi + 0x88], rax
mov dword [rdi + 0x1c], ebp
cmp ebp, 0x14
jl 0x14006bdfc
xor sil, sil
cmp ebp, 0x17
jne 0x14006bdc9
cmp byte [rdi + 0x3c], sil
je 0x14006bde4
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
sub rax, qword [rdi + 0x80]
cmp rax, 0x7530
setb sil
movzx edx, sil
mov rcx, rdi
call fcn.14006bb60
test sil, sil
je 0x14006be4c
mov rcx, rdi
call fcn.14006bcf0
jmp 0x14006be4c
lea rcx, str._AsusSync_WebsocketConnectionHandler__UpdateWebsocketConnectionState__client_socket_timeout_n
call fcn.140095ab0
xor edx, edx
mov rcx, rdi
call fcn.14006bb60
jmp 0x14006be4c
mov rax, qword [rdi + 0x50]
cmp byte [rax + 0x209], 0
je 0x14006be2e
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x14006be16
mov r8, qword [rbx]
lea rdx, [rdi + 8]
mov dword [rsp + 0x20], esi
mov r9d, dword [rdi + 0x20]
lea rcx, str._AsusSync_WebsocketConnectionHandler__UpdateWebsocketConnectionState__pairCode__s_to__s___socketType__d_to__d__n
call fcn.140095ab0
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x14006be3b
mov r8, qword [rbx]
lea rcx, [rdi + 8]
mov edx, 0xa
call fcn.1400cc908
mov dword [rdi + 0x20], esi
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14006be87
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14006be82
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14006beae
mov rcx, r8
call fcn.1400c2470
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400c8b64
int3
Function at 0x140076bc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
mov dword [rsp + 0x40], 1
xor bl, bl
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
mov rbp, r9
mov rsi, r8
test rdx, rdx
je 0x140076cf7
test r8, r8
je 0x140076cf7
test r9, r9
je 0x140076cf7
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140076cf7
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140076cec
mov ecx, dword [rsp + 0x30]
mov eax, 2
shr rcx, 1
inc rcx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400c26fc
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
mov rdi, rax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x140076ccd
mov r8, rdi
mov edx, 0x80
mov rcx, rbp
call fcn.1400cc908
mov bl, 1
jmp 0x140076ce4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, esi
lea rcx, str._AsusSync_MdnsMgr__GetDeviceUUID___can_not_find_MachineId_:0x_08X_0x_08X__n
mov r8d, eax
call fcn.140095ab0
mov rcx, rdi
call fcn.1400c2470
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400c2450
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007c060
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
mov esi, 1
test rdx, rdx
je 0x14007c12f
test r8, r8
je 0x14007c12f
add rcx, 0xfa0
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov r8, qword [rdi + 0x1068]
test r8, r8
je 0x14007c122
mov r11, qword [r8]
xor r10d, r10d
mov r9, qword [r8 + 8]
sub r9, r11
sar r9, 3
test r9, r9
je 0x14007c122
xor edx, edx
nop dword [rax + rax]
cmp r9, rdx
jbe 0x14007c1db
lfence
mov rax, qword [r11 + rdx*8]
cmp byte [rax + 0x24], 0
je 0x14007c109
mov rax, qword [r8 + 8]
sub rax, qword [r8]
sar rax, 3
cmp rax, rdx
jbe 0x14007c1db
lfence
mov rax, qword [r8]
mov rcx, qword [rax + rdx*8]
cmp rbx, qword [rcx]
je 0x14007c14c
mov rcx, qword [r8 + 8]
inc r10d
sub rcx, qword [r8]
inc rdx
sar rcx, 3
movsxd rax, r10d
cmp rax, rcx
jb 0x14007c0d0
lea rcx, [rdi + 0xfa0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov rcx, qword [rdi + 0x1068]
movsxd rbx, r10d
mov rax, qword [rcx + 8]
sub rax, qword [rcx]
sar rax, 3
cmp rax, rbx
jbe 0x14007c1db
lfence
mov rax, qword [rcx]
mov rbx, qword [rax + rbx*8]
cmp byte [rbx + 0x98], 0
jne 0x14007c1d4
cmp qword [rbx + 0xa8], 0
mov qword [rbx + 0x90], rbp
mov byte [rbx + 0x98], sil
jne 0x14007c1a8
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 [rbx + 0xa8], rax
mov qword [rsp + 0x28], 0
lea r8, [0x14006c7d0]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0xa0], rax
xor esi, esi
jmp 0x14007c122
call fcn.14000a150
int3