joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c720
Capabilities:
Get thread local storage value
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1400fb168]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call sym.pthread_mutex_lock
mov rcx, rbx
call sym.__pthread_get_pointer
test rax, rax
je 0x14001c798
cmp qword [rax + 0x1d8], rbx
jne 0x14001c798
test byte [rax + 0x40], 0xc
jne 0x14001c798
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x14001c798
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x14001c798
mov rcx, rdi
call sym.pthread_mutex_unlock
test esi, esi
je 0x14001c7b0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x14001c7b8
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.pthread_cancel
mov rcx, rdi
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
jmp 0x14001c7a5
mov eax, 0x16
jmp 0x14001c7a5

Function at 0x14001c950
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400fb178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c9c0
cmp esi, 1
ja 0x14001c9cd
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
test rdi, rdi
je 0x14001c994
mov eax, dword [rbx + 0x44]
and eax, 1
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffe
or eax, esi
mov dword [rbx + 0x44], eax
call sym.test_cancel_locked
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x14001c976
mov eax, 0x16
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x14001c9e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400fb178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001ca58
mov ebp, esi
and ebp, 0xfffffffd
jne 0x14001ca65
lea r12, [rbx + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
test rdi, rdi
je 0x14001ca28
mov eax, dword [rbx + 0x44]
and eax, 2
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffd
or eax, esi
mov dword [rbx + 0x44], eax
call sym.test_cancel_locked
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x14001ca08
mov ebp, 0x16
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14001cd10
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rbp, rdx
test rcx, rcx
je 0x14001ce30
lea rdi, [0x1400fb168]
mov rcx, rdi
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x14001ce30
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14001ce30
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001ce30
test byte [rbx + 0x44], 4
jne 0x14001ce40
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400fb178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001ce60
cmp rsi, qword [rax + 0x1d8]
je 0x14001ce90
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x14001cdbb
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001cdca
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001cdde
call rsi
mov qword [rbx + 0x30], 0
test rbp, rbp
je 0x14001ce78
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rbp], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14001ce97
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14001ce50
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call sym.push_pthread_mem.part.0
xor eax, eax
jmp 0x14001ce26
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14001cd96
jmp 0x14001cda3
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14001ce04
mov eax, 0x24
jmp 0x14001ce35
call sym.replace_spin_keys.part.0
nop
nop dword [rax]
Function at 0x14001cea0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x1400fb168]
mov rsi, rcx
mov rcx, rbp
mov rdi, rdx
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rbx, rax
test rax, rax
je 0x14001cfc0
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14001cfc0
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001cfc0
test byte [rbx + 0x44], 4
jne 0x14001cfe0
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400fb178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d020
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x14001d060
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x14001cf47
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14001d000
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001cf5b
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x14001d038
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14001d072
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14001d050
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x14001cf43
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x14001cfae
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x14001cf15
jmp 0x14001cf1c
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14001cf80
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x14001cfa4
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x14001cfae
call sym.replace_spin_keys.part.0
nop
nop dword [rax + rax]
Function at 0x14001ea10
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 4
mov r9d, 0
mov r8d, 0
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov rdx, qword [rbp + 0x10]
mov qword [rdx + 8], rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
mov rcx, rax
call sym.strlen
mov edx, eax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x18], edx
mov rax, qword [rbp + 0x10]
lea r8, [rax + 0x1c]
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x18]
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
setne al
test al, al
je 0x14001eac4
mov eax, 1
jmp 0x14001eac9
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x140020ae0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x140020b0c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140021730
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400fdf30], 0
jne 0x140021833
mov byte [0x1400fdf30], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x140021808
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x1400217f9
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400ffef1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400f8af7
jmp 0x1400f8aef
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x1400217c7
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
nop
jmp 0x1400f8aea
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
nop
nop
nop
Function at 0x14008b460
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14008b4a8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008b47a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14009e0c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14009e0e8
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x14009e130
cdqe
add rsi, rax
sub rbx, rax
jne 0x14009e100
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14009e13c
call rbp
cmp dword [rax], 4
je 0x14009e100
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400e85b0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
mov rax, rcx
mov r10, rdx
and r11, 0xfffffffffffffff8
add r11, rcx
movabs rcx, 0xc6a4a7935bd1e995
imul r10, rcx
xor r10, r8
cmp rax, r11
je 0x1400e8608
nop word cs:[rax + rax]
mov r9, qword [rax]
add rax, 8
imul r9, rcx
mov r8, r9
shr r8, 0x2f
xor r8, r9
imul r8, rcx
xor r8, r10
mov r10, r8
imul r10, rcx
cmp r11, rax
jne 0x1400e85e0
and edx, 7
je 0x1400e863d
sub edx, 1
movsxd rax, edx
xor edx, edx
nop dword [rax]
movzx ecx, byte [r11 + rax]
shl rdx, 8
sub rax, 1
add rdx, rcx
test eax, eax
jns 0x1400e8618
xor rdx, r10
movabs r10, 0xc6a4a7935bd1e995
imul r10, rdx
movabs rax, 0xc6a4a7935bd1e995
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
imul rdx, rax
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
ret

