joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013878
Capabilities:
Reference processor manufacturer constants

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
lea rdx, [rbp - 0x20]
xor ecx, ecx
call fcn.140044650
mov eax, dword [rbp - 0x1c]
lea rdx, [rbp - 0x20]
mov edi, dword [rbp - 0x20]
mov esi, 1
mov dword [rbx], eax
mov ecx, esi
mov eax, dword [rbp - 0x14]
mov dword [rbx + 4], eax
mov eax, dword [rbp - 0x18]
mov dword [rbx + 8], eax
call fcn.140044650
mov eax, dword [rbp - 0x20]
mov dword [rbx + 0xc], eax
mov eax, dword [rbp - 0x1c]
mov dword [rbx + 0x10], eax
mov eax, dword [rbp - 0x14]
mov dword [rbx + 0x14], eax
mov eax, dword [rbp - 0x18]
mov dword [rbx + 0x18], eax
cmp eax, 0x80000000
jb 0x140013961
lea rdx, [rbp - 0x30]
mov ecx, 0x40000000
call fcn.140044650
cmp dword [rbp - 0x30], 0x40000005
jb 0x140013961
cmp dword [rbp - 0x2c], 0x7263694d
jne 0x140013961
cmp dword [rbp - 0x28], 0x666f736f
jne 0x140013961
cmp dword [rbp - 0x24], 0x76482074
jne 0x140013961
lea rdx, [rbp - 0x30]
mov ecx, 0x40000001
call fcn.140044650
cmp dword [rbp - 0x30], 0x31237648
jne 0x140013961
lea rdx, [rbp - 0x30]
mov ecx, 0x40000002
call fcn.140044650
cmp dword [rbp - 0x30], 0
jne 0x14001395d
cmp dword [rbp - 0x2c], 0
jne 0x14001395d
cmp dword [rbp - 0x28], 0
jne 0x14001395d
cmp dword [rbp - 0x24], 0
je 0x140013961
mov eax, esi
jmp 0x140013963
xor eax, eax
and dword [rbx + 0x1c], 0
mov r8d, 2
cmp dword [rbx], 0x756e6547
mov dword [rbx + 0x20], eax
jne 0x1400139af
cmp dword [rbx + 4], 0x49656e69
jne 0x1400139af
cmp dword [rbx + 8], 0x6c65746e
jne 0x1400139af
mov edx, dword [rbx + 0xc]
lea ecx, [r8 + 4]
shr edx, 8
and edx, 0xf
cmp edx, ecx
je 0x1400139a9
cmp edx, 0xf
lea eax, [rcx - 3]
cmovne eax, esi
mov dword [rbx + 0x1c], eax
jmp 0x1400139f0
mov dword [rbx + 0x1c], r8d
jmp 0x1400139f0
cmp dword [rbx], 0x68747541
jne 0x1400139f0
cmp dword [rbx + 4], 0x69746e65
jne 0x1400139f0
cmp dword [rbx + 8], 0x444d4163
jne 0x1400139f0
mov eax, dword [rbx + 0xc]
mov ecx, 6
shr eax, 8
and eax, 0xf
cmp eax, ecx
je 0x1400139e9
cmp eax, 0xf
lea edx, [rcx - 2]
cmovne ecx, edx
mov dword [rbx + 0x1c], ecx
jmp 0x1400139f0
mov dword [rbx + 0x1c], 5
and dword [rbx + 0x24], 0
cmp dword [rbx + 0x1c], r8d
jne 0x140013a17
mov ecx, 0xa
mov dword [rbx + 0x24], r8d
cmp edi, ecx
jb 0x140013a17
lea rdx, [rbp - 0x20]
call fcn.140044650
movzx eax, byte [rbp - 0x1f]
mov dword [rbx + 0x24], eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140026390
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x140013a38
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x40]
lea rcx, [0x140067b58]
xor edx, edx
mov word [0x140067b84], ax
mov eax, dword [rsp + 0x24]
mov dword [0x140067b50], eax
lea r8d, [rdx + 0x28]
call fcn.1400280e0
lea rcx, [0x140067b58]
call fcn.140013878
mov ebp, 0x9c
lea rcx, [0x140067b90]
mov dword [0x140067b90], ebp
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
lea rcx, str.kernel32
mov eax, ebx
lea esi, [rbx + 2]
cmp dword [0x140067ba0], esi
sete al
mov dword [0x140067b80], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140013b05
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [0x140067b88]
call rdi
cmp dword [0x140067b88], ebx
je 0x140013b36
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140013b36
lea rcx, [rsp + 0x50]
call rax
mov r8, rbp
mov dword [0x140067c44], ebx
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.1400280e0
mov eax, 3
mov dword [rsp + 0x80], ebp
mov edx, esi
mov word [rsp + 0x114], ax
xor ecx, ecx
mov qword [rsp + 0x84], 5
call fcn.140013e60
mov ebp, 1
mov rcx, rax
mov edx, ebp
call fcn.140013e60
lea edx, [rbp + 0x1f]
mov rcx, rax
call fcn.140013e60
mov rdi, rax
mov rax, qword [0x140067c50]
test rax, rax
jne 0x140013bcd
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.VerifyVersionInfoA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067c50], rax
test rax, rax
jne 0x140013bcd
mov eax, ebx
jmp 0x140013bdf
mov r8, rdi
lea rcx, [rsp + 0x80]
mov edx, 0x23
call rax
mov dword [0x140067c44], eax
mov eax, dword [0x140067b94]
cmp eax, 5
jne 0x140013c13
mov eax, dword [0x140067b98]
cmp eax, ebp
jne 0x140013c06
cmp word [0x140067c24], si
setae bl
jmp 0x140013c16
cmp eax, esi
jne 0x140013c13
cmp word [0x140067c24], bp
jmp 0x140013c01
seta bl
mov dword [0x140067c40], ebx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140026390
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140013d4c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x870
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rsp + 0x860], rax
cmp word [rcx], 0x5c
jne 0x140013d87
cmp word [rcx + 2], 0x5c
jne 0x140013d87
mov eax, 1
jmp 0x140013e3a
or rdi, 0xffffffffffffffff
mov rax, rdi
xor ebx, ebx
inc rax
cmp word [rcx + rax*2], bx
jne 0x140013d90
mov esi, 0x104
cmp rax, rsi
jae 0x140013d7d
lea edx, [rsi - 4]
mov r8d, esi
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0x460]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x260]
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x660]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x50]
call fcn.14003cc68
lea rcx, [rsp + 0x260]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x140013def
test rax, rax
je 0x140013e13
lea rax, [rsp + 0x50]
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140013e02
cmp word [rsp + rdi*2 + 0x4e], 0x5c
je 0x140013e27
lea r8, [0x140052b58]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1400331ec
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140026390
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140013ec0
Capabilities:
Load windows common language runtime

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov r14, rdx
mov rsi, rcx
mov rdi, qword [rcx + 8]
mov rbx, qword [rcx]
jmp 0x140013f0b
mov rcx, rbx
call fcn.1400033dc
add rbx, 0x20
cmp rbx, rdi
jne 0x140013eff
mov rax, qword [rsi]
mov qword [rsi + 8], rax
lea rcx, [0x140052cc8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov qword [rbp - 0x31], rax
xor edi, edi
test rax, rax
je 0x14001409e
lea rdx, str.CLRCreateInstance
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001409e
mov qword [rbp - 0x41], rdi
lea r8, [rbp - 0x41]
lea rdx, [0x140052b28]
lea rcx, [0x140052b38]
call rax
test eax, eax
js 0x14001408b
mov qword [rbp - 0x49], rdi
lea rax, [r14 - 1]
mov rcx, qword [rbp - 0x41]
cmp rax, 0xfffffffffffffffd
mov rax, qword [rcx]
ja 0x140013f90
lea r8, [rbp - 0x49]
mov rdx, r14
call qword [rax + 0x30]
jmp 0x140013f97
lea rdx, [rbp - 0x49]
call qword [rax + 0x28]
test eax, eax
js 0x140014078
mov qword [rbp - 0x59], rdi
mov r14d, 1
jmp 0x140014049
mov qword [rbp - 0x51], rdi
mov rcx, qword [rbp - 0x59]
mov rax, qword [rcx]
lea r8, [rbp - 0x51]
lea rdx, [0x140052b48]
call qword [rax]
test eax, eax
js 0x140014023
mov dword [rbp - 0x39], 0x1e
mov rcx, qword [rbp - 0x51]
mov rax, qword [rcx]
lea r8, [rbp - 0x39]
lea rdx, [rbp - 1]
call qword [rax + 0x18]
test eax, eax
js 0x140014023
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], rdi
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], 7
mov word [rbp - 0x21], di
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x21]
call fcn.14000346c
nop
lea rdx, [rbp - 0x21]
mov rcx, rsi
call fcn.140014158
nop
lea rcx, [rbp - 0x21]
call fcn.1400033dc
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x140014036
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x59], rdi
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140014049
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x51], rdi
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rbp - 0x59]
mov edx, r14d
call qword [rax + 0x18]
test eax, eax
je 0x140013fae
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x140014078
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x59], rdi
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x14001408b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x49], rdi
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14001409e
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x41], rdi
test rbx, rbx
je 0x1400140b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbp - 0x31], rdi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140026390
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400152bc
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
jne 0x1400152de
xor eax, eax
jmp 0x1400153a9
cmp qword [0x140067c68], 0
jne 0x140015304
lea rdx, [0x140052d68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067c68], rax
test rax, rax
je 0x1400152d7
cmp qword [0x140067c60], 0
jne 0x14001532a
lea rdx, [0x140052d78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067c60], rax
test rax, rax
je 0x1400152d7
cmp qword [0x140067c80], 0
jne 0x140015350
lea rdx, [0x140052d88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067c80], rax
test rax, rax
je 0x1400152d7
cmp qword [0x140067c70], 0
jne 0x14001537a
lea rdx, [0x140052da8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067c70], rax
test rax, rax
je 0x1400152d7
cmp qword [0x140067c78], 0
jne 0x1400153a4
lea rdx, [0x140052db8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067c78], rax
test rax, rax
je 0x1400152d7
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140015fcc
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, rcx
jne 0x140015ff6
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140016078
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140016009
call fcn.1400266ac
and qword [rbx + 8], 0
mov rcx, qword [rbx]
lea rsi, [rbx + 0x10]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140016034
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140015fef
mov ecx, dword [rsi]
call fcn.14002697c
mov rdi, rax
test rax, rax
jne 0x140016048
lea ecx, [rax + 8]
jmp 0x140015fe9
mov r9d, dword [rsi]
mov r8, rdi
mov rcx, qword [rbx]
mov edx, 3
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14001606f
mov rcx, rdi
call fcn.1400266ac
jmp 0x140015fef
mov qword [rbx + 8], rdi
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001617c
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
lea rax, [rbp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor edi, edi
test eax, eax
jne 0x140016261
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, str.MHz
lea rax, [rbp + 0x28]
mov qword [rbp + 0x28], rdi
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
je 0x14001624b
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, str.Mhz
lea rax, [rbp + 0x28]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
je 0x14001624b
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, str.mhz
lea rax, [rbp + 0x28]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp + 0x28]
test ebx, ebx
cmovne rax, rdi
jmp 0x140016265
mov rax, qword [rbp + 0x28]
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
Function at 0x140019220
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
push rdi
push r14
push r15
sub rsp, 0x40
mov ebp, dword [rsp + 0x88]
mov r14, r9
mov rbx, qword [rsp + 0x80]
mov r15, r8
mov rsi, rcx
xor edi, edi
mov rcx, qword [rsi]
test rcx, rcx
je 0x14001928d
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], ebp
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r15
mov dword [rsp + 0x30], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1400192db
inc edi
add rsi, 0x18
cmp edi, 4
jb 0x140019255
lea rax, [rbp - 1]
mov edx, 0x7ffffffe
mov rcx, rbp
cmp rax, rdx
ja 0x1400192df
sub rdx, rcx
sub r14, rbx
lea rax, [rdx + rcx]
test rax, rax
je 0x1400192cb
mov al, byte [r14 + rbx]
test al, al
je 0x1400192cb
mov byte [rbx], al
inc rbx
sub rcx, 1
jne 0x1400192af
test rcx, rcx
lea rax, [rbx - 1]
cmovne rax, rbx
mov byte [rax], 0
jmp 0x1400192e6
mov eax, edi
jmp 0x1400192e9
test ebp, ebp
je 0x1400192e6
mov byte [rbx], 0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140019bf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, rdx
mov r15, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
lea rsi, vtable.ISecurable.0
mov qword [rbp - 0x38], rsi
lea rax, vtable.CSecurableKernelObject.0
mov qword [rbp - 0x38], rax
xor ebx, ebx
mov qword [rbp - 0x30], rbx
lea rax, vtable.COSEvent.0
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x28], ebx
jmp 0x140019c72
mov edx, VarDecRound
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140019cdf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp dword [rdi], 0xffffffff
je 0x140019c72
cmp dword [rdi], eax
jb 0x140019cdf
mov r9d, 0x100000
mov rdx, qword [0x140067cc0]
lea rcx, [rbp - 0x38]
call fcn.140015a60
test eax, eax
je 0x140019c4e
cmp dword [rdi], 0xffffffff
je 0x140019cba
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
sub esi, r14d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
mov ecx, dword [rdi]
cmp ecx, esi
jae 0x140019caf
mov dword [rdi], ebx
jmp 0x140019cb3
sub ecx, esi
mov dword [rdi], ecx
lea rsi, vtable.ISecurable.0
mov qword [rbp - 0x48], r15
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov r9d, dword [rdi]
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x140019ce6
mov ebx, 0xe1230572
jmp 0x140019d5e
cmp dword [rdi], 0xffffffff
je 0x140019d02
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
mov ecx, dword [rdi]
cmp ecx, eax
jae 0x140019cfe
mov dword [rdi], ebx
jmp 0x140019d02
sub ecx, eax
mov dword [rdi], ecx
mov qword [rbp - 0x20], rsi
lea rax, vtable.CSecurableKernelObject.0
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rbx
lea rax, vtable.COSEvent.0
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x10], ebx
mov r9d, 0x100000
mov rdx, qword [0x140067c98]
lea rcx, [rbp - 0x20]
call fcn.140015a60
test eax, eax
je 0x140019d4f
xor r8d, r8d
mov edx, dword [rdi]
lea rcx, [rbp - 0x20]
call fcn.140015a8c
test eax, eax
jne 0x140019d54
mov ebx, 0xe1230572
lea rcx, [rbp - 0x20]
call fcn.1400159a0
nop
lea rcx, [rbp - 0x38]
call fcn.1400159a0
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140019d84
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, r9
mov r14, r8
mov rbx, rdx
mov r15, rcx
mov r12, qword [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
xor r13d, r13d
test r14, r14
je 0x140019f37
test rdi, rdi
je 0x140019f37
test rbx, rbx
je 0x140019f37
mov rdx, r12
mov cl, byte [rsp + 0x228]
call fcn.140019a0c
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x8000000
lea r14d, [r13 + 1]
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140019e41
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140019f3c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov ecx, 0x7530
cmp eax, ecx
jbe 0x140019e59
mov dword [rsp + 0x58], r13d
jmp 0x140019e5f
sub ecx, eax
mov dword [rsp + 0x58], ecx
lea rdx, [rsp + 0x58]
mov rcx, qword [rdi]
call fcn.140019bf0
mov ebx, eax
test eax, eax
jne 0x140019f33
lea rax, vtable.CEnvironment.0
mov qword [rsp + 0x70], rax
lea rax, vtable.ISecurable.0
mov qword [rsp + 0x78], rax
lea rax, vtable.CSecurableKernelObject.0
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r13
lea rax, vtable.CSharedMemory.0
mov qword [rsp + 0x70], rax
lea rax, vtable.CSharedMemory.1.0
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x90], r13
mov dword [rsp + 0x98], r13d
mov qword [rsp + 0xa0], r13
mov byte [rsp + 0xa8], r13b
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, 0x4b8
mov rdx, qword [0x140067ce0]
lea rcx, [rsp + 0x70]
call fcn.1400154f4
mov edx, 0xe123053e
mov ecx, dword [rdi + 0x10]
mov rax, qword [rsp + 0x88]
cmp dword [rax + 0x4a8], ecx
cmovne ebx, edx
mov dword [rsp + 0x50], ebx
jmp 0x140019f29
lea rcx, [rsp + 0x70]
call fcn.140015440
mov eax, ebx
jmp 0x140019f3c
mov eax, 0x57
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140026390
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001c414
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov dword [rcx + 0xc], edx
mov edi, 1
mov rdx, qword [0x140067ce0]
mov rbx, rcx
mov dword [rsp + 0x28], edi
mov r9d, edi
and dword [rsp + 0x20], 0
add rcx, 0x150
mov r8d, 0x4b8
call fcn.1400154f4
lea rcx, [rbx + 0x10]
mov rdx, qword [rbx + 0x168]
mov r9d, edi
mov dword [rsp + 0x28], edi
mov r8d, 0x440
lea rax, [rdx + 0x490]
mov qword [rbx + 0x2e8], rax
lea rax, [rdx + 0x48c]
mov rdx, qword [0x140067cf8]
mov qword [rbx + 0x2e0], rax
cmp dword [rbx + 8], edi
jne 0x14001c549
mov dword [rsp + 0x20], edi
call fcn.1400154f4
mov rdx, qword [0x140067ca0]
lea rcx, [rbx + 0x290]
call fcn.1400159f4
test eax, eax
je 0x14001c5e7
mov rdx, qword [0x140067ca8]
lea rcx, [rbx + 0x2a8]
call fcn.1400159f4
test eax, eax
je 0x14001c61b
mov r8, qword [0x140067d00]
lea rdi, [rbx + 0x2c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rdi + 8], rax
test rax, rax
je 0x14001c50f
mov rcx, rdi
call fcn.140025690
test eax, eax
je 0x14001c64f
mov r8, qword [0x140067d20]
lea rdi, [rbx + 0x2d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rdi + 8], rax
test rax, rax
je 0x14001c540
mov rcx, rdi
call fcn.140025690
test eax, eax
jne 0x14001c5b9
jmp 0x14001c683
and dword [rsp + 0x20], 0
call fcn.1400154f4
mov rdx, qword [0x140067ca0]
lea rcx, [rbx + 0x290]
mov edi, 0x100002
mov r9d, edi
call fcn.140015a60
mov rdx, qword [0x140067ca8]
lea rcx, [rbx + 0x2a8]
mov r9d, edi
call fcn.140015a60
mov r8, qword [0x140067d00]
mov edi, 0x100001
mov ecx, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov r8, qword [0x140067d20]
xor edx, edx
mov ecx, edi
mov qword [rbx + 0x2c8], rax
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [rbx + 0x2d8], rax
mov rax, qword [rbx + 0x2e0]
mov dword [rax], 0x440
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140026390
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
mov ecx, 2
call fcn.1400199fc
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
lea rcx, [rsp + 0x40]
mov edx, eax
call fcn.14000fee4
lea rdx, [0x140062808]
lea rcx, [rsp + 0x40]
call fcn.140028338
int3
mov ecx, 3
call fcn.1400199fc
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
lea rcx, [rsp + 0x40]
mov edx, eax
call fcn.14000fee4
lea rdx, [0x140062808]
lea rcx, [rsp + 0x40]
call fcn.140028338
int3
mov ecx, 0xe
call fcn.1400199fc
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
lea rcx, [rsp + 0x40]
mov edx, eax
call fcn.14000fee4
lea rdx, [0x140062808]
lea rcx, [rsp + 0x40]
call fcn.140028338
int3
mov ecx, 0x12
call fcn.1400199fc
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
lea rcx, [rsp + 0x40]
mov edx, eax
call fcn.14000fee4
lea rdx, [0x140062808]
lea rcx, [rsp + 0x40]
call fcn.140028338
int3
Function at 0x14001d47c
Capabilities:
Start service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x70
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x14001d4a3
and dword [rdx], 0
lea rcx, [rsp + 0x20]
call fcn.140013878
xor ebp, ebp
lea rdx, str.ServicesActive
xor ecx, ecx
lea r8d, [rbp + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r14, rax
test rax, rax
je 0x14001d566
xor edi, edi
lea rdx, [rsi + 0x40]
cmp qword [rdx + 0x18], 8
jb 0x14001d4de
mov rdx, qword [rdx]
mov r8d, 0x20000090
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14001d51c
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, eax
test eax, eax
jne 0x14001d511
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001d524
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
je 0x14001d566
lea rcx, [rsp + 0x48]
call fcn.140013878
test rbx, rbx
je 0x14001d55f
mov ecx, 0x200
test dword [rsp + 0x34], ecx
jne 0x14001d55f
test dword [rsp + 0x5c], ecx
je 0x14001d55f
mov dword [rbx], 1
mov eax, 1
jmp 0x14001d568
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret