joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c4410
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x270
mov rax, qword [0x140418d28]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov eax, dword [0x1403a8074]
lea rcx, [rsp + 0x50]
xor r13d, r13d
mov dword [rsp + 0x48], 1
mov r12, rdx
mov qword [rsp + 0x40], r13
mov r15d, 0x104
mov qword [rsp + 0x38], r13
mov ebx, r13d
mov dword [rsp + 0x4c], eax
mov edx, r15d
mov qword [rsp + 0x30], rbx
mov esi, r13d
mov edi, r13d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400c44bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c44a1
mov r14d, 0x80004005
jmp 0x1400c44b2
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov ecx, r14d
call fcn.140078308
jmp 0x1400c45b6
mov rcx, r15
lea rax, [rsp + 0x50]
cmp word [rax], r13w
je 0x1400c44d7
add rax, 2
sub rcx, 1
jne 0x1400c44c7
mov rax, rcx
neg rax
sbb r14d, r14d
not r14d
and r14d, 0x80070057
test rcx, rcx
je 0x1400c44f4
sub r15, rcx
jmp 0x1400c44f7
mov r15, r13
mov rax, rcx
neg rax
sbb rdx, rdx
and rdx, r15
test rcx, rcx
je 0x1400c44b2
mov eax, 0x5c
cmp ax, word [rsp + rdx*2 + 0x4e]
je 0x1400c4520
mov eax, 0x2f
cmp ax, word [rsp + rdx*2 + 0x4e]
jne 0x1400c4523
dec rdx
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140077eb8
mov r14d, eax
test eax, eax
jns 0x1400c4547
mov ecx, eax
call fcn.140078308
mov rbx, qword [rsp + 0x30]
jmp 0x1400c45b6
lea rdx, [rsp + 0x38]
lea rcx, str.kernel32.dll
call fcn.1400781e4
mov r14d, eax
test eax, eax
jns 0x1400c4572
mov ecx, eax
call fcn.140078308
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
jmp 0x1400c45b6
mov rbx, qword [rsp + 0x30]
lea r9, [rsp + 0x4c]
mov rdi, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov r8, rbx
mov qword [rsp + 0x20], rdi
mov edx, 3
call fcn.1400c569c
mov r14d, eax
test eax, eax
jns 0x1400c45ad
mov ecx, eax
call fcn.140078308
mov rsi, qword [rsp + 0x40]
jmp 0x1400c45b6
mov rax, qword [rsp + 0x40]
mov qword [r12], rax
mov ecx, r14d
call fcn.140078324
test rdi, rdi
je 0x1400c45df
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140078324
test rbx, rbx
je 0x1400c4600
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140078324
test rsi, rsi
je 0x1400c4621
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140078324
mov eax, r14d
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14035a4e0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
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 0x1400c4a80
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x140418d28]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x90
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 0x1400c4af5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c4ade
mov ebx, 0x80004005
jmp 0x1400c4aec
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140078308
jmp 0x1400c4b16
cmp dword [rsp + 0x30], 2
jne 0x1400c4b12
cmp dword [rsp + 0x24], 5
ja 0x1400c4b0b
jne 0x1400c4b12
cmp dword [rsp + 0x28], ebx
jbe 0x1400c4b12
mov eax, 1
jmp 0x1400c4b14
mov eax, ebx
mov dword [rdi], eax
mov ecx, ebx
call fcn.140078324
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14035a4e0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret

Function at 0x1400c52c8
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 r14d, r14d
xor eax, eax
mov dword [r11 - 0x38], r14d
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 0x1400c5307
mov ebx, 0x80070057
mov ecx, ebx
jmp 0x1400c53a5
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x1400c531c
shr edi, 4
and edi, 1
jmp 0x1400c531f
mov edi, r14d
xor ecx, ecx
call fcn.140078324
xor ecx, ecx
call fcn.140078324
mov ebx, r14d
test edi, edi
jne 0x1400c53aa
test rbp, rbp
je 0x1400c5389
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 0x1400c5372
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c5362
mov ebx, 0x80004005
jmp 0x1400c5300
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400c5300
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.1400c53d8
mov ebx, eax
test eax, eax
jns 0x1400c53aa
mov ecx, eax
call fcn.140078308
mov ecx, ebx
call fcn.140078324
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400c53c1
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 0x1400c53d8
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 [0x140418d28]
xor rax, rsp
mov qword [rbp + 0x560], rax
xor r13d, r13d
mov r12, rdx
mov r8, rcx
test rcx, rcx
je 0x1400c544f
mov edi, 0x104
mov rax, r8
mov ecx, edi
cmp word [rax], r13w
je 0x1400c5430
add rax, 2
sub rcx, 1
jne 0x1400c5420
mov rax, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rcx, rcx
je 0x1400c544a
sub rdi, rcx
jmp 0x1400c5459
mov rdi, r13
jmp 0x1400c5459
mov rdi, qword [rsp + 0x20]
mov ebx, 0x80070057
test ebx, ebx
cmovs rdi, r13
jns 0x1400c5468
mov ecx, ebx
jmp 0x1400c5633
mov r14d, 0x105
lea rcx, [rsp + 0x30]
mov edx, r14d
call fcn.140076f4c
mov ebx, eax
test eax, eax
js 0x1400c5631
lea rax, [rdi - 1]
mov ecx, 0x80070216
cmp rax, rdi
ja 0x1400c549b
mov rdi, rax
mov ebx, r13d
jmp 0x1400c54a2
mov ebx, ecx
call fcn.140078308
mov ecx, ebx
call fcn.140078324
test ebx, ebx
js 0x1400c5461
add rdi, rdi
mov ecx, 0x5c
cmp word [rsp + rdi + 0x30], cx
jne 0x1400c54cf
cmp rdi, 0x20a
jae 0x1400c566b
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 0x1400c5522
mov rdx, r14
call fcn.140076f4c
mov ebx, eax
test eax, eax
js 0x1400c5631
lea r15d, [rsi + 1]
jmp 0x1400c556a
mov r14, rsi
mov edx, 0x105
sub r14, rdi
sar r14, 1
mov r9, r14
call fcn.1400c5818
mov ebx, eax
test eax, eax
js 0x1400c5631
cmp rsi, rdi
jb 0x1400c5628
add r14, r14
cmp r14, 0x20a
jae 0x1400c5671
mov word [rbp + r14 + 0x350], r13w
mov r14d, 0x105
lea r8, [rbp + 0x350]
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.1400c589c
mov ebx, eax
test eax, eax
js 0x1400c5631
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400c55a0
test al, 0x10
jne 0x1400c55ce
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 0x1400c5601
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400c5601
test rsi, rsi
je 0x1400c55f3
lea r8, [0x1403a8074]
mov rdx, r14
lea rcx, [rbp + 0x140]
lea rdi, [rsi + 2]
call fcn.1400c589c
mov ebx, eax
test eax, eax
js 0x1400c5631
test r15d, r15d
jne 0x1400c5638
lea ecx, [r15 + 0x5c]
jmp 0x1400c54ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c5615
mov ebx, 0x80004005
jmp 0x1400c5461
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400c5461
mov ecx, 0x80070216
mov ebx, ecx
jmp 0x1400c5633
mov ecx, eax
call fcn.140078308
mov ecx, ebx
call fcn.140078324
mov eax, ebx
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.14035a4e0
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.14035a764
int3
call fcn.14035a764
int3
Function at 0x1400cc4e4
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140418d28]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov rsi, rcx
cmp dword [0x140422d68], 1
je 0x1400cc517
mov ebx, 0x8000ffff
jmp 0x1400cc551
mov rcx, qword [0x140421948]
lea r8, [rsp + 0x20]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1400cc558
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400cc543
mov ebx, 0x80004005
jmp 0x1400cc551
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140078308
mov ecx, ebx
call fcn.140078324
test ebx, ebx
js 0x1400cc5b7
cmp dword [0x140422760], 0
je 0x1400cc5b2
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.14017b7f4
mov rdi, rax
test rax, rax
je 0x1400cc5b2
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rax
call fcn.14015e098
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400cc5ad
cmp dword [0x140422760], 0
je 0x1400cc5a9
call fcn.14017ba20
and qword [rsi], 0
mov qword [rsi], rdi
jmp 0x1400cc5be
mov ebx, 0x8007000e
mov ecx, ebx
call fcn.140078308
xor eax, eax
lea rdi, [rsp + 0x20]
lea ecx, [rax + 0x10]
rep stosb byte [rdi], al
mov ecx, ebx
call fcn.140078324
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14035a4e0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400db538
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor eax, eax
lea r9, [rbp + 0x48]
and qword [rsp + 0x20], rax
mov rsi, rdx
mov rdi, rcx
mov dword [rbp + 0x40], eax
xor r12d, r12d
lea rdx, [rbp + 0x40]
lea r8d, [rax + 4]
mov qword [rbp - 8], r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400db5ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400db592
mov ebx, 0x80004005
jmp 0x1400db5a0
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140078308
jmp 0x1400db63e
cmp dword [rbp + 0x48], 4
je 0x1400db5bb
mov ecx, 0x8007000d
mov ebx, ecx
jmp 0x1400db5a2
mov eax, dword [rbp + 0x40]
sub eax, 1
je 0x1400db5f5
cmp eax, 1
jne 0x1400db5b2
lea rax, [rbp - 0x10]
mov rdx, rsi
lea r9, [rbp - 8]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0xc]
call fcn.1400dca6c
mov ebx, eax
test eax, eax
js 0x1400db603
mov r12, qword [rbp - 8]
mov r14d, dword [rbp - 0x10]
mov r15d, dword [rbp - 0xc]
jmp 0x1400db610
mov rdx, rsi
call fcn.1400dcd3c
mov ebx, eax
test eax, eax
jns 0x1400db607
mov ecx, eax
jmp 0x1400db5a2
mov r14d, 1
xor r15d, r15d
and qword [rbp - 8], 0
mov qword [rdi + 8], rsi
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400db62d
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rdi + 0x18], 0
mov eax, dword [rbp + 0x40]
mov qword [rdi + 0x18], r12
mov dword [rdi + 0x20], r15d
mov dword [rdi + 0x10], r14d
mov dword [rdi], eax
mov ecx, ebx
call fcn.140078324
lea rcx, [rbp - 8]
call fcn.14005a080
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400dcd3c
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x140418d28]
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 0x1400dcdae
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400dcd9e
mov ebx, 0x80004005
jmp 0x1400dce10
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400dce10
cmp dword [rsp + 0x30], 0x78
je 0x1400dcdbc
mov ebx, 0x8007000d
jmp 0x1400dce10
mov r8d, 0x3c
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x40]
call fcn.140077f90
mov ebx, eax
test eax, eax
jns 0x1400dcddb
mov ecx, eax
jmp 0x1400dce12
lea rdx, str.spp:migblob_aesencryptor_tokenact
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400dce17
and qword [rsp + 0x20], 0
mov ecx, 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc00004a5
call fcn.140052bcc
mov ebx, 0x80049e59
mov ecx, ebx
call fcn.140078308
mov ecx, ebx
call fcn.140078324
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14035a4e0
add rsp, 0xd0
pop rbx
ret
Function at 0x1400e5e90
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0x50
rdtsc
and qword [0x1404219b0], 0
and qword [0x1404219a0], 0
shl rdx, 0x20
or rax, rdx
btr eax, 0x1f
mov qword [0x1404219c0], rax
call fcn.1400e57b4
mov qword [0x140421998], rax
test rax, rax
je 0x1400e5ef8
mov ebx, 1
mov qword [0x1404219a8], rbx
mov qword [0x1404219b8], rbx
call fcn.1404d3000
mov ecx, dword [0x1404223c8]
test eax, eax
mov edx, eax
cmovns ecx, ebx
mov dword [0x1404223c8], ecx
jmp 0x1400e5f0d
and qword [0x1404219a8], 0
mov edx, 0x8007000e
and qword [0x1404219b8], 0
xor eax, eax
test edx, edx
cmovs eax, edx
test eax, eax
js 0x1400e5f5c
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x20]
and dword [rsp + 0x40], 0
xor r9d, r9d
mov ecx, 0xb9
mov dword [rsp + 0x34], 0x64
mov qword [rsp + 0x20], 8
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor eax, eax
add rsp, 0x50
pop rbx
ret

Function at 0x1400e5f64
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 [0x1404223c8], 0
je 0x1400e5f90
lea rcx, [0x1404219c8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x1404223c8], 0
mov rsi, qword [0x140421998]
jmp 0x1400e5fd8
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 [0x1404219a8]
test rsi, rsi
jne 0x1400e5f99
and qword [0x140421998], 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 0x1400f0704
Capabilities:
Get file size
Get system information on windows
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
and qword [rbp - 0x11], 0
mov r12, rdx
and qword [rbp - 0x19], 0
lea rdx, [rbp - 1]
and qword [rbp - 1], 0
or r14, 0xffffffffffffffff
mov rcx, r12
mov qword [rbp - 9], r14
mov r13, r9
call fcn.140076b44
mov rbx, qword [rbp - 1]
mov edi, eax
test eax, eax
js 0x1400f08b6
and qword [rsp + 0x30], 0
lea r8d, [r14 + 6]
and dword [rsp + 0x28], 0
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x1400f07c2
mov qword [rbp - 9], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400f07ad
mov edi, 0x80004005
jmp 0x1400f07bb
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
jmp 0x1400f08b8
lea rdx, [rbp - 0x29]
mov qword [rbp - 9], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
je 0x1400f079c
cmp dword [rbp - 0x29], 0
je 0x1400f07ed
mov ecx, 0x80070057
mov edi, ecx
jmp 0x1400f08b8
cmp r14d, 0x100000
ja 0x1400f07e1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
jne 0x1400f081d
and qword [rbp - 0x11], rax
mov edi, 0x8007000e
jmp 0x1400f07bb
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x25]
mov r8d, r14d
mov qword [rbp - 0x11], r15
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400f079c
cmp dword [rbp - 0x25], r14d
je 0x1400f0852
mov edi, 0x8000ffff
jmp 0x1400f07bb
mov rsi, qword [rbp + 0x67]
mov rsi, qword [rsi + 0xb8]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [0x1403a2250]
lea rax, [rbp - 0x21]
mov r8d, r14d
lea r9, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, rsi
call rdi
mov edi, eax
test eax, eax
js 0x1400f08b6
mov r8, qword [rbp + 0x77]
mov r9, r13
mov edx, dword [rbp - 0x21]
mov rcx, qword [rbp - 0x19]
call fcn.1400f24d8
mov edi, eax
test eax, eax
js 0x1400f08b6
lea rdx, [r13 + 0x20]
mov rcx, r12
call fcn.1400781e4
mov edi, eax
test eax, eax
jns 0x1400f08bd
mov ecx, eax
call fcn.140078308
mov ecx, edi
call fcn.140078324
test rbx, rbx
je 0x1400f08e5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140078324
and qword [rbp + 0x17], 0
lea rax, [0x14001a7a0]
xor r9d, r9d
mov qword [rbp + 0xf], rax
lea rax, [rbp - 0x19]
mov qword [rbp + 7], 3
lea rdx, [rbp + 7]
mov qword [rbp + 0x1f], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
lea rcx, [rbp - 0x11]
call fcn.14006e948
lea rcx, [rbp - 9]
call fcn.140074d74
mov rbx, qword [rsp + 0xd8]
mov eax, edi
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400f42e0
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 [0x140418d28]
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 0x1400f439a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400f4380
mov edi, 0x80004005
jmp 0x1400f438e
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140078308
jmp 0x1400f4489
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 0x1400f436f
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 0x1400f436f
mov rcx, qword [rbp + 0x1f]
lea r8, [rbp + 7]
call fcn.1400f673c
mov edi, eax
test eax, eax
jns 0x1400f4418
mov ecx, eax
call fcn.140078308
mov rbx, qword [rbp + 7]
jmp 0x1400f4489
mov rbx, qword [rbp + 7]
mov r15d, r12d
mov esi, r12d
mov r14d, r12d
cmp dword [rbx], r12d
jbe 0x1400f4480
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 0x1400f4451
xor r12d, r12d
mov r15d, 1
mov esi, r12d
jmp 0x1400f446f
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 0x1400f446f
mov r15d, r12d
lea esi, [r12 + 1]
inc r14d
cmp r14d, dword [rbx]
jb 0x1400f442a
test esi, esi
jne 0x1400f4485
test r15d, r15d
jne 0x1400f4485
mov esi, 1
mov dword [r13], esi
mov ecx, edi
call fcn.140078324
lea rcx, [rbp + 0xf]
call fcn.140068dc8
lea rcx, [rbp + 0x17]
call fcn.140068dc8
test rbx, rbx
je 0x1400f44bb
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 0x1400f44ca
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14035a4e0
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 0x1400f85b4
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.140078324
lea rcx, [rsi + 0x20]
call fcn.14006e3c0
xor ecx, ecx
call fcn.140078324
xor ebx, ebx
test byte [rsi + 8], 1
je 0x1400f8704
lea r9, [rbp + 0x38]
xor edx, edx
lea r8, [0x1403b2e00]
mov rcx, rsi
call fcn.1400fb134
mov ebx, eax
test eax, eax
jns 0x1400f861d
mov ecx, eax
call fcn.140078308
mov edi, dword [rbp + 0x30]
jmp 0x1400f8621
movzx edi, byte [rbp + 0x38]
mov ecx, ebx
call fcn.140078324
lea eax, [rbx + 0x3ffb2cff]
cmp eax, 1
ja 0x1400f8637
xor edi, edi
xor ebx, ebx
test ebx, ebx
js 0x1400f86fd
test edi, edi
je 0x1400f8704
mov rcx, rsi
call fcn.1400f9c54
mov ebx, eax
test eax, eax
jns 0x1400f865c
mov ecx, eax
jmp 0x1400f86ff
and qword [rbp + 0x20], 0
cmp dword [0x140422760], 0
mov byte [rbp + 0x38], 0
jne 0x1400f8675
mov ecx, 0xc004d101
jmp 0x1400f86cb
and qword [rbp - 0x20], 0
lea rax, [0x140002b60]
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 [0x140422948]
mov ecx, 0xb9
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rbp - 0x10], rax
lea r8d, [r9 + 0x38]
mov dword [rbp - 0x18], 0xa0014
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x30]
test ecx, ecx
jns 0x1400f86d0
call fcn.140078308
call fcn.14015dd80
mov ecx, eax
mov ebx, eax
call fcn.140078324
lea rcx, [rbp + 0x20]
call fcn.140052a94
test ebx, ebx
jns 0x1400f86f2
mov ecx, ebx
call fcn.140078308
mov ecx, ebx
call fcn.140078324
test ebx, ebx
jns 0x1400f8704
mov ecx, ebx
call fcn.140078308
mov ecx, ebx
call fcn.140078324
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret