joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020e60
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 4
cmp qword [r8 + 0x18], 7
jbe 0x140020e89
mov r8, qword [r8]
mov rcx, qword [rdx]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
mov rdx, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140020ee2
cmp dword [rsp + 0x3c], 4
jne 0x140020ef4
mov eax, dword [rsp + 0x44]
mov byte [rsi + 0x10], 0
bts rax, 0x20
mov qword [rsi], rax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001bc70
mov rax, rsi
add rsp, 0x50
pop rsi
ret
cmp eax, 2
jne 0x140020f12
mov byte [rsi + 0x10], 0
mov qword [rsi], 0
jmp 0x140020ecc
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007065d0000003f
mov qword [rsi + 8], rax
jmp 0x140020ecc
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], 0x3b
mov dword [rsi + 0xc], ecx
jmp 0x140020ecc

Function at 0x140023940
Capabilities:
Get token membership
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdi, [rsp + 0x3c]
mov dword [rdi], 0x44
lea r8, [rsp + 0x40]
mov ecx, 0x1a
xor edx, edx
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x140023a18
lea rbx, [rsp + 0x40]
lea r8, [rsp + 0x38]
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140023a63
cmp dword [rsp + 0x38], 0
je 0x140023a7e
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
lea r8, str.EnableLUA
mov rcx, 0xffffffff80000002
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140023a87
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_WinTokenUtils.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x26
jmp 0x140023a42
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x14
mov byte [rsi + 0x10], 1
lea rdx, str._builds_worker_checkouts_gecko_toolkit_xre_WinTokenUtils.cpp
mov qword [rsi], rdx
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], ecx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14001bc70
mov rax, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x19
jmp 0x140023a31
xor eax, eax
mov byte [rsi + 0x10], al
mov byte [rsi], al
jmp 0x140023a45
cmp dword [rsp + 0x3c], 0
mov byte [rsi + 0x10], 0
sete byte [rsi]
jmp 0x140023a45
Function at 0x140023f70
Capabilities:
Delete file

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rax, [0x14004e478]
mov qword [rcx], rax
cmp byte [rcx + 9], 0
je 0x140023fad
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140023f9c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 0x10
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140002c90
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140023fc1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x30], 0
lea rcx, [rsi + 0x10]
cmp qword [rsi + 0x28], 8
jb 0x140023fd7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140023f88

Function at 0x140025b40
Capabilities:
Hash data using fnv

Disassembly:
push rsi
mov rax, rdx
movzx edx, byte [r8]
movabs rsi, 0xcbf29ce484222325
xor rsi, rdx
movabs r9, 0x100000001b3
imul rsi, r9
movzx edx, byte [r8 + 1]
xor rdx, rsi
imul rdx, r9
movzx esi, byte [r8 + 2]
xor rsi, rdx
imul rsi, r9
movzx edx, byte [r8 + 3]
xor rdx, rsi
imul rdx, r9
and rdx, qword [rcx + 0x30]
mov r10, qword [rcx + 8]
mov r9, qword [rcx + 0x18]
lea r11, [rdx + rdx]
inc r11
shl rdx, 4
mov rcx, qword [r9 + rdx]
mov r8d, dword [r8]
mov rdx, rcx
cmp r10, rcx
je 0x140025bc4
mov rsi, qword [r9 + r11*8]
mov rsi, qword [rsi]
cmp rdx, rsi
je 0x140025bcc
cmp dword [rdx + 0x10], r8d
je 0x140025bc9
mov rdx, qword [rdx]
jmp 0x140025ba8
mov rsi, rcx
jmp 0x140025bb4
mov r10, rdx
mov qword [rax], r10
pop rsi
ret

Function at 0x140025be0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r14
push rsi
push rdi
push rbx
mov rax, rdx
mov r14, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 7
jbe 0x140025bf6
mov r8, qword [r8]
movabs rbx, 0xcbf29ce484222325
mov rdx, r14
add rdx, r14
je 0x140025c2d
xor edi, edi
movabs r9, 0x100000001b3
movzx esi, byte [r8 + rdi]
xor rsi, rbx
imul rsi, r9
inc rdi
mov rbx, rsi
cmp rdx, rdi
jne 0x140025c14
jmp 0x140025c30
mov rsi, rbx
and rsi, qword [rcx + 0x30]
mov r9, qword [rcx + 8]
mov r10, qword [rcx + 0x18]
mov rcx, rsi
shl rcx, 4
mov r11, qword [r10 + rcx]
add rsi, rsi
inc rsi
mov rcx, r11
cmp r9, r11
je 0x140025c74
mov rdx, qword [r10 + rsi*8]
mov rdx, qword [rdx]
cmp rcx, rdx
je 0x140025cb6
cmp qword [rcx + 0x20], r14
jne 0x140025c99
cmp qword [rcx + 0x28], 7
jbe 0x140025c79
mov rdi, qword [rcx + 0x10]
jmp 0x140025c7d
mov rdx, r11
jmp 0x140025c5c
lea rdi, [rcx + 0x10]
test r14, r14
je 0x140025cb3
xor edx, edx
movzx ebx, word [rdi + rdx*2]
cmp bx, word [r8 + rdx*2]
jne 0x140025c99
inc rdx
cmp r14, rdx
jne 0x140025c84
jmp 0x140025c9e
mov rcx, qword [rcx]
jmp 0x140025c50
xor edx, edx
movzx ebx, word [r8 + rdx*2]
cmp bx, word [rdi + rdx*2]
jne 0x140025cb6
inc rdx
cmp r14, rdx
jne 0x140025ca0
mov r9, rcx
mov qword [rax], r9
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140025d60
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
mov rax, rdx
movzx edx, byte [r8]
movabs rdi, 0xcbf29ce484222325
xor rdi, rdx
movabs rdx, 0x100000001b3
imul rdi, rdx
movzx esi, byte [r8 + 1]
xor rsi, rdi
imul rsi, rdx
movzx edi, byte [r8 + 2]
xor rdi, rsi
imul rdi, rdx
movzx esi, byte [r8 + 3]
xor rsi, rdi
imul rsi, rdx
and rsi, qword [rcx + 0x30]
mov r11, qword [rcx + 8]
mov r9, qword [rcx + 0x18]
lea r10, [rsi + rsi]
inc r10
shl rsi, 4
mov rdx, qword [r9 + rsi]
mov r8d, dword [r8]
mov rcx, rdx
cmp r11, rdx
je 0x140025de5
mov rsi, qword [r9 + r10*8]
mov rsi, qword [rsi]
cmp rcx, rsi
je 0x140025e1c
cmp dword [rcx + 0x10], r8d
je 0x140025dea
mov rcx, qword [rcx]
jmp 0x140025dc9
mov rsi, rdx
jmp 0x140025dd5
mov rsi, rcx
cmp r11, rdx
je 0x140025e09
mov rdi, qword [r9 + r10*8]
mov rdi, qword [rdi]
cmp rsi, rdi
je 0x140025e0e
cmp r8d, dword [rsi + 0x10]
jne 0x140025e0e
mov rsi, qword [rsi]
jmp 0x140025ded
mov rdi, rdx
jmp 0x140025df9
cmp rcx, rsi
je 0x140025e1c
mov qword [rax], rcx
mov qword [rax + 8], rsi
jmp 0x140025e23
mov qword [rax], r11
mov qword [rax + 8], r11
pop rdi
pop rsi
ret

Function at 0x1400260f0
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r15, r9
mov r14, rdx
movzx eax, byte [r8]
movabs rdx, 0xcbf29ce484222325
xor rdx, rax
movabs rax, 0x100000001b3
imul rdx, rax
movzx ebx, byte [r8 + 1]
xor rbx, rdx
imul rbx, rax
movzx edx, byte [r8 + 2]
xor rdx, rbx
imul rdx, rax
movzx ebx, byte [r8 + 3]
xor rbx, rdx
imul rbx, rax
and rbx, qword [rcx + 0x30]
lea r9, [rbx + rbx]
mov rax, qword [rcx + 8]
mov rsi, qword [rcx + 0x18]
shl rbx, 4
mov rdx, qword [rsi + rbx]
mov rbx, rax
cmp rdx, rax
je 0x140026177
lea rbx, [r9*8]
or rbx, 8
mov rbx, qword [rsi + rbx]
mov rbx, qword [rbx]
mov edi, dword [r8]
cmp rbx, rdx
je 0x1400261b0
mov rbx, qword [rbx + 8]
cmp edi, dword [rbx + 0x10]
jne 0x14002617a
mov rax, qword [r15]
mov rdx, qword [r15 + 8]
mov qword [rdx], rax
mov rax, qword [r15]
mov rdx, qword [r15 + 8]
mov qword [rax + 8], rdx
dec qword [rcx + 0x10]
mov rcx, r15
call fcn.140025ec0
mov qword [r14], rbx
xor eax, eax
jmp 0x140026214
mov rbx, qword [r15]
cmp rdx, rbx
je 0x1400261ed
mov rax, qword [r15 + 8]
mov qword [rax], rbx
mov rax, qword [rbx + 8]
mov qword [rax], rdx
mov rax, qword [rdx + 8]
mov qword [rax], r15
mov rax, qword [rdx + 8]
mov rdi, qword [rbx + 8]
mov qword [rdx + 8], rdi
mov rdi, qword [r15 + 8]
mov qword [rbx + 8], rdi
mov qword [r15 + 8], rax
mov rax, qword [rcx + 8]
mov rsi, qword [rcx + 0x18]
mov rbx, qword [rsi + r9*8]
cmp rbx, rax
jne 0x140026227
mov qword [rsi + r9*8], r15
shl r9, 3
mov rax, qword [rcx + 0x18]
or r9, 8
mov qword [rax + r9], r15
call fcn.140026260
mov qword [r14], r15
mov al, 1
mov byte [r14 + 8], al
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
cmp rbx, rdx
jne 0x140026232
mov qword [rsi + r9*8], r15
jmp 0x14002620a
or r9, 1
mov rax, qword [rsi + r9*8]
mov rax, qword [rax]
mov qword [rsi + r9*8], rax
cmp rax, r15
je 0x14002620a
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax + r9*8]
mov rdx, qword [rdx + 8]
mov qword [rax + r9*8], rdx
jmp 0x14002620a
Function at 0x1400266e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r15, r9
mov r14, rdx
mov rdx, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 7
jbe 0x140026700
mov r8, qword [r8]
movabs rdi, 0xcbf29ce484222325
mov rax, rdx
add rax, rdx
je 0x140026737
xor esi, esi
movabs r9, 0x100000001b3
movzx ebx, byte [r8 + rsi]
xor rbx, rdi
imul rbx, r9
inc rsi
mov rdi, rbx
cmp rax, rsi
jne 0x14002671e
jmp 0x14002673a
mov rbx, rdi
and rbx, qword [rcx + 0x30]
lea r9, [rbx + rbx]
mov r11, qword [rcx + 8]
mov r10, qword [rcx + 0x18]
shl rbx, 4
mov rax, qword [r10 + rbx]
mov rbx, r11
cmp rax, r11
je 0x14002676d
lea rsi, [r9*8]
or rsi, 8
mov rsi, qword [r10 + rsi]
mov rbx, qword [rsi]
cmp rbx, rax
je 0x1400267ef
mov rbx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x20]
jne 0x14002676d
test rdx, rdx
je 0x1400267a7
cmp qword [rbx + 0x28], 7
jbe 0x14002678e
mov rsi, qword [rbx + 0x10]
jmp 0x140026792
lea rsi, [rbx + 0x10]
xor edi, edi
movzx ebp, word [r8 + rdi*2]
cmp bp, word [rsi + rdi*2]
jne 0x14002676d
inc rdi
cmp rdx, rdi
jne 0x140026794
mov rax, qword [r15]
mov rdx, qword [r15 + 8]
mov qword [rdx], rax
mov rax, qword [r15]
mov rdx, qword [r15 + 8]
mov qword [rax + 8], rdx
dec qword [rcx + 0x10]
lea rcx, [r15 + 0x10]
call fcn.140002c90
mov edx, 0x38
mov rcx, r15
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64__unsigned_long_long_unsigned___int64__
mov qword [r14], rbx
xor eax, eax
mov byte [r14 + 8], al
mov rax, r14
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdx, qword [r15]
cmp rax, rdx
je 0x14002682f
mov rbp, qword [r15 + 8]
mov qword [rbp], rdx
mov rbp, qword [rdx + 8]
mov qword [rbp], rax
mov rbp, qword [rax + 8]
mov qword [rbp], r15
mov rbp, qword [rax + 8]
mov rbx, qword [rdx + 8]
mov qword [rax + 8], rbx
mov rbx, qword [r15 + 8]
mov qword [rdx + 8], rbx
mov qword [r15 + 8], rbp
mov r11, qword [rcx + 8]
mov r10, qword [rcx + 0x18]
mov rdx, qword [r10 + r9*8]
cmp rdx, r11
jne 0x140026858
mov qword [r10 + r9*8], r15
shl r9, 3
mov rax, qword [rcx + 0x18]
or r9, 8
mov qword [rax + r9], r15
call fcn.140026890
mov qword [r14], r15
mov al, 1
jmp 0x1400267db
cmp rdx, rax
jne 0x140026863
mov qword [r10 + r9*8], r15
jmp 0x14002684c
or r9, 1
mov rax, qword [r10 + r9*8]
mov rax, qword [rax]
mov qword [r10 + r9*8], rax
cmp rax, r15
je 0x14002684c
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax + r9*8]
mov rdx, qword [rdx + 8]
mov qword [rax + r9*8], rdx
jmp 0x14002684c
Function at 0x140026b10
Capabilities:
Hash data using fnv

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
movzx eax, byte [r8 + 0x10]
movabs rbx, 0xcbf29ce484222325
xor rbx, rax
movabs rax, 0x100000001b3
imul rbx, rax
movzx edi, byte [r8 + 0x11]
xor rdi, rbx
imul rdi, rax
movzx ebx, byte [r8 + 0x12]
xor rbx, rdi
imul rbx, rax
movzx esi, byte [r8 + 0x13]
xor rsi, rbx
imul rsi, rax
and rsi, qword [rcx + 0x30]
mov r14, rdx
lea rdx, [rsi + rsi]
mov rdi, qword [rcx + 0x18]
mov rbx, rsi
shl rbx, 4
lea rax, [rdi + rbx]
mov rbx, qword [rdi + rbx]
cmp qword [rdi + rdx*8 + 8], r8
jne 0x140026ba3
cmp rbx, r8
jne 0x140026bad
mov rdx, qword [rcx + 8]
mov qword [rax], rdx
lea rax, [rsi + rsi]
inc rax
lea rdx, [rcx + 8]
shl rax, 3
add rax, qword [rcx + 0x18]
jmp 0x140026bb9
cmp rbx, r8
jne 0x140026bbf
mov rdx, r8
jmp 0x140026bb9
lea rax, [rdi + rdx*8]
add rax, 8
lea rdx, [r8 + 8]
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rsi, qword [r8]
mov rax, qword [r8 + 8]
mov qword [rax], rsi
mov rax, qword [r8]
mov rdx, qword [r8 + 8]
mov qword [rax + 8], rdx
dec qword [rcx + 0x10]
mov rcx, r8
call fcn.140025ec0
mov qword [r14], rsi
mov rax, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400272c0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r13, rcx
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r12d, r12d
lea rsi, [rsp + 0x30]
xor eax, eax
xor ecx, ecx
cpuid
mov edi, eax
mov dword [rsi], ebx
mov dword [rsi + 4], edx
mov dword [rsi + 8], ecx
mov byte [rsi + 0xc], 0
lea rbp, [r13 + 0x30]
mov rcx, rbp
mov rdx, rsi
call fcn.140001f20
test edi, edi
jg 0x1400273eb
mov eax, 0x80000000
xor ecx, ecx
cpuid
cmp eax, 0x80000004
jl 0x140027396
mov edi, eax
lea rbp, [rsp + 0x30]
mov eax, 0x80000002
xor ecx, ecx
cpuid
mov dword [rbp], eax
mov dword [rbp + 4], ebx
mov dword [rbp + 8], ecx
mov dword [rbp + 0xc], edx
mov eax, 0x80000003
xor ecx, ecx
cpuid
mov dword [rbp + 0x10], eax
mov dword [rbp + 0x14], ebx
mov dword [rbp + 0x18], ecx
mov dword [rbp + 0x1c], edx
mov eax, 0x80000004
xor ecx, ecx
cpuid
mov dword [rbp + 0x20], eax
mov dword [rbp + 0x24], ebx
mov dword [rbp + 0x28], ecx
mov dword [rbp + 0x2c], edx
mov byte [rbp + 0x30], 0
lea rcx, [r13 + 0x50]
mov rdx, rbp
call fcn.140001f20
cmp edi, 0x80000007
jl 0x140027396
mov eax, 0x80000007
xor ecx, ecx
cpuid
shr edx, 8
and dl, 1
mov byte [r13 + 0x27], dl
cmp byte [r13 + 0x27], 0
je 0x1400273bc
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001bc70
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r13 + 0x28], 0
je 0x14002739d
mov eax, 0x40000000
xor ecx, ecx
cpuid
cmp edx, 0x76482074
jne 0x14002739d
cmp ebx, 0x7263694d
jne 0x14002739d
cmp ecx, 0x666f736f
jne 0x14002739d
mov byte [r13 + 0x27], 1
jmp 0x14002739d
mov eax, 1
xor ecx, ecx
cpuid
mov r14d, ecx
mov r15d, edx
mov r8d, eax
cmp edi, 7
jl 0x140027412
mov eax, 7
xor ecx, ecx
cpuid
mov r12d, ebx
and r12d, 0x20
mov dword [r13], r8d
mov eax, r8d
and eax, 0xf
mov dword [r13 + 0x10], eax
mov eax, r8d
shr eax, 0xc
and eax, 3
mov dword [r13 + 4], eax
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov rdx, rbp
call fcn.140027180
mov eax, dword [rsi + 0xc]
mov dword [r13 + 8], eax
mov eax, dword [rsi + 8]
mov dword [r13 + 0xc], eax
mov eax, dword [rsi + 4]
mov dword [r13 + 0x18], eax
mov eax, dword [rsi]
mov dword [r13 + 0x14], eax
mov eax, r15d
shr eax, 0x17
and al, 1
mov byte [r13 + 0x1c], al
mov eax, r15d
shr eax, 0x19
and al, 1
mov byte [r13 + 0x1d], al
shr r15d, 0x1a
and r15b, 1
mov byte [r13 + 0x1e], r15b
mov eax, r14d
and al, 1
mov byte [r13 + 0x1f], al
mov eax, r14d
shr eax, 9
and al, 1
mov byte [r13 + 0x20], al
mov eax, r14d
shr eax, 0x13
and al, 1
mov byte [r13 + 0x21], al
mov eax, r14d
shr eax, 0x14
and al, 1
mov byte [r13 + 0x22], al
mov eax, r14d
shr eax, 0x17
and al, 1
mov byte [r13 + 0x23], al
mov eax, r14d
shr eax, 0x1f
mov byte [r13 + 0x28], al
mov eax, 0x1c000000
mov ecx, r14d
and ecx, eax
cmp ecx, eax
jne 0x1400274dd
xor ecx, ecx
xgetbv
and eax, 6
cmp eax, 6
sete al
jmp 0x1400274df
xor eax, eax
mov byte [r13 + 0x24], al
shr r14d, 0x19
and r14b, 1
mov byte [r13 + 0x26], r14b
test al, al
setne al
test r12d, r12d
setne cl
and cl, al
mov byte [r13 + 0x25], cl
jmp 0x140027315
Function at 0x140027a50
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r9
mov rdi, r8
mov ebx, edx
mov rsi, rcx
call fcn.140027ac0
test rdi, rdi
je 0x140027a9b
test al, al
je 0x140027a9b
movsxd rax, ebx
mov rdx, rax
sar rdx, 0x3f
add rax, rdi
adc rdx, 0
mov ecx, edx
and ecx, 1
neg rcx
xor rdx, rcx
jne 0x140027a9b
test rcx, rcx
js 0x140027a9b
cmp qword [rsi + 0x10], rax
jae 0x140027aa7
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, rsi
mov edx, ebx
mov r8, rdi
mov r9, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140027ad0

Function at 0x140027ad0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r14, r9
mov r15, r8
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor eax, eax
cmp dword [rcx + 8], 0
setne al
mov ebp, edx
sar ebp, 0x1f
lea r12d, [rax + rax]
add r12d, 4
mov rcx, qword [rcx]
mov qword [rsp + 0x20], r8
mov edx, r12d
mov r8d, ebp
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [r14], rax
test rax, rax
je 0x140027b85
mov rdi, qword [rsp + 0xc0]
lea rsi, [rsp + 0x28]
mov r8d, 0x30
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rsi + 0x18]
sub rcx, rbx
add rcx, qword [rsi + 8]
test rax, rax
cmove rcx, rax
mov qword [rdi], rcx
mov sil, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001bc70
mov eax, esi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r15
mov edx, r12d
mov r8d, ebp
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [r14], rax
test rax, rax
jne 0x140027b30
xor esi, esi
jmp 0x140027b67

Function at 0x1400286b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140028736
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x20]
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14002872e
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.140024d10
mov rcx, r12
call fcn.140024d60
add rdi, rbx
sub rsi, rbx
jne 0x1400286f8
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14001bc70
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002b2d0
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, 0x38
test r8, r8
je 0x14002b302
mov rdi, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x14002b302
cmp word [rax + rcx + 0x14], 0x78
jae 0x14002b315
xor eax, eax
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, r8
mov r12, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rdi]
mov rax, qword [rax + 8]
mov rcx, rdi
call qword [case.0x14001b2ee.0]
test rax, rax
je 0x14002b302
cmp r12, 0xffff
ja 0x14002b348
mov word [r14], r12w
mov al, 1
jmp 0x14002b304
mov rsi, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rdi]
mov rax, qword [rax + 8]
mov rcx, rdi
call qword [case.0x14001b2ee.0]
mov edx, dword [rsi + 0x18]
lea rcx, [rdx*4]
test rcx, rcx
je 0x14002b302
mov qword [rsp + 0x30], rsi
lea r15, [rax + rdx*4]
lea r13, [r12 + 1]
mov qword [rsp + 0x28], rax
mov rbp, rax
mov rbx, r15
sub rbx, rbp
mov rax, rbx
sar rax, 2
shr rbx, 0x3f
add rbx, rax
and rbx, 0xfffffffffffffffe
mov edx, dword [rbp + rbx*2]
mov rax, qword [rdi]
mov rax, qword [rax + 8]
mov rcx, rdi
call qword [case.0x14001b2ee.0]
mov cl, byte [r12]
test cl, cl
je 0x14002b3cb
mov rdx, r13
cmp cl, byte [rax]
jne 0x14002b3cd
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x14002b3bb
xor ecx, ecx
lea rbx, [rbx*2]
add rbx, rbp
movzx ecx, cl
movzx eax, byte [rax]
mov edx, ecx
sub edx, eax
lea rsi, [rbx + 4]
test edx, edx
cmovg rbp, rsi
cmp ecx, eax
cmovs r15, rbx
je 0x14002b400
xor eax, eax
cmp rbp, r15
jne 0x14002b384
jmp 0x14002b304
mov rsi, qword [rsp + 0x30]
mov edx, dword [rsi + 0x24]
mov rax, qword [rdi]
mov rax, qword [rax + 8]
mov rcx, rdi
call qword [case.0x14001b2ee.0]
sub rbx, qword [rsp + 0x28]
sar rbx, 1
movzx eax, word [rax + rbx]
add ax, word [rsi + 0x10]
mov word [r14], ax
jmp 0x14002b344

