joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8480
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x4a858a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x4a8562
add rax, 1
cmp rax, 0x6b
je 0x4a857f
cmp byte [rcx + rax], 0
jne 0x4a8558
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x4a857f
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
lea rcx, [rsp + 0x20]
mov edx, 0x28
mov eax, 0x27
jmp 0x4a8570

Function at 0x4a8900
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x005a1920], 1
je 0x4a8978
lea rdi, [0x005a1920]
mov rcx, rdi
call fcn.004a8210
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.004a7b40
mov esi, dword [0x005a1920]
test esi, esi
jne 0x4a8988
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x004bfe58], eax
je 0x4be6a6
mov dword [0x005a1920], 1
mov rcx, rbp
call fcn.004a7e10
test rbx, rbx
je 0x4a8978
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.004a85a0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x4a8958
mov ecx, 2
call qword [fcn.004a5d20]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x4a8958
call sub.msvcrt.dll_abort
nop
Function at 0x4a89b0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.004a86b0
cmp qword [0x005a4048], 0
mov rbx, rax
je 0x4a8ac8
test rax, rax
je 0x4a8ac8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.004a8110
cmp eax, 1
je 0x4a8ad6
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.004be6ac
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x004bfe58]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4a8adc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.004a8480
nop
jmp fcn.004be6ac

