joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011240
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xd0], xmm6
mov rsi, rcx
lea rcx, [0x140054b30]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rbx, qword [0x140054b28]
test rbx, rbx
je 0x1400113f4
xorps xmm6, xmm6
lea rdi, [rbp - 0x40]
lea r13, [rbp + 0xc4]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15, qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ltoa]
jmp 0x1400112cc
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea rdx, [0x14004b4b1]
mov r8d, 1
mov r9, r13
call r14
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x1400113f4
movzx r9d, word [rbx]
shr r9d, 1
mov r8, qword [rbx + 8]
movups xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0x104
mov ecx, 0xfde9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1400112bf
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
mov r9, r13
call r14
test eax, eax
je 0x1400112bf
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x1400112a0
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea rdx, [0x14004ba7f]
mov r8d, 1
mov r9, r13
call r14
mov rax, qword [rbx + 0x10]
mov rcx, rax
shr rcx, 0x30
mov word [rbp + 0xc8], cx
mov rcx, rax
shr rcx, 0x20
mov word [rbp + 0xca], cx
mov rcx, rax
shr rcx, 0x10
mov word [rbp + 0xcc], cx
mov word [rbp + 0xce], ax
xor r12d, r12d
jmp 0x140011384
add r12, 1
call fcn.14000b790
cmp r12, 4
jae 0x1400112a0
movzx ecx, word [rbp + r12*2 + 0xc8]
mov rdx, rdi
mov r8d, 0xa
call r15
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
mov r9, r13
call r14
call fcn.14000b790
cmp r12, 3
je 0x140011380
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea rdx, [0x14004ba7d]
mov r8d, 1
mov r9, r13
call r14
jmp 0x140011380
lea rcx, [0x140054b30]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movaps xmm6, xmmword [rbp + 0xd0]
add rsp, 0x168
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400150f0
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov r15, rcx
movzx eax, byte [r8]
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rcx, rax
movzx edx, byte [r8 + 1]
xor rdx, rcx
imul rdx, rax
movzx ecx, byte [r8 + 2]
xor rcx, rdx
imul rcx, rax
movzx edx, byte [r8 + 3]
xor rdx, rcx
imul rdx, rax
and rdx, qword [r15 + 0x30]
mov rax, qword [r15 + 8]
mov rcx, qword [r15 + 0x18]
lea r9, [rdx + rdx]
add r9, 1
shl rdx, 4
mov rsi, qword [rcx + rdx]
mov edi, dword [r8]
mov rdx, rsi
nop word cs:[rax + rax]
mov rbx, rsi
cmp rsi, rax
je 0x14001517f
mov rbx, qword [rcx + r9*8]
mov rbx, qword [rbx]
cmp rbx, rdx
je 0x14001519d
cmp dword [rdx + 0x10], edi
je 0x14001518e
mov rdx, qword [rdx]
jmp 0x140015170
cmp rdx, rax
je 0x14001519d
mov qword [r14], rdx
mov byte [r14 + 8], 0
jmp 0x1400151c9
mov qword [rsp + 0x28], r8
mov rdx, qword [rax]
lea rcx, [r15 + 8]
lea r8, [rsp + 0x28]
call fcn.140015360
mov rax, qword [r15 + 8]
mov r9, qword [rax]
lea r8, [r9 + 0x10]
mov rcx, r15
mov rdx, r14
call fcn.1400151e0
mov rax, r14
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400151e0
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]
mov rdi, qword [rcx + 8]
mov rsi, qword [rcx + 0x18]
lea r9, [rbx + rbx]
shl rbx, 4
mov rdx, qword [rsi + rbx]
mov rbx, rdi
cmp rdx, rdi
je 0x140015267
lea rax, [r9*8]
or rax, 8
mov rax, qword [rsi + rax]
mov rbx, qword [rax]
mov eax, dword [r8]
nop word [rax + rax]
cmp rdx, rbx
je 0x1400152a7
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x140015270
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
add qword [rcx + 0x10], 0xffffffffffffffff
mov rcx, r15
call fcn.1400147b0
xor eax, eax
mov r15, rbx
jmp 0x140015310
mov rbx, qword [r15]
cmp rbx, rdx
je 0x1400152e4
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 rdi, qword [rcx + 8]
mov rsi, qword [rcx + 0x18]
lea rbx, [rsi + r9*8]
mov rax, qword [rsi + r9*8]
cmp rax, rdi
jne 0x140015326
mov qword [rbx], r15
shl r9, 3
or r9, 8
add r9, qword [rcx + 0x18]
mov rbx, r9
mov rdi, r15
mov qword [rbx], rdi
call fcn.140015a30
mov al, 1
mov qword [r14], r15
mov byte [r14 + 8], al
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, r15
cmp rax, rdx
je 0x140015306
or r9, 1
mov rax, qword [rsi + r9*8]
mov rax, qword [rax]
mov qword [rsi + r9*8], rax
cmp rax, r15
je 0x140015309
mov rax, qword [rcx + 0x18]
lea rbx, [rax + r9*8]
mov rax, qword [rax + r9*8]
mov rdi, qword [rax + 8]
jmp 0x140015306
Function at 0x1400160d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
mov rax, rdx
mov r9, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 7
jbe 0x1400160e5
mov r8, qword [r8]
movabs rsi, 0xcbf29ce484222325
mov rdx, r9
add rdx, r9
je 0x14001611b
movabs r11, 0x100000001b3
lea rdi, [r9 + r9]
add rdi, 0xffffffffffffffff
mov r10d, edx
and r10d, 6
cmp rdi, 7
jae 0x140016123
mov rdx, r8
jmp 0x140016191
mov rbx, rsi
jmp 0x1400161b7
mov rdi, r10
sub rdi, rdx
mov rdx, r8
nop dword [rax]
movzx ebx, byte [rdx]
xor rbx, rsi
imul rbx, r11
movzx esi, byte [rdx + 1]
xor rsi, rbx
imul rsi, r11
movzx ebx, byte [rdx + 2]
xor rbx, rsi
imul rbx, r11
movzx esi, byte [rdx + 3]
xor rsi, rbx
imul rsi, r11
movzx ebx, byte [rdx + 4]
xor rbx, rsi
imul rbx, r11
movzx esi, byte [rdx + 5]
xor rsi, rbx
imul rsi, r11
movzx ebx, byte [rdx + 6]
xor rbx, rsi
imul rbx, r11
movzx esi, byte [rdx + 7]
xor rsi, rbx
imul rsi, r11
add rdx, 8
add rdi, 8
jne 0x140016130
mov rbx, rsi
test r10, r10
je 0x1400161b7
xor edi, edi
nop dword [rax + rax]
movzx ebx, byte [rdx + rdi]
xor rbx, rsi
imul rbx, r11
add rdi, 1
mov rsi, rbx
cmp r10, rdi
jne 0x1400161a0
and rbx, qword [rcx + 0x30]
mov r11, qword [rcx + 8]
mov rdi, qword [rcx + 0x18]
mov rcx, rbx
shl rcx, 4
mov rsi, qword [rdi + rcx]
lea r10, [rbx + rbx]
add r10, 1
mov rcx, rsi
jmp 0x1400161e3
mov rcx, qword [rcx]
mov rdx, rsi
cmp rsi, r11
je 0x1400161f2
mov rdx, qword [rdi + r10*8]
mov rdx, qword [rdx]
cmp rdx, rcx
je 0x140016269
mov rbx, qword [rcx + 0x20]
cmp qword [rcx + 0x28], 7
jbe 0x140016240
mov rdx, qword [rcx + 0x10]
cmp rbx, r9
jne 0x1400161e0
test r9, r9
je 0x140016264
xor ebx, ebx
nop word cs:[rax + rax]
nop dword [rax]
movzx ebp, word [rdx + rbx*2]
cmp bp, word [r8 + rbx*2]
jne 0x1400161e0
add rbx, 1
cmp r9, rbx
jne 0x140016220
jmp 0x14001624b
lea rdx, [rcx + 0x10]
cmp rbx, r9
jne 0x1400161e0
jmp 0x14001620b
xor ebx, ebx
nop dword [rax]
movzx ebp, word [r8 + rbx*2]
cmp bp, word [rdx + rbx*2]
jne 0x140016269
add rbx, 1
cmp r9, rbx
jne 0x140016250
mov qword [rax], rcx
jmp 0x14001626c
mov qword [rax], r11
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140016280
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]
add r10, 1
shl rsi, 4
mov rdx, qword [r9 + rsi]
mov r8d, dword [r8]
mov rcx, rdx
nop word [rax + rax]
mov rsi, rdx
cmp rdx, r11
je 0x1400162ff
mov rsi, qword [r9 + r10*8]
mov rsi, qword [rsi]
cmp rsi, rcx
je 0x140016344
cmp dword [rcx + 0x10], r8d
je 0x14001630f
mov rcx, qword [rcx]
jmp 0x1400162f0
mov rsi, rcx
nop word cs:[rax + rax]
nop dword [rax]
mov rdi, rdx
cmp rdx, r11
je 0x14001632f
mov rdi, qword [r9 + r10*8]
mov rdi, qword [rdi]
cmp rdi, rsi
je 0x14001633f
cmp r8d, dword [rsi + 0x10]
jne 0x14001633f
mov rsi, qword [rsi]
jmp 0x140016320
cmp rcx, rsi
jne 0x14001634a
mov rcx, r11
mov rsi, r11
mov qword [rax], rcx
mov qword [rax + 8], rsi
pop rdi
pop rsi
ret

Function at 0x140016420
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
je 0x14001649c
cmp rbx, r8
jne 0x1400164b3
mov rdx, r8
jmp 0x1400164ad
cmp rbx, r8
je 0x1400164e5
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
add qword [rcx + 0x10], 0xffffffffffffffff
mov rcx, r8
call fcn.1400147b0
mov qword [r14], rsi
mov rax, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rdx, qword [rcx + 8]
mov qword [rax], rdx
lea rax, [rsi + rsi]
add rax, 1
lea rdx, [rcx + 8]
shl rax, 3
add rax, qword [rcx + 0x18]
jmp 0x1400164ad
Function at 0x140016d80
Capabilities:
Reference processor manufacturer constants

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r14, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor eax, eax
xor ecx, ecx
cpuid
mov ebp, eax
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x24], edx
mov dword [rsp + 0x28], ecx
mov byte [rsp + 0x2c], 0
lea rcx, [r14 + 0x28]
lea rdx, [rsp + 0x20]
call fcn.14000b4b0
test ebp, ebp
jle 0x140016f44
xor r8d, r8d
mov eax, 1
xor ecx, ecx
cpuid
mov esi, ecx
mov r9d, edx
mov edi, eax
cmp ebp, 7
jl 0x140016df7
mov eax, 7
xor ecx, ecx
cpuid
mov r8d, ebx
shr r8b, 5
and r8b, 1
mov dword [r14], edi
mov eax, edi
and eax, 0xf
mov dword [r14 + 0x10], eax
mov eax, edi
shr eax, 4
and eax, 0xf
mov ecx, edi
shr ecx, 0xc
mov edx, ecx
and edx, 0xf0
or edx, eax
mov dword [r14 + 0xc], edx
mov eax, edi
shr eax, 8
and eax, 0xf
mov dword [r14 + 8], eax
and ecx, 3
mov dword [r14 + 4], ecx
mov eax, edi
shr eax, 0x10
and eax, 0xf
mov dword [r14 + 0x14], eax
shr edi, 0x14
movzx eax, dil
mov dword [r14 + 0x18], eax
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r14 + 0x1c], al
mov eax, r9d
shr eax, 0x19
and al, 1
mov byte [r14 + 0x1d], al
shr r9d, 0x1a
and r9b, 1
mov byte [r14 + 0x1e], r9b
mov eax, esi
and al, 1
mov byte [r14 + 0x1f], al
mov eax, esi
shr eax, 9
and al, 1
mov byte [r14 + 0x20], al
mov eax, esi
shr eax, 0x13
and al, 1
mov byte [r14 + 0x21], al
mov eax, esi
shr eax, 0x14
and al, 1
mov byte [r14 + 0x22], al
mov eax, esi
shr eax, 0x17
and al, 1
mov byte [r14 + 0x23], al
test esi, esi
setns dil
mov ecx, esi
and ecx, 0x1c000000
xor ebp, ebp
mov eax, 0
cmp ecx, 0x1c000000
jne 0x140016ecc
xor ecx, ecx
xgetbv
and eax, 6
cmp rax, 6
sete al
mov byte [r14 + 0x24], al
shr esi, 0x19
and sil, 1
mov byte [r14 + 0x26], sil
test al, al
movzx eax, r8b
cmove eax, ebp
mov byte [r14 + 0x25], al
mov eax, 0x80000000
xor ecx, ecx
cpuid
cmp eax, 0x80000004
jge 0x140016f49
cmp byte [r14 + 0x27], 0
setne al
or dil, al
jne 0x140016f2b
mov eax, 0x40000000
xor ecx, ecx
cpuid
cmp edx, 0x76482074
jne 0x140016f2b
cmp ebx, 0x7263694d
jne 0x140016f2b
cmp ecx, 0x666f736f
jne 0x140016f2b
mov byte [r14 + 0x27], 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140045f60
nop
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov dil, 1
jmp 0x140016ee8
mov esi, eax
mov eax, 0x80000002
xor ecx, ecx
cpuid
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], ebx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], edx
mov eax, 0x80000003
xor ecx, ecx
cpuid
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], edx
mov eax, 0x80000004
xor ecx, ecx
cpuid
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x4c], edx
mov byte [rsp + 0x50], 0
lea rcx, [r14 + 0x48]
lea rdx, [rsp + 0x20]
call fcn.14000b4b0
cmp esi, 0x80000007
jl 0x140016ef8
mov eax, 0x80000007
xor ecx, ecx
cpuid
shr edx, 8
and dl, 1
mov byte [r14 + 0x27], dl
jmp 0x140016ef8
Function at 0x140017590
Capabilities:
Encode data using xor

Disassembly:
push rsi
xor eax, eax
test rcx, rcx
je 0x140013495
test edx, edx
jle 0x140013495
mov r8d, edx
and r8d, 3
mov r11d, edx
shr r11d, 2
je 0x140013416
lea r10d, [r11 - 1]
test dl, 4
jne 0x140013399
mov r9d, r11d
mov rsi, rcx
jmp 0x1400133c1
movzx r9d, word [rcx]
add r9d, edx
movzx eax, word [rcx + 2]
shl eax, 0xb
xor eax, r9d
shl r9d, 0x10
xor r9d, eax
lea rsi, [rcx + 4]
mov edx, r9d
shr edx, 0xb
add edx, r9d
mov r9d, r10d
lea r10, [r10*4]
cmp r11d, 1
je 0x14001340f
nop
movzx eax, word [rsi]
add eax, edx
movzx edx, word [rsi + 2]
shl edx, 0xb
xor edx, eax
shl eax, 0x10
xor eax, edx
mov edx, eax
shr edx, 0xb
add edx, eax
movzx eax, word [rsi + 4]
add eax, edx
movzx edx, word [rsi + 6]
shl edx, 0xb
xor edx, eax
shl eax, 0x10
xor eax, edx
mov edx, eax
shr edx, 0xb
add edx, eax
add rsi, 8
add r9d, 0xfffffffe
jg 0x1400133d0
add rcx, r10
add rcx, 4
cmp r8d, 1
je 0x140013444
cmp r8d, 2
je 0x140013456
cmp r8d, 3
jne 0x140013469
movzx eax, word [rcx]
add edx, eax
movsx eax, byte [rcx + 2]
shl eax, 0x12
xor eax, edx
mov ecx, edx
shl ecx, 0x10
xor eax, ecx
mov edx, eax
shr edx, 0xb
jmp 0x140013467
movsx eax, byte [rcx]
add edx, eax
mov eax, edx
shl eax, 0xa
xor eax, edx
mov edx, eax
shr edx, 1
jmp 0x140013467
movzx eax, word [rcx]
add edx, eax
mov eax, edx
shl eax, 0xb
xor eax, edx
mov edx, eax
shr edx, 0x11
add edx, eax
lea eax, [rdx*8]
xor eax, edx
mov ecx, eax
shr ecx, 5
add ecx, eax
mov eax, ecx
shl eax, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
add ecx, eax
mov edx, ecx
shl edx, 0x19
xor edx, ecx
mov eax, edx
shr eax, 6
add eax, edx
pop rsi
ret
cmp rdx, 0x7fffffff
jbe 0x14001759c
xor eax, eax
ret
jmp 0x140013360
Function at 0x140017820
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, r8
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [rcx + 0x28]
mov rcx, rdi
call fcn.140017700
xor ebp, ebp
cmp rbx, 0x7fffffff
ja 0x140017868
test al, al
je 0x140017868
cmp qword [rsi + 0x58], 0
je 0x140017884
xor ebp, ebp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140045f60
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp byte [rsi], 0
je 0x14001790d
mov rcx, rdi
call fcn.140017710
mov r14, rax
mov rbp, qword [0x140054c18]
test rbp, rbp
jne 0x1400178cb
lea rcx, [0x14004c3fe]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQuerySection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
mov qword [0x140054c18], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov rcx, r14
xor edx, edx
mov r9d, 0x18
call rbp
test eax, eax
jne 0x140017866
test dword [rsp + 0x38], 0x1000000
jne 0x140017866
mov r14d, r15d
sar r14d, 0x1f
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140017710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x140017984
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140017710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
je 0x140017866
mov rbp, rax
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400179a4
xor eax, eax
jmp 0x1400179b1
mov rax, qword [rsp + 0x48]
sub rax, rbp
add rax, qword [rsp + 0x38]
mov qword [rsi + 0x50], rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400176a0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x70], xmm0
call fcn.1400179e0
mov bpl, 1
jmp 0x140017868
Function at 0x140017a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140017ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140017ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140017aad
mov qword [rsi], rdi
call fcn.140017670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.firefox.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xchg ebx, eax
mov bl, 0x6a
or byte [rdi + 0x7caa0925], al
xor al, 0xf
invalid
movsb byte [rdi], byte [rsi]
lodsd eax, dword [rsi]
movabs byte [0x7f34d801ef1b2c7f], al
fdiv dword [rdi + rdi*2]
nop
invalid

