joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140110a20
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x14042bb58]
test rbx, rbx
je 0x140110a01
mov eax, dword [0x14041c4a0]
cmp eax, 0xffffffff
jne 0x1401109fc
call fcn.140113300
test al, al
je 0x1401109e6
mov dword [0x14041c4a0], 1
add rsp, 0x20
pop rbx
ret
cmp qword [rbx + 0x2f0], 0
jne 0x1401109d6
mov dword [0x14041c4a0], 0
jmp 0x140110a01
cmp eax, 1
je 0x140110a14
call fcn.140110ba0
test al, al
jne 0x140110a14
add rsp, 0x20
pop rbx
jmp 0x140110a20
add rsp, 0x20
pop rbx
ret
mov rax, rsp
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor edi, edi
mov qword [rsp + 0x48], rdi
lea edx, [rdi + 0xc]
lea rcx, [rsp + 0x40]
call fcn.1401ff260
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
lea r9d, [rdi + 0xc]
lea r8, [0x14034d958]
mov rcx, qword [rsp + 0x40]
call fcn.1402bd21c
lea edx, [rdi + 0xc]
lea rcx, [rsp + 0x40]
call fcn.140200570
nop
lea rax, [rsp + 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140110ab0
mov qword [rsp + 0x38], rdi
test ebx, ebx
jne 0x140110ad1
lea rax, [0x140348ca0]
mov qword [rsp + 0x30], rax
jmp 0x140110af8
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400d2bd0
nop
cmp dword [rsp + 0x38], 0
jle 0x140110b2c
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x48], 0
jle 0x140110b3d
mov rcx, qword [rsp + 0x40]
call fcn.1402b9c20
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, qword [rsp + 0x50]
lea rdx, [0x14034d978]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [rsp + 0x58], 0
jle 0x140110b72
mov rcx, qword [rsp + 0x50]
call fcn.1402b9c20
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1402b9610
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140110ba0
Capabilities:
Enumerate process modules

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x870
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0x860], rax
xor r15b, r15b
mov esi, 0x100
mov eax, 4
mul rsi
mov rbp, 0xffffffffffffffff
cmovo rax, rbp
mov rcx, rax
call fcn.1402b4964
mov r12, rax
mov qword [rsp + 0x38], rax
mov ebx, 0x400
xor r13d, r13d
mov dword [rsp + 0x20], r13d
lea r8, [rsp + 0x20]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x140110dd2
nop word [rax + rax]
mov edi, dword [rsp + 0x20]
cmp edi, ebx
jb 0x140110c83
mov rcx, r12
call fcn.1402b99fc
add esi, esi
mov eax, 4
mul rsi
cmovo rax, rbp
mov rcx, rax
call fcn.1402b4964
mov r12, rax
mov qword [rsp + 0x38], rax
lea ebx, [rsi*4]
mov dword [rsp + 0x20], r13d
lea r8, [rsp + 0x20]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x140110c30
jmp 0x140110dd2
shr edi, 2
mov ebp, r13d
test edi, edi
je 0x140110dc4
mov rsi, r12
lea r12, [0x140348ca0]
nop dword [rax + rax]
mov r8d, dword [rsi]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x140110db1
mov r9d, 0x400
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
jne 0x140110cf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsi]
lea rcx, str.GetModuleFileNameEx___failed_on_PID__u___d__r_n
call fcn.1402bbf64
jmp 0x140110da3
lea rax, [rsp + 0x60]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140110d00
mov qword [rsp + 0x30], r13
test ebx, ebx
jne 0x140110d1a
mov qword [rsp + 0x28], r12
jmp 0x140110d41
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x30]
inc eax
movsxd rdx, eax
lea r8, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.140200570
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.1400d44f0
nop
cmp dword [rsp + 0x30], 0
jle 0x140110d6f
mov rcx, qword [rsp + 0x28]
call fcn.1402b9c20
xor r8d, r8d
lea rdx, [0x14034d958]
lea rcx, [rsp + 0x40]
call fcn.1401ff540
movzx r15d, r15b
test al, al
mov eax, 1
cmovne r15d, eax
cmp dword [rsp + 0x48], 0
jle 0x140110da3
mov rcx, qword [rsp + 0x40]
call fcn.1402b9c20
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15b, r15b
jne 0x140110dbf
inc ebp
add rsi, 4
cmp ebp, edi
jb 0x140110ca0
mov r12, qword [rsp + 0x38]
mov rcx, r12
call fcn.1402b99fc
movzx eax, r15b
jmp 0x140110ddc
mov rcx, r12
call fcn.1402b99fc
xor al, al
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1402b9610
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140111a80
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x14042c9e0]
test al, 1
jne 0x140111abe
or eax, 1
lea rcx, [0x1403017d0]
mov qword [0x14042c9f0], 0xffffffff80000002
mov dword [0x14042c9e0], eax
lea rax, vtable.Core::Win32::RegistryKey.0
mov qword [0x14042c9e8], rax
call fcn.1402bb344
lea rdx, [0x14034ee50]
lea rcx, [0x14042c9e8]
call fcn.1400eb8d0
mov rbx, rax
test rax, rax
je 0x140111c1e
mov rcx, qword [rax + 8]
lea rdx, str.Ignore
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 8]
lea rdx, str.HiddenPUPs
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 8]
lea rdx, str.FalsePositives
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 8]
lea rdx, str.AutoUpload
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 8]
lea rdx, str.NoCookieScan
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 8]
lea rdx, str.NoRemnantScan
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 8]
lea rdx, str.NoRestorePoint
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 8]
lea rdx, str.NoSSL
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 8]
lea rdx, str.NoCompression
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 8]
lea rdx, str.NoPUPScan
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 8]
lea rdx, str.PUPAction
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 8]
lea rdx, str.HideLnkExploitUntil
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov al, 1
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
ret
Function at 0x140111dd0
Capabilities:
Hash data using sha256

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xf0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0xe0], rax
movzx ebx, r8b
mov rdi, rcx
lea rcx, [rdx + 8]
lea rdx, [rsp + 0x20]
call fcn.140201bf0
nop
xor eax, eax
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [0x14032a958]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [0x14032a968]
movups xmmword [rsp + 0x88], xmm1
mov edx, dword [rsp + 0x2c]
add edx, edx
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x20]
call fcn.14018d6c0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14018d7b0
lea rax, [rdi + 0x5a8]
mov qword [rsp + 0x30], rax
lea rsi, [rax + 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rdi + 0x5d8]
test bl, bl
je 0x140111e98
movzx r9d, byte [0x14042c16b]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
call fcn.14011c180
jmp 0x140111ea2
lea rdx, [rsp + 0x50]
call fcn.14011a480
mov rcx, rdi
call fcn.140111d40
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
cmp dword [rsp + 0x28], 0
jle 0x140111ec6
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
mov al, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1402b9610
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140111ef0
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xe0
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rax, rdx
mov rbp, rcx
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.140201bf0
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x28]
movups xmm0, xmmword [0x14032a958]
movups xmm1, xmmword [0x14032a968]
xor eax, eax
lea r8, [rsp + 0x60]
add edx, edx
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm1
mov qword [rsp + 0x60], rax
call fcn.14018d6c0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14018d7b0
lea rcx, [rbp + 0x5b0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbp + 0x600]
mov rdx, rcx
and rdx, qword [rsp + 0x4e]
cmp qword [rbp + 0x608], rdx
ja 0x140111f9d
shr rcx, 1
or rax, 0xffffffffffffffff
sub rax, rcx
add rdx, rax
mov rcx, qword [rbp + 0x5e8]
mov rdi, qword [rbp + 0x5d8]
lea rax, [rdx + rdx]
mov rsi, qword [rcx + rax*8]
mov rbx, rdx
lea r14, [rcx + rax*8]
add rbx, rbx
mov rbx, qword [rcx + rbx*8]
cmp rsi, rdi
jne 0x140111fcb
mov rax, rdi
jmp 0x140111fd2
mov rax, qword [r14 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14011201e
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x38]
mov r8d, 0x20
call fcn.1402c4b40
test eax, eax
je 0x140111ff4
mov rbx, qword [rbx]
jmp 0x140111fc1
lea rdx, [rbx + 0x10]
lea rcx, [rsp + 0x38]
mov r8d, 0x20
call fcn.1402c4b40
mov qword [rsp + 0x20], rdi
test eax, eax
jne 0x140112016
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x20]
mov rdi, qword [rdi]
cmp rdi, qword [rbp + 0x5d8]
lea rcx, [rbp + 0x5b0]
setne bl
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rsp + 0x30], 0
jle 0x140112046
mov rcx, qword [rsp + 0x28]
call fcn.1402b9c20
movzx eax, bl
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1402b9610
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140112420
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbp, r9
mov rbx, rdx
mov qword [rax - 0x60], r8
lea r15, [r8 + 8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xor ecx, ecx
call fcn.1400f2f90
mov r14, rax
test rax, rax
je 0x140112575
lea rax, vtable.Core::ByteArray.0
mov qword [rsp + 0x50], rax
xor edi, edi
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x68], rax
mov rbx, qword [rbx]
mov dword [rsp + 0xa0], edi
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140112551
cmp dword [rsp + 0xb0], 3
jne 0x140112551
mov edx, dword [rsp + 0xa0]
lea rcx, [rsp + 0x50]
call fcn.1400d2ad0
mov rdi, qword [rsp + 0x60]
test al, al
je 0x140112551
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140112551
mov rbx, rdi
movsxd rsi, dword [rsp + 0x58]
add rsi, rdi
cmp rdi, rsi
jae 0x140112551
nop dword [rax]
movzx r9d, byte [0x14042c16b]
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.14011c180
add rbx, 0x20
cmp rbx, rsi
jb 0x140112530
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
nop
test rdi, rdi
je 0x140112575
mov r8, rdi
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401125a0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov rdi, r9
mov r15, rdx
mov qword [rsp + 0x60], r8
lea r14, [r8 + 8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov eax, dword [0x14042c9e0]
test al, 1
jne 0x140112617
or eax, 1
mov dword [0x14042c9e0], eax
lea rax, vtable.Core::Win32::RegistryKey.0
mov qword [0x14042c9e8], rax
mov qword [0x14042c9f0], 0xffffffff80000002
lea rcx, [0x1403017d0]
call fcn.1402bb344
lea rdx, [0x14034ee50]
lea rcx, [0x14042c9e8]
call fcn.1400eb8d0
mov rbx, rax
test rax, rax
je 0x1401126c1
mov rsi, qword [rdi + 8]
test esi, esi
jne 0x140112655
mov rdx, qword [r15]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1401126b3
shl esi, 5
movsxd rcx, esi
call fcn.1402b4964
mov rbp, rax
mov rcx, qword [rdi]
mov rdx, qword [rcx]
cmp rdx, rcx
je 0x14011268c
mov rcx, rax
movups xmm0, xmmword [rdx + 0x10]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
lea rcx, [rcx + 0x20]
mov rdx, qword [rdx]
cmp rdx, qword [rdi]
jne 0x140112671
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbp
call fcn.1402b99fc
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x140112e60
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x1b0
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor eax, eax
lea rcx, [rsp + 0x48]
mov rbx, rdx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x54], rax
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov dword [rsp + 0x74], eax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [rsp + 0x84]
xor edx, edx
mov r8d, 0x118
call fcn.1402c22a0
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [rsp + 0x68]
movzx r8d, word [rsp + 0x194]
cmp word [rsp + 0x48], 9
mov r9d, dword [rsp + 0x88]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rsp + 0x8c]
lea rax, [0x140352418]
lea rdx, [0x140352410]
cmove rdx, rax
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r8d
mov r8d, dword [rsp + 0x84]
lea rdx, str._u._u._u._u._s__u
mov rcx, rbx
call fcn.1401ff700
mov rax, rbx
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1402b9610
add rsp, 0x1b0
pop rbx
ret
Function at 0x140113110
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebx, ebx
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x78], 0
mov word [rsp + 0x7c], 0x500
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x1401131d7
mov qword [rsp + 0x68], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
lea edx, [rbx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rdx, qword [rsp + 0x70]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401131d3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
cmp eax, 1
sete al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1402b9610
add rsp, 0x90
pop rbx
ret

Function at 0x140113200
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov eax, dword [0x14042c520]
test eax, eax
je 0x140113238
setns al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1402b9610
add rsp, 0x88
ret
lea rax, [rsp + 0x68]
mov qword [rsp + 0x80], rbx
xor ebx, ebx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x12]
lea rcx, [rsp + 0x70]
xor r9d, r9d
mov dl, 1
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x70], 0
mov word [rsp + 0x74], 0x500
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x1401132c2
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
mov rbx, qword [rsp + 0x80]
or edx, 0xffffffff
test eax, eax
mov ecx, 1
cmove ecx, edx
cmp eax, 1
sete al
mov dword [0x14042c520], ecx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1402b9610
add rsp, 0x88
ret
Function at 0x140114f00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rbp + 0x390], rax
lea rcx, [rbp + 0x180]
xor edi, edi
mov edx, 0x104
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140115083
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
mov word [rbp + 0x184], di
call qword [sym.imp.pdh.dll_PdhOpenQueryW]
test eax, eax
jne 0x140115083
lea rax, str.LogicalDisk
lea r8, [rsp + 0x28]
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x180]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x58], rax
lea rax, str.Avg._Disk_Queue_Length
xor r9d, r9d
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], 0xffffffff
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x28], 0x100
call qword [sym.imp.pdh.dll_PdhMakeCounterPathW]
mov rcx, qword [rsp + 0x20]
lea r9, [rsp + 0x30]
lea rdx, [rbp - 0x80]
xor r8d, r8d
call qword [sym.imp.pdh.dll_PdhAddCounterW]
test eax, eax
jne 0x140115078
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x4c0], rbx
movaps xmmword [rsp + 0x4a0], xmm6
call qword [sym.imp.pdh.dll_PdhCollectQueryData]
mov ebx, eax
movsd xmm6, qword [0x1403747d8]
nop
test ebx, ebx
jne 0x140115068
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.pdh.dll_PdhCollectQueryData]
mov ebx, eax
test eax, eax
jne 0x140115061
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov edx, 0x1200
call qword [sym.imp.pdh.dll_PdhGetFormattedCounterValue]
mov ebx, eax
test eax, eax
jne 0x140115061
movsd xmm2, qword [rsp + 0x40]
lea rdx, [rbp - 0x80]
lea rcx, str._s___3.1f_r_n
movq r8, xmm2
call fcn.1402bbf64
comisd xmm6, xmmword [rsp + 0x40]
ja 0x140115068
inc edi
cmp edi, 0x1e
jb 0x140115000
mov rbx, qword [rsp + 0x4c0]
movaps xmm6, xmmword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.pdh.dll_PdhCloseQuery]
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1402b9610
mov rdi, qword [rsp + 0x4c8]
add rsp, 0x4b0
pop rbp
ret
Function at 0x1401150b0
Capabilities:
Query service status

