joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x140001644
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140001644
cmp word [rax + rcx + 0x14], 0x78
jb 0x140001644
mov rsi, r8
mov rdi, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x14004a010]
test rax, rax
je 0x140001644
cmp rdi, 0xffff
mov qword [rsp + 0x20], rsi
jbe 0x14000166c
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x14004a010]
mov r15, rax
mov eax, dword [r14 + 0x18]
test rax, rax
je 0x140001644
lea rsi, [r15 + rax*4]
lea r13, [rdi + 1]
mov rbp, r15
mov r12, rsi
sub r12, rbp
mov rax, r12
sar rax, 2
shr r12, 0x3f
add r12, rax
and r12, 0xfffffffffffffffe
mov edx, dword [rbp + r12*2]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x14004a010]
mov cl, byte [rdi]
test cl, cl
je 0x140001619
mov rdx, r13
cmp cl, byte [rax]
jne 0x14000161b
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140001609
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x140001648
movzx ecx, cl
lea rdx, [r12 + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs rsi, r12
cmp rbp, rsi
jne 0x1400015d3
xor eax, eax
jmp 0x140001676
mov edx, dword [r14 + 0x24]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x14004a010]
sub r12, r15
sar r12, 1
movzx edi, word [rax + r12]
add di, word [r14 + 0x10]
mov rax, qword [rsp + 0x20]
mov word [rax], di
mov al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140005d20
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x140044028]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140005d73
mov rsi, rdx
mov rdi, rcx
mov r15d, 0xffffffff
cmp rsi, r15
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140005d93
add rdi, rbx
sub rsi, rbx
jne 0x140005d51
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14001cdf0
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_rand_util_win.cc
lea r9, str.success
lea r14, [rsp + 0x20]
mov rcx, r14
mov r8d, 0x20
call fcn.140020670
mov rcx, r14
call int.140020760
jmp 0x140005d6b
Function at 0x14000a060
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov rax, qword [0x140044028]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp byte [rcx + 0x6c], 0
je 0x14000a1cd
mov rdi, rdx
mov rbx, rcx
lea r14, [rsp + 0x30]
mov qword [r14], 0
mov rcx, qword [rcx + 0x60]
mov edx, 2
mov r8, r14
call fcn.14000a440
mov r14, qword [r14]
test eax, eax
jne 0x14000a1d7
mov dword [rsp + 0x24], 0
test r14, r14
je 0x14000a1e8
cmp dword [r14], 0
je 0x14000a1e0
lea rax, [rbx + 0x30]
mov qword [rsp + 0x28], rax
xor r13d, r13d
xorps xmm6, xmm6
lea r12, [rsp + 0x30]
mov rsi, qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rax, r13
shl rax, 4
test dword [r14 + rax + 0x10], 0xc0000020
jne 0x14000a1a4
lea r15, [r14 + rax]
add r15, 8
test rdi, rdi
je 0x14000a160
mov rax, qword [rdi]
cmp qword [rdi + 8], rax
je 0x14000a160
xor ebp, ebp
mov rdx, qword [r15]
mov rcx, rbp
shl rcx, 6
lea rcx, [rcx + rbp*4]
add rcx, rax
call rsi
test eax, eax
jne 0x14000a1a4
inc ebp
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
sub rcx, rax
sar rcx, 2
movabs rdx, 0xf0f0f0f0f0f0f0f1
imul rcx, rdx
cmp rcx, rbp
ja 0x14000a126
mov r8, qword [r15]
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x70], 0
mov ecx, 0x44
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov rdx, qword [rbx + 0x38]
cmp rdx, qword [rbx + 0x40]
jne 0x14000a1b5
mov rcx, qword [rsp + 0x28]
mov r8, r12
call fcn.14000a220
inc r13
mov eax, dword [r14]
cmp r13, rax
jb 0x14000a0f8
jmp 0x14000a1e0
mov r8d, 0x44
mov rcx, rdx
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x38], 0x44
jmp 0x14000a1a4
mov dword [rsp + 0x24], 0x3f0
jmp 0x14000a1e8
mov dword [rsp + 0x24], eax
test r14, r14
je 0x14000a1e8
mov rcx, r14
call sub.mozglue.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001cdf0
mov eax, dword [rsp + 0x24]
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000a220
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov rbp, qword [rsi + 8]
sub rbp, rcx
sar rbp, 2
movabs r9, 0xf0f0f0f0f0f0f0f1
mov rax, rdx
sub rax, rcx
movabs rdx, 0x7878787878787879
imul rdx
mov r15, rdx
imul rbp, r9
inc rbp
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
sar rdx, 2
imul rdx, r9
mov rax, rdx
shr rax, 1
movabs rcx, 0x3c3c3c3c3c3c3c3
mov r9, rcx
sub r9, rax
add rax, rdx
cmp rax, rbp
cmovbe rax, rbp
cmp rdx, r9
cmova rax, rcx
cmp rax, rcx
ja 0x14000a392
mov r12, r8
mov rcx, r15
shr rcx, 0x3f
sar r15, 5
add r15, rcx
mov rcx, rax
shl rcx, 6
lea rbx, [rcx + rax*4]
cmp rax, 0x3d
jae 0x14000a397
test rax, rax
je 0x14000a3b1
mov rcx, rbx
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r14, rax
mov rax, r15
shl rax, 6
lea r13, [rax + r15*4]
lea rcx, [r14 + r13]
mov r8d, 0x44
mov qword [rsp + 0x20], rcx
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
mov r12, qword [rsi]
mov r15, qword [rsi + 8]
cmp r15, rdi
jne 0x14000a3b9
cmp r12, rdi
je 0x14000a33f
mov r13, r14
mov r8d, 0x44
mov rcx, r13
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
add r13, 0x44
add r12, 0x44
cmp r12, rdi
jne 0x14000a31e
mov rdi, qword [rsi]
test rdi, rdi
je 0x14000a360
mov rdx, qword [rsi + 0x10]
sub rdx, rdi
cmp rdx, 0x1000
jae 0x14000a417
mov rcx, rdi
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64__unsigned_long_long_unsigned___int64__
mov qword [rsi], r14
mov rax, rbp
shl rax, 6
lea rax, [rax + rbp*4]
add rax, r14
mov qword [rsi + 8], rax
add rbx, r14
mov qword [rsi + 0x10], rbx
mov rax, qword [rsp + 0x20]
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400202d0
lea rcx, [rbx + 0x27]
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x14000a2e4
xor r14d, r14d
jmp 0x14000a2e4
cmp r12, rdi
je 0x14000a3e3
mov r15, r14
mov r8d, 0x44
mov rcx, r15
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
add r15, 0x44
add r12, 0x44
cmp r12, rdi
jne 0x14000a3c1
mov r15, qword [rsi + 8]
cmp r15, rdi
je 0x14000a33c
lea r12, [r14 + r13]
add r12, 0x44
mov r8d, 0x44
mov rcx, r12
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, 0x44
add r12, 0x44
cmp rdi, r15
jne 0x14000a3f4
jmp 0x14000a33c
mov rax, qword [rdi - 8]
add rdi, 0xfffffffffffffff8
sub rdi, rax
cmp rdi, 0x20
jae 0x14000a434
add rdx, 0x27
mov rdi, rax
jmp 0x14000a358
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000c0a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov r9d, dword [rsp + 0xa0]
mov rax, qword [0x140044028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14000c154
lea r12, [rsp + 0x28]
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, eax
mov r14, qword [r12]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14000c154
test ebp, ebp
setne al
cmp r14, rsi
sete sil
and sil, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001cdf0
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x14000c136
Function at 0x14000cc90
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x14000cd75
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14000cd16
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000cd0f
mov qword [rsi], rdi
call fcn.14000cd90
mov r14, rax
mov r15, qword [rsp + 0x58]
call fcn.14000cda0
mov rcx, qword [rax]
mov r10, qword [rcx + 8]
mov qword [rsp + 0x20], r14
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
mov rax, r10
call qword [0x14004a010]
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14000cd90
mov r14, rax
mov r15, qword [rsp + 0x58]
mov r12, qword [rsi]
call fcn.14000cda0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rax
mov rdx, r12
mov r8, rsi
mov r9, r15
mov rax, r10
call qword [0x14004a010]
mov r14, qword [rsi]
call fcn.14000cda0
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, r8
call qword [0x14004a010]
mov qword [rsi], 0
jmp 0x14000ccc0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
pop rbx
add byte [rcx - 0x43], ch
push qword [rbx + 0x50ef5000]
stosb byte [rdi], al
mov dh, 0x9e
pop rcx
xchg dword [rcx], esp
je 0x14008193d
sar dword [rbp + 0x20], 1
fidivr word [rbp + 0x53]
invalid
and dh, byte [rax + 0x58841b13]
test byte [rdi + 0x7a0804b7], al
sbb dword [rsi], eax
invalid
sbb eax, dword [rax + rbx*2 + 0x4b78784]
or byte [rdx + 0x19], bh
invalid

Function at 0x14000e710
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140044038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14000e74e
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 0x14000e747
call fcn.140015ca0
jmp 0x14000e72e
Function at 0x140012fe0
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 [0x140044028]
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 [0x140045f60]
mov ecx, dword [0x1400441a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400130fb
mov edi, dword [0x140045f5c]
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 0x1400130da
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 0x14001313c
mov ebp, dword [rsp + 0x20]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x14001314e
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 0x140013092
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001cdf0
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, [0x140045f60]
call fcn.14001bb50
cmp dword [0x140045f60], 0xffffffff
jne 0x140013048
lea rdi, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140045f5c], eax
lea rcx, [0x140045f60]
call fcn.14001baf0
jmp 0x140013048
mov dword [rsp + 0x20], 0
mov rcx, rsi
call fcn.140039e00
jmp 0x1400130da
mov rcx, r14
call fcn.140039ee0
test al, al
je 0x140013144
mov rax, qword [rsi + 0x10]
jmp 0x1400130be
Function at 0x140013350
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 [0x140044028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 8]
test rax, rax
je 0x14001356e
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 0x140013418
cmp ecx, dword [rdi + 0x10]
jae 0x14001356e
mov eax, dword [0x140045f60]
mov ecx, dword [0x1400441a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400134ec
mov edx, dword [0x140045f5c]
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 0x14001356e
mov eax, dword [0x140045f60]
mov ecx, dword [0x1400441a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001352d
mov eax, dword [0x140045f5c]
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 0x140013585
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
test rdx, rdx
je 0x140013592
mov r8, qword [rsp + 0x38]
mov r9d, dword [rsp + 0x30]
mov cl, byte [rsp + 0x5c]
test r8, r8
je 0x14001349a
test rax, rax
je 0x14001349a
test r9d, r9d
je 0x14001349a
test cl, cl
je 0x14001349a
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.14001cdf0
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140045f60]
call fcn.14001bb50
cmp dword [0x140045f60], 0xffffffff
jne 0x1400133be
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140045f5c], eax
lea rcx, [0x140045f60]
call fcn.14001baf0
jmp 0x1400133be
lea rcx, [0x140045f60]
call fcn.14001bb50
cmp dword [0x140045f60], 0xffffffff
jne 0x14001340b
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140045f5c], eax
lea rcx, [0x140045f60]
call fcn.14001baf0
jmp 0x14001340b
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
jmp 0x1400134d3
mov dword [rsp + 0x30], 0
jmp 0x140013463
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov cl, byte [rsp + 0x5c]
jmp 0x140013497
Function at 0x1400135b0
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 r15, r9
mov rbx, r8
mov rsi, rdx
mov qword [rsp + 0x38], rcx
mov rax, qword [0x140044028]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov eax, dword [0x140045f74]
mov ecx, dword [0x1400441a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140013719
xor r13d, r13d
test rsi, rsi
je 0x1400136f2
cmp r15, rbx
jbe 0x1400136f2
mov ebp, dword [0x140045f70]
lea r14, [rsp + 0x44]
mov dword [r14], 0
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand_s]
mov rax, r15
sub rax, rbx
sub rax, rsi
xor edx, edx
div rbp
mov rcx, rax
mov eax, dword [r14]
inc rcx
xor edx, edx
div rcx
mov r14, rdx
imul r14, rbp
add r14, rbx
sub r15, rsi
cmp r14, r15
ja 0x140013774
lea r13, [rsp + 0x48]
lea r12, [rsp + 0x50]
lea rdi, [rbp - 1]
mov rdx, r14
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 0x30
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov r9, r12
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x140013812
cmp qword [rsp + 0x48], 0x30
jne 0x140013820
mov r10, r13
cmp dword [rsp + 0x70], 0x10000
jne 0x14001375b
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 r13d, 0
cmovae r13, r8
cmp rax, rcx
jb 0x140013765
test r13, r13
je 0x140013765
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001cdf0
mov rax, r13
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140045f74]
call fcn.14001bb50
cmp dword [0x140045f74], 0xffffffff
jne 0x140013608
lea r14, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r14 + 0x28]
mov dword [0x140045f70], eax
lea rcx, [0x140045f74]
call fcn.14001baf0
jmp 0x140013608
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
add rdx, rax
cmp rdx, r15
mov r13, r10
jbe 0x14001367b
cmp r14, rbx
jbe 0x140013820
dec rbp
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 0x140013812
cmp qword [rsp + 0x48], 0x30
jne 0x140013820
cmp dword [rsp + 0x70], 0x10000
jne 0x1400137fa
mov rbx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
mov rcx, rbx
neg rcx
and rcx, rbp
lea rdx, [rcx + rbx]
mov r8, rax
sub r8, rcx
cmp r8, rsi
mov r13d, 0
cmovae r13, rdx
cmp rax, rcx
jb 0x140013804
test r13, r13
je 0x140013804
jmp 0x1400136f2
mov rbx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
add rbx, rax
cmp rbx, r14
jb 0x14001378a
jmp 0x140013820
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r13d, r13d
jmp 0x1400136f2
Function at 0x140015380
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
call fcn.14000c8a0
test al, al
je 0x1400153b3
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 0x1400153d4
mov rcx, rdi
call fcn.1400155d0
mov rcx, rdi
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsi + 0x58]
test rcx, rcx
jne 0x140015568
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x1400153f0
call qword [sym.imp.mozglue.dll_free]
mov rdi, qword [rsi + 0x38]
test rdi, rdi
jne 0x1400155ac
mov rax, qword [rsi + 0x28]
inc rax
cmp rax, 2
jae 0x14001543f
mov rax, qword [rsi + 0x20]
inc rax
cmp rax, 2
jae 0x1400154a2
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x140015505
mov rcx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140004fc0
lea rdi, [rsi + 0x28]
call fcn.14000cd90
mov rbx, rax
mov r14, qword [rsp + 0x58]
mov r15, qword [rdi]
call fcn.14000cda0
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 [0x14004a010]
mov rbx, qword [rdi]
call fcn.14000cda0
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, rbx
mov rax, r8
call qword [0x14004a010]
mov qword [rdi], 0
jmp 0x14001540a
lea rdi, [rsi + 0x20]
call fcn.14000cd90
mov rbx, rax
mov r14, qword [rsp + 0x58]
mov r15, qword [rdi]
call fcn.14000cda0
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 [0x14004a010]
mov rbx, qword [rdi]
call fcn.14000cda0
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, rbx
mov rax, r8
call qword [0x14004a010]
mov qword [rdi], 0
jmp 0x14001541b
lea rdi, [rsi + 0x18]
call fcn.14000cd90
mov rbx, rax
mov r14, qword [rsp + 0x58]
mov r15, qword [rdi]
call fcn.14000cda0
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 [0x14004a010]
mov rbx, qword [rdi]
call fcn.14000cda0
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, rbx
mov rax, r8
call qword [0x14004a010]
mov qword [rdi], 0
jmp 0x14001542c
mov rdx, qword [rsi + 0x68]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140015590
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x1400155c1
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 0x1400153e1
mov rcx, rdi
call fcn.1400155d0
mov rcx, rdi
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x1400153fd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140015ac0
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 [0x140044028]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov ecx, dword [0x140044038]
cmp ecx, 0xffffffff
je 0x140015af7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140015afc
call fcn.140015ca0
mov eax, dword [0x140045a98]
mov ecx, dword [0x1400441a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140015b56
lea rcx, [0x140045a98]
call fcn.14001bb50
cmp dword [0x140045a98], 0xffffffff
jne 0x140015b56
mov ecx, 8
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rax], 0
mov qword [0x140045a90], rax
lea rcx, [0x140045a98]
call fcn.14001baf0
mov rbx, qword [0x140045a90]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x140044280]
inc rax
xor ecx, ecx
lea rdx, [0x140044290]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140015bf7
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov qword [0x140044280], 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 0x140015c09
mov eax, dword [rsi]
mov dword [rsp + 0x30], 0x100
mov dword [rsp + 0x2c], eax
cmp eax, 0xff
jg 0x140015c4e
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.14001cdf0
nop
add rsp, 0x150
pop rbx
pop rdi
pop rsi
ret
inc rcx
cmp rcx, 0x100
jne 0x140015b79
jmp 0x140015baa
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.140020a10
test rax, rax
je 0x140015bc6
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.1400206c0
mov rcx, rdi
call int.140020760
jmp 0x140015bc6
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.140020a10
test rax, rax
je 0x140015bdb
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.1400206c0
mov rcx, rsi
call int.140020760
jmp 0x140015bdb