joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400afb5c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14011cc60], rbx
je 0x1400afba8
cmp rax, rbx
jne 0x1400afb9b
mov ebx, 1
mov esi, ebx
jmp 0x1400afbad
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400afb80
mov ebx, 1
mov eax, dword [0x14011cc68]
cmp eax, ebx
jne 0x1400afbc3
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400afc28
mov eax, dword [0x14011cc68]
test eax, eax
jne 0x1400afc22
mov dword [0x14011cc68], ebx
lea r15, [0x1400c5778]
lea rdi, [0x1400c5760]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400afc14
test eax, eax
jne 0x1400afc18
cmp qword [rdi], 0
je 0x1400afc09
mov rax, qword [rdi]
mov rcx, qword [0x1400c51a0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400afbea
test eax, eax
je 0x1400afc28
mov eax, 0xff
jmp 0x1400afd04
mov dword [0x14011b398], ebx
mov eax, dword [0x14011cc68]
cmp eax, ebx
jne 0x1400afc4f
lea rdx, [0x1400c5758]
lea rcx, [0x1400c51a8]
call sub.msvcrt.dll__initterm
mov dword [0x14011cc68], 2
test esi, esi
jne 0x1400afc5c
xor eax, eax
xchg qword [0x14011cc60], rax
cmp qword [0x14011cc80], 0
je 0x1400afc90
lea rcx, [0x14011cc80]
call fcn.1400b0220
test eax, eax
je 0x1400afc90
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14011cc80]
mov r9, qword [0x1400c51a0]
call r9
mov r8, qword [0x14011b3b0]
mov rdx, qword [0x14011b3a8]
mov ecx, dword [0x14011b3a0]
call fcn.14000348c
mov dword [0x14011b394], eax
cmp dword [0x14011b3b8], 0
jne 0x1400afcc0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14011b398], 0
jne 0x1400afcd5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14011b394]
jmp 0x1400afd04
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140241000
add rsp, 0x28
jmp 0x1400afb5c

Function at 0x1400b0130
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400b017c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b0174
cmp dword [rcx + 0x3c], edx
jl 0x1400b0174
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400b0174
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400b017c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400016a0
Capabilities:
Create pipe

Disassembly:
push rdi
sub rsp, 0x70
mov rdi, rcx
test rcx, rcx
jne 0x1400016b6
xor eax, eax
add rsp, 0x70
pop rdi
ret
mov edx, 1
mov qword [rsp + 0x88], rbx
mov r8d, edx
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400016fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_event:__d_n
call fcn.140001640
mov rbx, qword [rsp + 0x88]
xor eax, eax
add rsp, 0x70
pop rdi
ret
mov qword [rsp + 0x90], rbp
mov ecx, 0x28
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], r14
call fcn.1400243ec
xor r14d, r14d
lea r8, [rsp + 0x48]
xor r9d, r9d
lea rcx, str.D:_A_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GRGWGX___AU__A_OICI_GA___BA_S:_ML__NW___ME_
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], r14
lea edx, [r14 + 1]
mov qword [rax + 0x10], r14
mov qword [rax + 0x20], r14
mov qword [rax + 0x18], rbx
mov dword [rsp + 0x40], 0x18
mov dword [rsp + 0x50], r14d
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
xor ecx, ecx
call fcn.14001f780
cmp eax, 8
lea rcx, [rsp + 0x40]
mov r9d, 0xff
mov edx, 0x40000003
cmovle rcx, r14
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov rcx, rdi
mov dword [rsp + 0x30], 0x1388
mov dword [rsp + 0x28], 0x2000
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400017c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateNamedPipe_failed_with__d._n
call fcn.140001640
xor eax, eax
jmp 0x14000181b
mov ecx, 0x4048
call fcn.1400243ec
mov rbx, rax
mov qword [rsp + 0x80], rax
lea rax, vtable.CPipe.0
mov rcx, rdi
mov qword [rbx], rax
mov dword [rbx + 8], 1
call fcn.14002aa54
mov qword [rbx + 0x10], rax
mov rax, rbx
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], rsi
mov dword [rbx + 0x28], r14d
mov dword [rbx + 0x202c], r14d
mov qword [rbx + 0x4030], r14
mov dword [rbx + 0x4040], r14d
mov qword [rsi + 0x20], rbx
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x90]
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x1400019e0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x60
cmp dword [rcx + 0x24], 0
mov rbx, rcx
je 0x1400019f7
xor eax, eax
add rsp, 0x60
pop rbx
ret
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x58], rdi
xor edi, edi
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r14
cmp dword [rcx + 0x20], edi
je 0x140001a44
mov dword [rcx + 0x20], edi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x18]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140001a44
mov qword [rbx + 0x18], 0xffffffffffffffff
mov rcx, qword [rbx + 0x10]
mov ebp, 1
test rcx, rcx
je 0x140001a60
mov rax, qword [rcx]
mov edx, ebp
mov rax, qword [rax]
call qword [case.0x14000eb75.0]
mov r14, qword [rbx + 8]
mov ecx, 0x28
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x40], r15
call fcn.1400243ec
mov r13, rax
xorps xmm0, xmm0
xor eax, eax
xor r9d, r9d
mov r8d, ebp
mov edx, ebp
xor ecx, ecx
movups xmmword [r13], xmm0
movups xmmword [r13 + 0x10], xmm0
mov qword [r13 + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r13 + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x140001aef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_event:__d_n
call fcn.140001640
mov qword [rbx + 0x10], rdi
mov ebp, dword [rbx + 0x24]
mov r15, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x78]
mov r14, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rbx
ret
mov esi, edi
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x140001b28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_open_named_pipe:__d_n
call fcn.140001640
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x140001af1
jmp 0x140001abf
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x40000000
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140001abf
mov ecx, 0x4048
call fcn.1400243ec
mov rsi, rax
mov qword [rsp + 0x70], rax
lea rax, vtable.CPipe.0
mov rcx, r14
mov qword [rsi], rax
mov dword [rsi + 8], ebp
call fcn.14002aa54
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], r15
mov qword [rsi + 0x20], r13
mov dword [rsi + 0x28], edi
mov dword [rsi + 0x202c], edi
mov qword [rsi + 0x4030], rdi
mov dword [rsi + 0x4040], edi
mov qword [r13 + 0x20], rsi
mov qword [rbx + 0x10], rsi
test rsi, rsi
je 0x140001ac3
mov qword [rsi + 0x4038], rbx
cmp qword [rbx + 0x10], rdi
je 0x140001bfe
cmp dword [rbx + 0x20], edi
jne 0x140001bfe
mov qword [rsp + 0x28], rdi
lea r8, [0x1400018d0]
mov r9, rbx
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x24], ebp
setne dil
mov dword [rbx + 0x20], edi
jmp 0x140001ac6
mov ebp, edi
mov dword [rbx + 0x24], edi
jmp 0x140001ac6
Function at 0x140003d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140003e05
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140003e05
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140003df5
nop
cmp rbx, rcx
jae 0x140003e05
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140003de0
cmp rbx, rcx
jae 0x140003e05
cmp word [rbx], 0
je 0x140003e05
mov rax, rbx
jmp 0x140003e07
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000ec50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r8, rcx
cmp edx, 0x100012c
ja 0x14000eccf
je 0x14000ecca
add edx, 0xfefffff6
cmp edx, 0xf3
ja case.0x14000ed45.16777727
mov eax, edx
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0xef40]
mov ecx, dword [rdx + rax*4 + 0xef0c]
add rcx, rdx
jmp rcx
mov rax, r8
ret
lea rax, [r8 + 4]
ret
lea rax, [r8 + 0x10]
ret
lea rax, [r8 + 8]
ret
lea rax, [r8 + 0x14]
ret
lea rax, [r8 + 0x18]
ret
lea rax, [r8 + 0x1c]
ret
lea rax, [r8 + 0x20]
ret
lea rax, [r8 + 0x24]
ret
lea rax, [r8 + 0x28]
ret
lea rax, [r8 + 0x2c]
ret
lea rax, [r8 + 0xe0]
ret
lea rax, [rcx + 0x30]
ret
cmp edx, 0x10001f4
ja 0x14000ed06
je 0x14000ed01
sub edx, 0x100012d
je 0x14000ecfc
sub edx, 1
je 0x14000ecf7
cmp edx, 1
jne case.0x14000ed45.16777727
lea rax, [rcx + 0xdc]
ret
lea rax, [rcx + 0x38]
ret
lea rax, [rcx + 0x34]
ret
lea rax, [rcx + 0x3c]
ret
cmp edx, 0x100031f
ja 0x14000eedf
je 0x14000eed7
add edx, 0xfefffe0b
cmp edx, 0xbd
ja case.0x14000ed45.16777727
mov eax, edx
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0xf118]
mov ecx, dword [rdx + rax*4 + 0xf034]
add rcx, rdx
jmp rcx
lea rax, [r8 + 0x40]
ret
lea rax, [r8 + 0x44]
ret
lea rax, [r8 + 0x48]
ret
lea rax, [r8 + 0x4c]
ret
lea rax, [r8 + 0x50]
ret
lea rax, [r8 + 0x54]
ret
lea rax, [r8 + 0x58]
ret
lea rax, [r8 + 0x5c]
ret
lea rax, [r8 + 0x60]
ret
lea rax, [r8 + 0x64]
ret
lea rax, [r8 + 0x68]
ret
lea rax, [r8 + 0x6c]
ret
lea rax, [r8 + 0x70]
ret
lea rax, [r8 + 0x74]
ret
lea rax, [r8 + 0x78]
ret
lea rax, [r8 + 0x7c]
ret
lea rax, [r8 + 0x80]
ret
lea rax, [r8 + 0x84]
ret
lea rax, [r8 + 0x88]
ret
lea rax, [r8 + 0x8c]
ret
lea rax, [r8 + 0x90]
ret
lea rax, [r8 + 0x94]
ret
lea rax, [r8 + 0x98]
ret
lea rax, [r8 + 0x9c]
ret
lea rax, [r8 + 0xa0]
ret
lea rax, [r8 + 0xa4]
ret
lea rax, [r8 + 0xa8]
ret
lea rax, [r8 + 0xac]
ret
lea rax, [r8 + 0xb0]
ret
lea rax, [r8 + 0xb4]
ret
lea rax, [r8 + 0xb8]
ret
lea rax, [r8 + 0xbc]
ret
lea rax, [r8 + 0xc0]
ret
lea rax, [r8 + 0xc4]
ret
lea rax, [r8 + 0xc8]
ret
lea rax, [r8 + 0xcc]
ret
lea rax, [r8 + 0xd0]
ret
lea rax, [r8 + 0xd4]
ret
lea rax, [r8 + 0xd8]
ret
lea rax, [r8 + 0xe4]
ret
lea rax, [r8 + 0xe8]
ret
lea rax, [r8 + 0xec]
ret
lea rax, [r8 + 0xf0]
ret
lea rax, [r8 + 0xf4]
ret
lea rax, [r8 + 0xf8]
ret
lea rax, [r8 + 0xfc]
ret
lea rax, [r8 + 0x100]
ret
lea rax, [r8 + 0x104]
ret
lea rax, [r8 + 0x108]
ret
lea rax, [r8 + 0x10c]
ret
lea rax, [r8 + 0x110]
ret
lea rax, [r8 + 0x114]
ret
lea rax, [r8 + 0x118]
ret
lea rax, [r8 + 0x11c]
ret
lea rax, [r8 + 0x130]
ret
lea rax, [r8 + 0x134]
ret
lea rax, [rcx + 0x12c]
ret
sub edx, 0x1000378
je 0x14000ef04
sub edx, 1
je 0x14000eefc
cmp edx, 9
je 0x14000eef4
xor eax, eax
ret
lea rax, [rcx + 0x128]
ret
lea rax, [rcx + 0x124]
ret
lea rax, [rcx + 0x120]
ret
Function at 0x1400122b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbx, qword [0x14005ad60]
mov qword [rsp + 0x60], rbx
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x14000eb75.0]
nop
mov ebp, 1
xor edi, edi
cmp qword [rbx + 0x48], rdi
jne 0x1400123cf
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x14000eb75.0]
cmp qword [rbx + 0x48], rdi
je 0x14001233f
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14001233f
mov dword [rbx + 0x50], ebp
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x14001233f
mov edx, 0x1388
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14001233f
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x48], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x40], rax
test rax, rax
jne 0x14001236e
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14000eb75.0]
nop
jmp 0x1400123fd
mov dword [rbx + 0x3c], edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x140012420]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x48], rax
test rax, rax
jne 0x1400123af
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14000eb75.0]
nop
jmp 0x1400123fd
mov edx, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
nop
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14000eb75.0]
nop
mov eax, edi
lea rcx, [rbx + 0x58]
mov rdx, qword [rcx]
cmp rdx, rsi
je 0x1400123fb
test rdx, rdx
je 0x1400123ef
inc eax
add rcx, 8
cmp eax, 0x32
jae 0x1400123fd
jmp 0x1400123d5
cmp eax, 0xffffffff
je 0x1400123fd
mov qword [rbx + rax*8 + 0x58], rsi
jmp 0x1400123ff
mov edi, ebp
mov ebp, edi
mov rdx, qword [rbx]
mov rcx, rbx
mov rax, qword [rdx + 0x20]
call qword [case.0x14000eb75.0]
nop
mov eax, ebp
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013780
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005a318]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebp, ebp
mov qword [rsp + 0x30], rcx
lea rsi, [rcx + 8]
mov rbx, rcx
mov qword [rsi], rbp
mov qword [rsp + 0x30], rbp
lea rdi, [rbp - 1]
call fcn.140013210
cmp word [rax], bp
je 0x140013819
xorps xmm0, xmm0
mov qword [rsp + 0x38], 0x38
xorps xmm1, xmm1
mov qword [rsp + 0x68], rbp
movdqu xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm1
call fcn.140013210
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140013819
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14005cdd8], eax
jle 0x140013862
lea rcx, [0x14005cdd8]
call fcn.140024058
cmp dword [0x14005cdd8], 0xffffffff
jne 0x140013862
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea rcx, [0x14005cdd8]
mov dword [0x14005cff8], eax
call fcn.140023ff8
mov ecx, dword [0x14005cff8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14001388c
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x14005cff8]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x70]
lea rcx, str.SynCom.SynAPI
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x1400138bf
xor edx, edx
mov qword [rsp + 0x20], rsi
lea r9, str.c_a2A
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x15]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400138d1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rdi, 0xffffffffffffffff
je 0x1400138e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
lea rax, vtable.SynAPI.0
mov qword [rbx], rax
lea rax, vtable.CDummySynAPI.0
mov qword [rbx + 0x10], rax
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140023ea0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140013940
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005a318]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebp, ebp
mov qword [rsp + 0x30], rcx
lea rsi, [rcx + 8]
mov rbx, rcx
mov qword [rsi], rbp
mov qword [rsp + 0x30], rbp
lea rdi, [rbp - 1]
call fcn.140013210
cmp word [rax], bp
je 0x1400139d9
xorps xmm0, xmm0
mov qword [rsp + 0x38], 0x38
xorps xmm1, xmm1
mov qword [rsp + 0x68], rbp
movdqu xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm1
call fcn.140013210
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400139d9
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14005cddc], eax
jle 0x140013a22
lea rcx, [0x14005cddc]
call fcn.140024058
cmp dword [0x14005cddc], 0xffffffff
jne 0x140013a22
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea rcx, [0x14005cddc]
mov dword [0x14005cde0], eax
call fcn.140023ff8
mov ecx, dword [0x14005cde0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140013a4c
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x14005cde0]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x70]
lea rcx, str.SynCom.PointingDevice
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x140013a7f
xor edx, edx
mov qword [rsp + 0x20], rsi
lea r9, [0x1400511a0]
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x15]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140013a91
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rdi, 0xffffffffffffffff
je 0x140013aa0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
lea rax, vtable.SynDevice.1.0
mov qword [rbx], rax
lea rax, vtable.SynDevice.0
mov qword [rbx + 0x10], rax
lea rax, vtable.CDummySynDevice.0
mov qword [rbx + 0x20], rax
mov rax, rbx
mov dword [rbx + 0x28], ebp
mov qword [rbx + 0x18], rbp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140023ea0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140013f30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14005a318]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x20], rdx
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14005d248], eax
jle 0x140013fd6
lea rcx, [0x14005d248]
call fcn.140024058
cmp dword [0x14005d248], 0xffffffff
jne 0x140013fd6
call fcn.140001330
mov rcx, rax
test rax, rax
je 0x14001408e
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14000eb75.0]
add rax, 0x18
mov qword [0x14005d240], rax
lea rcx, [0x140043ce0]
call fcn.1400243a0
lea rcx, [0x14005d248]
call fcn.140023ff8
mov rax, qword [0x14005d240]
mov rbx, 0xffffffffffffffff
cmp dword [rax - 0x10], 0
jne 0x140014032
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.140026d60
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rsp + 0x30]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140014014
mov r8d, eax
lea rdx, [rsp + 0x30]
lea rcx, [0x14005d240]
call fcn.14000d640
mov r8, rsi
lea rdx, [0x14005d240]
mov rcx, rdi
call fcn.14000c7e0
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140014066
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14000eb75.0]
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140023ea0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.140003d60
int3
Function at 0x140014db0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
mov rdx, qword [rcx + 0x58]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
xor esi, esi
test rax, rax
je 0x140014e29
mov rdx, qword [rdi + 0x58]
mov qword [rsp + 0x50], rdx
lea rax, str.SynTPEnhService_in_OnStart
mov qword [rsp + 0x58], rax
lea ecx, [rsi + 2]
lea edx, [rsi + 4]
lea r8d, [rsi + 1]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov word [rsp + 0x28], cx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rax, [0x140014eb0]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], esi
mov ecx, 0x18
call fcn.1400243ec
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rdi
mov qword [rsp + 0x88], rax
mov r8d, 0x10
mov rdx, rax
lea rcx, [0x14001dd60]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x140014e8f
mov edx, 0x18
xor ecx, ecx
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
jmp fcn.1400243b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rsp + 0x70], eax
lea rdx, [0x140058140]
lea rcx, [rsp + 0x70]
call fcn.1400265d8
int3
Function at 0x140017220
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdx, qword [rcx + 0x58]
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x140017298
mov rdx, qword [rbx + 0x58]
lea rax, str.SynTPEnhService_in_OnShutdown
xor ecx, ecx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x40], rcx
mov edx, 4
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
lea r9d, [rdx - 2]
mov word [rsp + 0x28], r9w
lea r8d, [rdx - 3]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rbx + 0x330]
test rcx, rcx
je 0x1400172c5
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400172c5
mov rax, qword [rcx]
mov edx, 0x10002b5
mov r8d, 1
mov rax, qword [rax + 0x40]
call qword [case.0x14000eb75.0]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14001b7e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14005a318]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov edx, 0x104
lea rcx, [rsp + 0x20]
mov esi, r8d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x20]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x14001b820
mov eax, dword [0x14004df38]
mov dword [rcx], eax
lea rcx, [rsp + 0x20]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x14001b840
mov eax, dword [0x140050350]
movups xmm0, xmmword [str.SynCOM.dll]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
movzx eax, word [0x140050354]
mov word [rcx + 0x14], ax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
cmp rax, 0x20
jae 0x14001b881
xor eax, eax
jmp 0x14001b8cd
lea rax, str.DllUnregisterServer
mov qword [rsp + 0x250], rbx
test esi, esi
lea rdx, str.DllRegisterServer
mov rcx, rdi
mov ebx, 1
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001b8b8
call qword [case.0x14000eb75.0]
jmp 0x14001b8ba
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rbx, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140023ea0
mov rsi, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret