joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460060
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x460134
jb 0x460193
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.0045ff40
aeskeygenassist xmm1, xmm0, 1
call fcn.0045ff60
aeskeygenassist xmm1, xmm2, 2
call fcn.0045ff40
aeskeygenassist xmm1, xmm0, 2
call fcn.0045ff60
aeskeygenassist xmm1, xmm2, 4
call fcn.0045ff40
aeskeygenassist xmm1, xmm0, 4
call fcn.0045ff60
aeskeygenassist xmm1, xmm2, 8
call fcn.0045ff40
aeskeygenassist xmm1, xmm0, 8
call fcn.0045ff60
aeskeygenassist xmm1, xmm2, 0x10
call fcn.0045ff40
aeskeygenassist xmm1, xmm0, 0x10
call fcn.0045ff60
aeskeygenassist xmm1, xmm2, 0x20
call fcn.0045ff40
aeskeygenassist xmm1, xmm0, 0x20
call fcn.0045ff60
aeskeygenassist xmm1, xmm2, 0x40
call fcn.0045ff40
jmp 0x460201
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.0045fea0
aeskeygenassist xmm1, xmm2, 2
call fcn.0045ff00
aeskeygenassist xmm1, xmm2, 4
call fcn.0045fea0
aeskeygenassist xmm1, xmm2, 8
call fcn.0045ff00
aeskeygenassist xmm1, xmm2, 0x10
call fcn.0045fea0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.0045ff00
aeskeygenassist xmm1, xmm2, 0x40
call fcn.0045fea0
aeskeygenassist xmm1, xmm2, 0x80
call fcn.0045ff00
jmp 0x460201
aeskeygenassist xmm1, xmm0, 1
call fcn.0045fe60
aeskeygenassist xmm1, xmm0, 2
call fcn.0045fe60
aeskeygenassist xmm1, xmm0, 4
call fcn.0045fe60
aeskeygenassist xmm1, xmm0, 8
call fcn.0045fe60
aeskeygenassist xmm1, xmm0, 0x10
call fcn.0045fe60
aeskeygenassist xmm1, xmm0, 0x20
call fcn.0045fe60
aeskeygenassist xmm1, xmm0, 0x40
call fcn.0045fe60
aeskeygenassist xmm1, xmm0, 0x80
call fcn.0045fe60
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.0045fe60
aeskeygenassist xmm1, xmm0, 0x36
call fcn.0045fe60
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x46020e
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
pop rbp
ret
Function at 0x460de0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x460eaa
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.004027a0
xorps xmm15, xmm15
mov r14, qword [0x00547780]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x460e8f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x0046a900]
xor ebx, ebx
mov rcx, rdx
call fcn.004414c0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00461140
inc rbx
cmp rcx, rbx
jae 0x460e7e
mov edi, 1
lea rsi, [0x0046a900]
call fcn.004415a0
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x00491118]
lea rsi, [0x00490d90]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00455840
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00460de0
Function at 0x140001740
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 0x140001854
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140001854
cmp word [rax + rcx + 0x14], 0x78
jb 0x140001854
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 [0x140068010]
test rax, rax
je 0x140001854
cmp rdi, 0xffff
mov qword [rsp + 0x20], rsi
jbe 0x14000187c
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140068010]
mov r15, rax
mov eax, dword [r14 + 0x18]
test rax, rax
je 0x140001854
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 [0x140068010]
mov cl, byte [rdi]
test cl, cl
je 0x140001829
mov rdx, r13
cmp cl, byte [rax]
jne 0x14000182b
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140001819
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x140001858
movzx ecx, cl
lea rdx, [r12 + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs rsi, r12
cmp rbp, rsi
jne 0x1400017e3
xor eax, eax
jmp 0x140001886
mov edx, dword [r14 + 0x24]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140068010]
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 0x140001b90
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
cmp qword [rcx], rdx
je 0x140001c45
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r14, qword [rsi]
lea rax, [r14 + 1]
cmp rax, 2
jae 0x140001c19
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140001c05
mov qword [rsi], rdi
call fcn.140001ca0
mov r15, rax
mov r14, qword [rsp + 0x58]
cmp qword [0x140064628], 0
je case.default.0x140001c12
mov rcx, qword [0x140064628]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], r15
mov rdx, rdi
mov r8, rsi
mov r9, r14
call qword [0x140068010]
mov ecx, ebx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140001ca0
mov r8, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rsi
mov r9, rax
call fcn.1400093f0
mov rcx, qword [rsi]
call fcn.140009330
mov qword [rsi], 0
jmp 0x140001bbf
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetHandleVerifier
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001c88
lea rcx, [sym.firefox.exe_GetHandleVerifier]
cmp rax, rcx
jne 0x140001c8c
xor ecx, ecx
mov dl, 1
call fcn.140001fc0
jmp 0x140001be3
xor ecx, ecx
jmp 0x140001c95
call qword [0x140068010]
mov rcx, rax
xor edx, edx
jmp 0x140001c7e
invalid
in eax, 0x74
out 0x23, eax
xchg ebx, eax
mov ah, bl
push rbx
Function at 0x1400021a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x148
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, 0xffffffff
mov qword [rcx], rax
mov ecx, dword [0x140062080]
cmp ecx, 0xffffffff
je 0x1400021db
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400021e0
call fcn.140002380
mov eax, dword [0x140064618]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14000223a
lea rcx, [0x140064618]
call fcn.14002b4a4
cmp dword [0x140064618], 0xffffffff
jne 0x14000223a
mov ecx, 8
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rax], 0
mov qword [0x140064610], rax
lea rcx, [0x140064618]
call fcn.14002b444
mov rdi, qword [0x140064610]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x140062e08]
inc rax
xor ecx, ecx
lea rdx, [0x140062e10]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x1400022de
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], 0
mov qword [0x140062e08], r8
mov dword [rsi], r8d
mov eax, dword [rax + 0x10]
mov dword [rsi + 4], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [rsi]
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x24], eax
cmp eax, 0xffffffff
je 0x1400022f0
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x24], eax
cmp eax, 0xff
jg 0x140002332
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14002c610
mov rax, rsi
add rsp, 0x148
pop rdi
pop rsi
ret
inc rcx
cmp rcx, 0x100
jne 0x14000225d
jmp 0x140002292
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.14003a6e0
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x196
mov r9, rax
call fcn.14003a3c0
mov rcx, rdi
call fcn.14003a460
mov eax, dword [rsi]
jmp 0x1400022ae
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.14003a6e0
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x197
mov r9, rax
call fcn.14003a3c0
mov rcx, rdi
call fcn.14003a460
jmp 0x1400022c1
Function at 0x140007ac0
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 rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x50], rax
test r8, r8
je 0x140007c04
mov ebp, r9d
test r9d, r9d
je 0x140007c04
mov rbx, r8
mov edi, edx
mov eax, dword [0x140064b04]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140007c31
mov r15d, ebp
cmp r15, rbx
ja 0x140007c7e
xor eax, eax
mov rcx, rbx
sub rcx, r15
cmovae rax, rcx
cmp rax, 0x100001
mov r13d, 0x100000
cmovae r13, rax
mov r12d, dword [0x140064b00]
mov eax, dword [0x140064b10]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140007bab
lea rcx, [0x140064b10]
call fcn.14002b4a4
cmp dword [0x140064b10], 0xffffffff
jne 0x140007bab
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [r14 + 0x10]
mov qword [0x140064b08], rax
lea rcx, [0x140064b10]
call fcn.14002b444
mov rax, qword [0x140064b08]
add r15, rbx
cmp rax, r15
cmovb r15, rax
mov ecx, edi
cmp r15, rcx
jb 0x140007c04
mov rdx, r13
neg rdx
lea rax, [r12 - 1]
and rax, rdx
add rax, r13
xor edx, edx
sub r15, rcx
cmovae rdx, r15
neg r12
and r12, rdx
sub r12, rax
jbe 0x140007c04
test rax, rax
je 0x140007c73
cmp r12, 0xffffffffffffffff
je 0x140007c73
mov qword [rsi], r12
mov qword [rsi + 8], rax
mov byte [rsi + 0x10], 1
jmp 0x140007c12
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002c610
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140064b04]
call fcn.14002b4a4
cmp dword [0x140064b04], 0xffffffff
jne 0x140007b21
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r14 + 0x28]
mov dword [0x140064b00], eax
lea rcx, [0x140064b04]
call fcn.14002b444
jmp 0x140007b21
int3
mov r13d, 0x100000
jmp 0x140007b49
Function at 0x140007c90
Capabilities:
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 [0x140062030]
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 [0x140064af4]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140007dab
mov edi, dword [0x140064af0]
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 0x140007d8a
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 0x140007dec
mov ebp, dword [rsp + 0x20]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x140007dfe
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 0x140007d42
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002c610
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, [0x140064af4]
call fcn.14002b4a4
cmp dword [0x140064af4], 0xffffffff
jne 0x140007cf8
lea rdi, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140064af0], eax
lea rcx, [0x140064af4]
call fcn.14002b444
jmp 0x140007cf8
mov dword [rsp + 0x20], 0
mov rcx, rsi
call fcn.140051840
jmp 0x140007d8a
mov rcx, r14
call fcn.140034790
test al, al
je 0x140007df4
mov rax, qword [rsi + 0x10]
jmp 0x140007d6e
Function at 0x140008000
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 [0x140062030]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 8]
test rax, rax
je 0x140008209
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 0x1400080c8
cmp ecx, dword [rdi + 0x10]
jae 0x140008209
mov eax, dword [0x140064af4]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140008187
mov edx, dword [0x140064af0]
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 0x140008209
mov eax, dword [0x140064af4]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400081c8
mov eax, dword [0x140064af0]
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 0x140008220
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
test rcx, rcx
je 0x14000822d
mov r8, qword [rsp + 0x38]
mov r9d, dword [rsp + 0x30]
mov dl, byte [rsp + 0x5c]
test r8, r8
je 0x14000814a
test rax, rax
je 0x14000814a
test r9d, r9d
je 0x14000814a
test dl, dl
je 0x14000814a
inc dword [rdi + 0x18]
mov qword [rsi], rcx
mov dword [rsi + 8], r9d
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi + 0x20], xmm0
mov eax, dword [rsp + 0x58]
mov dword [rsi + 0x30], eax
mov byte [rsi + 0x34], dl
mov byte [rsi + 0x38], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002c610
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140064af4]
call fcn.14002b4a4
cmp dword [0x140064af4], 0xffffffff
jne 0x14000806e
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140064af0], eax
lea rcx, [0x140064af4]
call fcn.14002b444
jmp 0x14000806e
lea rcx, [0x140064af4]
call fcn.14002b4a4
cmp dword [0x140064af4], 0xffffffff
jne 0x1400080bb
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140064af0], eax
lea rcx, [0x140064af4]
call fcn.14002b444
jmp 0x1400080bb
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
jmp 0x140008170
mov dword [rsp + 0x30], 0
jmp 0x140008113
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov dl, byte [rsp + 0x5c]
jmp 0x140008147
Function at 0x140008590
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140062080]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400085ce
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 0x1400085c7
call fcn.140002380
jmp 0x1400085ae