Function at 0x1400ebcd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, r8
test rdx, rdx
je 0x1400ebcfc
movabs r9, 0x100000001b3
add rdx, rcx
nop dword [rax]
movsx r8, byte [rcx]
add rcx, 1
xor rax, r8
imul rax, r9
cmp rcx, rdx
jne 0x1400ebce8
ret
Function at 0x1400f86d0
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x1400fb7e0]
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400fb7f8], 0
movups xmmword [0x1400fb7e8], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1400f8785
jmp 0x1400f882f
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x1400f87e0
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x1400f8770
cmp qword [rbx + 7], r12
jne 0x1400f8770
cmp byte [rbx + 0xf], 0x2e
jne 0x1400f8770
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x1400f87cb
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x1400f87d5
cmp byte [rbx + rsi], 0x3d
je 0x1400f8865
add rbp, 0x18
cmp rbp, r13
jne 0x1400f87af
jmp 0x1400f8770
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1400fb7f8], rbx
jne 0x1400f883f
lea rcx, [sym.__tcf_0]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.atexit
mov qword [0x1400fb7f8], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400fb7f0], rax
test rax, rax
je 0x1400f889c
xor edx, edx
mov qword [0x1400fb7e8], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400f8817
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rsi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400f888c
test dl, dl
jne 0x1400f8770
test eax, eax
js 0x1400f8770
mov dword [rbp + 0x10], eax
jmp 0x1400f8770
xor ecx, ecx
mov qword [0x1400fb7f8], rcx
jmp 0x1400f8817

Function at 0x1400f8a80
Capabilities:
Write file on windows

Disassembly:
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400f8afc
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
call sym.abort
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x1400f8aea
Function at 0x180001000
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [rsp + 0x22]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], bx
call fcn.180031610
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x20]
lea rcx, str.TEC_OCULAR__AGENT_V3_MUTEX_AGENT
call fcn.180010360
lea r8, [rsp + 0x20]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
jne 0x180001070
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
sete bl
mov eax, ebx
jmp 0x18000107e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18002f7c0
add rsp, 0x240
pop rbx
ret

