joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cfc0
Capabilities:
Delete registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov r14, qword [0x1401054a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x28]
call fcn.14000c410
cmp byte [rsp + 0x38], 0
jne 0x14000cffd
cmp dword [rsp + 0x28], 2
je 0x14000d0f4
movzx ecx, byte [rdi + 0x70]
mov eax, ecx
and al, 1
je 0x14000d012
mov rcx, qword [rdi + 0x78]
test rcx, rcx
jne 0x14000d045
jmp 0x14000d01a
shr rcx, 1
test rcx, rcx
jne 0x14000d045
lea rbx, [rdi + 0x70]
lea rdx, [rdi + 0x28]
mov rcx, rbx
call fcn.14007f780
lea rdx, str.Launcher
mov r8d, 9
mov rcx, rbx
call fcn.14007e5a0
movzx eax, byte [rdi + 0x70]
and al, 1
mov rcx, qword [rdi + 0x20]
test al, al
je 0x14000d056
mov rdx, qword [rdi + 0x80]
jmp 0x14000d05a
lea rdx, [rdi + 0x72]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x14000d0fa
movzx ecx, byte [rdi + 0x58]
mov eax, ecx
and al, 1
je 0x14000d080
mov rcx, qword [rdi + 0x60]
test rcx, rcx
jne 0x14000d0b3
jmp 0x14000d088
shr rcx, 1
test rcx, rcx
jne 0x14000d0b3
lea rbx, [rdi + 0x58]
lea rdx, [rdi + 0x28]
mov rcx, rbx
call fcn.14007f780
lea rdx, str.Browser
mov r8d, 8
mov rcx, rbx
call fcn.14007e5a0
movzx eax, byte [rdi + 0x58]
and al, 1
mov rcx, qword [rdi + 0x20]
test al, al
je 0x14000d0c1
mov rdx, qword [rdi + 0x68]
jmp 0x14000d0c5
lea rdx, [rdi + 0x5a]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x14000d0fa
lea rax, [rdi + 0x10]
cmp byte [rdi + 0x18], 0
je 0x14000d0e0
mov byte [rdi + 0x18], 0
movzx ecx, byte [rax + 8]
mov byte [rdi + 8], cl
mov rax, qword [rax]
mov qword [rdi], rax
mov byte [0x140145010], 1
mov byte [rsi + 0x10], 0
jmp 0x14000d120
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_1d8abcb1f7a7_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x8a
mov dword [rsi + 0xc], ecx
mov rax, qword [rsp + 0x40]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14000d13d
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400d58e0
int3
Function at 0x14000d250
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov r14, qword [0x1401054a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx ecx, byte [rdx + 0x70]
mov eax, ecx
and al, 1
je 0x14000d286
mov rcx, qword [rdi + 0x78]
test rcx, rcx
jne 0x14000d2b9
jmp 0x14000d28e
shr rcx, 1
test rcx, rcx
jne 0x14000d2b9
lea rbx, [rdi + 0x70]
lea rdx, [rdi + 0x28]
mov rcx, rbx
call fcn.14007f780
lea rdx, str.Launcher
mov r8d, 9
mov rcx, rbx
call fcn.14007e5a0
movzx eax, byte [rdi + 0x70]
and al, 1
mov dword [rsp + 0x34], 8
mov rcx, qword [rdi + 0x20]
test al, al
je 0x14000d2d2
mov rdi, qword [rdi + 0x80]
jmp 0x14000d2d6
add rdi, 0x72
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000d315
cmp eax, 2
jne 0x14000d32e
mov byte [rsi + 0x10], 0
mov qword [rsi], 0
mov byte [rsi + 8], 0
jmp 0x14000d372
cmp dword [rsp + 0x30], 0xb
jne 0x14000d356
mov rax, qword [rsp + 0x38]
mov byte [rsi + 0x10], 0
mov qword [rsi], rax
mov byte [rsi + 8], 1
jmp 0x14000d372
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_1d8abcb1f7a7_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x42
mov dword [rsi + 0xc], ecx
jmp 0x14000d372
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_1d8abcb1f7a7_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007065d00000046
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0x40]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14000d38f
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400d58e0
int3
Function at 0x14000d3a0
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov r14, qword [0x1401054a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx ecx, byte [rdx + 0x58]
mov eax, ecx
and al, 1
je 0x14000d3d6
mov rcx, qword [rdi + 0x60]
test rcx, rcx
jne 0x14000d409
jmp 0x14000d3de
shr rcx, 1
test rcx, rcx
jne 0x14000d409
lea rbx, [rdi + 0x58]
lea rdx, [rdi + 0x28]
mov rcx, rbx
call fcn.14007f780
lea rdx, str.Browser
mov r8d, 8
mov rcx, rbx
call fcn.14007e5a0
movzx eax, byte [rdi + 0x58]
and al, 1
mov dword [rsp + 0x34], 8
mov rcx, qword [rdi + 0x20]
test al, al
je 0x14000d41f
mov rdi, qword [rdi + 0x68]
jmp 0x14000d423
add rdi, 0x5a
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000d462
cmp eax, 2
jne 0x14000d47b
mov byte [rsi + 0x10], 0
mov qword [rsi], 0
mov byte [rsi + 8], 0
jmp 0x14000d4bf
cmp dword [rsp + 0x30], 0xb
jne 0x14000d4a3
mov rax, qword [rsp + 0x38]
mov byte [rsi + 0x10], 0
mov qword [rsi], rax
mov byte [rsi + 8], 1
jmp 0x14000d4bf
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_1d8abcb1f7a7_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x42
mov dword [rsi + 0xc], ecx
jmp 0x14000d4bf
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_1d8abcb1f7a7_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007065d00000046
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0x40]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14000d4dc
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400d58e0
int3
Function at 0x14000fbd0
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 r15, qword [0x1401054a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx], 0
je 0x14000fc8b
mov r14, r9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
movzx eax, byte [0x140146360]
test al, al
je 0x14000fcc1
add r14, rsi
cmp r14, rsi
jbe 0x14000fc8b
mov r13d, dword [0x140148868]
lea r12d, [r13 - 1]
mov rbp, r12
not rbp
mov r15, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
nop word [rax + rax]
mov qword [rsp + 0x30], 0
mov rcx, qword [rbx]
mov r9, r14
sub r9, rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov r8, rdi
call r15
test eax, eax
jne 0x14000fcae
mov rax, r14
and rax, rbp
mov rcx, r14
sub rcx, r13
test r14d, r12d
cmovne rcx, rax
mov r14, rcx
cmp rcx, rsi
ja 0x14000fc40
mov r15, qword [0x1401054a8]
xor eax, eax
mov rdx, qword [rsp + 0x60]
xor rdx, rsp
mov rcx, qword [r15]
cmp rcx, rdx
jne 0x14000fcbc
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 r15, qword [0x1401054a8]
jmp 0x14000fc8d
call fcn.1400d58e0
lea rcx, [0x140146360]
call fcn.1400d3f14
test eax, eax
je 0x14000fc17
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140148868], eax
lea rcx, [0x140146360]
call fcn.1400d3fef
jmp 0x14000fc17
Function at 0x140012a90
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r15, qword [0x1401054a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov sil, 1
test dl, dl
je 0x140012b83
mov rdi, rcx
mov r14, qword [rcx + 0x40]
movsx rbx, dl
movzx eax, byte [0x140146360]
test al, al
je 0x140012ba6
add rbx, r14
mov r8d, dword [0x140148868]
mov rax, r14
shr rax, 0x20
je 0x140012af2
mov rax, r14
xor edx, edx
div r8
mov rcx, rax
jmp 0x140012afc
mov eax, r14d
xor edx, edx
div r8d
mov ecx, eax
mov rax, rbx
shr rax, 0x20
je 0x140012b14
mov rax, rbx
xor edx, edx
div r8
cmp rcx, rax
jne 0x140012b20
jmp 0x140012b83
mov eax, ebx
xor edx, edx
div r8d
cmp rcx, rax
je 0x140012b83
mov rax, qword [rdi]
mov rcx, qword [rax]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x30]
mov rdx, rbx
xor r8d, r8d
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x140012b73
xor esi, esi
cmp qword [rsp + 0x60], 0
je 0x140012b83
cmp dword [rsp + 0x40], 0
je 0x140012b83
cmp dword [rsp + 0x50], 0x1000
jne 0x140012b83
cmp dword [rsp + 0x54], 1
setne sil
jmp 0x140012b83
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
xor esi, esi
mov rax, qword [rsp + 0x68]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140012ba1
mov eax, esi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400d58e0
lea rcx, [0x140146360]
call fcn.1400d3f14
test eax, eax
je 0x140012ad2
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140148868], eax
lea rcx, [0x140146360]
call fcn.1400d3fef
jmp 0x140012ad2
Function at 0x140012f40
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, 0x58
mov rsi, rcx
mov r14, qword [0x1401054a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x50], rax
test r9, r9
je 0x140013034
mov ebp, dword [rsp + 0xc0]
test ebp, ebp
je 0x140013034
mov rbx, r9
mov edi, r8d
movzx eax, byte [0x140146368]
test al, al
je 0x14001307b
mov r13d, ebp
xor r12d, r12d
mov rax, rbx
sub rax, r13
cmovae r12, rax
cmp r12, 0x100001
mov eax, 0x100000
cmovb r12, rax
cmp r13, rbx
cmova r12, rax
mov r15d, dword [0x14014886c]
movzx eax, byte [0x140146370]
test al, al
je 0x1400130b5
mov rcx, qword [0x140148870]
xor eax, eax
mov rdx, rbx
add rdx, r13
cmovae rax, rdx
cmp rcx, rax
cmovb rax, rcx
add rbx, r13
cmovb rax, rcx
mov edx, edi
cmp rax, rdx
jb 0x140013034
mov r8, r12
neg r8
lea rcx, [r15 - 1]
and rcx, r8
add rcx, r12
xor r8d, r8d
sub rax, rdx
cmovae r8, rax
neg r15
and r15, r8
sub r15, rcx
jbe 0x140013034
test rcx, rcx
je 0x140013066
cmp r15, 0xffffffffffffffff
je 0x140013066
mov qword [rsi], r15
mov qword [rsi + 8], rcx
mov byte [rsi + 0x10], 1
jmp 0x140013042
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rax, qword [rsp + 0x50]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140013076
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [0], 0x336
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
call fcn.1400d58e0
lea rcx, [0x140146368]
call fcn.1400d3f14
test eax, eax
je 0x140012f92
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
mov dword [0x14014886c], eax
lea rcx, [0x140146368]
call fcn.1400d3fef
jmp 0x140012f92
lea rcx, [0x140146370]
call fcn.1400d3f14
test eax, eax
je 0x140012fcf
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x30]
mov qword [0x140148870], rax
lea rcx, [0x140146370]
call fcn.1400d3fef
jmp 0x140012fcf
Function at 0x140013100
Capabilities:
Get system information on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14, qword [0x1401054a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebx, ebx
test edx, edx
je 0x140013135
mov rsi, rcx
cmp qword [rcx], 0
je 0x140013135
cmp qword [rsi + 0x18], 0
je 0x140013156
mov ebx, dword [rsi + 0x20]
mov rax, qword [rsp + 0x68]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140013235
mov eax, ebx
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rdi, r8
mov ebp, edx
movzx eax, byte [0x140146368]
test al, al
je 0x14001323a
mov ecx, dword [0x14014886c]
xor ebx, ebx
mov eax, ebp
xor edx, edx
div ecx
sub ecx, edx
test edx, edx
cmove ecx, edx
add ecx, ebp
mov dword [rsi + 0x20], ecx
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x28], 0
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x4000040
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsi + 8], rax
test rax, rax
je 0x14001321d
mov qword [rsp + 0x20], 0
xor ebx, ebx
mov rcx, rax
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x10], rax
test rax, rax
je 0x140013228
mov rax, qword [rsi + 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov rdx, qword [rsi]
mov r8d, dword [rsi + 0x20]
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov rcx, rsi
call fcn.140013280
mov qword [rsi + 0x18], rax
test rax, rax
jne 0x140013132
jmp 0x140013135
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140013135
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
jmp 0x140013135
call fcn.1400d58e0
lea rcx, [0x140146368]
call fcn.1400d3f14
test eax, eax
je 0x14001316a
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x60]
mov dword [0x14014886c], eax
lea rcx, [0x140146368]
call fcn.1400d3fef
jmp 0x14001316a
Function at 0x1400134e0
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, 0x88
mov rbx, r9
mov rsi, r8
mov rdi, rdx
mov r13, qword [0x1401054a8]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [0x140146368]
test al, al
je 0x140013740
xor eax, eax
test rsi, rsi
je 0x140013718
mov rbp, qword [rsp + 0xf0]
cmp rbp, rbx
jbe 0x140013718
mov r15d, dword [0x14014886c]
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0x44]
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand_s
mov rax, rbp
sub rax, rbx
sub rax, rsi
mov rcx, rax
shr rcx, 0x20
je 0x140013572
xor edx, edx
div r15
mov rcx, rax
jmp 0x140013579
xor edx, edx
div r15d
mov ecx, eax
mov r14d, dword [rsp + 0x44]
inc rcx
cmp r14, rcx
jb 0x140013590
mov eax, r14d
xor edx, edx
div ecx
mov r14d, edx
mov qword [rsp + 0x38], r15
imul r14, r15
add r14, rbx
sub rbp, rsi
cmp r14, rbp
jbe 0x140013653
cmp r14, rbx
mov r13, qword [0x1401054a8]
jbe 0x140013710
dec qword [rsp + 0x38]
lea r12, [rsp + 0x78]
lea r15, [rsp + 0x48]
jmp 0x1400135dc
add rbx, rcx
cmp rbx, r14
jae 0x140013710
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 0x30
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
mov r9, r15
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x140013702
cmp qword [rsp + 0x78], 0x30
jne 0x140013710
cmp dword [rsp + 0x68], 0x10000
mov rcx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x60]
jne 0x1400135d0
mov rdx, rcx
neg rdx
and rdx, qword [rsp + 0x38]
lea r8, [rdx + rcx]
mov rax, rbx
sub rax, rdx
cmp rax, rsi
mov eax, 0
cmovae rax, r8
cmp rbx, rdx
jb 0x1400135d0
test rax, rax
je 0x1400135d0
jmp 0x140013718
mov rax, qword [rsp + 0x38]
lea r12, [rax - 1]
lea r13, [rsp + 0x78]
lea r15, [rsp + 0x48]
mov rdx, r14
jmp 0x14001367c
add rdx, rcx
cmp rdx, rbp
ja 0x1400135a8
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 0x30
mov rcx, rdi
xor r8d, r8d
mov r9, r15
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x1400136e3
cmp qword [rsp + 0x78], 0x30
jne 0x1400136f1
cmp dword [rsp + 0x68], 0x10000
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
jne 0x140013670
mov r8, rcx
neg r8
and r8, r12
lea r9, [r8 + rcx]
mov rax, rdx
sub rax, r8
cmp rax, rsi
mov eax, 0
cmovae rax, r9
cmp rdx, r8
jb 0x140013670
test rax, rax
je 0x140013670
jmp 0x1400136f9
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov r13, qword [0x1401054a8]
jmp 0x140013718
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
mov rdx, qword [r13]
cmp rdx, rcx
jne 0x14001377a
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140146368]
call fcn.1400d3f14
test eax, eax
je 0x140013521
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x70]
mov dword [0x14014886c], eax
lea rcx, [0x140146368]
call fcn.1400d3fef
jmp 0x140013521
call fcn.1400d58e0
int3
Function at 0x140013920
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov r15, qword [0x1401054a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x58], rax
movdqu xmm1, xmmword [rcx]
movdqu xmm0, xmmword [rcx + 0x10]
pxor xmm2, xmm2
movdqa xmm3, xmm0
pcmpeqd xmm3, xmm2
pshufd xmm4, xmm3, 0xb1
pand xmm4, xmm3
pcmpeqd xmm1, xmm2
pshufd xmm2, xmm1, 0xb1
pand xmm2, xmm1
packssdw xmm2, xmm4
movmskps eax, xmm2
test eax, eax
je 0x140013997
xor edi, edi
mov rax, qword [rsp + 0x58]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140013a47
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rsi, rcx
lea ecx, [rdx + r8]
dec ecx
mov eax, dword [rsi + 0x24]
mov dil, 1
cmp ecx, eax
jb 0x140013975
cmp eax, dword [rsi + 0x20]
jae 0x140013973
movq rbx, xmm0
add rbx, rax
movzx eax, byte [0x140146360]
test al, al
je 0x140013a4c
mov edx, dword [0x140148868]
mov rcx, rbx
mov r8d, 0x1000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140013973
mov rbx, qword [rsi]
mov r14d, dword [rsi + 0x24]
add r14, qword [rsi + 0x18]
movzx eax, byte [0x140146360]
test al, al
je 0x140013a86
mov r8d, dword [0x140148868]
mov dword [rsp + 0x20], 0x20
mov rcx, rbx
mov rdx, r14
mov r9d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x140013973
movzx eax, byte [0x140146360]
test al, al
je 0x140013ac0
mov eax, dword [0x140148868]
add dword [rsi + 0x24], eax
jmp 0x140013975
call fcn.1400d58e0
lea rcx, [0x140146360]
call fcn.1400d3f14
test eax, eax
je 0x1400139c6
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x2c]
mov dword [0x140148868], eax
lea rcx, [0x140146360]
call fcn.1400d3fef
jmp 0x1400139c6
lea rcx, [0x140146360]
call fcn.1400d3f14
test eax, eax
je 0x140013a00
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x2c]
mov dword [0x140148868], eax
lea rcx, [0x140146360]
call fcn.1400d3fef
jmp 0x140013a00
lea rcx, [0x140146360]
call fcn.1400d3f14
test eax, eax
je 0x140013a39
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x2c]
mov dword [0x140148868], eax
lea rcx, [0x140146360]
call fcn.1400d3fef
jmp 0x140013a39
Function at 0x140015270
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 r14, r9
mov r15, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401054a8]
mov rax, qword [rax]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rcx], rdx
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 2
lea rax, [rcx + 0x20]
mov qword [rcx + 8], rax
movzx eax, byte [0x140146360]
test al, al
je 0x1400153ee
mov ebx, dword [0x140148868]
lea rax, [r15 + r14]
dec rax
mov rcx, rax
shr rcx, 0x20
je 0x1400152e8
xor edx, edx
div rbx
mov r14, rax
jmp 0x1400152ef
xor edx, edx
div ebx
mov r14d, eax
mov rax, r15
shr rax, 0x20
je 0x140015305
mov rax, r15
xor edx, edx
div rbx
mov r15, rax
jmp 0x14001530f
mov eax, r15d
xor edx, edx
div ebx
mov r15d, eax
inc r14
sub r14, r15
je 0x1400153c6
lea rax, [rsi + 8]
mov qword [rsp + 0x28], rax
imul r15, rbx
cmp r14, 2
mov eax, 1
cmovb r14, rax
lea r13, [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x14001536d
mov rcx, qword [rsi + 8]
shl rax, 4
mov qword [rcx + rax], r15
mov dword [rcx + rax + 8], r12d
inc qword [rsi + 0x10]
add r15, rbx
dec r14
je 0x1400153c6
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400153be
mov qword [rsp + 0x20], r13
mov rdx, r15
mov r8, rbx
mov r9d, dword [rsp + 0xd0]
call rbp
test eax, eax
je 0x1400153b6
mov r12d, dword [rsp + 0x30]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
jne 0x140015350
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.140015530
test al, al
je 0x1400153be
mov rax, qword [rsi + 0x10]
jmp 0x140015350
mov dword [rsp + 0x30], 0
mov rcx, rsi
call fcn.140015430
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [0x1401054a8]
mov rcx, qword [rcx]
cmp rcx, rax
jne 0x140015428
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140146360]
call fcn.1400d3f14
test eax, eax
je 0x1400152c8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140148868], eax
lea rcx, [0x140146360]
call fcn.1400d3fef
jmp 0x1400152c8
call fcn.1400d58e0
int3
Function at 0x140015430
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 rsi, rcx
mov rbx, qword [0x1401054a8]
mov rax, qword [rbx]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx eax, byte [0x140146360]
test al, al
je 0x1400154e2
mov r14, qword [rsi + 0x10]
test r14, r14
je 0x1400154b9
mov r15, qword [rsi + 8]
mov edi, dword [0x140148868]
shl r14, 4
xor r12d, r12d
lea r13, [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x140015499
add r12, 0x10
cmp r14, r12
je 0x1400154b9
mov rax, qword [rsi]
mov rcx, qword [rax]
test rcx, rcx
je 0x140015490
mov r9d, dword [r15 + r12 + 8]
mov rdx, qword [r15 + r12]
mov qword [rsp + 0x20], r13
mov r8, rdi
call rbp
jmp 0x140015490
mov qword [rsi + 0x10], 0
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [rbx]
cmp rcx, rax
jne 0x14001551c
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140146360]
call fcn.1400d3f14
test eax, eax
je 0x140015464
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140148868], eax
lea rcx, [0x140146360]
call fcn.1400d3fef
jmp 0x140015464
call fcn.1400d58e0
int3
Function at 0x1400156a0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, rcx
mov r12, qword [0x1401054a8]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor ebx, ebx
mov rcx, rdx
mov edx, 0x80000000
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov r13, rax
inc r13
cmp r13, 2
jae 0x14001573c
cmp r13, 2
jb 0x140015715
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x48]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x140015833
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x38]
lea r9, [rsp + 0x44]
mov rcx, rsi
mov r8d, 0xc
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x140015706
cmp dword [rsp + 0x44], 0xc
jne 0x140015706
xor ebx, ebx
cmp dword [rsp + 0x38], 0x4646424c
jne 0x140015706
cmp dword [rsp + 0x3c], 1
jne 0x140015706
mov r15d, dword [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r14, rax
xor ebx, ebx
mov rcx, rax
xor edx, edx
mov r8, r15
call sub.ntdll.dll_memset
mov r8d, dword [rsp + 0x40]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov rcx, rsi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140015826
mov eax, dword [rsp + 0x44]
cmp eax, dword [rsp + 0x40]
jne 0x140015802
test rax, rax
je 0x14001580d
xor ecx, ecx
mov ecx, ecx
movzx edx, word [r14 + rcx]
test rdx, rdx
je 0x14001580d
mov r8, qword [r14 + rcx + 8]
add r8, rdx
cmp r8, rax
ja 0x140015806
mov word [r14 + rcx + 2], dx
add ecx, 0x20
cmp ecx, eax
jb 0x1400157da
jmp 0x14001580d
xor ebx, ebx
jmp 0x140015826
mov word [r14 + rcx], 0
mov dword [rdi], r15d
mov rax, qword [rdi + 8]
mov qword [rdi + 8], r14
mov bl, 1
mov r14, rax
test rax, rax
je 0x140015706
mov rcx, r14
call sub.mozglue.dll_free
jmp 0x140015706
call fcn.1400d58e0
int3