joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011690
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 r14d, edx
mov rsi, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r13, qword [rcx + 0x10]
mov ecx, edx
cmp r13, rcx
ja 0x140011850
lea rdi, [rsi + 8]
cmp rcx, 0x21
mov eax, 0x20
cmovae rax, rcx
mov rbx, rax
sub rbx, r13
jbe 0x140011726
mov rcx, qword [rsi + 0x18]
sub rcx, r13
mov rax, r13
cmp rcx, rbx
jb 0x140011877
test rbx, rbx
jle 0x140011723
mov rdx, qword [rsi + 8]
lea rcx, [rdx + rax]
lea r9, [rbx + rcx]
lea r8, [rdx + rax]
inc r8
cmp r9, r8
cmova r8, r9
sub r8, rcx
xor edx, edx
call sub.ntdll.dll_memset
mov rax, qword [rsi + 0x10]
add rax, rbx
mov qword [rsi + 0x10], rax
mov r8, qword [rsi]
cmp qword [r8], 0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r13
je 0x1400118de
mov r15, qword [rsi + 0x40]
add r15, r13
mov r12, qword [rsi + 8]
add r12, r13
mov eax, dword [0x140064d74]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140011893
add rbx, r15
cmp rbx, r15
jbe 0x1400118de
mov eax, dword [0x140064d70]
mov qword [rsp + 0x30], rax
dec eax
mov qword [rsp + 0x38], rax
lea rbp, [rsp + 0x50]
mov r13, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov qword [rsp + 0x50], 0
mov r9, rbx
sub r9, r15
mov rcx, qword [r8]
mov qword [rsp + 0x20], rbp
mov rdx, r15
mov rdi, r8
mov r8, r12
call r13
test eax, eax
je 0x1400118e6
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
lea rcx, [r14 + rdi]
inc rcx
mov rax, qword [rsi + 0x10]
mov rbx, rcx
sub rbx, rax
jbe 0x140011840
mov rcx, qword [rsi + 0x18]
sub rcx, rax
cmp rcx, rbx
jae 0x14001180b
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call fcn.140011930
test al, al
je 0x140011919
mov rax, qword [rsi + 0x10]
test rbx, rbx
jle 0x14001183a
mov rdx, qword [rsi + 8]
lea rcx, [rdx + rax]
lea r8, [rbx + rax]
add r8, rdx
add rax, rdx
inc rax
cmp r8, rax
cmovbe r8, rax
sub r8, rcx
xor edx, edx
call sub.ntdll.dll_memset
mov rax, qword [rsi + 0x10]
add rax, rbx
mov rcx, rax
add r14, rdi
mov qword [rsi + 0x10], rcx
mov rax, qword [rsi + 8]
mov byte [rax + r14], 0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400300f0
mov eax, r14d
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
mov rdx, rbx
call fcn.140011930
test al, al
je 0x140011924
mov rax, qword [rsi + 0x10]
jmp 0x1400116f6
lea rcx, [0x140064d74]
mov rdi, r8
call fcn.14002ef84
mov r8, rdi
cmp dword [0x140064d74], 0xffffffff
jne 0x140011774
lea r14, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r14 + 4]
mov dword [0x140064d70], eax
lea rcx, [0x140064d74]
call fcn.14002ef24
mov r8, rdi
jmp 0x140011774
xor r14d, r14d
jmp 0x1400117ce
mov rdx, qword [rsp + 0x38]
mov rax, rdx
not rax
and rax, rbx
mov rcx, rbx
sub rcx, qword [rsp + 0x30]
test ebx, edx
cmovne rcx, rax
xor r14d, r14d
mov rbx, rcx
cmp rcx, r15
mov r8, rdi
ja 0x14001179e
jmp 0x1400117ce
int3
int3
Function at 0x1400154c0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140064d74]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140015576
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x140015550
mov r14, qword [rsi + 8]
mov edi, dword [0x140064d70]
shl rbx, 4
xor r15d, r15d
lea r12, [rsp + 0x28]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [rsi]
mov rcx, qword [rax]
test rcx, rcx
je 0x140015547
mov rdx, qword [r14 + r15 + 8]
mov r9d, dword [r14 + r15]
mov qword [rsp + 0x20], r12
mov r8, rdi
call r13
add r15, 0x10
cmp rbx, r15
jne 0x140015528
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400300f0
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140064d74]
call fcn.14002ef84
cmp dword [0x140064d74], 0xffffffff
jne 0x140015502
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140064d70], eax
lea rcx, [0x140064d74]
call fcn.14002ef24
jmp 0x140015502
Function at 0x1400155c0
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Execute shellcode via indirect call
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, r9
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140064030]
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
mov eax, dword [0x140064d74]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400156f6
mov ebx, dword [0x140064d70]
lea rax, [r14 + r15]
dec rax
xor edx, edx
div rbx
mov rcx, rax
mov rax, r14
xor edx, edx
div rbx
inc rcx
sub rcx, rax
je 0x1400156d5
mov r14, rax
lea rax, [rsi + 8]
mov qword [rsp + 0x28], rax
imul r14, rbx
cmp rcx, 2
mov r12d, 1
cmovae r12, rcx
lea r13, [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001573f
mov qword [rsp + 0x20], r13
mov rdx, r14
mov r8, rbx
mov r9d, 0x40
call rbp
test eax, eax
je 0x140015737
mov r15d, dword [rsp + 0x30]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x140015749
mov rcx, qword [rsi + 8]
shl rax, 4
mov dword [rcx + rax], r15d
mov qword [rcx + rax + 8], r14
inc qword [rsi + 0x10]
add r14, rbx
dec r12
jne 0x14001567e
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400300f0
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140064d74]
call fcn.14002ef84
cmp dword [0x140064d74], 0xffffffff
jne 0x14001562b
lea rbx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140064d70], eax
lea rcx, [0x140064d74]
call fcn.14002ef24
jmp 0x14001562b
mov dword [rsp + 0x30], 0
mov rcx, rsi
call fcn.1400154c0
jmp 0x1400156d5
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.140036b40
test al, al
je 0x14001573f
mov rax, qword [rsi + 0x10]
jmp 0x1400156b8
Function at 0x140019690
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, rdx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x50], rax
test r9, r9
je 0x1400197ff
mov ebp, dword [rsp + 0xc0]
test ebp, ebp
je 0x1400197ff
mov rbx, r9
mov edi, r8d
mov eax, dword [0x140064d7c]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001980f
mov r13d, ebp
cmp r13, rbx
ja 0x14001985c
xor eax, eax
mov rcx, rbx
sub rcx, r13
cmovae rax, rcx
cmp rax, 0x100001
mov r12d, 0x100000
cmovae r12, rax
mov r15d, dword [0x140064d78]
mov eax, dword [0x140064d88]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14001977f
lea rcx, [0x140064d88]
call fcn.14002ef84
cmp dword [0x140064d88], 0xffffffff
jne 0x14001977f
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [r14 + 0x10]
mov qword [0x140064d80], rax
lea rcx, [0x140064d88]
call fcn.14002ef24
mov rax, qword [0x140064d80]
lea rcx, [rbx + r13]
cmp rax, rcx
cmovb rcx, rax
add rbx, r13
cmovb rcx, rax
mov edx, edi
cmp rcx, rdx
jb 0x1400197ff
mov r8, r12
neg r8
lea rax, [r15 - 1]
and rax, r8
add rax, r12
xor r8d, r8d
sub rcx, rdx
cmovae r8, rcx
neg r15
and r15, r8
sub r15, rax
jbe 0x1400197ff
test rax, rax
je 0x140019851
cmp r15, 0xffffffffffffffff
je 0x140019851
mov qword [rsi], r15
mov qword [rsi + 8], rax
mov byte [rsi + 0x10], 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400300f0
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x1400197de
lea rcx, [0x140064d7c]
call fcn.14002ef84
cmp dword [0x140064d7c], 0xffffffff
jne 0x1400196f5
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r14 + 0x28]
mov dword [0x140064d78], eax
lea rcx, [0x140064d7c]
call fcn.14002ef24
jmp 0x1400196f5
int3
mov r12d, 0x100000
jmp 0x14001971d
Function at 0x140019870
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
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 r14, r9
mov rbx, r8
mov rsi, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rcx], rdx
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 2
lea rax, [rcx + 0x20]
mov qword [rcx + 8], rax
mov eax, dword [0x140064d74]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001998b
mov edi, dword [0x140064d70]
lea rax, [rbx + r14]
dec rax
xor edx, edx
div rdi
mov rcx, rax
mov rax, rbx
xor edx, edx
div rdi
inc rcx
sub rcx, rax
je 0x14001996a
mov rbx, rax
lea r14, [rsi + 8]
imul rbx, rdi
cmp rcx, 2
mov r12d, 1
cmovae r12, rcx
lea r15, [rsp + 0x20]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x40
mov r9, r15
call r13
test eax, eax
je 0x1400199cc
mov ebp, dword [rsp + 0x20]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x1400199de
mov rcx, qword [rsi + 8]
shl rax, 4
mov dword [rcx + rax], ebp
mov qword [rcx + rax + 8], rbx
inc qword [rsi + 0x10]
add rbx, rdi
dec r12
jne 0x140019922
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400300f0
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140064d74]
call fcn.14002ef84
cmp dword [0x140064d74], 0xffffffff
jne 0x1400198d8
lea rdi, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140064d70], eax
lea rcx, [0x140064d74]
call fcn.14002ef24
jmp 0x1400198d8
mov dword [rsp + 0x20], 0
mov rcx, rsi
call fcn.140053e10
jmp 0x14001996a
mov edx, 1
mov rcx, r14
call fcn.140036b40
test al, al
je 0x1400199d4
mov rax, qword [rsi + 0x10]
jmp 0x14001994e
Function at 0x140019be0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rdx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 8]
test rax, rax
je 0x140019dfe
mov rdi, rcx
mov ebp, dword [rcx + 0x18]
shl ebp, 7
mov edx, ebp
or edx, 0x7f
mov ecx, dword [rcx + 0x14]
cmp edx, ecx
jb 0x140019ca8
cmp ecx, dword [rdi + 0x10]
jae 0x140019dfe
mov eax, dword [0x140064d74]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140019d7c
mov edx, dword [0x140064d70]
mov ecx, dword [rdi + 0x14]
add rcx, qword [rdi + 8]
mov r8d, 0x1000
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140019dfe
mov eax, dword [0x140064d74]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140019dbd
mov eax, dword [0x140064d70]
add dword [rdi + 0x14], eax
mov rax, qword [rdi + 8]
mov ecx, ebp
add rcx, rax
lea r9, [rsp + 0x30]
mov qword [r9 - 8], rdi
mov dword [r9], 0
mov qword [r9 + 8], rcx
mov qword [r9 + 0x10], rcx
xorps xmm0, xmm0
movups xmmword [r9 + 0x18], xmm0
mov dword [r9 + 0x28], 0x80
mov byte [r9 + 0x2c], 1
mov edx, 0x80
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140019e15
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
test rdx, rdx
je 0x140019e22
mov r8, qword [rsp + 0x38]
mov r9d, dword [rsp + 0x30]
mov cl, byte [rsp + 0x5c]
test r8, r8
je 0x140019d2a
test rax, rax
je 0x140019d2a
test r9d, r9d
je 0x140019d2a
test cl, cl
je 0x140019d2a
inc dword [rdi + 0x18]
mov qword [rsi], rdx
mov dword [rsi + 8], r9d
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rax
mov eax, dword [rsp + 0x48]
mov dword [rsi + 0x20], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsi + 0x24], eax
mov eax, dword [rsp + 0x50]
mov dword [rsi + 0x28], eax
mov eax, dword [rsp + 0x54]
mov dword [rsi + 0x2c], eax
mov eax, dword [rsp + 0x58]
mov dword [rsi + 0x30], eax
mov byte [rsi + 0x34], cl
mov byte [rsi + 0x38], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400300f0
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140064d74]
call fcn.14002ef84
cmp dword [0x140064d74], 0xffffffff
jne 0x140019c4e
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140064d70], eax
lea rcx, [0x140064d74]
call fcn.14002ef24
jmp 0x140019c4e
lea rcx, [0x140064d74]
call fcn.14002ef84
cmp dword [0x140064d74], 0xffffffff
jne 0x140019c9b
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140064d70], eax
lea rcx, [0x140064d74]
call fcn.14002ef24
jmp 0x140019c9b
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
jmp 0x140019d63
mov dword [rsp + 0x30], 0
jmp 0x140019cf3
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov cl, byte [rsp + 0x5c]
jmp 0x140019d27
Function at 0x140019e40
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 qword [rsp + 0x38], rdx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov eax, dword [0x140064d7c]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140019fae
xor r12d, r12d
test rsi, rsi
je 0x140019f87
mov rbp, qword [rsp + 0xf0]
cmp rbp, rbx
jbe 0x140019f87
mov r13d, dword [0x140064d78]
lea r14, [rsp + 0x44]
mov dword [r14], 0
mov rcx, r14
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand_s
mov rax, rbp
sub rax, rbx
sub rax, rsi
xor edx, edx
div r13
mov rcx, rax
mov eax, dword [r14]
inc rcx
xor edx, edx
div rcx
mov r14, rdx
imul r14, r13
add r14, rbx
sub rbp, rsi
cmp r14, rbp
ja 0x14001a009
lea r12, [rsp + 0x48]
lea r15, [rsp + 0x50]
lea rdi, [r13 - 1]
mov rdx, r14
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 0x30
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov r9, r15
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x14001a0a7
cmp qword [rsp + 0x48], 0x30
jne 0x14001a0b5
mov r10, r12
cmp dword [rsp + 0x70], 0x10000
jne 0x140019ff0
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
mov rcx, rdx
neg rcx
and rcx, rdi
lea r8, [rcx + rdx]
mov r9, rax
sub r9, rcx
cmp r9, rsi
mov r12d, 0
cmovae r12, r8
cmp rax, rcx
jb 0x140019ffa
test r12, r12
je 0x140019ffa
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400300f0
mov rax, r12
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140064d7c]
call fcn.14002ef84
cmp dword [0x140064d7c], 0xffffffff
jne 0x140019e95
lea r14, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r14 + 0x28]
mov dword [0x140064d78], eax
lea rcx, [0x140064d7c]
call fcn.14002ef24
jmp 0x140019e95
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
add rdx, rax
cmp rdx, rbp
mov r12, r10
jbe 0x140019f10
cmp r14, rbx
jbe 0x14001a0b5
dec r13
lea rdi, [rsp + 0x48]
lea r15, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0x30
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
xor r8d, r8d
mov r9, r15
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x14001a0a7
cmp qword [rsp + 0x48], 0x30
jne 0x14001a0b5
cmp dword [rsp + 0x70], 0x10000
jne 0x14001a08f
mov rbx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
mov rcx, rbx
neg rcx
and rcx, r13
lea rdx, [rcx + rbx]
mov r8, rax
sub r8, rcx
cmp r8, rsi
mov r12d, 0
cmovae r12, rdx
cmp rax, rcx
jb 0x14001a099
test r12, r12
je 0x14001a099
jmp 0x140019f87
mov rbx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
add rbx, rax
cmp rbx, r14
jb 0x14001a01f
jmp 0x14001a0b5
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r12d, r12d
jmp 0x140019f87
Function at 0x14001a130
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140064088]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001a16e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14001a167
call fcn.14001e9d0
jmp 0x14001a14e
Function at 0x14001e0b0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
call fcn.14000cf50
test al, al
je 0x14001e0e3
mov rcx, qword [rsi]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsi + 0x38]
mov qword [rsi + 0x38], 0
test rdi, rdi
je 0x14001e104
mov rcx, rdi
call fcn.14001e300
mov rcx, rdi
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsi + 0x58]
test rcx, rcx
jne 0x14001e298
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x14001e120
call qword [sym.imp.mozglue.dll_free]
mov rdi, qword [rsi + 0x38]
test rdi, rdi
jne 0x14001e2dc
mov rax, qword [rsi + 0x28]
inc rax
cmp rax, 2
jae 0x14001e16f
mov rax, qword [rsi + 0x20]
inc rax
cmp rax, 2
jae 0x14001e1d2
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x14001e235
mov rcx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400053b0
lea rdi, [rsi + 0x28]
call fcn.14000d440
mov rbx, rax
mov r14, qword [rsp + 0x58]
mov r15, qword [rdi]
call fcn.14000d450
mov rcx, qword [rax]
mov r10, qword [rcx + 0x10]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, r15
mov r8, rdi
mov r9, r14
mov rax, r10
call qword [0x14006a010]
mov rbx, qword [rdi]
call fcn.14000d450
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, rbx
mov rax, r8
call qword [0x14006a010]
mov qword [rdi], 0
jmp 0x14001e13a
lea rdi, [rsi + 0x20]
call fcn.14000d440
mov rbx, rax
mov r14, qword [rsp + 0x58]
mov r15, qword [rdi]
call fcn.14000d450
mov rcx, qword [rax]
mov r10, qword [rcx + 0x10]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, r15
mov r8, rdi
mov r9, r14
mov rax, r10
call qword [0x14006a010]
mov rbx, qword [rdi]
call fcn.14000d450
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, rbx
mov rax, r8
call qword [0x14006a010]
mov qword [rdi], 0
jmp 0x14001e14b
lea rdi, [rsi + 0x18]
call fcn.14000d440
mov rbx, rax
mov r14, qword [rsp + 0x58]
mov r15, qword [rdi]
call fcn.14000d450
mov rcx, qword [rax]
mov r10, qword [rcx + 0x10]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, r15
mov r8, rdi
mov r9, r14
mov rax, r10
call qword [0x14006a010]
mov rbx, qword [rdi]
call fcn.14000d450
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, rbx
mov rax, r8
call qword [0x14006a010]
mov qword [rdi], 0
jmp 0x14001e15c
mov rdx, qword [rsi + 0x68]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14001e2c0
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x14001e2f1
add rdx, 0x27
mov rcx, rax
lea rdi, [rsi + 0x58]
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64__unsigned_long_long_unsigned___int64__
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
jmp 0x14001e111
mov rcx, rdi
call fcn.14001e300
mov rcx, rdi
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x14001e12d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14001e7f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x150
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov ecx, dword [0x140064088]
cmp ecx, 0xffffffff
je 0x14001e827
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14001e82c
call fcn.14001e9d0
mov eax, dword [0x140066678]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14001e886
lea rcx, [0x140066678]
call fcn.14002ef84
cmp dword [0x140066678], 0xffffffff
jne 0x14001e886
mov ecx, 8
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rax], 0
mov qword [0x140066670], rax
lea rcx, [0x140066678]
call fcn.14002ef24
mov rbx, qword [0x140066670]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x140064e60]
inc rax
xor ecx, ecx
lea rdx, [0x140064e70]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14001e927
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov qword [0x140064e60], r8
mov dword [rsi], r8d
mov eax, dword [rax + 0x10]
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [rsi]
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x2c], eax
cmp eax, 0xffffffff
je 0x14001e939
mov eax, dword [rsi]
mov dword [rsp + 0x30], 0x100
mov dword [rsp + 0x2c], eax
cmp eax, 0xff
jg 0x14001e97e
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.1400300f0
nop
add rsp, 0x150
pop rbx
pop rdi
pop rsi
ret
inc rcx
cmp rcx, 0x100
jne 0x14001e8a9
jmp 0x14001e8da
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.14003b320
test rax, rax
je 0x14001e8f6
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x196
mov r9, rax
call fcn.14003afd0
mov rcx, rdi
call fcn.14003b070
jmp 0x14001e8f6
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.14003b320
test rax, rax
je 0x14001e90b
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x197
mov r9, rax
call fcn.14003afd0
mov rcx, rsi
call fcn.14003b070
jmp 0x14001e90b
Function at 0x140023e10
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 8
cmp qword [r8 + 0x18], 8
jb 0x140023e39
mov r8, qword [r8]
mov rcx, qword [rdx]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov rdx, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140023e7e
cmp dword [rsp + 0x38], 0xb
jne 0x140023ea3
mov rax, qword [rsp + 0x40]
mov byte [rsi + 0x10], 0
mov qword [rsi], rax
mov byte [rsi + 8], 1
jmp 0x140023e8d
cmp eax, 2
jne 0x140023ec1
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400300f0
mov rax, rsi
add rsp, 0x50
pop rsi
ret
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007065d00000043
mov qword [rsi + 8], rax
jmp 0x140023e8d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x3f
mov dword [rsi + 0xc], ecx
jmp 0x140023e8d