Function at 0x1800011b0
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x268
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r8d, 1
lea rdx, [0x1800d02a0]
lea rcx, [rsp + 0x20]
call fcn.180023840
nop
cmp dword [0x1800d5b50], 0
je 0x180001212
lea r9, str.CAgentSwitchMgr::IsNoSDAgentVerMutex
lea r8, str.AgentSwitchMgr
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d5a98]
call fcn.180015620
xor eax, eax
mov word [rsp + 0x40], ax
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.180031610
mov r8d, 1
lea rdx, [rsp + 0x40]
lea rcx, str.TEC_OCULAR__AGENT_V3_MUTEX_AGENT_VERMODE
call fcn.180010360
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
jne 0x180001274
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x180001266
jmp 0x18000127e
lea rcx, [rsp + 0x20]
call fcn.180023880
xor eax, eax
jmp 0x18000128d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x20]
call fcn.180023880
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18002f7c0
add rsp, 0x268
ret
Function at 0x180003fd0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
xor ecx, ecx
mov r8d, 0xc0000000
mov ebx, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x1800040f8
lea r8d, [rsi + 0x14]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1800040ef
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800040e6
lea rdx, str.QueryServiceStatusEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800040e6
xor ecx, ecx
lea r9d, [rsi + 0x24]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], ecx
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], rsi
call rax
test eax, eax
je 0x1800040e6
mov ebx, dword [rsp + 0x3c]
cmp ebx, 4
je 0x1800040b6
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, eax
cmp dword [0x1800d5b50], 0
je 0x1800040e6
lea r9, str.CheckAndStartService___d____d_
lea r8, str.Inject
lea rcx, [0x1800d5a98]
mov edx, reloc.WS2_32.dll_ntohs
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebx
call fcn.180015620
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18002f7c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000c1d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov rdi, rdx
mov r12d, ecx
lea rsi, str.disfunc_
lea rbx, [rdx + 0x10]
test ecx, ecx
je 0x18000c20a
lea rbx, [rdx + 0x14]
lea rsi, str.enfunc_
xor r13d, r13d
cmp dword [rbx], r13d
je 0x18000c236
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx]
cmp eax, 0x1d4c0
ja 0x18000c236
test r12d, r12d
jne 0x18000c22e
mov esi, dword [rdi + 0x18]
jmp 0x18000c384
mov esi, dword [rdi + 0x1c]
jmp 0x18000c384
mov rax, qword [0x18007cb48]
mov qword [rbp + 0x48], rax
mov r9, qword [rdi + 8]
mov r8, rsi
lea rdx, str._s_s
lea rcx, [rbp + 0x48]
call fcn.180021100
lea r14, vtable.CTConfig.0
mov qword [rbp - 0x40], r14
mov rax, qword [0x18007cb48]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x20]
call fcn.180021510
nop
mov dword [rbp - 8], r13d
call fcn.180013a10
nop
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x50]
call fcn.1800217b0
mov rbx, rax
mov qword [rbp + 0x58], rax
mov dword [rbp - 8], r13d
lea rcx, [rbp - 0x38]
call fcn.1800219e0
lea rcx, [rbp - 0x30]
call fcn.1800219e0
lea rcx, [rbp - 0x28]
call fcn.1800219e0
or r8d, 0xffffffff
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.180021e90
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.180020660
lea rcx, [rbp - 0x40]
call fcn.180013d40
nop
mov rcx, rbx
call fcn.180020550
mov esi, r13d
mov dword [rbp + 0x40], r13d
cmp dword [rbp - 0x18], r13d
jle 0x18000c311
mov rax, qword [rbp - 0x20]
lea r8, [rbp + 0x40]
lea rdx, [0x18009a1e4]
mov rcx, qword [rax]
call fcn.180030098
mov esi, dword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov rdx, rdi
lea rcx, [0x1800d0490]
call fcn.18000cbb0
mov rdx, rdi
lea rcx, [0x1800d0490]
test r12d, r12d
jne 0x18000c344
mov dword [rax + 0x10], ebx
call fcn.18000cbb0
mov dword [rax + 0x18], esi
jmp 0x18000c34f
mov dword [rax + 0x14], ebx
call fcn.18000cbb0
mov dword [rax + 0x1c], esi
mov qword [rbp - 0x40], r14
lea rcx, [rbp - 0x20]
call fcn.180021e60
nop
lea rcx, [rbp - 0x28]
call fcn.180020550
nop
lea rcx, [rbp - 0x30]
call fcn.180020550
nop
lea rcx, [rbp - 0x38]
call fcn.180020550
nop
lea rcx, [rbp + 0x48]
call fcn.180020550
cmp esi, 1
sete r13b
mov eax, r13d
add rsp, 0x70
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18000cf60
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
call fcn.180045b80
test eax, eax
jne 0x18000cf8a
call fcn.180045ba0
test eax, eax
jne 0x18000cf8a
call fcn.180045b20
test eax, eax
jne 0x18000cf8a
mov dword [rbx + 0x218], eax
cmp dword [rbx + 0x21c], 0
jne 0x18000d163
cmp dword [rbx + 0x220], 3
jge 0x18000d163
cmp dword [rbx + 0x218], 0
je 0x18000d163
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
lea rsi, str.TnfcapInst.dll
call fcn.1800458f0
lea rdi, str.TnfcapInst64.dll
test eax, eax
lea rax, [rbx + 0x10]
cmove rdi, rsi
cmp word [rax], 0
cmovne rdi, rax
inc dword [rbx + 0x220]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x1800d5b50], 0
mov rsi, rax
je 0x18000d024
lea r9, str.CTnfcapDrive::Initialize____08x____s_
lea r8, str.drive
lea rcx, [0x1800d5a98]
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.180015620
mov rdi, qword [rsp + 0x78]
test rsi, rsi
je 0x18000d152
lea rdx, str.InitTnfcapMgr
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UninitTnfcapMgr
mov rcx, rsi
mov qword [0x1800d5728], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InstallTnfcapModule
mov rcx, rsi
mov qword [0x1800d5730], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UninstallTnfcapModule
mov rcx, rsi
mov qword [0x1800d5738], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.IsTnfcapInstalled
mov rcx, rsi
mov qword [0x1800d5740], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.StartTnfcapService
mov rcx, rsi
mov qword [0x1800d5748], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.StopTnfcapService
mov rcx, rsi
mov qword [0x1800d5750], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x1800d5b50], 0
mov qword [0x1800d5758], rax
je 0x18000d148
mov rcx, qword [0x1800d5748]
lea r9, str.CTnfcapDrive::Initialize____08x__08x__08x__08x__08x___08x__08x_
lea r8, str.drive
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rax
mov rax, qword [0x1800d5750]
mov qword [rsp + 0x40], rax
mov rax, qword [0x1800d5740]
lea rcx, [0x1800d5a98]
mov qword [rsp + 0x38], rax
mov rax, qword [0x1800d5738]
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x30], rax
mov rax, qword [0x1800d5730]
mov qword [rsp + 0x28], rax
mov rax, qword [0x1800d5728]
mov qword [rsp + 0x20], rax
call fcn.180015620
mov dword [rbx + 0x21c], 1
mov eax, dword [rbx + 0x21c]
mov rsi, qword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret
mov eax, dword [rbx + 0x21c]
add rsp, 0x60
pop rbx
ret