Function at 0x14002b9d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14005c070]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14002ba00
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14002ba00
mov rax, qword [rax + rcx]
jmp 0x14002ba02
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x14002be60
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x14005e580]
mov ecx, dword [0x14005c2c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002bea9
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001bc70
nop
add rsp, 0x60
pop rsi
ret
lea rcx, [0x14005e580]
call fcn.14001aa20
cmp dword [0x14005e580], 0xffffffff
jne 0x14002be95
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rsi]
movaps xmm1, xmmword [rsi + 0x10]
movaps xmm2, xmmword [rsi + 0x20]
movups xmmword [0x14005e570], xmm2
movups xmmword [0x14005e560], xmm1
movups xmmword [0x14005e550], xmm0
lea rcx, [0x14005e580]
call fcn.14001a9c0
jmp 0x14002be95
Function at 0x14002f750
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14004aa90
test al, al
je 0x14002f772
mov rcx, qword [rsi]
xor edx, edx
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x20
pop rsi
ret

Function at 0x14002f780
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
call fcn.14004aa90
test al, al
je 0x14002f7ae
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 0x14002f7cf
mov rcx, rdi
call fcn.140048ee0
mov rcx, rdi
call fcn.14004ceb0
lea rcx, [rsi + 0x58]
call fcn.140025f00
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x14002f7e7
call qword [sym.imp.mozglue.dll_free]
mov rdi, qword [rsi + 0x38]
test rdi, rdi
je 0x14002f800
mov rcx, rdi
call fcn.140048ee0
mov rcx, rdi
call fcn.14004ceb0
lea rcx, [rsi + 0x28]
call fcn.140009830
lea rcx, [rsi + 0x20]
call fcn.140009830
lea rcx, [rsi + 0x18]
call fcn.140009830
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14002bbd0

Function at 0x140030810
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140030847
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140030847
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x140030847
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
ret