Disassembly:
push r13
push r15
sub rsp, 0x68
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r13d, 1
xor edx, edx
xor ecx, ecx
mov r8d, r13d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
test rax, rax
je 0x140115221
lea r8d, [r13 + 4]
lea rdx, str.wscsvc
mov rcx, rax
mov qword [rsp + 0x50], r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
je 0x140115213
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x90], rsi
mov edi, r12d
mov ebp, r12d
nop word [rax + rax]
lea rdx, [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14011515d
cmp dword [rsp + 0x2c], 4
je 0x1401151e8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
test rdi, rdi
jne 0x1401151da
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov esi, dword [rsp + 0x20]
test esi, esi
je 0x1401151da
mov ecx, esi
call fcn.1402b9c60
mov rdi, rax
test rax, rax
je 0x1401151da
lea r9, [rsp + 0x20]
mov r8d, esi
mov rdx, rax
mov rcx, r14
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x1401151ce
mov eax, dword [rdi + 4]
cmp eax, 4
jne 0x1401151c4
movzx ebx, r13b
jmp 0x1401151ce
movzx ebx, bl
cmp eax, 3
cmove ebx, r13d
mov rcx, rdi
call fcn.1402b9c20
test bl, bl
jne 0x1401151e8
inc ebp
cmp ebp, 0x12c
jb 0x140115140
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402b9610
add rsp, 0x68
pop r15
pop r13
ret