joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800190e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x48
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
cmp byte [rcx + 0x3c], sil
je 0x1800191fb
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x180019135
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1800191e4
lea rdx, [rsp + 0x90]
call fcn.180013e00
mov r14, rax
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x180019160
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop dword [rax]
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov rcx, r12
cmp r8d, 0x400
jbe 0x1800191a7
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800191b7
add ebx, dword [rsp + 0x30]
jmp 0x1800191c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1800191c8
cmp ebx, edi
je 0x1800191cd
jmp 0x180019180
mov esi, 0x6d
mov dword [rsp + 0x30], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, r14
call fcn.18001add0
nop
jmp 0x1800191f2
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
add rsp, 0x48
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x180019210
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x78], esi
cmp byte [rcx + 0x3c], sil
je 0x18001933a
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x180019266
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, rbx
mov rcx, rdi
call fcn.180013d30
mov r13, rax
mov rdx, rax
lea rcx, [0x18004c1c8]
call fcn.180013c30
mov r14, rax
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x180019290
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop dword [rax]
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x78]
mov rcx, r12
cmp r8d, 0x400
jbe 0x1800192d7
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800192e7
add ebx, dword [rsp + 0x78]
jmp 0x1800192f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1800192f8
cmp ebx, edi
je 0x1800192fd
jmp 0x1800192b0
mov esi, 0x6d
mov dword [rsp + 0x78], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test r13, r13
je 0x180019318
mov rcx, r13
call fcn.18001add0
test r14, r14
je 0x180019326
mov rcx, r14
call fcn.18001add0
nop
jmp 0x180019331
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x180019360
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x78], esi
cmp byte [rcx + 0x3c], sil
je 0x180019458
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x1800193b0
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, rbx
mov rcx, rdi
call fcn.180013e00
mov r14, rax
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1800193c5
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x78]
mov rcx, r12
cmp r8d, 0x400
jbe 0x180019407
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180019417
add ebx, dword [rsp + 0x78]
jmp 0x180019422
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x180019428
cmp ebx, edi
je 0x18001942d
jmp 0x1800193e0
mov esi, 0x6d
mov dword [rsp + 0x78], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, r14
call fcn.18001add0
nop
jmp 0x18001944f
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1800337d4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180033804
xor eax, eax
jmp 0x1800338c7
mov rbp, rbx
cmp word [rax], si
je 0x180033829
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180033810
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18003380c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180032078
movsxd r14, eax
test eax, eax
jne 0x180033867
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800337fd
mov rcx, r14
call fcn.18002f410
mov rdi, rax
test rax, rax
jne 0x180033880
xor ecx, ecx
call fcn.18002d994
jmp 0x18003385c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180032078
test eax, eax
jne 0x1800338b1
mov rcx, rdi
call fcn.18002d994
jmp 0x1800338bb
xor ecx, ecx
call fcn.18002d994
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180036820
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18002b198
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1800368c1
cmp ebx, dword [rsp + 0x30]
je 0x1800368ba
test esi, esi
je 0x1800368ba
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180036895
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800368a2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18003687f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800368a6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800368c3
mov eax, 1
jmp 0x1800368c3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18003a13c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.18002171c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18003a1c6
cmp byte [rbp - 0x21], r15b
je 0x18003a1c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18003a1fc
call fcn.18002d210
test eax, eax
jne 0x18003a1e8
cmp byte [rbp - 0x21], r15b
je 0x18003a1e0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18003a1fc
cmp byte [rbp - 0x21], r15b
je 0x18003a1f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.180028c44
test eax, eax
jne 0x18003a29c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18002171c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18003a23b
cmp byte [rbp - 0x21], r15b
je 0x18003a270
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18003a270
call fcn.18002d210
test eax, eax
jne 0x18003a25c
cmp byte [rbp - 0x21], r15b
je 0x18003a255
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18003a270
cmp byte [rbp - 0x21], r15b
je 0x18003a26d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.180028c44
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18003a29c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18003a29f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18003a2ad
mov rcx, rdi
call fcn.18002d994
cmp byte [rbp + 0x3f], r15b
je 0x18003a2bc
mov rcx, qword [rbp + 0x27]
call fcn.18002d994
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x18003b674
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800561a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18003b6cb
cmp word [rdx], r13w
jne 0x18003b6cb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18003b6d0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18003b7f5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18003b816
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18003b709
mov rdx, r9
mov word [rbx], cx
jmp 0x18003b730
cmp r9, r8
jae 0x18003b740
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18003b6ea
jmp 0x18003b7f5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18003b7ea
cmp dword [rsp + 0x80], esi
je 0x18003b7ea
lea r8, [0x1800561a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18003b7c2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18003b792
mov word [rbx], r13w
jmp 0x18003b7f2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18003b79f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18003b7f2
cmp word [rsp + 0x70], r13w
jne 0x18003b7cf
cmp rbx, r14
je 0x18003b78c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18003cab0
cmp word [rsp + 0x70], r13w
je 0x18003b7f5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800561a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18003b7ef
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18003b7f5
Function at 0x140004320
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x110
mov rdi, rcx
mov r12, qword [0x1400f7448]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0x108], rax
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.140004440
lea rcx, [rsp + 0xf0]
mov rdx, rsi
call fcn.140004570
lea rdx, str.Firefox
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x14000440a
mov r15, rax
mov rcx, qword [rdi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r14, rax
lea rsi, [rax + 8]
mov rcx, rsi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.ntdll.dll_memset
mov ebp, dword [rdi + 0xc]
mov dword [rbx], ebp
mov eax, dword [rdi + 8]
mov dword [rbx + 4], eax
lea rcx, [rbx + 8]
mov rdx, qword [rdi]
mov r8, r14
call sub.ntdll.dll_memcpy
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], 0
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, r15
mov dx, 1
xor r8d, r8d
mov r9d, ebp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call sub.mozglue.dll_free
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rcx, [rsp + 0x50]
call fcn.140004730
mov rax, qword [rsp + 0x108]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x14000443a
add rsp, 0x110
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140076380
int3
Function at 0x140004570
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov r14, rcx
mov r15, qword [0x1400f7448]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, qword [rdx + 0x20]
test rbx, rbx
je 0x1400045ac
movzx ecx, byte [rdi + 0x58]
mov eax, ecx
and al, 1
je 0x140004613
mov rcx, qword [rdi + 0x60]
jmp 0x140004616
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMozillaFirefoxLauncher
mov rcx, 0xffffffff80000001
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400046c0
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x79
jmp 0x1400046f2
shr rcx, 1
lea rsi, [rdi + 0x58]
test rcx, rcx
jne 0x140004649
lea rdx, [rdi + 0x28]
mov rcx, rsi
call fcn.14007c680
lea rdx, str.Browser
mov r8d, 8
mov rcx, rsi
call fcn.14007b210
mov al, byte [rdi + 0x58]
and al, 1
mov rbx, qword [rdi + 0x20]
mov qword [rsp + 0x50], 0
test al, al
je 0x14000465c
mov rsi, qword [rdi + 0x68]
jmp 0x140004660
add rsi, 2
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 8
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
mov r9d, 0xb
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400046b2
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r14 + 0x10], 1
lea rax, str._var_tmp_build_firefox_0553bfb9087f_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [r14], rax
mov dword [r14 + 8], 0x4e
jmp 0x140004705
mov byte [0x14014f010], 0
mov byte [r14 + 0x10], 0
jmp 0x140004709
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1400046d4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi + 0x20], rbx
mov eax, dword [rsp + 0x4c]
add eax, 0xffffffff
cmp eax, 1
jbe 0x14000459c
mov ecx, 0x80070507
mov eax, 0x88
mov byte [r14 + 0x10], 1
lea rdx, str._var_tmp_build_firefox_0553bfb9087f_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [r14], rdx
mov dword [r14 + 8], eax
mov dword [r14 + 0xc], ecx
mov rax, qword [rsp + 0x58]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140004728
mov rax, r14
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140076380
int3
Function at 0x14000cf90
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, qword [0x1400f7448]
mov rax, qword [rbx]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx], 0
je 0x14000d04c
mov rdi, r9
mov rsi, r8
mov r14, rdx
mov r13, rcx
mov al, byte [0x1401502f0]
test al, al
je 0x14000d082
add rdi, rsi
cmp rdi, rsi
jbe 0x14000d04c
mov ebx, dword [0x140152800]
lea r12d, [rbx - 1]
mov rbp, r12
not rbp
mov r15, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
nop word cs:[rax + rax]
nop
mov qword [rsp + 0x30], 0
mov rcx, qword [r13]
mov r9, rdi
sub r9, rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov r8, r14
call r15
test eax, eax
jne 0x14000d06f
mov rax, rdi
and rax, rbp
mov rcx, rdi
sub rcx, rbx
test edi, r12d
cmovne rcx, rax
mov rdi, rcx
cmp rcx, rsi
ja 0x14000d000
mov rbx, qword [0x1400f7448]
xor eax, eax
mov rdx, qword [rsp + 0x60]
xor rdx, rsp
mov rcx, qword [rbx]
cmp rcx, rdx
jne 0x14000d07d
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x30]
mov rbx, qword [0x1400f7448]
jmp 0x14000d04e
call fcn.140076380
lea rcx, [0x1401502f0]
call fcn.1400c0f74
test eax, eax
je 0x14000cfd6
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140152800], eax
lea rcx, [0x1401502f0]
call fcn.1400c104b
jmp 0x14000cfd6
Function at 0x14000d340
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd0
mov r15, qword [0x1400f7448]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0xc8], rax
cmp byte [rcx + 0x34], 0
je 0x14000d553
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test byte [rcx + 0x30], 4
jne 0x14000d394
lea rcx, [rsp + 0xb0]
mov rdx, rbx
mov r8, rsi
call fcn.14000d570
jmp 0x14000d3eb
mov ecx, 0x58
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov qword [rax + 8], 0
lea rcx, [0x1400f7aa8]
mov qword [rax], rcx
lea rcx, [rax + 0x10]
mov qword [rax + 0x10], rbx
movaps xmm0, xmmword [0x1400f7570]
movups xmmword [rax + 0x20], xmm0
lea rdx, [rax + 0x30]
mov qword [rax + 0x18], rdx
mov qword [rax + 0x50], rsi
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0xc0], 0
xor esi, esi
lea rcx, [rsp + 0xa0]
mov rdx, rbx
xor r8d, r8d
call fcn.14000d930
cmp byte [rsp + 0xa8], 0
je 0x14000d503
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.140011300
cmp byte [rsp + 0x98], 0
je 0x14000d501
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rsp + 0x48], xmm0
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x8c]
mov qword [rsp + 0x5c], rax
mov al, byte [rsp + 0x94]
mov byte [rsp + 0x64], al
mov dword [rsp + 0x70], 0
mov byte [rsp + 0x94], 0
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0xb0]
lea r8, [rsp + 0xa0]
lea r9, [rsp + 0x38]
mov rcx, rbx
call fcn.14000da40
cmp qword [rdi], 0
setne sil
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000d4cf
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x14000d4cf
lea r9, [rsp + 0x40]
mov edx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp byte [rsp + 0x98], 0
je 0x14000d503
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000d503
mov r8d, dword [rsp + 0x70]
test r8d, r8d
je 0x14000d503
lea r9, [rsp + 0x70]
mov edx, dword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x14000d503
xor esi, esi
mov rdi, qword [rsp + 0xb8]
test rdi, rdi
je 0x14000d52f
mov eax, 0xffffffff
lock xadd dword [rdi + 8], eax
test eax, eax
jne 0x14000d52f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rcx, rdi
call fcn.140077550
mov rax, qword [rsp + 0xc8]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x14000d563
mov eax, esi
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov dword [0], 0x2f1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
call fcn.140076380
int3
Function at 0x14000d930
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, rdx
mov rsi, rcx
mov r15, qword [0x1400f7448]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x60], rax
test r8, r8
je 0x14000d966
mov rcx, rsi
mov rdx, rdi
call fcn.1400107c0
jmp 0x14000d9c5
cmp byte [rdi + 0x34], 0
je 0x14000d9e5
mov ebx, dword [rdi + 0x30]
and ebx, 1
shl rbx, 0x1e
mov al, byte [0x1401502f8]
test al, al
je 0x14000d9fa
mov ebp, dword [0x140152804]
mov dword [rsp + 0x20], ebx
lea r14, [rsp + 0x30]
mov rcx, r14
mov rdx, rdi
mov r8d, ebp
mov r9, rbx
call fcn.140010a60
mov rcx, rdi
mov edx, ebp
mov r8, r14
call fcn.140010c30
test eax, eax
je 0x14000d9ba
mov qword [rsi], rdi
mov byte [rsi + 8], 1
jmp 0x14000d9c5
mov qword [rsi], 0
mov byte [rsi + 8], 0
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x14000d9f5
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dword [0], 0x2f1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
call fcn.140076380
lea rcx, [0x1401502f8]
call fcn.1400c0f74
test eax, eax
je 0x14000d980
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x58]
mov dword [0x140152804], eax
lea rcx, [0x1401502f8]
call fcn.1400c104b
jmp 0x14000d980
Function at 0x140010240
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r14, qword [0x1400f7448]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r15b, 1
test dl, dl
je 0x140010331
mov rdi, rcx
mov rsi, qword [rcx + 0x40]
movsx rbx, dl
mov al, byte [0x1401502f0]
test al, al
je 0x140010356
add rbx, rsi
mov ebp, dword [0x140152800]
mov rax, rsi
shr rax, 0x20
je 0x1400102a1
mov rax, rsi
xor edx, edx
div rbp
mov rcx, rax
jmp 0x1400102a9
mov eax, esi
xor edx, edx
div ebp
mov ecx, eax
mov rax, rbx
shr rax, 0x20
je 0x1400102c1
mov rax, rbx
xor edx, edx
div rbp
cmp rcx, rax
jne 0x1400102cc
jmp 0x140010331
mov eax, ebx
xor edx, edx
div ebp
cmp rcx, rax
je 0x140010331
mov rax, qword [rdi]
mov rcx, qword [rax]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x38]
mov rdx, rbx
xor r8d, r8d
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x140010320
xor r15d, r15d
cmp qword [rsp + 0x68], 0
je 0x140010331
cmp dword [rsp + 0x48], 0
je 0x140010331
cmp dword [rsp + 0x58], 0x1000
jne 0x140010331
cmp dword [rsp + 0x5c], 1
setne r15b
jmp 0x140010331
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
xor r15d, r15d
mov rax, qword [rsp + 0x70]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140010351
mov eax, r15d
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140076380
lea rcx, [0x1401502f0]
call fcn.1400c0f74
test eax, eax
je 0x140010282
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x3c]
mov dword [0x140152800], eax
lea rcx, [0x1401502f0]
call fcn.1400c104b
jmp 0x140010282