joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff74b0bb04
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [0x7ff74b58380]
mov rdi, rdx
mov rcx, qword [rsi + 0x10]
call fcn.7ff74ae3060
mov rbx, qword [rsi]
test rbx, rbx
jne 0x7ff74b15081
mov rcx, qword [rsi + 0x10]
lock add dword [rcx + 0x38], 0xffffffff
jne 0x7ff74b0bb47
cmp dword [rcx + 0x3c], 0
jne 0x7ff74b150ec
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x7ff74b1509a
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x7ff74b1509a
mov rcx, rdi
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
jmp 0x7ff74b150a3
xor eax, eax
cmp rdi, qword [rbx + 0x18]
sete al
test eax, eax
jne 0x7ff74b150af
mov rbx, qword [rbx]
test rbx, rbx
jne 0x7ff74b15081
test rbx, rbx
je 0x7ff74b0bb32
mov eax, dword [0x7ff74b59b84]
cmp dword [rbx + 0x10], eax
jb 0x7ff74b0bb32
mov rcx, qword [rsi + 0x10]
lock add dword [rcx + 0x38], 0xffffffff
jne 0x7ff74b150e2
cmp dword [rcx + 0x3c], 0
je 0x7ff74b150e2
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
jmp 0x7ff74b0bb49
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
jmp 0x7ff74b0bb47
Function at 0x7ff74b0d270
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rcx, qword [0x7ff74b58418]
call fcn.7ff74ae3010
mov rsi, qword [0x7ff74b58470]
xor ebx, ebx
cmp dword [rsi + 8], ebx
jbe 0x7ff74b0d2bf
xor edi, edi
mov rax, qword [rsi]
mov rcx, qword [rdi + rax + 8]
test rcx, rcx
je 0x7ff74b0d2b4
xor edx, edx
call fcn.7ff74b07b5c
inc ebx
add rdi, 0x10
cmp ebx, dword [rsi + 8]
jb 0x7ff74b0d2a0
mov rcx, qword [0x7ff74b58418]
lock add dword [rcx + 0x3c], 0xffffffff
and dword [rcx + 0x40], 0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbp, qword [0x7ff74b58458]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdi, qword [rbp]
mov ebx, eax
mov eax, dword [rbp + 0x10]
imul eax, eax, 0x3e8
add ebx, eax
jmp 0x7ff74b0d305
test rdi, rdi
je 0x7ff74b0d338
cmp dword [0x7ff74b582c8], 0
je 0x7ff74b0d330
mov rcx, qword [0x7ff74b58350]
lea rax, [0x7ff74b58350]
cmp rcx, rax
je 0x7ff74b0d330
test byte [rcx + 0x1c], 0x10
jne 0x7ff74b0e686
mov dword [rdi + 0x10], ebx
mov rdi, qword [rdi]
jmp 0x7ff74b0d305
lea rcx, [rbp + 0x18]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rdi - 8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51c20]
mov rax, qword [rax + 0x18]
mov edx, 0x12
mov r9, rbp
mov qword [rsp + 0x28], rax
mov rax, qword [rdi - 0x10]
mov qword [rsp + 0x20], rax
call fcn.7ff74b262a8
nop
jmp 0x7ff74b0d330
Function at 0x7ff74b2b0ec
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov rbx, rcx
cmp byte [rcx + 8], sil
je 0x7ff74b2b10d
xor eax, eax
jmp 0x7ff74b2b1a4
cmp byte [rcx + 0xa], sil
je 0x7ff74b2b16e
mov edi, dword [0x7ff74b59b14]
cmp edi, 0xffffffff
jne 0x7ff74b2b160
xor edx, edx
lea rcx, [rsp + 0x24]
mov edi, 0x1f4
lea r8d, [rdx + 0x3c]
mov dword [rsp + 0x20], esi
call sub.msvcrt.dll_memset
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x40]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, esi
jl 0x7ff74b2b15a
movsx edi, byte [rsp + 0x58]
imul edi, edi, 0x1f4
mov dword [0x7ff74b59b14], edi
lea rcx, [rbx + 0x28]
mov edx, edi
call qword [sym.imp.ntdll.dll_RtlInitializeCriticalSectionAndSpinCount]
jmp 0x7ff74b2b178
add rcx, 0x28
call qword [sym.imp.ntdll.dll_RtlInitializeCriticalSection]
cmp eax, esi
mov r11d, eax
setge al
mov byte [rbx + 8], al
cmp byte [rbx + 9], sil
jne 0x7ff74b2b19a
mov rax, qword [0x7ff74b5a010]
mov qword [0x7ff74b5a010], rbx
mov qword [rbx], rax
cmp r11d, esi
cmovge r11d, esi
mov eax, r11d
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x7ff74b301f4
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
and dword [rax + 0x10], 0
xor ebx, ebx
mov rsi, rdx
and qword [rdx], rbx
and qword [r8], rbx
lea rax, [rax + 0x10]
mov rdi, r8
lea edx, [rbx + 2]
xor r9d, r9d
xor r8d, r8d
mov rbp, rcx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov r14d, 0x80070000
cmp eax, 0xc0000023
jne 0x7ff74b30280
mov ecx, dword [rsp + 0x58]
call fcn.7ff74b46a1c
mov qword [rsi], rax
test rax, rax
jne 0x7ff74b3025c
mov ebx, 0x8007000e
jmp 0x7ff74b30307
mov r9d, dword [rsp + 0x58]
lea rcx, [rsp + 0x58]
mov r8, rax
mov qword [rsp + 0x20], rcx
mov rcx, rbp
mov edx, 2
call qword [sym.imp.ntdll.dll_NtQueryKey]
test eax, eax
jns 0x7ff74b30297
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x7ff74b30307
xor r9d, r9d
lea rax, [rsp + 0x58]
xor r8d, r8d
lea edx, [r9 + 3]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryKey]
cmp eax, 0xc0000023
jne 0x7ff74b302f0
mov ecx, dword [rsp + 0x58]
call fcn.7ff74b46a1c
mov qword [rdi], rax
test rax, rax
je 0x7ff74b30252
mov r9d, dword [rsp + 0x58]
lea rcx, [rsp + 0x58]
mov r8, rax
mov qword [rsp + 0x20], rcx
mov rcx, rbp
mov edx, 3
call qword [sym.imp.ntdll.dll_NtQueryKey]
test eax, eax
jns 0x7ff74b30303
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x7ff74b30329
mov rcx, qword [rdi]
test rcx, rcx
je 0x7ff74b30314
call fcn.7ff74b46a00
mov rcx, qword [rsi]
test rcx, rcx
je 0x7ff74b30321
call fcn.7ff74b46a00
and qword [rsi], 0
and qword [rdi], 0
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x7ff74b32af0
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x20
and qword [r8], 0
and dword [rax + 0x18], 0
mov esi, edx
mov rdi, r8
lea r8, [rax + 0x18]
mov ecx, esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x7ff74b32c2f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xea
jne 0x7ff74b32be9
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x7ff74b32c2f
lea ecx, [rax + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, qword [0x7ff74b584e0]
xor edx, edx
mov r8, rax
call qword [0x7ff74b58358]
mov rbx, rax
test rax, rax
je 0x7ff74b32c2f
lea r8, [rsp + 0x40]
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x7ff74b32b8f
mov qword [rdi], rbx
jmp 0x7ff74b32c2f
cmp dword [0x7ff74b582c8], 0
je 0x7ff74b32bd5
mov rcx, qword [0x7ff74b58350]
lea rax, [0x7ff74b58350]
cmp rcx, rax
je 0x7ff74b32bd5
test byte [rcx + 0x1c], 1
je 0x7ff74b32bd5
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x7ff74b58350]
lea r8, [0x7ff74b51820]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xa
call fcn.7ff74b25ec4
mov rcx, qword [0x7ff74b584e0]
mov r8, rbx
xor edx, edx
call qword [case.0x7ff74b3e5fd.0]
jmp 0x7ff74b32c2f
cmp dword [0x7ff74b582c8], 0
je 0x7ff74b32c2f
mov rcx, qword [0x7ff74b58350]
lea rax, [0x7ff74b58350]
cmp rcx, rax
je 0x7ff74b32c2f
test byte [rcx + 0x1c], 1
je 0x7ff74b32c2f
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x7ff74b58350]
lea r8, [0x7ff74b51820]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xb
call fcn.7ff74b25ec4
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x7ff74b36058
Capabilities:
Compare security identifiers

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
cmp r8w, word [rcx + 0x32]
je 0x7ff74b36076
mov ecx, 0xffff
cmp r8w, cx
jne 0x7ff74b3607c
cmp r9d, dword [rbx + 0x34]
jbe 0x7ff74b36083
xor eax, eax
jmp 0x7ff74b36128
mov rdx, qword [rbx + 0x28]
mov rcx, rax
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
test eax, eax
je 0x7ff74b3607c
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rbx + 0x38]
test rdx, rdx
je 0x7ff74b3611a
test rcx, rcx
je 0x7ff74b3611a
mov eax, dword [rcx]
cmp dword [rdx], eax
jne 0x7ff74b3607c
mov eax, dword [rcx + 4]
cmp dword [rdx + 4], eax
jne 0x7ff74b3607c
mov eax, dword [rcx + 0x10]
cmp dword [rdx + 0x10], eax
jne 0x7ff74b3607c
mov eax, dword [rcx + 0x14]
cmp dword [rdx + 0x14], eax
jne 0x7ff74b3607c
mov eax, dword [rcx + 0x20]
cmp dword [rdx + 0x20], eax
jne 0x7ff74b3607c
mov rax, qword [rdx + 8]
test rax, rax
je 0x7ff74b360fe
mov r8, qword [rcx + 8]
test r8, r8
je 0x7ff74b360fe
sub r8, rax
movzx r9d, word [rax]
movzx r10d, word [rax + r8]
sub r9d, r10d
jne 0x7ff74b360f9
add rax, 2
test r10d, r10d
jne 0x7ff74b360e2
test r9d, r9d
jmp 0x7ff74b36102
cmp rax, qword [rcx + 8]
jne 0x7ff74b3607c
cmp qword [rdx + 0x18], 0
jne 0x7ff74b3607c
cmp qword [rcx + 0x18], 0
jmp 0x7ff74b3611d
cmp rdx, rcx
jne 0x7ff74b3607c
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x7ff74b37560
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
lea rdx, str.SOFTWAREMicrosoftOLE
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff74b375e7
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.ActivationFailureLoggingLevel
xor r8d, r8d
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff74b375d5
cmp dword [rsp + 0x40], 2
jbe 0x7ff74b375da
and dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x7ff74b37621
cmp dword [0x7ff74b582c8], 0
je 0x7ff74b37621
mov rcx, qword [0x7ff74b58350]
lea rdx, [0x7ff74b58350]
cmp rcx, rdx
je 0x7ff74b37621
test byte [rcx + 0x1c], 1
je 0x7ff74b37621
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b517f0]
mov edx, 0x1d
mov r9d, eax
call fcn.7ff74b25ec4
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x7ff74b37a60
Capabilities:
Compare security identifiers

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
lea rbp, [rsp + 0x40]
mov qword [rbp + 0xa8], rbx
mov rax, qword [0x7ff74b58340]
xor rax, rbp
mov qword [rbp + 0x40], rax
xor esi, esi
mov r12, r8
mov r15, rdx
mov r14, rcx
cmp r8, rsi
jne 0x7ff74b37aa7
mov eax, 0x80004003
jmp 0x7ff74b37c82
xor eax, eax
mov dword [r8], esi
mov edi, esi
mov byte [rbp + 0x10], sil
mov dword [rbp + 8], 0xc
mov word [rbp + 0x20], si
mov qword [rbp + 0x11], rax
mov word [rbp + 0x19], ax
mov byte [rbp + 0x1b], al
mov qword [rbp + 0x22], rax
mov qword [rbp + 0x2a], rax
mov qword [rbp + 0x32], rax
mov dword [rbp + 0x3a], eax
mov word [rbp + 0x3e], ax
mov dword [rbp + 4], 0x10
mov rbx, rsi
cmp rcx, rsi
je 0x7ff74b37bca
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [rbx + rax + 2]
mov rbx, rsi
movsxd r13, ecx
lea rsi, [r13 + r13]
test rsi, rsi
je 0x7ff74b37b72
cmp rsi, qword [0x7ff74b585e0]
ja 0x7ff74b37b72
mov rax, qword [0x7ff74b585e8]
lea rdi, [r13 + r13 + 8]
lea rcx, [rdi + rax]
cmp rcx, rsi
jb 0x7ff74b37b72
call fcn.7ff74ae6340
test eax, eax
je 0x7ff74b37b72
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x7ff74b37b50
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.7ff74ae3a20
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x7ff74b37b72
mov dword [rbx], 0x6b637453
add rbx, 8
jne 0x7ff74b37ba9
lea rcx, [r13 + r13 + 8]
cmp rcx, rsi
jb 0x7ff74b37b98
call qword [0x7ff74b585f0]
xor esi, esi
mov rbx, rax
cmp rax, rsi
je 0x7ff74b37b9f
mov dword [rax], 0x70616548
add rbx, 8
jmp 0x7ff74b37b9a
xor esi, esi
cmp rbx, rsi
jne 0x7ff74b37bab
mov eax, 0x8007000e
jmp 0x7ff74b37c82
xor esi, esi
lea r8, str._s_s
mov r9, r14
mov rdx, r13
mov rcx, rbx
mov qword [rsp + 0x20], r15
call fcn.7ff74b043e4
mov r15, rbx
mov edi, eax
lea rax, [rbp]
lea r9, [rbp + 8]
lea r8, [rbp + 0x10]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 4]
mov rdx, r15
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [0x7ff74b58090]
cmp eax, esi
jne 0x7ff74b37c46
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
je 0x7ff74b37c3f
cmp dword [0x7ff74b582c8], esi
je 0x7ff74b37c3f
mov rcx, qword [0x7ff74b58350]
lea rdx, [0x7ff74b58350]
cmp rcx, rdx
je 0x7ff74b37c3f
test byte [rcx + 0x1c], 2
je 0x7ff74b37c3f
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b517b0]
mov edx, 0xd
mov r9d, eax
call fcn.7ff74b25ec4
mov edi, 1
jmp 0x7ff74b37c69
cmp dword [rbp], 5
jne 0x7ff74b37c69
lea rdx, [0x7ff74b517c0]
lea rcx, [rbp + 0x10]
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
cmp eax, esi
je 0x7ff74b37c69
mov dword [r12], 1
cmp rbx, rsi
je 0x7ff74b37c80
lea rcx, [rbx - 8]
cmp dword [rcx], 0x70616548
jne 0x7ff74b37c80
call qword [0x7ff74b585f8]
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rbp
call fcn.7ff74ae3090
mov rbx, qword [rbp + 0xa8]
lea rsp, [rbp + 0x50]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ff74b3a420
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov r12, qword [0x7ff74b583e0]
xor ebx, ebx
mov rdi, r8
cmp dword [r12 + 0x38], 1
mov r13d, edx
jne 0x7ff74b3a45a
lea rcx, [r12 + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movdqu xmm0, xmmword [rdi]
mov rdi, qword [r12]
mov rsi, rbx
movdqu xmmword [rsp + 0x40], xmm0
cmp rdi, rbx
je 0x7ff74b3a56a
mov rdx, qword [rdi + 0x1c]
lea rcx, [rsp + 0x40]
cmp rdx, qword [rcx]
jne 0x7ff74b3a490
mov rdx, qword [rdi + 0x24]
cmp rdx, qword [rcx + 8]
jne 0x7ff74b3a490
mov eax, ebx
jmp 0x7ff74b3a495
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x7ff74b3a4bd
cmp dword [rdi + 0x14], r13d
jne 0x7ff74b3a4bd
cmp rsi, rbx
jne 0x7ff74b3a4a9
mov rsi, rdi
jmp 0x7ff74b3a4bd
lea rdx, [rdi + 0x2c]
lea rcx, [rsi + 0x2c]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, ebx
cmovl rsi, rdi
mov rdi, qword [rdi]
cmp rdi, rbx
jne 0x7ff74b3a474
cmp rsi, rbx
je 0x7ff74b3a56a
mov eax, dword [rsi + 0x10]
cmp eax, ebx
je 0x7ff74b3a4dc
mov ebx, eax
jmp 0x7ff74b3a56a
mov rcx, qword [rsi + 0x38]
cmp rcx, rbx
je 0x7ff74b3a56a
mov r9d, 0x10
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea edx, [r9 - 0xf]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryMutant]
cmp eax, ebx
jl 0x7ff74b3a531
mov rax, qword [r12]
cmp rax, rbx
je 0x7ff74b3a56a
mov rcx, qword [rsp + 0x58]
cmp dword [rax + 0x18], ecx
je 0x7ff74b3a527
mov rax, qword [rax]
cmp rax, rbx
jne 0x7ff74b3a51a
cmp rax, rbx
je 0x7ff74b3a56a
mov ebx, dword [rax + 0x10]
jmp 0x7ff74b3a56a
cmp dword [0x7ff74b582c8], ebx
je 0x7ff74b3a56a
mov rcx, qword [0x7ff74b58350]
lea rdx, [0x7ff74b58350]
cmp rcx, rdx
je 0x7ff74b3a56a
test byte [rcx + 0x1c], 1
je 0x7ff74b3a56a
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51780]
mov edx, 0x1b
mov r9d, eax
call fcn.7ff74b25ec4
cmp dword [r12 + 0x38], 1
jne 0x7ff74b3a57d
lea rcx, [r12 + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret

Function at 0x7ff74b3a5a0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor edx, edx
mov r8, rcx
add rcx, 2
lea r9d, [rdx + 6]
movzx eax, byte [rcx]
inc rcx
xor edx, eax
sub r9, 1
jne 0x7ff74b3a5ad
movzx ecx, byte [r8 + 1]
test ecx, ecx
je 0x7ff74b3a5d4
lea rax, [r8 + 8]
xor edx, dword [rax]
add rax, 4
sub rcx, 1
jne 0x7ff74b3a5c8
mov eax, edx
ret
Function at 0x7ff74b3b220
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [0x7ff74b58420]
mov edi, edx
xor ebx, ebx
call fcn.7ff74ae3010
lea r11, [rsp + 0x50]
lea rdx, str.SOFTWAREMicrosoftOLE
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff74b3b30e
lea rcx, [0x7ff74b51ff4]
lea rax, [0x7ff74b51ff8]
test edi, edi
cmovne rax, rcx
mov rcx, qword [rsp + 0x50]
lea r9d, [rbx + 1]
lea rdx, str.EnableSystemDynamicIPTracking
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x7ff74b3b2b4
test edi, edi
setne al
mov dword [0x7ff74b59408], eax
jmp 0x7ff74b3b301
call sub.KERNEL32.dll_GetLastError
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp dword [0x7ff74b582c8], 0
je 0x7ff74b3b301
mov rcx, qword [0x7ff74b58350]
lea rax, [0x7ff74b58350]
cmp rcx, rax
je 0x7ff74b3b301
test byte [rcx + 0x1c], 1
je 0x7ff74b3b301
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51750]
mov edx, 0xa
mov r9d, ebx
call fcn.7ff74b25ec4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x7ff74b3b35b
call sub.KERNEL32.dll_GetLastError
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp dword [0x7ff74b582c8], 0
je 0x7ff74b3b35b
mov rcx, qword [0x7ff74b58350]
lea rax, [0x7ff74b58350]
cmp rcx, rax
je 0x7ff74b3b35b
test byte [rcx + 0x1c], 1
je 0x7ff74b3b35b
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51750]
mov edx, 0xb
mov r9d, ebx
call fcn.7ff74b25ec4
mov rcx, qword [0x7ff74b58420]
lock add dword [rcx + 0x3c], 0xffffffff
and dword [rcx + 0x40], 0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x7ff74b3b608
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov rax, rdx
xor edx, edx
mov dword [rsp + 0x50], edx
mov rdx, qword [rcx + 0x10]
mov rdi, r8
mov dword [rsp + 0x68], esi
mov ebx, esi
mov dword [rsp + 0x30], 4
cmp rdx, rsi
je 0x7ff74b3b642
add rdx, 0x54
jmp 0x7ff74b3b645
mov rdx, rsi
lea rcx, [rsp + 0x30]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, esi
jne 0x7ff74b3b693
mov eax, 1
cmp dword [rsp + 0x68], eax
jne 0x7ff74b3b693
cmp word [rsp + 0x50], 0x31
mov ebx, eax
jne 0x7ff74b3b68a
cmp word [rsp + 0x52], si
je 0x7ff74b3b68c
mov eax, esi
cmp rdi, rsi
je 0x7ff74b3b693
mov dword [rdi], eax
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x7ff74b3bcb0
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x7ff74b58340]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ebp, ebp
lea rax, [r11 - 0x38]
mov rdi, rcx
mov qword [r11 - 0x48], rax
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x38], ebp
mov rsi, rdx
mov dword [rsp + 0x30], ebp
lea r8d, [rbp + 0x20]
lea rcx, [r11 - 0x30]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebp
mov byte [rsp + 0x68], bpl
mov dword [rsp + 0x20], ebp
mov byte [rsp + 0x69], bpl
mov byte [rsp + 0x6a], bpl
mov byte [rsp + 0x6b], bpl
mov byte [rsp + 0x6c], bpl
mov byte [rsp + 0x6d], 5
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_AllocateAndInitializeSid]
cmp eax, ebp
jne 0x7ff74b3bd85
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
cmp dword [0x7ff74b582c8], ebp
je 0x7ff74b3bd73
mov rcx, qword [0x7ff74b58350]
lea rdx, [0x7ff74b58350]
cmp rcx, rdx
je 0x7ff74b3bd73
test byte [rcx + 0x1c], 1
je 0x7ff74b3bd73
lea edx, [rbp + 0xa]
mov rcx, qword [rcx + 0x10]
lea r9, [rdi + 0x58]
lea r8, [0x7ff74b516f0]
mov dword [rsp + 0x20], eax
call fcn.7ff74b29108
movzx eax, bx
or eax, 0x80070000
cmp ebx, ebp
cmovle eax, ebx
jmp 0x7ff74b3be17
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdi + 0x30]
mov r8, rsi
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_FreeSid]
cmp ebx, ebp
jne 0x7ff74b3bdd7
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
cmp dword [0x7ff74b582c8], ebp
je 0x7ff74b3bd73
mov rcx, qword [0x7ff74b58350]
lea rdx, [0x7ff74b58350]
cmp rcx, rdx
je 0x7ff74b3bd73
test byte [rcx + 0x1c], 1
je 0x7ff74b3bd73
mov edx, 0xb
jmp 0x7ff74b3bd5b
cmp dword [rsi], ebp
jne 0x7ff74b3be15
cmp dword [0x7ff74b582c8], ebp
je 0x7ff74b3be15
mov rcx, qword [0x7ff74b58350]
lea rdx, [0x7ff74b58350]
cmp rcx, rdx
je 0x7ff74b3be15
test byte [rcx + 0x1c], 2
je 0x7ff74b3be15
mov rcx, qword [rcx + 0x10]
lea r9, [rdi + 0x58]
lea r8, [0x7ff74b516f0]
mov edx, 0xc
call fcn.7ff74b27d10
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.7ff74ae3090
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ff74b3feb8
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
movdqu xmm0, xmmword [0x7ff74b497c8]
and qword [r9], 0
lea rcx, [0x7ff74b586d0]
mov rsi, r9
mov rbp, r8
mov r12, rdx
movdqu xmmword [r8], xmm0
mov edi, 0x80004005
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x7ff74b586c0]
lea r13, [0x7ff74b586c0]
jmp 0x7ff74b3ff20
mov rdx, qword [rbx + 0x30]
mov rcx, r12
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
test eax, eax
jne 0x7ff74b3ff27
mov rbx, qword [rbx]
cmp rbx, r13
jne 0x7ff74b3ff0c
jmp 0x7ff74b3ff3d
movdqu xmm0, xmmword [rbx + 0x38]
mov rdx, qword [rbx + 0x28]
xor edi, edi
inc dword [rbx + 0x10]
mov qword [rsi], rdx
movdqu xmmword [rbp], xmm0
lea rcx, [0x7ff74b586d0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x7ff74b40a8c
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor esi, esi
xor edx, edx
xor ecx, ecx
lea r8d, [rsi + 1]
call qword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x7ff74b40ac4
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
jmp 0x7ff74b40b63
lea rdx, str.AppInfo
mov r8d, 0x14
mov rcx, rax
call qword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x7ff74b40b45
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_StartServiceW]
test eax, eax
jne 0x7ff74b40b02
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
cmp eax, 0x420
jne 0x7ff74b40b4c
mov ebx, 0x5b4
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.API_MS_WIN_Service_winsvc_L1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x7ff74b40b45
cmp dword [rsp + 0x24], 4
je 0x7ff74b40b41
cmp dword [rsp + 0x24], 1
je 0x7ff74b40b3b
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
ja 0x7ff74b40b4c
jmp 0x7ff74b40b07
mov ebx, dword [rsp + 0x2c]
jmp 0x7ff74b40b4c
xor ebx, ebx
jmp 0x7ff74b40b4c
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
test rdi, rdi
je 0x7ff74b40b5a
mov rcx, rdi
call qword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret