joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c9a88
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x14042eb28]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x94
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1400c9afd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c9ae6
mov ebx, 0x80004005
jmp 0x1400c9af4
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.14007ab24
jmp 0x1400c9b1e
cmp dword [rsp + 0x30], 2
jne 0x1400c9b1a
cmp dword [rsp + 0x24], 5
ja 0x1400c9b13
jne 0x1400c9b1a
cmp dword [rsp + 0x28], ebx
jbe 0x1400c9b1a
mov eax, 1
jmp 0x1400c9b1c
mov eax, ebx
mov dword [rdi], eax
mov ecx, ebx
call fcn.14007ab44
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14036e5e0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret

Function at 0x1400ca310
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor eax, eax
xor r14d, r14d
mov qword [r11 - 0x38], rax
mov rbp, rdx
mov qword [r11 - 0x30], rax
mov rsi, rcx
mov qword [r11 - 0x28], rax
mov qword [r11 + 8], r14
test rcx, rcx
jne 0x1400ca34f
mov ebx, 0x80070057
mov ecx, ebx
jmp 0x1400ca3ed
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x1400ca364
shr edi, 4
and edi, 1
jmp 0x1400ca367
mov edi, r14d
xor ecx, ecx
call fcn.14007ab44
xor ecx, ecx
call fcn.14007ab44
mov ebx, r14d
test edi, edi
jne 0x1400ca3f2
test rbp, rbp
je 0x1400ca3d1
xor r9d, r9d
lea r8, [rsp + 0x60]
lea edx, [rdi + 1]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x1400ca3ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400ca3aa
mov ebx, 0x80004005
jmp 0x1400ca348
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400ca348
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
mov dword [rsp + 0x30], r14d
test rbp, rbp
lea rdx, [rsp + 0x20]
mov rcx, rsi
cmove rdx, r14
call fcn.1400ca424
mov ebx, eax
test eax, eax
jns 0x1400ca3f2
mov ecx, eax
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400ca409
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400ca424
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x570]
sub rsp, 0x670
mov rax, qword [0x14042eb28]
xor rax, rsp
mov qword [rbp + 0x560], rax
xor r13d, r13d
mov r12, rdx
mov r8, rcx
test rcx, rcx
je 0x1400ca49b
mov edi, 0x104
mov rax, r8
mov ecx, edi
cmp word [rax], r13w
je 0x1400ca47c
add rax, 2
sub rcx, 1
jne 0x1400ca46c
mov rax, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rcx, rcx
je 0x1400ca496
sub rdi, rcx
jmp 0x1400ca4a5
mov rdi, r13
jmp 0x1400ca4a5
mov rdi, qword [rsp + 0x20]
mov ebx, 0x80070057
test ebx, ebx
cmovs rdi, r13
jns 0x1400ca4b4
mov ecx, ebx
jmp 0x1400ca67f
mov r14d, 0x105
lea rcx, [rsp + 0x30]
mov edx, r14d
call fcn.1400795e8
mov ebx, eax
test eax, eax
js 0x1400ca67d
lea rax, [rdi - 1]
mov ecx, 0x80070216
cmp rax, rdi
ja 0x1400ca4e7
mov rdi, rax
mov ebx, r13d
jmp 0x1400ca4ee
mov ebx, ecx
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
test ebx, ebx
js 0x1400ca4ad
add rdi, rdi
mov ecx, 0x5c
cmp word [rsp + rdi + 0x30], cx
jne 0x1400ca51b
cmp rdi, 0x20a
jae 0x1400ca6b7
mov word [rsp + rdi + 0x30], r13w
cmp word [rsp + 0x30], cx
lea rax, [rsp + 0x30]
lea rdi, [rsp + 0x32]
mov word [rbp + 0x140], r13w
cmovne rdi, rax
mov r15d, r13d
mov edx, ecx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
mov r8, rdi
lea rcx, [rbp + 0x350]
mov rsi, rax
test rax, rax
jne 0x1400ca56e
mov rdx, r14
call fcn.1400795e8
mov ebx, eax
test eax, eax
js 0x1400ca67d
lea r15d, [rsi + 1]
jmp 0x1400ca5b6
mov r14, rsi
mov edx, 0x105
sub r14, rdi
sar r14, 1
mov r9, r14
call fcn.1400ca890
mov ebx, eax
test eax, eax
js 0x1400ca67d
cmp rsi, rdi
jb 0x1400ca674
add r14, r14
cmp r14, 0x20a
jae 0x1400ca6b7
mov word [rbp + r14 + 0x350], r13w
mov r14d, 0x105
lea r8, [rbp + 0x350]
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.1400ca928
mov ebx, eax
test eax, eax
js 0x1400ca67d
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ca5ec
test al, 0x10
jne 0x1400ca61a
mov eax, r15d
lea rcx, [rbp + 0x140]
neg eax
sbb rdx, rdx
and rdx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400ca64d
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ca64d
test rsi, rsi
je 0x1400ca63f
lea r8, [0x1403be440]
mov rdx, r14
lea rcx, [rbp + 0x140]
lea rdi, [rsi + 2]
call fcn.1400ca928
mov ebx, eax
test eax, eax
js 0x1400ca67d
test r15d, r15d
jne 0x1400ca684
lea ecx, [r15 + 0x5c]
jmp 0x1400ca539
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400ca661
mov ebx, 0x80004005
jmp 0x1400ca4ad
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400ca4ad
mov ecx, 0x80070216
mov ebx, ecx
jmp 0x1400ca67f
mov ecx, eax
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
mov eax, ebx
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.14036e5e0
mov rbx, qword [rsp + 0x6c0]
add rsp, 0x670
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14036e878
int3
Function at 0x1400d1880
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x14042eb28]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
xor esi, esi
cmp dword [0x140438a78], 1
mov r14, rcx
je 0x1400d18b8
mov esi, 0x8000ffff
jmp 0x1400d18f2
mov rcx, qword [0x140437840]
lea r8, [rsp + 0x20]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1400d18f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400d18e4
mov esi, 0x80004005
jmp 0x1400d18f2
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.14007ab24
mov ecx, esi
call fcn.14007ab44
test esi, esi
jns 0x1400d190d
mov ecx, esi
call fcn.14007ab24
jmp 0x1400d1967
mov edi, dword [0x140438460]
test edi, edi
je 0x1400d192a
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140183e64
mov edi, dword [0x140438460]
mov rbx, rax
mov rbp, rbx
test rbx, rbx
jne 0x1400d1939
mov esi, 0x8007000e
jmp 0x1400d1904
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rbp
call fcn.140165dec
mov rcx, qword [r14]
xor ebx, ebx
test rcx, rcx
je 0x1400d1964
test edi, edi
je 0x1400d1961
call fcn.1401840bc
and qword [r14], rbx
mov qword [r14], rbp
xor eax, eax
lea rdi, [rsp + 0x20]
lea ecx, [rax + 0x10]
rep stosb byte [rdi], al
mov ecx, esi
call fcn.14007ab44
test rbx, rbx
je 0x1400d1990
cmp dword [0x140438460], 0
je 0x1400d1990
mov rcx, rbx
call fcn.1401840bc
mov eax, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14036e5e0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400e0ab8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor eax, eax
lea r9, [rbp + 0x58]
mov r15, rdx
mov dword [rbp + 0x50], eax
xor esi, esi
lea rdx, [rbp + 0x50]
mov r14, rcx
mov qword [rsp + 0x20], rsi
mov ebx, esi
lea r8d, [rax + 4]
mov rcx, r15
mov qword [rbp - 8], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400e0b2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400e0b11
mov edi, 0x80004005
jmp 0x1400e0b1f
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.14007ab24
jmp 0x1400e0bc3
cmp dword [rbp + 0x58], 4
je 0x1400e0b3a
mov ecx, 0x8007000d
mov edi, ecx
jmp 0x1400e0b21
mov eax, dword [rbp + 0x50]
sub eax, 1
je 0x1400e0b74
cmp eax, 1
jne 0x1400e0b31
lea rax, [rbp - 0x10]
mov rdx, r15
lea r9, [rbp - 8]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0xc]
call fcn.1400e21a4
mov edi, eax
test eax, eax
js 0x1400e0b82
mov rbx, qword [rbp - 8]
mov r12d, dword [rbp - 0x10]
mov r13d, dword [rbp - 0xc]
jmp 0x1400e0b8f
mov rdx, r15
call fcn.1400e2484
mov edi, eax
test eax, eax
jns 0x1400e0b86
mov ecx, eax
jmp 0x1400e0b21
mov r12d, 1
mov r13d, esi
mov qword [r14 + 8], r15
mov rcx, qword [r14 + 0x18]
mov qword [rbp - 8], rsi
test rcx, rcx
je 0x1400e0baa
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [r14 + 0x18], rsi
mov eax, dword [rbp + 0x50]
test rbx, rbx
cmovne rsi, rbx
mov qword [r14 + 0x18], rsi
mov dword [r14 + 0x20], r13d
mov dword [r14 + 0x10], r12d
mov dword [r14], eax
mov ecx, edi
call fcn.14007ab44
lea rcx, [rbp - 8]
call fcn.14005ba10
mov rbx, qword [rsp + 0x80]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e2484
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x14042eb28]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rdx
lea rcx, [rsp + 0x40]
xor edx, edx
lea r8d, [rdx + 0x78]
call sub.msvcrt.dll_memset
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 0x78
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400e24f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400e24e6
mov ebx, 0x80004005
jmp 0x1400e2558
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400e2558
cmp dword [rsp + 0x30], 0x78
je 0x1400e2504
mov ebx, 0x8007000d
jmp 0x1400e2558
mov r8d, 0x3c
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x40]
call fcn.14007a728
mov ebx, eax
test eax, eax
jns 0x1400e2523
mov ecx, eax
jmp 0x1400e255a
lea rdx, str.spp:migblob_aesencryptor_tokenact
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400e255f
and qword [rsp + 0x20], 0
mov ecx, 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc00004a5
call fcn.1400542dc
mov ebx, 0x80049e59
mov ecx, ebx
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14036e5e0
add rsp, 0xd0
pop rbx
ret
Function at 0x1400ebc50
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, 0x40
cmp dword [0x1404382e8], 0
je 0x1400ebc7c
lea rcx, [0x1404378d0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x1404382e8], 0
mov rsi, qword [0x1404378a0]
jmp 0x1400ebcc4
mov rdi, rsi
mov rsi, qword [rsi + 0xfbd0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rdi + 0xfbe0]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_RtlDeleteFunctionTable]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
dec qword [0x1404378b0]
test rsi, rsi
jne 0x1400ebc85
and qword [0x1404378a0], rsi
lea rax, [0x140000000]
and dword [rsp + 0x20], esi
lea r8d, [rsi + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], 9
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov ecx, 0xb9
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400f73c4
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x14042eb28]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp - 0x69], r15
xor edx, edx
mov qword [rbp - 0x61], r15
lea rcx, [rbp - 0x59]
lea r8d, [r15 + 0x28]
call sub.msvcrt.dll_memset
mov rdx, qword [rsi]
lea rax, [rsp + 0x48]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
xorps xmm1, xmm1
mov qword [rbp - 0x39], r15
lea r9d, [r15 + 8]
mov qword [rsp + 0x48], r15
xor r8d, r8d
mov rcx, 0xffffffff80000002
movdqu xmmword [rbp - 0x59], xmm0
movdqu xmmword [rbp - 0x49], xmm1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x1400f7451
mov ebx, r15d
jmp 0x1400f7561
test eax, eax
jne 0x1400f74f2
mov ebx, r15d
mov edi, r15d
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], r15
lea r8, [rbp - 0x29]
mov qword [rsp + 0x30], r15
mov edx, edi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], 0x25
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc edi
cmp eax, 0x103
je 0x1400f7518
test eax, eax
je 0x1400f74b0
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x1400f7508
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x29]
call fcn.140053408
test eax, eax
js 0x1400f7511
lea r8, [rbp - 0x59]
mov rcx, rsi
lea rdx, [rbp - 0x29]
call fcn.1400f869c
mov ebx, eax
test eax, eax
js 0x1400f74ee
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x69]
call fcn.1400f8f70
mov ebx, eax
test eax, eax
jns 0x1400f745f
mov ecx, eax
jmp 0x1400f750a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x1400f745c
mov ecx, ebx
call fcn.14007ab24
jmp 0x1400f7561
mov ebx, 0x8004f807
jmp 0x1400f7508
lea rdx, [rbp - 0x69]
mov qword [rbp - 0x79], r15
lea rcx, [rbp - 0x79]
mov qword [rbp - 0x71], r15
call fcn.140079464
mov rdx, r14
lea rcx, [rbp - 0x79]
call fcn.140079464
xor edx, edx
lea rcx, [rbp - 0x79]
call fcn.1400f9424
mov rdi, qword [rbp - 0x71]
test rdi, rdi
je 0x1400f7561
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, ebx
call fcn.14007ab44
lea rcx, [rsp + 0x48]
call fcn.14006aedc
lea rcx, [rbp - 0x59]
call fcn.1400f6274
xor edx, edx
lea rcx, [rbp - 0x69]
call fcn.1400f9424
mov rdi, qword [rbp - 0x61]
test rdi, rdi
je 0x1400f75a3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14036e5e0
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400faad4
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14042eb28]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor r12d, r12d
mov word [rbp + 0x2b], 0x500
lea rax, [rbp + 0x17]
mov qword [rbp + 0x1f], r12
mov qword [r11 - 0x68], rax
mov r13, rcx
mov dword [r11 - 0x70], r12d
lea rcx, [rbp + 0x27]
mov dword [r11 - 0x78], r12d
lea r8d, [r12 + 4]
mov dword [r11 - 0x80], r12d
mov ebx, r12d
mov dword [rsp + 0x30], r12d
xor r9d, r9d
mov dword [rsp + 0x28], r12d
mov dl, 1
mov dword [rsp + 0x20], r12d
mov qword [rbp + 7], rbx
mov qword [rbp + 0x17], r12
mov qword [rbp + 0xf], r12
mov dword [rbp + 0x27], r12d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1400fab8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400fab74
mov edi, 0x80004005
jmp 0x1400fab82
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.14007ab24
jmp 0x1400fac7d
lea rax, [rbp + 0xf]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x27]
mov dword [rsp + 0x48], r12d
mov dl, 1
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
lea r8d, [r9 + 6]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400fab63
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x1f]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400fab63
mov rcx, qword [rbp + 0x1f]
lea r8, [rbp + 7]
call fcn.1400fd2b4
mov edi, eax
test eax, eax
jns 0x1400fac0c
mov ecx, eax
call fcn.14007ab24
mov rbx, qword [rbp + 7]
jmp 0x1400fac7d
mov rbx, qword [rbp + 7]
mov r15d, r12d
mov esi, r12d
mov r14d, r12d
cmp dword [rbx], r12d
jbe 0x1400fac74
mov rcx, qword [rbp + 0x17]
mov r12d, r14d
add r12, r12
mov rdx, qword [rbx + r12*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1400fac45
xor r12d, r12d
mov r15d, 1
mov esi, r12d
jmp 0x1400fac63
mov rdx, qword [rbx + r12*8 + 8]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
xor r12d, r12d
test eax, eax
je 0x1400fac63
mov r15d, r12d
lea esi, [r12 + 1]
inc r14d
cmp r14d, dword [rbx]
jb 0x1400fac1e
test esi, esi
jne 0x1400fac79
test r15d, r15d
jne 0x1400fac79
mov esi, 1
mov dword [r13], esi
mov ecx, edi
call fcn.14007ab44
lea rcx, [rbp + 0xf]
call fcn.14006af50
lea rcx, [rbp + 0x17]
call fcn.14006af50
test rbx, rbx
je 0x1400facaf
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x1400facbe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14036e5e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400ff300
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rsi, rcx
mov dword [rcx + 8], edx
xor ecx, ecx
call fcn.14007ab44
lea rcx, [rsi + 0x20]
call fcn.140070544
xor ecx, ecx
call fcn.14007ab44
xor ebx, ebx
test byte [rsi + 8], 1
je 0x1400ff450
lea r9, [rbp + 0x38]
xor edx, edx
lea r8, [0x1403c92c0]
mov rcx, rsi
call fcn.140101f00
mov ebx, eax
test eax, eax
jns 0x1400ff369
mov ecx, eax
call fcn.14007ab24
mov edi, dword [rbp + 0x30]
jmp 0x1400ff36d
movzx edi, byte [rbp + 0x38]
mov ecx, ebx
call fcn.14007ab44
lea eax, [rbx + 0x3ffb2cff]
cmp eax, 1
ja 0x1400ff383
xor edi, edi
xor ebx, ebx
test ebx, ebx
js 0x1400ff449
test edi, edi
je 0x1400ff450
mov rcx, rsi
call fcn.140100a08
mov ebx, eax
test eax, eax
jns 0x1400ff3a8
mov ecx, eax
jmp 0x1400ff44b
and qword [rbp + 0x20], 0
cmp dword [0x140438460], 0
mov byte [rbp + 0x38], 0
jne 0x1400ff3c1
mov ecx, 0xc004d101
jmp 0x1400ff417
and qword [rbp - 0x20], 0
lea rax, [0x1400330f8]
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x40]
lea rax, [rbp + 0x30]
mov qword [rbp - 0x40], 3
mov qword [rbp - 0x30], rax
xor r9d, r9d
mov rax, qword [0x140438648]
mov ecx, 0xb9
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rbp - 0x14], rax
lea r8d, [r9 + 0x34]
mov dword [rbp - 0x18], 0xa0014
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x30]
test ecx, ecx
jns 0x1400ff41c
call fcn.14007ab24
call fcn.140165ac4
mov ecx, eax
mov ebx, eax
call fcn.14007ab44
lea rcx, [rbp + 0x20]
call fcn.140054198
test ebx, ebx
jns 0x1400ff43e
mov ecx, ebx
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
test ebx, ebx
jns 0x1400ff450
mov ecx, ebx
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14010bdc8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
and dword [rbp - 0x3c], 0
mov r14, r8
and qword [rbp - 0x38], 0
lea r8, [rbp + 0x20]
mov rcx, rdx
mov dword [rbp - 0x40], 1
lea rdx, [rbp - 0x38]
call fcn.1401a5274
mov rsi, qword [rbp - 0x38]
mov edi, eax
test eax, eax
jns 0x14010be1b
mov ecx, eax
call fcn.14007ab24
jmp 0x14010bebf
cmp dword [0x140438460], 0
jne 0x14010be2b
mov ebx, 0xc004d101
jmp 0x14010be7c
test rsi, rsi
je 0x14010be77
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x14010be77
lea rcx, [0x140014978]
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x28], rcx
lea rdx, [rbp - 0x30]
xor r9d, r9d
mov qword [rbp - 0x18], rsi
lea rcx, [rbp + 0x38]
mov dword [rbp - 0x10], eax
mov qword [rbp - 0x20], rcx
mov ecx, 0xb9
lea r8d, [r9 + 0x24]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x38]
test ebx, ebx
jns 0x14010be83
jmp 0x14010be7c
mov ebx, 0xc004d104
mov ecx, ebx
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
mov ecx, ebx
sub ecx, 0x4004d601
je 0x14010beaf
cmp ecx, 1
je 0x14010bea6
mov edi, ebx
test ebx, ebx
jns 0x14010beb3
mov ecx, ebx
jmp 0x14010be11
mov dword [rbp - 0x3c], 1
jmp 0x14010beb3
and dword [rbp - 0x40], 0
test r14, r14
je 0x14010bebf
mov rax, qword [rbp - 0x40]
mov qword [r14], rax
mov ecx, edi
call fcn.14007ab44
test rsi, rsi
je 0x14010bed4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x60]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x1401582e4
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x14042eb28]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov edi, dword [rbp - 0x1d]
mov r14, r8
mov r15, rcx
xor esi, esi
lea rax, [rbp - 0x29]
xor ebx, ebx
lea r8, [rbp + 7]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, r15
lea r9d, [rbx + 0x24]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14015835f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140158348
mov ebx, 0x80004005
jmp 0x140158356
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.14007ab24
jmp 0x14015836a
movups xmm0, xmmword [rbp + 7]
movups xmmword [rbp - 0x21], xmm0
mov edi, dword [rbp - 0x1d]
mov ecx, ebx
call fcn.14007ab44
test ebx, ebx
js 0x140158396
cmp edi, 4
je 0x1401583c9
cmp edi, 1
je 0x1401583c9
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x1e
jb 0x140158315
mov ebx, 0x800705b4
mov ecx, ebx
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14036e5e0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
cmp edi, 4
sete al
xor ebx, ebx
mov dword [r14], eax
jmp 0x14015839d