Function at 0x14000ac10
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x148
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x20], rcx
cmp rcx, 0x10001
jae 0x14000acad
mov r14d, 0x10000
sub r14, rsi
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
movzx edi, word [rsp + 0x28]
mov dword [rsp + 0x28], edi
cmp r14, rdi
jb 0x14000ac4d
mov ecx, 0x800
mov r8d, 0x1000
mov edx, 0x800
mov rax, r8
shr rdx, 1
mov r8, rcx
cmp rcx, rsi
mov rcx, rdx
jae 0x14000ac78
neg eax
and edi, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14002c610
mov rax, rdi
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, [0x140055088]
lea r8, str.size___kAllocGranularity
lea rcx, [rsp + 0x20]
call fcn.14003b5e0
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_sandbox_win_src_interception.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x2b
mov r9, rax
call fcn.14003a3c0
mov rcx, rdi
call fcn.14003a460
jmp 0x14000ac3f
Function at 0x14000e1d0
Capabilities:
Encode data using base64

Disassembly:
push rsi
sub rsp, 0x20
cmp byte [rcx + 0x6c], 0
je 0x14000e211
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
jne 0x14000e1fb
mov rcx, rsi
mov r8, rax
add rsp, 0x20
pop rsi
jmp fcn.14000e7b0
mov r8d, 0x44
mov rcx, rdx
mov rdx, rax
call sub.ntdll.dll_memcpy
add qword [rsi + 8], 0x44
add rsp, 0x20
pop rsi
ret

Function at 0x14000e600
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x88], rax
cmp byte [rcx + 0x6c], 0
je 0x14000e799
mov rsi, rdx
mov rdi, rcx
mov rdx, qword [rcx + 0x60]
lea rbx, [rsp + 0x30]
lea r9, [rsp + 0x3c]
mov rcx, rbx
mov r8d, 2
call fcn.14000e9d0
mov rbx, qword [rbx]
test rbx, rbx
je 0x14000e7a0
cmp dword [rbx], 0
je 0x14000e761
lea rax, [rdi + 0x30]
mov qword [rsp + 0x28], rax
xor r12d, r12d
xorps xmm6, xmm6
lea r15, [rsp + 0x40]
mov rbp, qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rax, r12
shl rax, 4
test dword [rbx + rax + 0x10], 0xc0000020
jne 0x14000e739
lea r14, [rbx + rax]
add r14, 8
test rsi, rsi
je 0x14000e6f2
mov rax, qword [rsi]
cmp qword [rsi + 8], rax
je 0x14000e6f2
xor r13d, r13d
mov rdx, qword [r14]
mov rcx, r13
shl rcx, 6
lea rcx, [rcx + r13*4]
add rcx, rax
call rbp
test eax, eax
jne 0x14000e739
inc r13d
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
sub rcx, rax
sar rcx, 2
movabs rdx, 0xf0f0f0f0f0f0f0f1
imul rcx, rdx
cmp rcx, r13
ja 0x14000e6b7
mov r8, qword [r14]
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x80], 0
mov ecx, 0x44
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov rdx, qword [rdi + 0x38]
cmp rdx, qword [rdi + 0x40]
jne 0x14000e749
mov rcx, qword [rsp + 0x28]
mov r8, r15
call fcn.14000e7b0
inc r12
mov eax, dword [rbx]
cmp r12, rax
jb 0x14000e689
jmp 0x14000e761
mov r8d, 0x44
mov rcx, rdx
mov rdx, r15
call sub.ntdll.dll_memcpy
add qword [rdi + 0x38], 0x44
jmp 0x14000e739
mov rcx, rbx
call sub.mozglue.dll_void___cdecl_operator_delete___void____ptr64_
xor esi, esi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14002c610
mov eax, esi
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov esi, 0x3f0
jmp 0x14000e76b
mov esi, dword [rsp + 0x3c]
jmp 0x14000e76b
Function at 0x14000e7b0
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 r13, qword [rsi + 8]
sub r13, rcx
sar r13, 2
movabs r9, 0xf0f0f0f0f0f0f0f1
mov rax, rdx
sub rax, rcx
movabs rdx, 0x7878787878787879
imul rdx
mov r15, rdx
imul r13, r9
inc r13
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, r13
cmovbe rax, r13
cmp rdx, r9
cmova rax, rcx
cmp rax, rcx
ja 0x14000e918
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 0x14000e91d
test rax, rax
je 0x14000e937
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 rbp, [rax + r15*4]
lea rcx, [r14 + rbp]
mov r8d, 0x44
mov rdx, r12
call sub.ntdll.dll_memcpy
mov r15, qword [rsi]
mov r12, qword [rsi + 8]
cmp r12, rdi
jne 0x14000e93f
cmp r15, rdi
je 0x14000e8ca
mov r12, r14
mov r8d, 0x44
mov rcx, r12
mov rdx, r15
call sub.ntdll.dll_memcpy
add r12, 0x44
add r15, 0x44
cmp r15, rdi
jne 0x14000e8a9
mov rdi, qword [rsi]
test rdi, rdi
je 0x14000e8eb
mov rdx, qword [rsi + 0x10]
sub rdx, rdi
cmp rdx, 0x1000
jae 0x14000e99d
mov rcx, rdi
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64__unsigned_long_long_unsigned___int64__
mov qword [rsi], r14
mov rax, r13
shl rax, 6
lea rax, [rax + r13*4]
add rax, r14
mov qword [rsi + 8], rax
add rbx, r14
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140034030
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 0x14000e874
xor r14d, r14d
jmp 0x14000e874
cmp r15, rdi
je 0x14000e969
mov r12, r14
mov r8d, 0x44
mov rcx, r12
mov rdx, r15
call sub.ntdll.dll_memcpy
add r12, 0x44
add r15, 0x44
cmp r15, rdi
jne 0x14000e947
mov r12, qword [rsi + 8]
cmp r12, rdi
je 0x14000e8c7
lea r15, [r14 + rbp]
add r15, 0x44
mov r8d, 0x44
mov rcx, r15
mov rdx, rdi
call sub.ntdll.dll_memcpy
add rdi, 0x44
add r15, 0x44
cmp rdi, r12
jne 0x14000e97a
jmp 0x14000e8c7
mov rax, qword [rdi - 8]
add rdi, 0xfffffffffffffff8
sub rdi, rax
cmp rdi, 0x20
jae 0x14000e9ba
add rdx, 0x27
mov rdi, rax
jmp 0x14000e8e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000f5a0
Capabilities:
Parse pe header

Disassembly:
mov rax, rcx
lea rcx, [0x140000000]
and rcx, 0xfffffffffffffffc
mov qword [rax], rcx
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov byte [rax + 0x18], 0
je 0x14000f62c
movzx edx, word [rcx]
cmp edx, 0x5a4d
jne 0x14000f62c
lea r8, [rax + 8]
movsxd r9, dword [rcx + 0x3c]
lea rdx, [rcx + r9]
mov qword [r8], rdx
cmp dword [rcx + r9], 0x4550
jne 0x14000f62c
movzx r8d, word [rdx + 0x18]
cmp r8d, 0x20b
jne 0x14000f62c
mov r8d, dword [rdx + 0x50]
cmp r8d, 0x148
jb 0x14000f62c
lea r9d, [r8 - 1]
add rcx, r9
mov qword [rax + 0x10], rcx
mov ecx, dword [rdx + 0x84]
cmp ecx, 0x10
mov r9d, 0x10
cmovb r9d, ecx
cmp r9d, 2
jb 0x14000f62c
cmp dword [rdx + 0x90], r8d
setae byte [rax + 0x18]
ret