Function at 0x4a8af0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.004a8900
mov ecx, dword [0x004bfe58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4a8b10
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.004a89b0
Function at 0x4a9280
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x4a93a8
cmp eax, 1
je 0x4a92db
call fcn.004a8210
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.004a7b40
mov r12d, dword [rbx]
test r12d, r12d
je 0x4a92f0
cmp r12d, 1
jne 0x4a9380
mov rcx, rbp
call fcn.004a7e10
test rdi, rdi
je 0x4a92db
mov rcx, rdi
call fcn.004a85a0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x004a8680]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.004a8900
mov ecx, dword [0x004bfe58]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x4a93e8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.004a8900
mov ecx, dword [0x004bfe58]
call r12
test rax, rax
je 0x4a93d0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.004a8900
mov ecx, dword [0x004bfe58]
call r12
test rax, rax
je 0x4a93c0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x4a92c6
mov ecx, 2
call qword [fcn.004a5d20]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x4a92c6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.004a89b0
test rax, rax
jne 0x4a9369
jmp 0x4be6c5
call fcn.004a89b0
test rax, rax
jne 0x4a9345
jmp 0x4be6de
call fcn.004a89b0
test rax, rax
jne 0x4a931f
jmp 0x4be6d4
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x4a9670
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.004a8900
mov ecx, dword [0x004bfe58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x4a96e8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.004a8120
cmp esi, dword [rbx + 0x48]
jae 0x4a96c3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x4a96c3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.004a8160
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.004a89b0
mov rbx, rax
jmp 0x4a969d
Function at 0x4a9700
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.004a8900
mov ecx, dword [0x004bfe58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x4a9810
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.004a8120
cmp esi, dword [rbx + 0x48]
jae 0x4a9790
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.004a8160
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rdi, rax
je 0x4a981d
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.msvcrt.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x4a981d
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.msvcrt.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x4a9754
call fcn.004a89b0
mov rbx, rax
jmp 0x4a973f
mov rcx, r14
call fcn.004a8160
mov eax, 0xc
jmp 0x4a9772

Function at 0x4a98a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.004a8900
mov ecx, dword [0x004bfe58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4a98c8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.004a89b0
test rax, rax
jne 0x4a98ba
add rsp, 0x28
ret

Function at 0x4a9930
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.004a8900
mov ecx, dword [0x004bfe58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4a9958
add rax, 0x18
add rsp, 0x28
ret
call fcn.004a89b0
test rax, rax
jne 0x4a994a
jmp 0x4a994e

Function at 0x4a9a70
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x005a1928]
test eax, eax
jne 0x4a9a88
xor eax, eax
add rsp, 0x28
ret
call fcn.004a8900
mov ecx, dword [0x004bfe58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4a9ab8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x4a9a7e
test byte [rax + 0x40], 3
je 0x4a9a7e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x4a9a80
call fcn.004a89b0
test rax, rax
jne 0x4a9a9e
jmp 0x4a9a7e

Function at 0x4a9ad0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.004a8900
mov ecx, dword [0x004bfe58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4a9b10
test ebx, ebx
jle 0x4a9b00
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.004a89b0
test rax, rax
jne 0x4a9aed
add rsp, 0x20
pop rbx
ret
Function at 0x4a9c00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.004a8900
mov ecx, dword [0x004bfe58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x4a9c78
test byte [rbx + 0x40], 0xc
jne 0x4a9c2f
mov eax, dword [0x005a1928]
test eax, eax
jne 0x4a9c40
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.004a7b40
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x4a9c63
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x4a9c63
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x4a9c8c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.004a7e10
call fcn.004a89b0
test rax, rax
mov rbx, rax
jne 0x4a9c1f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x4a9caa
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.004a7e10
call fcn.004a9b20
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x4a9d30
call fcn.004a7900
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x4a9d68
call fcn.004a8900
mov ecx, dword [0x004bfe58]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x4a9dc0
test esi, esi
je 0x4a9d46
call fcn.004a9c00
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x4a9da0
mov edx, edi
call fcn.004a79b0
call fcn.004a9c00
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.004a8900
mov ecx, dword [0x004bfe58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4a9db0
call fcn.004a9c00
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004a9c00
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.004a8900
mov ecx, dword [0x004bfe58]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x4a9d05
call fcn.004a89b0
mov rbx, rax
jmp 0x4a9d05
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4a9d1e
call fcn.004a89b0
jmp 0x4a9d46
call fcn.004a89b0
mov rbx, rax
jmp 0x4a9d01
Function at 0x4a9cc0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.004a8900
mov ecx, dword [0x004bfe58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x4a9c78
test byte [rbx + 0x40], 0xc
jne 0x4a9c2f
mov eax, dword [0x005a1928]
test eax, eax
jne 0x4a9c40
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.004a7b40
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x4a9c63
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x4a9c63
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x4a9c8c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.004a7e10
call fcn.004a89b0
test rax, rax
mov rbx, rax
jne 0x4a9c1f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x4a9caa
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.004a7e10
call fcn.004a9b20
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x4a9d30
call fcn.004a7900
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x4a9d68
call fcn.004a8900
mov ecx, dword [0x004bfe58]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x4a9dc0
test esi, esi
je 0x4a9d46
call fcn.004a9c00
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x4a9da0
mov edx, edi
call fcn.004a79b0
call fcn.004a9c00
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.004a8900
mov ecx, dword [0x004bfe58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4a9db0
call fcn.004a9c00
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004a9c00
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.004a8900
mov ecx, dword [0x004bfe58]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x4a9d05
call fcn.004a89b0
mov rbx, rax
jmp 0x4a9d05
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4a9d1e
call fcn.004a89b0
jmp 0x4a9d46
call fcn.004a89b0
mov rbx, rax
jmp 0x4a9d01

Function at 0x4a9dd0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.004a8900
mov ecx, dword [0x004bfe58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x4a9e40
test esi, esi
je 0x4a9e20
call fcn.004a9c00
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x4a9e50
mov edx, esi
call fcn.004a79b0
call fcn.004a9c00
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.004a9c00
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004a9c00
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.004a89b0
mov rbx, rax
jmp 0x4a9df1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4a9e0a
Function at 0x1400031ac
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 5]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 5
jb 0x1400031b2
mov rax, rcx
ret

Function at 0x1400031c8
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x30]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0x18
jb 0x1400031ce
mov rax, rcx
ret

Function at 0x1400031ec
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xa]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 5
jb 0x1400031f2
mov rax, rcx
ret
Function at 0x14000ad70
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140130ac8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, rcx
mov qword [rsp + 0x70], rdx
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000adfc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rcx, str.Service:_Cannot_install_service___u__n
mov edx, eax
call qword [sym.imp.msvcrt.dll_wprintf_s]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400cba70
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2a0
pop rdi
ret
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14000ae23
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rcx, str.Service:_OpenSCManager_failed___u__n
jmp 0x14000add3
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x80]
and qword [rsp + 0x58], 0
lea rdx, str.SensorDataService
and qword [rsp + 0x50], 0
mov r9d, 0xf01ff
and qword [rsp + 0x48], 0
mov r8, rdi
and qword [rsp + 0x40], 0
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x14000aeaf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Service:_CreateService_failed___u__n
call qword [sym.imp.msvcrt.dll_wprintf_s]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test eax, eax
jne 0x14000addb
jmp 0x14000aefd
lea rcx, str.Service:_Installed_successfully_n
call qword [sym.imp.msvcrt.dll_wprintf_s]
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
test eax, eax
jne 0x14000aeee
lea rcx, str.Service:_Failed_to_start_n
call qword [sym.imp.msvcrt.dll_wprintf_s]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test eax, eax
jne 0x14000ae9c
jmp 0x14000af17
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14000bfec
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14000bfec
int3
Function at 0x14000af34
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140130ac8]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
lea rcx, [rsp + 0x38]
lea r8d, [rdx + 0x24]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov rsi, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14000afb7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Service:_OpenSCManager_failed___u__n
call qword [sym.imp.msvcrt.dll_wprintf_s]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400cba70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov r8d, 0xf01ff
lea rdx, str.SensorDataService
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14000affc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Service:_OpenService_failed___u__n
call qword [sym.imp.msvcrt.dll_wprintf_s]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test eax, eax
jne 0x14000af98
jmp 0x14000b0a5
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
je 0x14000b061
cmp dword [rsp + 0x3c], 1
je 0x14000b061
add rsi, 0x3a98
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
cmp rax, rsi
ja 0x14000b061
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000b061
cmp dword [rsp + 0x3c], 1
jne 0x14000b021
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
test eax, eax
jne 0x14000b085
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Service:_DeleteService_failed___u__n
call qword [sym.imp.msvcrt.dll_wprintf_s]
jmp 0x14000b092
lea rcx, str.Service:_Uninstalled_successfully_n
call qword [sym.imp.msvcrt.dll_wprintf_s]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test eax, eax
jne 0x14000afea
jmp 0x14000b0bf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14000bfec
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14000bfec
int3
Function at 0x14000d748
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x140130ac8]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [r8], r15
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000d7b9
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000d7b9
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14000d797
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x1400dd448]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.14000c018
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x14000d823
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x14000d8df
mov edx, 0xc8
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400dd3d0]
call fcn.14000d56c
mov esi, eax
jmp 0x14000d8e2
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.14000d604
mov esi, eax
test eax, eax
jns 0x14000d859
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.14000d534
jmp 0x14000d8e2
lea r8, [0x1400dd450]
lea rcx, [rsp + 0x30]
call fcn.14000c018
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x14000d888
mov edx, 0xd4
jmp 0x14000d809
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000d604
mov esi, eax
test eax, eax
jns 0x14000d8be
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd6
call fcn.14000d534
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
jne 0x14000d8e2
jmp 0x14000d922
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14000d934
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x14000d8f4
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14000d946
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400cba70
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x168]
mov edx, 0x878
call fcn.14000d584
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x878
call fcn.14000d584
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x878
call fcn.14000d584
int3