Function at 0x140017b40
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 [0x140054018]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140017bd0
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x28]
jmp 0x140017b98
add rdi, rbx
sub rsi, rbx
je 0x140017bd0
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140017b90
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.140013500
mov rcx, r12
call fcn.140013600
jmp 0x140017b90
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140045f60
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14001c2d0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x148
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ecx, dword [0x140054070]
cmp ecx, 0xffffffff
je 0x14001c30a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14001c30f
call fcn.14001c4f0
mov eax, dword [0x140056468]
mov ecx, dword [0x140054298]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001c3e7
mov rbx, qword [0x140056460]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rcx, qword [0x140054c50]
add rcx, 1
mov r8d, 0x100
lea rax, [0x140054c60]
movzx edi, cl
lea rdx, [rdi + rdi*2]
cmp dword [rax + rdx*8], 0
jne 0x14001c42d
lea rcx, [rax + rdx*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x140054c50], rdi
mov dword [rsi], edi
mov eax, dword [rax + rcx*8 + 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 0x14001c454
mov eax, dword [rsi]
mov dword [rsp + 0x30], 0x100
mov dword [rsp + 0x2c], eax
cmp eax, 0xff
jg 0x14001c49d
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140045f60
nop
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140056468]
call fcn.1400454c0
cmp dword [0x140056468], 0xffffffff
jne 0x14001c334
mov ecx, 8
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
mov rcx, rax
call fcn.14001a9f0
mov qword [0x140056460], rbx
lea rcx, [0x140056468]
call fcn.140045528
jmp 0x14001c334
lea edx, [rcx + 1]
movzx edi, dl
lea rdx, [rdi + rdi*2]
cmp dword [rax + rdx*8], 0
je 0x14001c36d
add rcx, 2
add r8, 0xfffffffffffffffe
jne 0x14001c35c
jmp 0x14001c390
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.140013840
test rax, rax
je 0x14001c3b0
lea rdx, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x159
mov r9, rax
call fcn.140013550
mov rcx, rdi
call fcn.140013600
jmp 0x14001c3b0
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.140013840
test rax, rax
je 0x14001c3c9
lea rdx, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x15a
mov r9, rax
call fcn.140013550
mov rcx, rsi
call fcn.140013600
jmp 0x14001c3c9
Function at 0x14001c4f0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1028
call fcn.140045ef0
sub rsp, rax
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x140054070]
cmp esi, 0xffffffff
jne 0x14001c54d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp eax, 0xffffffff
je 0x14001c614
mov eax, 0xffffffff
lock cmpxchg dword [0x140054070], esi
je 0x14001c54d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov esi, dword [0x140054070]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14001c5c9
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call sub.ntdll.dll_memset
mov r14, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
mov rdx, rdi
call r14
mov ecx, 0x1000
call sub.mozglue.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rbx, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call sub.ntdll.dll_memcpy
mov ecx, esi
mov rdx, rbx
call r14
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140045f60
mov rax, rbx
add rsp, 0x1028
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, [0x1400492a0]
lea r8, str.PlatformThreadLocalStorage::GetTLSValue_key___kUninitialized
lea rcx, [rsp + 0x20]
call fcn.14001c740
test rax, rax
je 0x14001c55f
lea rdx, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0xb5
mov r9, rax
call fcn.140013550
mov rcx, rdi
call fcn.140013600
jmp 0x14001c55f
lea rdx, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key_
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0x99
call fcn.140013500
mov rcx, rsi
call fcn.140013600
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp eax, 0xffffffff
jne 0x14001c673
lea rdx, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key___key___PlatformThreadLocalStorage::TLS_KEY_OUT_OF_INDEXES
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0xa3
call fcn.140013500
mov rcx, rdi
call fcn.140013600
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsFree]
jmp 0x14001c530

Function at 0x14001c690
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140054070]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c6bf
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14001c6bf
mov rax, qword [rax + rcx]
jmp 0x14001c6c1
xor eax, eax
add rsp, 0x20
pop rsi
ret