joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d2d84
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 [0x140436b28]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
xor esi, esi
cmp dword [0x1404405a8], 1
mov r14, rcx
je 0x1400d2dbc
mov esi, 0x8000ffff
jmp 0x1400d2df6
mov rcx, qword [0x14043f390]
lea r8, [rsp + 0x20]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1400d2dfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400d2de8
mov esi, 0x80004005
jmp 0x1400d2df6
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.140079c40
mov ecx, esi
call fcn.140079c60
test esi, esi
jns 0x1400d2e11
mov ecx, esi
call fcn.140079c40
jmp 0x1400d2e68
mov edi, dword [0x14043ffa0]
test edi, edi
je 0x1400d2e2e
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140183904
mov edi, dword [0x14043ffa0]
mov rbx, rax
mov rbp, rbx
test rbx, rbx
jne 0x1400d2e3d
mov esi, 0x8007000e
jmp 0x1400d2e08
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rbp
call fcn.14016563c
mov rcx, qword [r14]
xor ebx, ebx
test rcx, rcx
je 0x1400d2e65
test edi, edi
je 0x1400d2e65
call fcn.140183b5c
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.140079c60
test rbx, rbx
je 0x1400d2e91
cmp dword [0x14043ffa0], 0
je 0x1400d2e91
mov rcx, rbx
call fcn.140183b5c
mov eax, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14037a9a0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400e2590
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 esi, esi
lea r9, [rbp + 0x58]
mov r15, rdx
mov dword [rbp + 0x50], esi
mov r14, rcx
mov qword [rsp + 0x20], rsi
mov ebx, esi
lea rdx, [rbp + 0x50]
lea r8d, [rsi + 4]
mov qword [rbp - 8], rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400e2601
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400e25e7
mov edi, 0x80004005
jmp 0x1400e25f5
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140079c40
jmp 0x1400e2695
cmp dword [rbp + 0x58], 4
je 0x1400e2610
mov ecx, 0x8007000d
mov edi, ecx
jmp 0x1400e25f7
mov eax, dword [rbp + 0x50]
sub eax, 1
je 0x1400e264a
cmp eax, 1
jne 0x1400e2607
lea rax, [rbp - 0x10]
mov rdx, r15
lea r9, [rbp - 8]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0xc]
call fcn.1400e3af8
mov edi, eax
test eax, eax
js 0x1400e2658
mov rbx, qword [rbp - 8]
mov r12d, dword [rbp - 0x10]
mov r13d, dword [rbp - 0xc]
jmp 0x1400e2665
mov rdx, r15
call fcn.1400e3dd8
mov edi, eax
test eax, eax
jns 0x1400e265c
mov ecx, eax
jmp 0x1400e25f7
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 0x1400e267c
call qword [sym.imp.KERNEL32.dll_LocalFree]
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.140079c60
lea rcx, [rbp - 8]
call fcn.14005a9b4
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 0x1400e3dd8
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x140436b28]
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 0x1400e3e4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400e3e3a
mov ebx, 0x80004005
jmp 0x1400e3eac
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400e3eac
cmp dword [rsp + 0x30], 0x78
je 0x1400e3e58
mov ebx, 0x8007000d
jmp 0x1400e3eac
mov r8d, 0x3c
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x40]
call fcn.140079840
mov ebx, eax
test eax, eax
jns 0x1400e3e77
mov ecx, eax
jmp 0x1400e3eae
lea rdx, str.spp:migblob_aesencryptor_tokenact
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400e3eb3
and qword [rsp + 0x20], 0
mov ecx, 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc00004a5
call fcn.14005316c
mov ebx, 0x80049e59
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14037a9a0
add rsp, 0xd0
pop rbx
ret
Function at 0x1400ed128
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 [0x14043fe28], 0
je 0x1400ed15a
lea rcx, [0x14043f418]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop dword [rax + rax]
and dword [0x14043fe28], 0
mov rsi, qword [0x14043f3e8]
jmp 0x1400ed1ba
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 [0x14043f3f8]
test rsi, rsi
jne 0x1400ed163
and qword [0x14043f3e8], 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 0x1400f7b30
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 [0x140436b28]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r15d, r15d
lea rax, [rsp + 0x48]
mov r14, rdx
mov qword [rbp - 0x69], r15
mov rdx, qword [rcx]
mov rsi, rcx
xorps xmm0, xmm0
mov qword [rbp - 0x61], r15
xorps xmm1, xmm1
mov qword [rbp - 0x39], r15
lea r9d, [r15 + 8]
mov qword [rsp + 0x48], r15
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
movdqu xmmword [rbp - 0x59], xmm0
movdqu xmmword [rbp - 0x49], xmm1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x1400f7bae
mov ebx, r15d
jmp 0x1400f7cbe
test eax, eax
jne 0x1400f7c4f
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 0x1400f7c75
test eax, eax
je 0x1400f7c0d
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x1400f7c65
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x29]
call fcn.140052224
test eax, eax
js 0x1400f7c6e
lea r8, [rbp - 0x59]
mov rcx, rsi
lea rdx, [rbp - 0x29]
call fcn.1400f8e0c
mov ebx, eax
test eax, eax
js 0x1400f7c4b
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x69]
call fcn.1400f96c0
mov ebx, eax
test eax, eax
jns 0x1400f7bbc
mov ecx, eax
jmp 0x1400f7c67
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x1400f7bb9
mov ecx, ebx
call fcn.140079c40
jmp 0x1400f7cbe
mov ebx, 0x8004f807
jmp 0x1400f7c65
lea rdx, [rbp - 0x69]
mov qword [rbp - 0x79], r15
lea rcx, [rbp - 0x79]
mov qword [rbp - 0x71], r15
call fcn.140077fbc
mov rdx, r14
lea rcx, [rbp - 0x79]
call fcn.140077fbc
xor edx, edx
lea rcx, [rbp - 0x79]
call fcn.1400f9afc
mov rdi, qword [rbp - 0x71]
test rdi, rdi
je 0x1400f7cbe
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.140079c60
lea rcx, [rsp + 0x48]
call fcn.140069f74
lea rcx, [rbp - 0x59]
call fcn.1400f6968
xor edx, edx
lea rcx, [rbp - 0x69]
call fcn.1400f9afc
mov rdi, qword [rbp - 0x61]
test rdi, rdi
je 0x1400f7d00
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.14037a9a0
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400fb198
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 [0x140436b28]
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 0x1400fb252
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400fb238
mov edi, 0x80004005
jmp 0x1400fb246
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140079c40
jmp 0x1400fb341
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 0x1400fb227
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 0x1400fb227
mov rcx, qword [rbp + 0x1f]
lea r8, [rbp + 7]
call fcn.1400fd250
mov edi, eax
test eax, eax
jns 0x1400fb2d0
mov ecx, eax
call fcn.140079c40
mov rbx, qword [rbp + 7]
jmp 0x1400fb341
mov rbx, qword [rbp + 7]
mov r15d, r12d
mov esi, r12d
mov r14d, r12d
cmp dword [rbx], r12d
jbe 0x1400fb338
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 0x1400fb309
xor r12d, r12d
mov r15d, 1
mov esi, r12d
jmp 0x1400fb327
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 0x1400fb327
mov r15d, r12d
lea esi, [r12 + 1]
inc r14d
cmp r14d, dword [rbx]
jb 0x1400fb2e2
test esi, esi
jne 0x1400fb33d
test r15d, r15d
jne 0x1400fb33d
mov esi, 1
mov dword [r13], esi
mov ecx, edi
call fcn.140079c60
lea rcx, [rbp + 0xf]
call fcn.140069fec
lea rcx, [rbp + 0x17]
call fcn.140069fec
test rbx, rbx
je 0x1400fb373
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 0x1400fb382
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14037a9a0
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 0x1400ff244
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.140079c60
lea rcx, [rsi + 0x20]
call fcn.14006f8bc
xor ecx, ecx
call fcn.140079c60
xor ebx, ebx
test byte [rsi + 8], 1
je 0x1400ff394
lea r9, [rbp + 0x38]
xor edx, edx
lea r8, [0x1403d22c0]
mov rcx, rsi
call fcn.140101e1c
mov ebx, eax
test eax, eax
jns 0x1400ff2ad
mov ecx, eax
call fcn.140079c40
mov edi, dword [rbp + 0x30]
jmp 0x1400ff2b1
movzx edi, byte [rbp + 0x38]
mov ecx, ebx
call fcn.140079c60
lea eax, [rbx + 0x3ffb2cff]
cmp eax, 1
ja 0x1400ff2c7
xor edi, edi
xor ebx, ebx
test ebx, ebx
js 0x1400ff38d
test edi, edi
je 0x1400ff394
mov rcx, rsi
call fcn.1401009a0
mov ebx, eax
test eax, eax
jns 0x1400ff2ec
mov ecx, eax
jmp 0x1400ff38f
and qword [rbp + 0x20], 0
cmp dword [0x14043ffa0], 0
mov byte [rbp + 0x38], 0
jne 0x1400ff305
mov ecx, 0xc004d101
jmp 0x1400ff35b
and qword [rbp - 0x20], 0
lea rax, [0x140034ed8]
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 [0x140440188]
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 0x1400ff360
call fcn.140079c40
call fcn.1401652e4
mov ecx, eax
mov ebx, eax
call fcn.140079c60
lea rcx, [rbp + 0x20]
call fcn.140053010
test ebx, ebx
jns 0x1400ff382
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
test ebx, ebx
jns 0x1400ff394
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14010b050
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.1401a4e88
mov rsi, qword [rbp - 0x38]
mov edi, eax
test eax, eax
jns 0x14010b0a3
mov ecx, eax
call fcn.140079c40
jmp 0x14010b147
cmp dword [0x14043ffa0], 0
jne 0x14010b0b3
mov ebx, 0xc004d101
jmp 0x14010b104
test rsi, rsi
je 0x14010b0ff
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x14010b0ff
lea rcx, [0x140014a18]
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 0x14010b10b
jmp 0x14010b104
mov ebx, 0xc004d104
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
mov ecx, ebx
sub ecx, 0x4004d601
je 0x14010b137
cmp ecx, 1
je 0x14010b12e
mov edi, ebx
test ebx, ebx
jns 0x14010b13b
mov ecx, ebx
jmp 0x14010b099
mov dword [rbp - 0x3c], 1
jmp 0x14010b13b
and dword [rbp - 0x40], 0
test r14, r14
je 0x14010b147
mov rax, qword [rbp - 0x40]
mov qword [r14], rax
mov ecx, edi
call fcn.140079c60
test rsi, rsi
je 0x14010b15c
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 0x140157990
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140436b28]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, dword [rsp + 0x3c]
mov r14, r8
mov rbp, 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, rbp
lea r9d, [rbx + 0x24]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140157a0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401579f8
mov ebx, 0x80004005
jmp 0x140157a06
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140079c40
jmp 0x140157a1d
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x38], xmm0
mov edi, dword [rsp + 0x3c]
mov ecx, ebx
call fcn.140079c60
test ebx, ebx
js 0x140157a4d
cmp edi, 4
je 0x140157a86
cmp edi, 1
je 0x140157a86
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x1e
jb 0x1401579c3
mov ebx, 0x800705b4
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14037a9a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor eax, eax
cmp edi, 4
sete al
xor ebx, ebx
mov dword [r14], eax
jmp 0x140157a54
Function at 0x14015eb18
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
movsxd rdi, edx
mov rsi, rcx
mov qword [rbp + 0x20], rbx
cmp dword [rcx], edi
je 0x14015ec2b
mov r14d, dword [rcx + 4]
cmp edi, r14d
cmovl r14d, edi
test edx, edx
jle 0x14015ebf4
mov rcx, rdi
mov r15, rcx
shl r15, 3
mov rax, r15
shr rax, 3
cmp rax, rcx
je 0x14015eb80
mov ebx, 0x80070216
mov ecx, ebx
call fcn.140079c40
mov r15, qword [rbp + 0x20]
mov ecx, ebx
call fcn.140079c60
test ebx, ebx
jns 0x14015eb97
mov ecx, ebx
call fcn.140079c40
jmp 0x14015ec2b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, qword [rbp + 0x20]
mov rbx, rax
test r15, r15
je 0x14015ebcb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x14015ec83
mov qword [rbp + 0x20], rbx
test r14d, r14d
je 0x14015ebf4
mov rdx, qword [rsi + 8]
mov rcx, rbx
movsxd r8, r14d
shl r8, 3
call sub.msvcrt.dll_memcpy
mov rbx, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov r15, qword [rsi + 8]
test r15, r15
je 0x14015ec16
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
test rbx, rbx
cmovne rax, rbx
xor ebx, ebx
mov qword [rsi + 8], rax
mov dword [rsi + 4], r14d
mov dword [rsi], edi
mov ecx, ebx
call fcn.140079c60
and qword [rbp - 0x10], 0
lea rax, [0x140020d18]
xor r9d, r9d
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x20], 3
lea rdx, [rbp - 0x20]
mov qword [rbp - 8], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
mov ebx, 0x8007000e
jmp 0x14015eb8b
Function at 0x14015f424
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
and qword [rbp + 0x20], 0
mov rdi, rcx
and qword [rbp - 0x60], 0
lea rcx, [rbp - 0x58]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rax
mov r15, r9
mov rsi, r8
mov r14, rdx
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x1a8]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
lea r8, [rbp + 0x20]
mov rdx, rsi
mov rcx, rdi
call rax
mov ebx, eax
test eax, eax
js 0x14015f53a
movsd xmm1, qword [rbp - 0x48]
mov eax, 8
mov rbx, qword [rbp + 0x20]
mov word [rbp - 0x58], ax
mov qword [rbp - 0x50], r15
movups xmm0, xmmword [rbp - 0x58]
mov rax, qword [rbx]
movsd qword [rbp - 0x30], xmm1
movaps xmmword [rbp - 0x40], xmm0
mov rdi, qword [rax + 0x48]
mov rax, qword [0x1403c1610]
mov rcx, rdi
call rax
mov rax, rdi
lea rdx, [rbp - 0x40]
mov rcx, rbx
call rax
mov ebx, eax
test eax, eax
js 0x14015f53a
mov rax, qword [r14]
mov rbx, qword [rax + 0x88]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
lea rdx, [rbp - 0x60]
mov rcx, r14
call rax
mov ebx, eax
test eax, eax
js 0x14015f53a
mov rbx, qword [rbp - 0x60]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x40]
mov rax, qword [0x1403c1610]
mov rcx, rdi
call rax
mov rdx, qword [rbp + 0x20]
mov rax, rdi
xor r8d, r8d
mov rcx, rbx
call rax
mov ebx, eax
test eax, eax
jns 0x14015f541
mov ecx, eax
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
and qword [rbp - 0x10], 0
lea rax, [0x14002ac58]
mov r14d, 3
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x60]
mov qword [rbp - 0x20], r14
mov edi, 0xb9
mov qword [rbp - 8], rax
xor r9d, r9d
lea rdx, [rbp - 0x20]
lea esi, [r14 + 0x1d]
mov ecx, edi
mov r8d, esi
call sub.ntdll.dll_NtQuerySystemInformation
and qword [rbp - 0x10], 0
lea rax, [0x14002a918]
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x20], r14
xor r9d, r9d
mov qword [rbp - 8], rax
mov r8d, esi
mov ecx, edi
call sub.ntdll.dll_NtQuerySystemInformation
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14015f5d8
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor edi, edi
mov r15, r9
mov qword [rbp - 0x38], rdi
mov esi, edi
mov qword [rbp - 0x30], rdi
mov r12, r8
mov qword [rbp - 0x40], rdi
mov r13, rdx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdi + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14015f657
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
lea rax, [0x1403a7238]
mov qword [r14], rax
mov dword [r14 + 0x18], 1
lock inc dword [0x14043f384]
jmp 0x14015f65a
mov r14, rdi
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x14015f680
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rax, qword [0x1403c1610]
mov rcx, rdi
call rax
mov rax, rdi
mov rcx, rbx
call rax
xor edi, edi
mov qword [rbp - 0x40], r14
test r14, r14
jne 0x14015f697
mov esi, 0x8007000e
mov ecx, esi
call fcn.140079c40
jmp 0x14015f69f
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x30], r14
mov ecx, esi
call fcn.140079c60
mov r14d, 3
mov qword [rbp - 0x18], rdi
lea rax, [0x14002a298]
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x28]
lea rax, [rbp - 0x40]
xor r9d, r9d
lea r8d, [r14 + 0x1d]
mov qword [rbp - 0x10], rax
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
test esi, esi
jns 0x14015f6e4
mov ecx, esi
jmp 0x14015f717
mov rbx, qword [rbp - 0x30]
mov rax, qword [rbx]
mov rdi, qword [rax]
mov rax, qword [0x1403c1610]
mov rcx, rdi
call rax
mov rax, rdi
lea r8, [rbp - 0x38]
lea rdx, [0x1403c7450]
mov rcx, rbx
call rax
xor edi, edi
mov esi, eax
test eax, eax
jns 0x14015f71c
mov ecx, eax
call fcn.140079c40
mov ecx, esi
call fcn.140079c60
xor r9d, r9d
mov qword [rbp - 0x28], r14
lea rax, [0x14002a298]
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x28]
lea rax, [rbp - 0x30]
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
mov qword [rbp - 0x10], rax
call sub.ntdll.dll_NtQuerySystemInformation
test esi, esi
jns 0x14015f760
mov ecx, esi
call fcn.140079c40
jmp 0x14015f7b5
mov rax, qword [rbp + 0x68]
mov r8, r12
mov r9, qword [rbp - 0x38]
mov rdx, r13
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.140162680
mov esi, eax
test eax, eax
jns 0x14015f798
mov ecx, eax
jmp 0x14015f759
mov rax, qword [rbp - 0x38]
mov rcx, qword [rbp + 0x50]
mov edx, dword [rax + 0x10]
mov dword [rcx], edx
mov rcx, qword [rax + 8]
mov qword [rax + 8], rdi
and qword [rax + 0x10], 0
mov qword [r15], rcx
mov ecx, esi
call fcn.140079c60
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x14015f7e0
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rax, qword [0x1403c1610]
mov rcx, rdi
call rax
mov rax, rdi
mov rcx, rbx
call rax
lea r11, [rsp + 0x80]
mov eax, esi
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