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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140448b38]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov eax, dword [0x1403d7050]
xor r14d, r14d
mov r12, rdx
mov qword [rsp + 0x40], r14
mov r13, rcx
mov qword [rsp + 0x38], r14
mov r15d, 0x104
mov dword [rsp + 0x48], 1
mov ebx, r14d
mov dword [rsp + 0x4c], eax
mov edx, r15d
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x50]
mov esi, r14d
mov edi, r14d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400d1c07
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400d1be9
mov r14d, 0x80004005
jmp 0x1400d1bfa
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov ecx, r14d
call fcn.140082a8c
jmp 0x1400d1cfa
mov rcx, r15
lea rax, [rsp + 0x50]
cmp word [rax], r14w
je 0x1400d1c1f
add rax, 2
sub rcx, 1
jne 0x1400d1c0f
mov rax, rcx
neg rax
mov rax, rcx
sbb r14d, r14d
sub r15, rcx
not r14d
and r14d, 0x80070057
neg rax
sbb rdx, rdx
and rdx, r15
xor r15d, r15d
test rcx, rcx
je 0x1400d1bfa
lea ebx, [r15 + 0x5c]
cmp bx, word [rsp + rdx*2 + 0x4e]
je 0x1400d1c5e
lea eax, [rbx - 0x2d]
cmp ax, word [rsp + rdx*2 + 0x4e]
jne 0x1400d1c61
dec rdx
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14008262c
mov r14d, eax
test eax, eax
jns 0x1400d1c85
mov ecx, eax
call fcn.140082a8c
mov rbx, qword [rsp + 0x30]
jmp 0x1400d1cfa
cmp bx, word [r13]
lea rcx, [r13 + 2]
lea rdx, [rsp + 0x38]
cmovne rcx, r13
call fcn.140082960
mov r14d, eax
test eax, eax
jns 0x1400d1cb6
mov ecx, eax
call fcn.140082a8c
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
jmp 0x1400d1cfa
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.1400d2fb0
mov r14d, eax
test eax, eax
jns 0x1400d1cf1
mov ecx, eax
call fcn.140082a8c
mov rsi, qword [rsp + 0x40]
jmp 0x1400d1cfa
mov rax, qword [rsp + 0x40]
mov qword [r12], rax
mov ecx, r14d
call fcn.140082b34
test rdi, rdi
je 0x1400d1d23
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.140082b34
test rbx, rbx
je 0x1400d1d44
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.140082b34
test rsi, rsi
je 0x1400d1d65
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.140082b34
mov eax, r14d
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140389660
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400d21ac
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x140448b38]
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 0x1400d2221
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400d220a
mov ebx, 0x80004005
jmp 0x1400d2218
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140082a8c
jmp 0x1400d2242
cmp dword [rsp + 0x30], 2
jne 0x1400d223e
cmp dword [rsp + 0x24], 5
ja 0x1400d2237
jne 0x1400d223e
cmp dword [rsp + 0x28], ebx
jbe 0x1400d223e
mov eax, 1
jmp 0x1400d2240
mov eax, ebx
mov dword [rdi], eax
mov ecx, ebx
call fcn.140082b34
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140389660
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret

Function at 0x1400d2ad4
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 + 8], r14
xorps xmm0, xmm0
mov rsi, rdx
mov rbp, rcx
movups xmmword [rsp + 0x20], xmm0
mov qword [r11 - 0x28], rax
test rcx, rcx
jne 0x1400d2b13
mov ebx, 0x80070057
mov ecx, ebx
jmp 0x1400d2bb1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x1400d2b28
shr edi, 4
and edi, 1
jmp 0x1400d2b2b
mov edi, r14d
xor ecx, ecx
call fcn.140082b34
xor ecx, ecx
call fcn.140082b34
mov ebx, r14d
test edi, edi
jne 0x1400d2bb6
test rsi, rsi
je 0x1400d2b95
xor r9d, r9d
lea r8, [rsp + 0x60]
lea edx, [rdi + 1]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x1400d2b7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400d2b6e
mov ebx, 0x80004005
jmp 0x1400d2b0c
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400d2b0c
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
mov dword [rsp + 0x30], r14d
test rsi, rsi
lea rdx, [rsp + 0x20]
mov rcx, rbp
cmove rdx, r14
call fcn.1400d2bec
mov ebx, eax
test eax, eax
jns 0x1400d2bb6
mov ecx, eax
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400d2bcd
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 0x1400db9a0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140448b38]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov r14, rcx
cmp dword [0x1404528d8], 1
je 0x1400db9d9
mov ebx, 0x8000ffff
jmp 0x1400dba13
mov rcx, qword [0x1404515e0]
lea r8, [rsp + 0x20]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1400dba1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400dba05
mov ebx, 0x80004005
jmp 0x1400dba13
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
test ebx, ebx
jns 0x1400dba2e
mov ecx, ebx
call fcn.140082a8c
jmp 0x1400dba80
mov esi, dword [0x1404522b8]
xor edi, edi
test esi, esi
je 0x1400dba4b
lea ecx, [rdi + 0x10]
call fcn.14018eec4
mov esi, dword [0x1404522b8]
mov rdi, rax
test rdi, rdi
jne 0x1400dba57
mov ebx, 0x8007000e
jmp 0x1400dba25
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call fcn.140170128
mov rcx, qword [r14]
test rcx, rcx
je 0x1400dba7d
test esi, esi
je 0x1400dba7d
call fcn.14018f10c
mov qword [r14], rdi
xor eax, eax
lea rdi, [rsp + 0x20]
lea ecx, [rax + 0x10]
rep stosb byte [rdi], al
mov ecx, ebx
call fcn.140082b34
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140389660
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400eccfc
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x140448b38]
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 0x1400ecd6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400ecd5e
mov ebx, 0x80004005
jmp 0x1400ecdd0
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400ecdd0
cmp dword [rsp + 0x30], 0x78
je 0x1400ecd7c
mov ebx, 0x8007000d
jmp 0x1400ecdd0
mov r8d, 0x3c
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x40]
call fcn.1400826b4
mov ebx, eax
test eax, eax
jns 0x1400ecd9b
mov ecx, eax
jmp 0x1400ecdd2
lea rdx, str.spp:migblob_aesencryptor_tokenact
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400ecdd7
and qword [rsp + 0x20], 0
mov ecx, 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc00004a5
call fcn.140058358
mov ebx, 0x80049e59
mov ecx, ebx
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140389660
add rsp, 0xd0
pop rbx
ret
Function at 0x1400ee7c4
Capabilities:
Get process image filename

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov rax, qword [0x140448b38]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rdx
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x208
xor ebx, ebx
call sub.msvcrt.dll_memset
mov r14d, 0x80004005
test rdi, rdi
jne 0x1400ee822
mov esi, 0xc004e001
mov ecx, esi
jmp 0x1400ee832
mov rcx, rdi
call fcn.14005b0e8
mov esi, eax
test eax, eax
jns 0x1400ee837
mov ecx, eax
call fcn.140082a8c
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqLocalClientPID]
test eax, eax
jne 0x1400ee8f2
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
test eax, eax
jne 0x1400ee8f2
lea rdx, [0x14044f1e8]
lea rcx, [0x140427890]
call fcn.1400f6768
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x1400ee8e8
mov rbx, rax
test rax, rax
je 0x1400ee8e8
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
lea rdx, [0x1404509f0]
mov edi, eax
lea rcx, [0x1404391cc]
call fcn.1400f7eec
test edi, edi
jne 0x1400ee8e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r14d, ax
lea rdx, [0x14044fce0]
or r14d, 0x80070000
lea rcx, [0x140437d18]
test eax, eax
cmovle r14d, eax
call fcn.1400f8590
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
jmp 0x1400ee904
js 0x1400ee901
movzx r14d, ax
or r14d, 0x80010000
jmp 0x1400ee904
mov r14d, eax
cmp dword [0x140448890], 5
jbe 0x1400ee995
movabs rdx, 0x400000000000
test qword [0x1404488a0], rdx
je 0x1400ee995
mov rax, qword [0x1404488a8]
and rax, rdx
cmp rax, qword [0x1404488a8]
jne 0x1400ee995
lea rax, [rsp + 0x60]
mov dword [rsp + 0x44], esi
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x30], rax
lea rdx, [0x14043d3e2]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140001758
lea rdx, [0x14044a78c]
lea rcx, [0x14042b414]
call fcn.1400f7b8c
mov ecx, esi
call fcn.140082b34
test rbx, rbx
je 0x1400ee9bd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x14044f9a0]
lea rcx, [0x1404281cc]
call fcn.1400f823c
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140389660
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400ee9f4
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140448b38]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
xor ebx, ebx
call sub.msvcrt.dll_memset
test rdi, rdi
jne 0x1400eea47
mov ecx, 0xc004e001
mov esi, ecx
jmp 0x1400eea5f
mov rax, qword [rdi]
cmp dword [rax], 0x50
jne 0x1400eea3e
mov rcx, rdi
call fcn.14005b26c
mov esi, eax
test eax, eax
jns 0x1400eea64
mov ecx, eax
call fcn.140082a8c
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqLocalClientPID]
mov edi, eax
test eax, eax
jne 0x1400eeb08
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
lea rdx, [0x14044e098]
mov edi, eax
lea rcx, [0x140426698]
call fcn.1400f7184
test edi, edi
jne 0x1400eeb08
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rdx, [0x140449aa0]
mov r14, rax
lea rcx, [0x14042aab8]
call fcn.1400f6e28
test r14, r14
je 0x1400eeafa
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, r14
mov rbx, r14
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jne 0x1400eeafa
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400eeafe
mov edi, dword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
jmp 0x1400eeb28
lea rdx, [0x14044daa0]
lea rcx, [0x140426068]
call fcn.1400f74d8
test edi, edi
js 0x1400eeb28
movzx edi, di
or edi, 0x80010000
cmp dword [0x140448890], 5
jbe 0x1400eebb8
movabs rdx, 0x400000000000
test qword [0x1404488a0], rdx
je 0x1400eebb8
mov rax, qword [0x1404488a8]
and rax, rdx
cmp rax, qword [0x1404488a8]
jne 0x1400eebb8
lea rdx, [0x14044d4cc]
mov dword [rsp + 0x44], esi
lea rcx, [0x140425998]
call fcn.1400f7830
lea rax, [rsp + 0x60]
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x30], rax
lea rdx, [0x14043d38c]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140001758
mov ecx, esi
call fcn.140082b34
test rbx, rbx
je 0x1400eebcd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x14044b180]
lea rcx, [0x140433a90]
call fcn.1400f6ac8
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140389660
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400f660c
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 [0x140452078], 0
je 0x1400f663e
lea rcx, [0x140451668]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop dword [rax + rax]
and dword [0x140452078], 0
mov rsi, qword [0x140451638]
jmp 0x1400f669e
mov rdi, rsi
mov rsi, qword [rsi + 0xfbd0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, [rdi + 0xfbe0]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_RtlDeleteFunctionTable]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
dec qword [0x140451648]
test rsi, rsi
jne 0x1400f6647
and qword [0x140451638], 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]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140104588
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 [0x140448b38]
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 0x140104642
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140104628
mov edi, 0x80004005
jmp 0x140104636
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140082a8c
jmp 0x140104731
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 0x140104617
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 0x140104617
mov rcx, qword [rbp + 0x1f]
lea r8, [rbp + 7]
call fcn.140106b94
mov edi, eax
test eax, eax
jns 0x1401046c0
mov ecx, eax
call fcn.140082a8c
mov rbx, qword [rbp + 7]
jmp 0x140104731
mov rbx, qword [rbp + 7]
mov r15d, r12d
mov esi, r12d
mov r14d, r12d
cmp dword [rbx], r12d
jbe 0x140104728
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 0x1401046f9
xor r12d, r12d
mov r15d, 1
mov esi, r12d
jmp 0x140104717
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 0x140104717
mov r15d, r12d
lea esi, [r12 + 1]
inc r14d
cmp r14d, dword [rbx]
jb 0x1401046d2
test esi, esi
jne 0x14010472d
test r15d, r15d
jne 0x14010472d
mov esi, 1
mov dword [r13], esi
mov ecx, edi
call fcn.140082b34
lea rcx, [rbp + 0xf]
call fcn.140072df8
lea rcx, [rbp + 0x17]
call fcn.140072df8
test rbx, rbx
je 0x140104763
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 0x140104772
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140389660
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 0x140108a64
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.140082b34
lea rcx, [rsi + 0x20]
call fcn.140077f34
xor ecx, ecx
call fcn.140082b34
xor ebx, ebx
test byte [rsi + 8], 1
je 0x140108bb7
lea r9, [rbp + 0x38]
xor edx, edx
lea r8, [0x1403e1ed0]
mov rcx, rsi
call fcn.14010b6bc
mov ebx, eax
test eax, eax
jns 0x140108acd
mov ecx, eax
call fcn.140082a8c
mov edi, dword [rbp + 0x30]
jmp 0x140108ad1
movzx edi, byte [rbp + 0x38]
mov ecx, ebx
call fcn.140082b34
lea eax, [rbx + 0x3ffb2cff]
cmp eax, 1
ja 0x140108aea
xor ebx, ebx
jmp 0x140108bb7
test ebx, ebx
js 0x140108bb0
test edi, edi
je 0x140108bb7
mov rcx, rsi
call fcn.14010a1d0
mov ebx, eax
test eax, eax
jns 0x140108b0f
mov ecx, eax
jmp 0x140108bb2
and qword [rbp + 0x20], 0
cmp dword [0x1404522b8], 0
mov byte [rbp + 0x38], 0
jne 0x140108b28
mov ecx, 0xc004d101
jmp 0x140108b7e
mov rax, qword [0x140452498]
lea rdx, [rbp - 0x40]
and qword [rbp - 0x20], 0
xor r9d, r9d
mov qword [rbp - 0x28], rax
mov ecx, 0xb9
lea rax, [0x14003ef1c]
mov qword [rbp - 0x40], 3
mov qword [rbp - 0x38], rax
lea rax, [rbp + 0x30]
mov qword [rbp - 0x30], rax
lea r8d, [r9 + 0x34]
lea rax, [rbp + 0x38]
mov dword [rbp - 0x18], 0xa0014
mov qword [rbp - 0x14], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x30]
test ecx, ecx
jns 0x140108b83
call fcn.140082a8c
call fcn.14016fdd0
mov ecx, eax
mov ebx, eax
call fcn.140082b34
lea rcx, [rbp + 0x20]
call fcn.140071d54
test ebx, ebx
jns 0x140108ba5
mov ecx, ebx
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
test ebx, ebx
jns 0x140108bb7
mov ecx, ebx
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140114550
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.1401b2580
mov rsi, qword [rbp - 0x38]
mov edi, eax
test eax, eax
jns 0x1401145a3
mov ecx, eax
call fcn.140082a8c
jmp 0x140114647
cmp dword [0x1404522b8], 0
jne 0x1401145b3
mov ebx, 0xc004d101
jmp 0x140114604
test rsi, rsi
je 0x1401145ff
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x1401145ff
lea rcx, [0x140023edc]
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 0x14011460b
jmp 0x140114604
mov ebx, 0xc004d104
mov ecx, ebx
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
mov ecx, ebx
sub ecx, 0x4004d601
je 0x140114637
cmp ecx, 1
je 0x14011462e
mov edi, ebx
test ebx, ebx
jns 0x14011463b
mov ecx, ebx
jmp 0x140114599
mov dword [rbp - 0x3c], 1
jmp 0x14011463b
and dword [rbp - 0x40], 0
test r14, r14
je 0x140114647
mov rax, qword [rbp - 0x40]
mov qword [r14], rax
mov ecx, edi
call fcn.140082b34
test rsi, rsi
je 0x14011465c
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 0x140160cdc
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140448b38]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, dword [rsp + 0x3c]
mov r14, r9
mov ebp, edx
mov r15, rcx
xor esi, esi
lea rax, [rsp + 0x30]
xor ebx, ebx
lea r8, [rsp + 0x60]
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 0x140160d5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140160d44
mov ebx, 0x80004005
jmp 0x140160d52
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140082a8c
jmp 0x140160d69
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x38], xmm0
mov edi, dword [rsp + 0x3c]
mov ecx, ebx
call fcn.140082b34
test ebx, ebx
js 0x140160da5
test bpl, 8
je 0x140160d7f
cmp edi, 4
je 0x140160ddd
test bpl, 1
je 0x140160d8a
cmp edi, 1
je 0x140160ddd
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x1e
jb 0x140160d0f
mov ebx, 0x800705b4
mov ecx, ebx
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140389660
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [r14], edi
xor ebx, ebx
jmp 0x140160dac