joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c4d6c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
movsxd rbp, edx
mov rsi, rcx
mov ebx, r12d
cmp dword [rcx], ebp
je 0x1400c4eab
mov r15d, dword [rcx + 4]
cmp ebp, r15d
cmovl r15d, ebp
test edx, edx
jle 0x1400c4e2a
mov r14, rbp
mov edi, r12d
shl r14, 7
mov rax, r14
shr rax, 7
cmp rax, rbp
je 0x1400c4dd0
mov edi, 0x80070216
mov ecx, edi
call fcn.14007ac40
mov r14, qword [rsp + 0x70]
mov ecx, edi
call fcn.14007ace8
test edi, edi
jns 0x1400c4de7
mov ecx, edi
call fcn.14007ac40
jmp 0x1400c4eae
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400c4e0e
mov rcx, rax
mov rbx, rax
test rax, rax
jne 0x1400c4e15
mov edi, 0x8007000e
jmp 0x1400c4ddb
test r15d, r15d
je 0x1400c4e2a
mov rdx, qword [rsi + 8]
movsxd r8, r15d
shl r8, 7
call sub.msvcrt.dll_memcpy
cmp ebp, dword [rsi + 4]
jge 0x1400c4e7a
mov edi, ebp
movsxd rdx, edi
shl rdx, 7
add rdx, qword [rsi + 8]
je 0x1400c4e73
xor r9d, r9d
mov qword [rsp + 0x38], rdx
lea rax, [0x14002125c]
mov qword [rsp + 0x20], 3
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, 0xb9
mov qword [rsp + 0x30], r12
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
inc edi
cmp edi, dword [rsi + 4]
jl 0x1400c4e31
mov rdi, qword [rsi + 8]
mov r14, rbx
mov rbx, r12
test rdi, rdi
je 0x1400c4ea1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsi + 8], r12
mov qword [rsi + 8], r14
mov dword [rsi + 4], r15d
mov dword [rsi], ebp
mov edi, r12d
mov ecx, edi
call fcn.14007ace8
test rbx, rbx
je 0x1400c4ece
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400c7108
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x48
xor r9d, r9d
mov qword [r11 - 0x10], rcx
lea rax, [0x14002501c]
mov qword [r11 - 0x28], 3
mov qword [r11 - 0x20], rax
lea rdx, [r11 - 0x28]
lea rax, [r11 + 8]
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
mov qword [r11 - 0x18], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x1400c75a4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor esi, esi
xor ebx, ebx
and dword [rbp - 0x24], esi
mov r15, r8
and dword [rbp - 0x28], esi
mov r14, rdx
and qword [rbp - 0x40], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x38], rbx
test ecx, ecx
je 0x1400c7625
cmp ecx, 1
je 0x1400c75e8
mov ecx, 0x80070057
mov edi, ecx
jmp 0x1400c76e5
lea rax, [0x14002605c]
mov qword [rbp - 0x20], 3
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
xor r9d, r9d
lea rax, [rbp + 0x30]
mov qword [rbp - 0x10], rax
mov ecx, 0xb9
lea rax, [rbp - 0x40]
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x30]
jmp 0x1400c7660
lea rax, [0x14002639c]
mov qword [rbp - 0x20], 3
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
xor r9d, r9d
lea rax, [rbp + 0x48]
mov qword [rbp - 0x10], rax
mov ecx, 0xb9
lea rax, [rbp - 0x40]
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x48]
mov edi, ecx
test ecx, ecx
js 0x1400c76e5
lea rdx, [rbp - 0x38]
mov rcx, r14
call fcn.14004df1c
mov edi, eax
test eax, eax
jns 0x1400c7685
mov ecx, eax
call fcn.14007ac40
mov rbx, qword [rbp - 0x38]
jmp 0x1400c76ea
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.14006abd8
mov edi, eax
test eax, eax
jns 0x1400c76a5
mov ecx, eax
call fcn.14007ac40
mov rsi, qword [rbp - 0x30]
jmp 0x1400c767f
mov rbx, qword [rbp - 0x38]
lea rcx, [rbp - 0x30]
mov rdx, rbx
call fcn.14006ab64
mov edi, eax
test eax, eax
jns 0x1400c76c8
mov ecx, eax
call fcn.14007ac40
mov rsi, qword [rbp - 0x30]
jmp 0x1400c76ea
mov rsi, qword [rbp - 0x30]
mov r8d, 0x7fffffff
mov rcx, rsi
mov rdx, r15
call fcn.14006b1f0
mov edi, eax
test eax, eax
jns 0x1400c76ea
mov ecx, eax
call fcn.14007ac40
mov ecx, edi
call fcn.14007ace8
test rbx, rbx
je 0x1400c76ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400c7713
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rbp - 0x40], 0
test rsi, rsi
je 0x1400c772c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x98]
mov eax, edi
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c9920
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 [0x140451b38]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov eax, dword [0x1403d9ef0]
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 0x1400c99cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c99ad
mov r14d, 0x80004005
jmp 0x1400c99be
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov ecx, r14d
call fcn.14007ac40
jmp 0x1400c9abe
mov rcx, r15
lea rax, [rsp + 0x50]
cmp word [rax], r14w
je 0x1400c99e3
add rax, 2
sub rcx, 1
jne 0x1400c99d3
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 0x1400c99be
lea ebx, [r15 + 0x5c]
cmp bx, word [rsp + rdx*2 + 0x4e]
je 0x1400c9a22
lea eax, [rbx - 0x2d]
cmp ax, word [rsp + rdx*2 + 0x4e]
jne 0x1400c9a25
dec rdx
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14007a7c4
mov r14d, eax
test eax, eax
jns 0x1400c9a49
mov ecx, eax
call fcn.14007ac40
mov rbx, qword [rsp + 0x30]
jmp 0x1400c9abe
cmp bx, word [r13]
lea rcx, [r13 + 2]
lea rdx, [rsp + 0x38]
cmovne rcx, r13
call fcn.14007ab14
mov r14d, eax
test eax, eax
jns 0x1400c9a7a
mov ecx, eax
call fcn.14007ac40
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
jmp 0x1400c9abe
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.1400cad30
mov r14d, eax
test eax, eax
jns 0x1400c9ab5
mov ecx, eax
call fcn.14007ac40
mov rsi, qword [rsp + 0x40]
jmp 0x1400c9abe
mov rax, qword [rsp + 0x40]
mov qword [r12], rax
mov ecx, r14d
call fcn.14007ace8
test rdi, rdi
je 0x1400c9ae7
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.14007ace8
test rbx, rbx
je 0x1400c9b08
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.14007ace8
test rsi, rsi
je 0x1400c9b29
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.14007ace8
mov eax, r14d
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140388a50
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 0x1400c9f80
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x140451b38]
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 0x1400c9ff5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c9fde
mov ebx, 0x80004005
jmp 0x1400c9fec
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.14007ac40
jmp 0x1400ca016
cmp dword [rsp + 0x30], 2
jne 0x1400ca012
cmp dword [rsp + 0x24], 5
ja 0x1400ca00b
jne 0x1400ca012
cmp dword [rsp + 0x28], ebx
jbe 0x1400ca012
mov eax, 1
jmp 0x1400ca014
mov eax, ebx
mov dword [rdi], eax
mov ecx, ebx
call fcn.14007ace8
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140388a50
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret

Function at 0x1400ca84c
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 0x1400ca88b
mov ebx, 0x80070057
mov ecx, ebx
jmp 0x1400ca929
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x1400ca8a0
shr edi, 4
and edi, 1
jmp 0x1400ca8a3
mov edi, r14d
xor ecx, ecx
call fcn.14007ace8
xor ecx, ecx
call fcn.14007ace8
mov ebx, r14d
test edi, edi
jne 0x1400ca92e
test rsi, rsi
je 0x1400ca90d
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 0x1400ca8f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400ca8e6
mov ebx, 0x80004005
jmp 0x1400ca884
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400ca884
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.1400ca964
mov ebx, eax
test eax, eax
jns 0x1400ca92e
mov ecx, eax
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400ca945
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 0x1400d5174
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 [0x140451b38]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov r14, rcx
cmp dword [0x14045db08], 1
je 0x1400d51ad
mov ebx, 0x8000ffff
jmp 0x1400d51e7
mov rcx, qword [0x14045c7e8]
lea r8, [rsp + 0x20]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1400d51ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400d51d9
mov ebx, 0x80004005
jmp 0x1400d51e7
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
test ebx, ebx
jns 0x1400d5202
mov ecx, ebx
call fcn.14007ac40
jmp 0x1400d5254
mov esi, dword [0x14045d4e0]
xor edi, edi
test esi, esi
je 0x1400d521f
lea ecx, [rdi + 0x10]
call fcn.14018d6b4
mov esi, dword [0x14045d4e0]
mov rdi, rax
test rdi, rdi
jne 0x1400d522b
mov ebx, 0x8007000e
jmp 0x1400d51f9
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call fcn.14016f670
mov rcx, qword [r14]
test rcx, rcx
je 0x1400d5251
test esi, esi
je 0x1400d5251
call fcn.14018d900
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.14007ace8
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140388a50
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400e7bb0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x140451b38]
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 0x1400e7c22
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400e7c12
mov ebx, 0x80004005
jmp 0x1400e7c84
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400e7c84
cmp dword [rsp + 0x30], 0x78
je 0x1400e7c30
mov ebx, 0x8007000d
jmp 0x1400e7c84
mov r8d, 0x3c
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x40]
call fcn.14007a854
mov ebx, eax
test eax, eax
jns 0x1400e7c4f
mov ecx, eax
jmp 0x1400e7c86
lea rdx, str.spp:migblob_aesencryptor_tokenact
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400e7c8b
and qword [rsp + 0x20], 0
mov ecx, 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc00004a5
call fcn.14004eeb8
mov ebx, 0x80049e59
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140388a50
add rsp, 0xd0
pop rbx
ret
Function at 0x1400e95a0
Capabilities:
Get process image filename

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov rax, qword [0x140451b38]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rdx
lea rcx, [0x14042de68]
xor r12d, r12d
lea rdx, [0x14045b494]
mov ebx, r12d
call fcn.1400f43c8
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r15d, 0x80004005
test rdi, rdi
jne 0x1400e9617
mov r14d, 0xc004e001
mov ecx, r14d
jmp 0x1400e9628
mov rcx, rdi
call fcn.140051f0c
mov r14d, eax
test eax, eax
jns 0x1400e962d
mov ecx, eax
call fcn.14007ac40
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqLocalClientPID]
lea rdx, [0x14045a648]
mov edi, eax
lea rcx, [0x14042cf48]
call fcn.1400f3318
test edi, edi
jne 0x1400e9707
lea rdx, [0x140453efc]
lea rcx, [0x140430af8]
call fcn.1400f4a68
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
lea rdx, [0x140458b2c]
mov edi, eax
lea rcx, [0x14042b474]
call fcn.1400f4080
test edi, edi
jne 0x1400e9707
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rdx, [0x14045a9c4]
mov rdi, rax
lea rcx, [0x14042d178]
call fcn.1400f4710
test rdi, rdi
je 0x1400e96fd
mov rcx, rdi
lea rdx, [rsp + 0x60]
mov r8d, 0x104
mov rbx, rdi
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jne 0x1400e96fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r15d, ax
lea rdx, [0x14045ba40]
or r15d, 0x80070000
lea rcx, [0x14044174c]
test eax, eax
cmovle r15d, eax
call fcn.1400f4dac
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
jmp 0x1400e9719
js 0x1400e9716
movzx r15d, di
or r15d, 0x80010000
jmp 0x1400e9719
mov r15d, edi
cmp dword [0x140451890], 5
jbe 0x1400e97d5
movabs rax, 0x400000000000
test qword [0x1404518a0], rax
je 0x1400e97d5
mov rdi, qword [0x1404518a8]
lea rdx, [0x140455f44]
lea rcx, [0x1404327f8]
and rdi, rax
call fcn.1400f3d28
cmp rdi, qword [0x1404518a8]
jne 0x1400e97d5
lea rdx, [0x140456764]
lea rcx, [0x1404379a0]
call fcn.1400f39cc
lea rdx, [0x14045aa08]
mov dword [rsp + 0x44], r14d
lea rcx, [0x14043fda8]
mov dword [rsp + 0x48], r15d
call fcn.1400f3670
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rdx, [0x140446082]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140001758
mov ecx, r14d
call fcn.14007ace8
lea rdx, [0x140459cd4]
lea rcx, [0x14042c5e8]
call fcn.1400f50fc
test rbx, rbx
je 0x1400e9811
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x140456e48]
lea rcx, [0x140429688]
call fcn.1400f3670
mov eax, r14d
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140388a50
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140106a90
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.14007ace8
lea rcx, [rsi + 0x20]
call fcn.140070748
xor ecx, ecx
call fcn.14007ace8
xor ebx, ebx
test byte [rsi + 8], 1
je 0x140106be3
lea r9, [rbp + 0x38]
xor edx, edx
lea r8, [0x1403e4df0]
mov rcx, rsi
call fcn.140109770
mov ebx, eax
test eax, eax
jns 0x140106af9
mov ecx, eax
call fcn.14007ac40
mov edi, dword [rbp + 0x30]
jmp 0x140106afd
movzx edi, byte [rbp + 0x38]
mov ecx, ebx
call fcn.14007ace8
lea eax, [rbx + 0x3ffb2cff]
cmp eax, 1
ja 0x140106b16
xor ebx, ebx
jmp 0x140106be3
test ebx, ebx
js 0x140106bdc
test edi, edi
je 0x140106be3
mov rcx, rsi
call fcn.140108260
mov ebx, eax
test eax, eax
jns 0x140106b3b
mov ecx, eax
jmp 0x140106bde
and qword [rbp + 0x20], 0
cmp dword [0x14045d4e0], 0
mov byte [rbp + 0x38], 0
jne 0x140106b54
mov ecx, 0xc004d101
jmp 0x140106baa
mov rax, qword [0x14045d6c8]
lea rdx, [rbp - 0x40]
and qword [rbp - 0x20], 0
xor r9d, r9d
mov qword [rbp - 0x28], rax
mov ecx, 0xb9
lea rax, [0x140044e5c]
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 0x140106baf
call fcn.14007ac40
call fcn.14016f318
mov ecx, eax
mov ebx, eax
call fcn.14007ace8
lea rcx, [rbp + 0x20]
call fcn.14006a9cc
test ebx, ebx
jns 0x140106bd1
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
test ebx, ebx
jns 0x140106be3
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14011723c
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.1401b11a8
mov rsi, qword [rbp - 0x38]
mov edi, eax
test eax, eax
jns 0x14011728f
mov ecx, eax
call fcn.14007ac40
jmp 0x140117333
cmp dword [0x14045d4e0], 0
jne 0x14011729f
mov ebx, 0xc004d101
jmp 0x1401172f0
test rsi, rsi
je 0x1401172eb
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x1401172eb
lea rcx, [0x1400232dc]
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 0x1401172f7
jmp 0x1401172f0
mov ebx, 0xc004d104
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
mov ecx, ebx
sub ecx, 0x4004d601
je 0x140117323
cmp ecx, 1
je 0x14011731a
mov edi, ebx
test ebx, ebx
jns 0x140117327
mov ecx, ebx
jmp 0x140117285
mov dword [rbp - 0x3c], 1
jmp 0x140117327
and dword [rbp - 0x40], 0
test r14, r14
je 0x140117333
mov rax, qword [rbp - 0x40]
mov qword [r14], rax
mov ecx, edi
call fcn.14007ace8
test rsi, rsi
je 0x140117348
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 0x14016ae10
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
cmp dword [rcx], 0
lea rbx, [rcx + 8]
mov rdi, rcx
je 0x14016aec1
mov eax, dword [rcx + 4]
xor ebp, ebp
test eax, eax
cmovle ebp, eax
jle 0x14016ae97
xor esi, esi
movsxd rdx, esi
shl rdx, 4
add rdx, qword [rbx]
je 0x14016ae90
xor r9d, r9d
mov qword [rsp + 0x38], rdx
lea rax, [0x14003fd1c]
mov qword [rsp + 0x20], 3
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x40], 1
lea r8d, [r9 + 0x24]
mov qword [rsp + 0x30], rax
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
inc esi
cmp esi, dword [rdi + 4]
jl 0x14016ae42
mov rsi, qword [rbx]
test rsi, rsi
je 0x14016aeb7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rbx], 0
and qword [rbx], 0
and dword [rdi], 0
mov dword [rdi + 4], ebp
xor ecx, ecx
call fcn.14007ace8
mov rdi, qword [rbx]
test rdi, rdi
je 0x14016aee8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rbx], 0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14016bdfc
Capabilities:
Start service

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x20
xor r14d, r14d
xor edx, edx
xor ecx, ecx
mov qword [rax + 0x10], r14
mov esi, r14d
mov edi, r14d
mov ebp, r14d
lea r8d, [r14 + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14016be3e
mov ebx, r14d
jmp 0x14016be46
mov rcx, rax
test rax, rax
jne 0x14016be6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14016be57
mov ebp, 0x80004005
jmp 0x14016be65
movzx ebp, ax
or ebp, 0x80070000
test eax, eax
cmovle ebp, eax
mov ecx, ebp
call fcn.14007ac40
jmp 0x14016be89
mov r8d, SafeArrayGetElement
lea rdx, str.TrustedInstaller
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14016be46
mov rsi, rax
mov ecx, ebp
call fcn.14007ace8
test rdi, rdi
je 0x14016be9e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x14016beac
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebp, ebp
jns 0x14016beb7
mov ebx, ebp
jmp 0x14016bf7b
test rsi, rsi
lea r9, [rsp + 0x40]
mov rdi, r14
mov edx, 9
cmovne rdi, rsi
mov rcx, rdi
call fcn.1401637ac
mov ebp, eax
mov ebx, eax
test eax, eax
jns 0x14016bee2
mov ecx, eax
call fcn.14007ac40
mov ecx, ebp
call fcn.14007ace8
test ebp, ebp
js 0x14016bf7b
cmp dword [rsp + 0x40], 4
jne 0x14016bf00
mov ebp, r14d
jmp 0x14016bfa5
cmp qword [rsp + 0x48], r14
lea r8, [rsp + 0x48]
mov edx, r14d
mov rcx, rdi
setne dl
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14016bf4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x14016bf4f
test eax, eax
jne 0x14016bf38
mov ebp, 0x80004005
jmp 0x14016beb0
movzx ebp, ax
or ebp, 0x80070000
test eax, eax
cmovle ebp, eax
test ebp, ebp
jns 0x14016bfa5
jmp 0x14016beb0
lea r9, [rsp + 0x40]
mov edx, 8
mov rcx, rdi
call fcn.1401637ac
mov ebp, eax
mov ebx, eax
test eax, eax
jns 0x14016bf70
mov ecx, eax
call fcn.14007ac40
mov ecx, ebp
call fcn.14007ace8
test ebp, ebp
jns 0x14016bf92
mov ecx, ebx
call fcn.14007ac40
cmp ebp, 0x800705b4
mov ecx, 0x80070426
cmove ebp, ecx
jmp 0x14016bfa5
cmp dword [rsp + 0x40], 4
je 0x14016bfa5
mov ecx, 0x80070426
mov ebp, ecx
call fcn.14007ac40
mov ecx, ebp
call fcn.14007ace8
test rsi, rsi
je 0x14016bfba
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebp, ebp
jns 0x14016bfc5
mov ecx, ebp
call fcn.14007ac40
mov ecx, ebp
call fcn.14007ace8
mov rbx, qword [rsp + 0x50]
mov eax, ebp
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret