joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a030
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 [0x1400f6380]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx ecx, byte [rdx + 0x58]
mov eax, ecx
and al, 1
jne 0x14000a060
shr rcx, 1
jmp 0x14000a064
mov rcx, qword [rdi + 0x60]
lea rbx, [rdi + 0x58]
test rcx, rcx
jne 0x14000a093
lea rdx, [rdi + 0x28]
mov rcx, rbx
call fcn.14007bb60
lea rdx, str.Browser
mov r8d, 8
mov rcx, rbx
call fcn.14007a800
mov al, byte [rdi + 0x58]
and al, 1
mov dword [rsp + 0x34], 8
mov rcx, qword [rdi + 0x20]
test al, al
je 0x14000a0a9
mov rbx, qword [rdi + 0x68]
jmp 0x14000a0ad
add rbx, 2
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rdx, rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000a0ec
cmp eax, 2
jne 0x14000a105
mov byte [rsi + 0x10], 0
mov qword [rsi], 0
mov byte [rsi + 8], 0
jmp 0x14000a149
cmp dword [rsp + 0x30], 0xb
jne 0x14000a12d
mov rax, qword [rsp + 0x38]
mov byte [rsi + 0x10], 0
mov qword [rsi], rax
mov byte [rsi + 8], 1
jmp 0x14000a149
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_cc4c8eaff833_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x3b
mov dword [rsi + 0xc], ecx
jmp 0x14000a149
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_cc4c8eaff833_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007065d0000003f
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0x40]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14000a166
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140072349
int3
Function at 0x14000bf40
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 [0x1400f6380]
mov rax, qword [rbx]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx], 0
je 0x14000bffc
mov rdi, r9
mov rsi, r8
mov r14, rdx
mov r13, rcx
mov al, byte [0x14012e1f0]
test al, al
je 0x14000c032
add rdi, rsi
cmp rdi, rsi
jbe 0x14000bffc
mov ebx, dword [0x140130270]
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 0x14000c01f
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 0x14000bfb0
mov rbx, qword [0x1400f6380]
xor eax, eax
mov rdx, qword [rsp + 0x60]
xor rdx, rsp
mov rcx, qword [rbx]
cmp rcx, rdx
jne 0x14000c02d
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 [0x1400f6380]
jmp 0x14000bffe
call fcn.140072349
lea rcx, [0x14012e1f0]
call fcn.1400c0194
test eax, eax
je 0x14000bf86
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140130270], eax
lea rcx, [0x14012e1f0]
call fcn.1400c0265
jmp 0x14000bf86
Function at 0x14000eaa0
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 [0x1400f6380]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r15b, 1
test dl, dl
je 0x14000eb8e
mov rdi, rcx
mov rsi, qword [rcx + 0x40]
movsx rbx, dl
mov al, byte [0x14012e1f0]
test al, al
je 0x14000ebb3
add rbx, rsi
mov ebp, dword [0x140130270]
mov rax, rsi
shr rax, 0x20
je 0x14000eb01
mov rax, rsi
xor edx, edx
div rbp
mov rcx, rax
jmp 0x14000eb09
mov eax, esi
xor edx, edx
div ebp
mov ecx, eax
mov rax, rbx
shr rax, 0x20
je 0x14000eb21
mov rax, rbx
xor edx, edx
div rbp
cmp rcx, rax
jne 0x14000eb2c
jmp 0x14000eb8e
mov eax, ebx
xor edx, edx
div ebp
cmp rcx, rax
je 0x14000eb8e
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 0x14000eb7d
cmp qword [rsp + 0x68], 0
je 0x14000eb8b
cmp dword [rsp + 0x48], 0
je 0x14000eb8b
cmp dword [rsp + 0x58], 0x1000
jne 0x14000eb8b
cmp dword [rsp + 0x5c], 1
setne r15b
jmp 0x14000eb8e
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 0x14000ebae
mov eax, r15d
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140072349
lea rcx, [0x14012e1f0]
call fcn.1400c0194
test eax, eax
je 0x14000eae2
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x3c]
mov dword [0x140130270], eax
lea rcx, [0x14012e1f0]
call fcn.1400c0265
jmp 0x14000eae2
Function at 0x14000ef90
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 r13, rcx
mov r14, qword [0x1400f6380]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x50], rax
test r9, r9
je 0x14000f086
mov ebx, dword [rsp + 0xc0]
test ebx, ebx
je 0x14000f086
mov rdi, r9
mov r15d, r8d
mov al, byte [0x14012e1f8]
test al, al
je 0x14000f0cf
mov ebp, ebx
mov rbx, rdi
sub rbx, rbp
cmp rbx, 0x100000
mov eax, 0x100000
cmovbe rbx, rax
cmp rdi, rbp
mov r12d, dword [0x140130274]
cmovb rbx, rax
mov al, byte [0x14012e200]
test al, al
je 0x14000f109
mov rcx, qword [0x140130278]
lea rsi, [rdi + rbp]
cmp rcx, rsi
cmovb rsi, rcx
add rdi, rbp
cmovb rsi, rcx
mov ecx, r15d
sub rsi, rcx
jb 0x14000f086
mov rdx, rbx
neg rdx
lea rcx, [r12 - 1]
and rcx, rdx
add rcx, rbx
neg r12
and rsi, r12
sub rsi, rcx
jbe 0x14000f086
test rcx, rcx
setne dl
cmp rsi, 0xffffffffffffffff
setne bl
mov rax, rsi
or rax, rcx
je 0x14000f06b
and dl, bl
je 0x14000f0ba
test rcx, rcx
mov eax, 1
cmovne rax, rcx
mov qword [r13], rsi
mov qword [r13 + 8], rax
mov byte [r13 + 0x10], 1
jmp 0x14000f096
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], 0
mov rax, qword [rsp + 0x50]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14000f0ca
mov rax, r13
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [0], 0x321
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
call fcn.140072349
lea rcx, [0x14012e1f8]
call fcn.1400c0194
test eax, eax
je 0x14000efe1
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
mov dword [0x140130274], eax
lea rcx, [0x14012e1f8]
call fcn.1400c0265
jmp 0x14000efe1
lea rcx, [0x14012e200]
call fcn.1400c0194
test eax, eax
je 0x14000f015
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x30]
mov qword [0x140130278], rax
lea rcx, [0x14012e200]
call fcn.1400c0265
jmp 0x14000f015
Function at 0x14000f150
Capabilities:
Get system information on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rdi, qword [0x1400f6380]
mov rax, qword [rdi]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebx, ebx
test edx, edx
je 0x14000f185
mov rsi, rcx
cmp qword [rcx], 0
je 0x14000f185
cmp qword [rsi + 0x18], 0
je 0x14000f1a6
mov ebx, dword [rsi + 0x20]
mov rax, qword [rsp + 0x68]
xor rax, rsp
mov rcx, qword [rdi]
cmp rcx, rax
jne 0x14000f284
mov eax, ebx
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov r14, r8
mov ebp, edx
mov al, byte [0x14012e1f8]
test al, al
je 0x14000f289
mov ecx, dword [0x140130274]
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 0x14000f26c
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 0x14000f277
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], r14
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov rcx, rsi
call fcn.14000f2d0
mov qword [rsi + 0x18], rax
test rax, rax
jne 0x14000f182
jmp 0x14000f185
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000f185
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
jmp 0x14000f185
call fcn.140072349
lea rcx, [0x14012e1f8]
call fcn.1400c0194
test eax, eax
je 0x14000f1b9
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x60]
mov dword [0x140130274], eax
lea rcx, [0x14012e1f8]
call fcn.1400c0265
jmp 0x14000f1b9
Function at 0x14000f530
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 r14, r8
mov r13, rdx
mov rsi, qword [0x1400f6380]
mov rax, qword [rsi]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov al, byte [0x14012e1f8]
test al, al
je 0x14000f77b
xor eax, eax
test r14, r14
je 0x14000f754
mov r15, qword [rsp + 0xf0]
cmp r15, rbx
jbe 0x14000f754
mov esi, dword [0x140130274]
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0x44]
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand_s
lea rcx, [rbx + r14]
mov rax, r15
sub rax, rcx
mov rcx, rax
shr rcx, 0x20
je 0x14000f5c0
xor edx, edx
div rsi
mov rcx, rax
jmp 0x14000f5c6
xor edx, edx
div esi
mov ecx, eax
mov r12d, dword [rsp + 0x44]
add rcx, 1
cmp r12, rcx
jb 0x14000f5de
mov eax, r12d
xor edx, edx
div ecx
mov r12d, edx
imul r12, rsi
add r12, rbx
sub r15, r14
cmp r12, r15
jbe 0x14000f691
cmp r12, rbx
jbe 0x14000f745
add rsi, 0xffffffffffffffff
lea rbp, [rsp + 0x78]
lea r15, [rsp + 0x48]
jmp 0x14000f61c
add rbx, rcx
cmp rbx, r12
jae 0x14000f745
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 0x30
mov rcx, r13
mov rdx, rbx
xor r8d, r8d
mov r9, r15
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x14000f737
cmp qword [rsp + 0x78], 0x30
jne 0x14000f745
cmp dword [rsp + 0x68], 0x10000
mov rcx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x60]
jne 0x14000f610
mov rdx, rcx
neg rdx
and rdx, rsi
lea rdi, [rdx + rcx]
mov rax, rbx
sub rax, rdx
cmp rax, r14
mov eax, 0
cmovae rax, rdi
cmp rbx, rdx
jb 0x14000f610
test rax, rax
je 0x14000f610
jmp 0x14000f74d
lea rax, [rsi - 1]
mov qword [rsp + 0x38], rax
lea rbp, [rsp + 0x78]
mov rdx, r12
jmp 0x14000f6bc
add rdx, rdi
cmp rdx, r15
ja 0x14000f5f1
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 0x30
mov rcx, r13
xor r8d, r8d
lea r9, [rsp + 0x48]
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x14000f737
cmp qword [rsp + 0x78], 0x30
jne 0x14000f745
cmp dword [rsp + 0x68], 0x10000
mov rdi, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
jne 0x14000f6b0
mov rcx, rdi
neg rcx
and rcx, qword [rsp + 0x38]
mov r8, rbp
mov rbp, rsi
lea rsi, [rcx + rdi]
mov rax, rdx
sub rax, rcx
cmp rax, r14
mov eax, 0
cmovae rax, rsi
mov rsi, rbp
mov rbp, r8
cmp rdx, rcx
jb 0x14000f6b0
test rax, rax
je 0x14000f6b0
jmp 0x14000f74d
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 rsi, qword [0x1400f6380]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
mov rdx, qword [rsi]
cmp rdx, rcx
jne 0x14000f7b5
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14012e1f8]
call fcn.1400c0194
test eax, eax
je 0x14000f56f
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x70]
mov dword [0x140130274], eax
lea rcx, [0x14012e1f8]
call fcn.1400c0265
jmp 0x14000f56f
call fcn.140072349
int3
Function at 0x14000f970
Capabilities:
Get system information on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rbx, qword [0x1400f6380]
mov rax, qword [rbx]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx], 0
je 0x14000fa68
mov rsi, rcx
cmp qword [rcx + 8], 0
je 0x14000fa68
mov rdi, qword [rsi + 0x10]
test rdi, rdi
je 0x14000fa68
cmp qword [rsi + 0x18], 0
je 0x14000fa68
add edx, r8d
add edx, 0xffffffff
mov ecx, dword [rsi + 0x24]
mov al, 1
cmp edx, ecx
jb 0x14000fa6a
cmp ecx, dword [rsi + 0x20]
jae 0x14000fa68
add rdi, rcx
mov al, byte [0x14012e1f0]
test al, al
je 0x14000fa89
mov edx, dword [0x140130270]
mov rcx, rdi
mov r8d, 0x1000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14000fa68
mov r14, qword [rsi]
mov edi, dword [rsi + 0x24]
add rdi, qword [rsi + 0x18]
mov al, byte [0x14012e1f0]
test al, al
je 0x14000fac3
mov r8d, dword [0x140130270]
mov dword [rsp + 0x20], 0x20
mov rcx, r14
mov rdx, rdi
mov r9d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x14000fa60
mov al, byte [0x14012e1f0]
test al, al
je 0x14000fafd
mov eax, dword [0x140130270]
add dword [rsi + 0x24], eax
test rdi, rdi
setne al
jmp 0x14000fa6a
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
mov rdx, qword [rbx]
cmp rdx, rcx
jne 0x14000fa84
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140072349
lea rcx, [0x14012e1f0]
call fcn.1400c0194
test eax, eax
je 0x14000f9e8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140130270], eax
lea rcx, [0x14012e1f0]
call fcn.1400c0265
jmp 0x14000f9e8
lea rcx, [0x14012e1f0]
call fcn.1400c0194
test eax, eax
je 0x14000fa20
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140130270], eax
lea rcx, [0x14012e1f0]
call fcn.1400c0265
jmp 0x14000fa20
lea rcx, [0x14012e1f0]
call fcn.1400c0194
test eax, eax
je 0x14000fa57
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140130270], eax
lea rcx, [0x14012e1f0]
call fcn.1400c0265
jmp 0x14000fa57
Function at 0x140011640
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 rbp, r9
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1400f6380]
mov rax, qword [rax]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rcx], rdx
movaps xmm0, xmmword [0x1400f6520]
movups xmmword [rcx + 0x10], xmm0
lea rax, [rcx + 0x20]
mov qword [rcx + 8], rax
mov al, byte [0x14012e1f0]
test al, al
je 0x1400117a7
mov ebx, dword [0x140130270]
lea rax, [rdi + rbp]
add rax, 0xffffffffffffffff
mov rcx, rax
shr rcx, 0x20
je 0x1400116b3
xor edx, edx
div rbx
mov r15, rax
jmp 0x1400116ba
xor edx, edx
div ebx
mov r15d, eax
mov rax, rdi
shr rax, 0x20
je 0x1400116d0
mov rax, rdi
xor edx, edx
div rbx
mov rdi, rax
jmp 0x1400116d8
mov eax, edi
xor edx, edx
div ebx
mov edi, eax
sub r15, rdi
inc r15
je 0x14001177f
lea rax, [rsi + 8]
mov qword [rsp + 0x28], rax
imul rdi, rbx
xor r13d, r13d
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x140011721
mov rcx, qword [rsi + 8]
shl rax, 4
mov dword [rcx + rax], ebp
mov qword [rcx + rax + 8], rdi
add qword [rsi + 0x10], 1
add r13, 1
add rdi, rbx
cmp r13, r15
je 0x14001177f
mov rcx, qword [r14]
test rcx, rcx
je 0x140011777
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov r8, rbx
mov r9d, dword [rsp + 0xd0]
call r12
test eax, eax
je 0x14001176f
mov ebp, dword [rsp + 0x30]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
jne 0x140011700
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.1400118f0
test al, al
je 0x140011777
mov rax, qword [rsi + 0x10]
jmp 0x140011700
mov dword [rsp + 0x30], 0
mov rcx, rsi
call fcn.1400117f0
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [0x1400f6380]
mov rcx, qword [rcx]
cmp rcx, rax
jne 0x1400117e1
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14012e1f0]
call fcn.1400c0194
test eax, eax
je 0x140011692
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140130270], eax
lea rcx, [0x14012e1f0]
call fcn.1400c0265
jmp 0x140011692
call fcn.140072349
int3
Function at 0x1400117f0
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 r12, rcx
mov r14, qword [0x1400f6380]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov al, byte [0x14012e1f0]
test al, al
je 0x1400118a4
mov rbx, qword [r12 + 0x10]
test rbx, rbx
je 0x14001187a
mov rdi, qword [r12 + 8]
mov r15d, dword [0x140130270]
shl rbx, 4
xor esi, esi
lea r13, [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x140011859
add rsi, 0x10
cmp rbx, rsi
je 0x14001187a
mov rax, qword [r12]
mov rcx, qword [rax]
test rcx, rcx
je 0x140011850
mov r9d, dword [rdi + rsi]
mov rdx, qword [rdi + rsi + 8]
mov qword [rsp + 0x20], r13
mov r8, r15
call rbp
jmp 0x140011850
mov qword [r12 + 0x10], 0
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x1400118de
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14012e1f0]
call fcn.1400c0194
test eax, eax
je 0x140011823
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140130270], eax
lea rcx, [0x14012e1f0]
call fcn.1400c0265
jmp 0x140011823
call fcn.140072349
int3

Function at 0x140011fb0
Capabilities:
Print debug messages

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x860
mov r14, rcx
mov qword [rsp + 0x898], rdx
mov qword [rsp + 0x8a0], r8
mov qword [rsp + 0x8a8], r9
mov r15, qword [0x1400f6380]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x858], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140012063
lea rdi, [rsp + 0x898]
mov qword [rsp + 0x28], rdi
lea rbx, [rsp + 0x30]
mov rcx, rbx
call qword [method.mozilla::PrintfTarget.PrintfTarget__]
lea rax, [0x1400f6360]
mov qword [rsp + 0x30], rax
lea rsi, [rsp + 0x50]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 0x800
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call qword [method.mozilla::PrintfTarget.vprint_char_const__char_]
mov rax, qword [rsp + 0x38]
cmp rax, 0x7ff
mov ecx, 0x7ff
cmovb rcx, rax
mov byte [rsp + rcx + 0x50], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
cmp eax, 0xfffffffe
je 0x1400120bb
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup]
lea rdx, [0x1400f6b86]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
test rax, rax
je 0x1400120bb
mov rdi, rax
lea r8, [rsp + 0x898]
mov qword [rsp + 0x50], r8
mov rcx, rax
mov rdx, r14
call fcn.1400c1f30
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rax, qword [rsp + 0x858]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x1400120dd
add rsp, 0x860
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140072349
int3
Function at 0x140012750
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x178
movaps xmmword [rsp + 0x160], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400f6380]
mov rax, qword [rax]
xor rax, rsp
mov qword [rsp + 0x158], rax
add rcx, 8
mov qword [rsp + 0x40], rcx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov r14, qword [rdi]
test r14, r14
je 0x14001299a
xorps xmm6, xmm6
lea rbx, [rsp + 0x50]
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdi, [rsp + 0x4c]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400127ec
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea rdx, [0x1400f6e24]
mov r8d, 1
mov r9, rdi
call r15
mov r14, qword [r14 + 0x18]
test r14, r14
je 0x14001299a
mov r8, qword [r14 + 8]
movzx r9d, word [r14]
shr r9d, 1
movups xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0x104
mov ecx, 0xfde9
xor edx, edx
call rbp
test eax, eax
je 0x1400127df
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
mov r9, rdi
call r15
test eax, eax
je 0x1400127df
cmp qword [r14 + 0x10], 0xffffffffffffffff
je 0x1400127c0
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea rdx, [0x1400f6e20]
mov r8d, 1
mov r9, rdi
call r15
mov r12, qword [r14 + 0x10]
mov rcx, r12
shr rcx, 0x30
mov r13, r12
shr r13, 0x20
mov ebp, r12d
shr ebp, 0x10
mov rdx, rbx
mov r8d, 0xa
call sub.api_ms_win_crt_convert_l1_1_0.dll__ltoa
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
mov r9, rdi
call r15
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea rdx, [0x1400f6e22]
mov r8d, 1
mov r9, rdi
call r15
movzx ecx, r13w
mov rdx, rbx
mov r8d, 0xa
call sub.api_ms_win_crt_convert_l1_1_0.dll__ltoa
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
mov r9, rdi
call r15
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea r13, [0x1400f6e22]
mov rdx, r13
mov r8d, 1
mov r9, rdi
call r15
mov ecx, ebp
mov rdx, rbx
mov r8d, 0xa
call sub.api_ms_win_crt_convert_l1_1_0.dll__ltoa
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
mov r9, rdi
call r15
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, r13
mov r8d, 1
mov r9, rdi
call r15
movzx ecx, r12w
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdx, rbx
mov r8d, 0xa
call sub.api_ms_win_crt_convert_l1_1_0.dll__ltoa
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
mov r9, rdi
call r15
jmp 0x1400127c0
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rax, qword [rsp + 0x158]
xor rax, rsp
mov rcx, qword [0x1400f6380]
mov rcx, qword [rcx]
cmp rcx, rax
jne 0x1400129da
movaps xmm6, xmmword [rsp + 0x160]
add rsp, 0x178
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140072349
int3
mov rdx, rcx
lea rcx, [0x14012e240]
jmp 0x140012750