joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023540
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r9
mov rdi, r8
mov ebx, edx
mov r14, rcx
call fcn.140023a60
test rdi, rdi
je 0x1400235a4
test al, al
je 0x1400235a4
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 0x1400235a4
test rcx, rcx
js 0x1400235a4
cmp qword [r14 + 0x10], rax
jb 0x1400235a4
mov rcx, r14
mov edx, ebx
mov r8, rdi
mov r9, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140023eb0
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, r9
mov rbx, r8
mov edi, edx
mov r14, rcx
mov r13, qword [0x1401054a8]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor eax, eax
cmp dword [rcx + 8], 0
setne al
lea ebp, [rax + rax]
add ebp, 4
mov r12d, edx
sar r12d, 0x1f
mov rcx, qword [rcx]
mov qword [rsp + 0x20], r8
mov edx, ebp
mov r8d, r12d
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
mov qword [rsi], rax
test rax, rax
jne 0x140023f36
mov rcx, qword [r14]
mov qword [rsp + 0x20], rbx
mov edx, ebp
mov r8d, r12d
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
mov qword [rsi], rax
test rax, rax
je 0x140023f8d
mov rsi, qword [rsp + 0xd0]
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rsp + 0x48]
sub rcx, r15
add rcx, qword [rsp + 0x38]
test rax, rax
cmove rcx, rax
mov qword [rsi], rcx
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
mov rdx, qword [r13]
cmp rdx, rcx
jne 0x140023f91
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x140023f6b
call fcn.1400d58e0
int3

Function at 0x1400235b0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140023645
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
jb 0x140023609
mov r15, qword [rsp + 0x48]
call fcn.140023340
mov rcx, r14
mov rdx, rsi
mov r8, r15
mov r9, rax
call fcn.1400454e0
mov rcx, qword [rsi]
call fcn.140045470
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14002363e
mov qword [rsi], rdi
mov r14, qword [rsp + 0x48]
call fcn.140023340
mov rcx, rdi
mov rdx, rsi
mov r8, r14
mov r9, rax
call fcn.1400454a0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400239a0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov qword [rcx], 0
mov rdi, qword [rdx]
mov qword [rdx], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400239e5
mov rbx, rdx
mov r14, qword [rsp + 0x48]
call fcn.140023340
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.1400454e0
mov rcx, rsi
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400235b0
Function at 0x140023eb0
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r9
mov rdi, r8
mov ebx, edx
mov r14, rcx
call fcn.140023a60
test rdi, rdi
je 0x1400235a4
test al, al
je 0x1400235a4
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 0x1400235a4
test rcx, rcx
js 0x1400235a4
cmp qword [r14 + 0x10], rax
jb 0x1400235a4
mov rcx, r14
mov edx, ebx
mov r8, rdi
mov r9, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140023eb0
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, r9
mov rbx, r8
mov edi, edx
mov r14, rcx
mov r13, qword [0x1401054a8]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor eax, eax
cmp dword [rcx + 8], 0
setne al
lea ebp, [rax + rax]
add ebp, 4
mov r12d, edx
sar r12d, 0x1f
mov rcx, qword [rcx]
mov qword [rsp + 0x20], r8
mov edx, ebp
mov r8d, r12d
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
mov qword [rsi], rax
test rax, rax
jne 0x140023f36
mov rcx, qword [r14]
mov qword [rsp + 0x20], rbx
mov edx, ebp
mov r8d, r12d
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
mov qword [rsi], rax
test rax, rax
je 0x140023f8d
mov rsi, qword [rsp + 0xd0]
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rsp + 0x48]
sub rcx, r15
add rcx, qword [rsp + 0x38]
test rax, rax
cmove rcx, rax
mov qword [rsi], rcx
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
mov rdx, qword [r13]
cmp rdx, rcx
jne 0x140023f91
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x140023f6b
call fcn.1400d58e0
int3

Function at 0x140025a10
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov r13, qword [0x1401054a8]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x160], rax
test rdx, rdx
je 0x140025aa2
mov rsi, rdx
mov rdi, rcx
mov ebp, 0xffffffff
lea rbx, str._var_tmp_build_firefox_1d8abcb1f7a7_security_sandbox_chromium_base_rand_util_win.cc
lea r14, str.success
lea r15, [rsp + 0x28]
jmp 0x140025a68
add rdi, r12
sub rsi, r12
je 0x140025aa2
cmp rsi, rbp
mov r12d, 0xffffffff
cmovb r12, rsi
mov rcx, rdi
mov edx, r12d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140025a60
mov rcx, r15
mov rdx, rbx
mov r8d, 0x20
mov r9, r14
call fcn.14001e870
mov rcx, r15
call fcn.14001eb10
jmp 0x140025a60
mov rax, qword [rsp + 0x160]
xor rax, rsp
mov rcx, qword [r13]
cmp rcx, rax
jne 0x140025aca
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400d58e0
int3
Function at 0x140029cb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
sub rsp, 0x128
mov r9, qword [0x1401054a8]
mov rax, qword [r9]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r10, qword [rcx + 8]
mov rax, 0xffffffffffffffff
test r10, r10
je 0x140029e4e
mov r11, qword [rdx + 8]
test r11, r11
je 0x140029e4e
cmp r11, 1
jne 0x140029d27
cmp r10, r8
jbe 0x140029e4e
mov rdx, qword [rdx]
movzx edx, byte [rdx]
mov rcx, qword [rcx]
nop word [rax + rax]
cmp byte [rcx + r8], dl
je 0x140029e46
inc r8
cmp r10, r8
jne 0x140029d10
jmp 0x140029e4e
xorps xmm0, xmm0
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rax, qword [rdx]
lea rsi, [r11 - 1]
mov edx, r11d
and edx, 3
cmp rsi, 3
jae 0x140029daf
xor esi, esi
jmp 0x140029df0
and r11, 0xfffffffffffffffc
xor esi, esi
nop word cs:[rax + rax]
movzx edi, byte [rax + rsi]
mov byte [rsp + rdi + 0x20], 1
movzx edi, byte [rax + rsi + 1]
mov byte [rsp + rdi + 0x20], 1
movzx edi, byte [rax + rsi + 2]
mov byte [rsp + rdi + 0x20], 1
movzx edi, byte [rax + rsi + 3]
mov byte [rsp + rdi + 0x20], 1
add rsi, 4
cmp r11, rsi
jne 0x140029dc0
test rdx, rdx
je 0x140029e12
add rax, rsi
xor r11d, r11d
nop dword [rax + rax]
movzx esi, byte [rax + r11]
mov byte [rsp + rsi + 0x20], 1
inc r11
cmp rdx, r11
jne 0x140029e00
mov rax, 0xffffffffffffffff
cmp r10, r8
jbe 0x140029e4e
mov rcx, qword [rcx]
nop word cs:[rax + rax]
movzx edx, byte [rcx + r8]
cmp byte [rsp + rdx + 0x20], 0
jne 0x140029e4b
inc r8
cmp r10, r8
jne 0x140029e30
jmp 0x140029e4e
cmp r10, r8
je 0x140029e4e
mov rax, r8
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
mov rdx, qword [r9]
cmp rdx, rcx
jne 0x140029e6b
add rsp, 0x128
pop rdi
pop rsi
ret
call fcn.1400d58e0
int3
Function at 0x14002a080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
sub rsp, 0x128
mov r9, qword [0x1401054a8]
mov rax, qword [r9]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r10, qword [rcx + 8]
mov rax, 0xffffffffffffffff
test r10, r10
je 0x14002a219
mov r11, qword [rdx + 8]
test r11, r11
je 0x14002a0f7
cmp r11, 1
jne 0x14002a0ff
cmp r10, r8
jbe 0x14002a219
mov rdx, qword [rdx]
movzx edx, byte [rdx]
mov rcx, qword [rcx]
nop word cs:[rax + rax]
cmp byte [rcx + r8], dl
jne 0x14002a216
inc r8
cmp r10, r8
jne 0x14002a0e0
jmp 0x14002a219
mov rax, r11
jmp 0x14002a219
xorps xmm0, xmm0
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rax, qword [rdx]
lea rsi, [r11 - 1]
mov edx, r11d
and edx, 3
cmp rsi, 3
jae 0x14002a187
xor esi, esi
jmp 0x14002a1c0
and r11, 0xfffffffffffffffc
xor esi, esi
nop dword [rax]
movzx edi, byte [rax + rsi]
mov byte [rsp + rdi + 0x20], 1
movzx edi, byte [rax + rsi + 1]
mov byte [rsp + rdi + 0x20], 1
movzx edi, byte [rax + rsi + 2]
mov byte [rsp + rdi + 0x20], 1
movzx edi, byte [rax + rsi + 3]
mov byte [rsp + rdi + 0x20], 1
add rsi, 4
cmp r11, rsi
jne 0x14002a190
test rdx, rdx
je 0x14002a1e2
add rax, rsi
xor r11d, r11d
nop dword [rax + rax]
movzx esi, byte [rax + r11]
mov byte [rsp + rsi + 0x20], 1
inc r11
cmp rdx, r11
jne 0x14002a1d0
mov rax, 0xffffffffffffffff
cmp r10, r8
jbe 0x14002a219
mov rcx, qword [rcx]
nop word cs:[rax + rax]
movzx edx, byte [rcx + r8]
cmp byte [rsp + rdx + 0x20], 0
je 0x14002a216
inc r8
cmp r10, r8
jne 0x14002a200
jmp 0x14002a219
mov rax, r8
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
mov rdx, qword [r9]
cmp rdx, rcx
jne 0x14002a236
add rsp, 0x128
pop rdi
pop rsi
ret
call fcn.1400d58e0
int3
Function at 0x14002a8a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0x130
mov r9, qword [0x1401054a8]
mov rax, qword [r9]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov r10, qword [rcx + 8]
test r10, r10
je 0x14002aa38
dec r10
cmp r10, r8
cmovae r10, r8
mov r8, qword [rdx + 8]
test r8, r8
je 0x14002aa41
cmp r8, 1
jne 0x14002a919
mov rax, qword [rdx]
movzx edx, byte [rax]
mov rcx, qword [rcx]
cmp byte [rcx + r10], dl
jne 0x14002aa41
mov rax, r10
nop dword [rax]
sub rax, 1
jb 0x14002aa38
cmp byte [rcx + r10 - 1], dl
mov r10, rax
je 0x14002a900
jmp 0x14002aa44
xorps xmm0, xmm0
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rax, qword [rdx]
lea r11, [r8 - 1]
mov edx, r8d
and edx, 3
cmp r11, 3
jae 0x14002a9a2
xor r11d, r11d
jmp 0x14002a9e4
and r8, 0xfffffffffffffffc
xor r11d, r11d
nop dword [rax]
movzx esi, byte [rax + r11]
mov byte [rsp + rsi + 0x20], 1
movzx esi, byte [rax + r11 + 1]
mov byte [rsp + rsi + 0x20], 1
movzx esi, byte [rax + r11 + 2]
mov byte [rsp + rsi + 0x20], 1
movzx esi, byte [rax + r11 + 3]
mov byte [rsp + rsi + 0x20], 1
add r11, 4
cmp r8, r11
jne 0x14002a9b0
test rdx, rdx
je 0x14002aa03
add rax, r11
xor r8d, r8d
nop
movzx r11d, byte [rax + r8]
mov byte [rsp + r11 + 0x20], 1
inc r8
cmp rdx, r8
jne 0x14002a9f0
mov rcx, qword [rcx]
movzx eax, byte [rcx + r10]
cmp byte [rsp + rax + 0x20], 0
je 0x14002aa41
mov rax, r10
nop word cs:[rax + rax]
sub rax, 1
jb 0x14002aa38
movzx edx, byte [rcx + r10 - 1]
cmp byte [rsp + rdx + 0x20], 0
mov r10, rax
jne 0x14002aa20
jmp 0x14002aa44
mov rax, 0xffffffffffffffff
jmp 0x14002aa44
mov rax, r10
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
mov rdx, qword [r9]
cmp rdx, rcx
jne 0x14002aa60
add rsp, 0x130
pop rsi
ret
call fcn.1400d58e0
int3
Function at 0x1400301f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov r14, qword [0x1401054a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x20], xmm0
mov rsi, qword [rdx + 8]
cmp rsi, qword [rsp + 0x28]
jbe 0x140030226
xor ebx, ebx
jmp 0x1400302c8
mov ebp, r8d
mov rdi, qword [rdx]
xor ebx, ebx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov r9, rsi
call fcn.14002ab20
cmp ebp, 1
je 0x14003026a
test ebp, ebp
jne 0x1400302c8
cmp qword [rsp + 0x40], rsi
jne 0x14003021f
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
mov r8, rsi
call sub.ntdll.dll_memcmp
test eax, eax
sete bl
jmp 0x1400302c8
test rsi, rsi
je 0x1400302c6
mov rax, qword [rsp + 0x38]
dec rsi
xor ecx, ecx
nop dword [rax]
movzx edx, byte [rdi + rcx]
movzx r8d, byte [rax + rcx]
lea r9d, [rdx - 0x41]
lea r10d, [rdx + 0x20]
cmp r9b, 0x1a
movzx r9d, r10b
cmovae r9d, edx
lea edx, [r8 - 0x41]
lea r10d, [r8 + 0x20]
cmp dl, 0x1a
movzx edx, r10b
cmovae edx, r8d
cmp r9b, dl
sete bl
jne 0x1400302c8
lea rdx, [rcx + 1]
cmp rsi, rcx
mov rcx, rdx
jne 0x140030280
jmp 0x1400302c8
mov bl, 1
mov rax, qword [rsp + 0x48]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x1400302e5
mov eax, ebx
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400d58e0
int3

Function at 0x140030420
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov ebx, r8d
mov r14, qword [0x1401054a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rdx + 8]
mov r8, qword [rsp + 0x28]
sub r8, rdi
jb 0x140030490
mov rsi, qword [rdx]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov r9, rdi
call fcn.14002ab20
cmp ebx, 1
je 0x1400304ac
test ebx, ebx
jne 0x140030490
cmp qword [rsp + 0x38], rdi
jne 0x140030490
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
mov r8, rdi
call sub.ntdll.dll_memcmp
test eax, eax
sete al
jmp 0x140030492
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
mov rdx, qword [r14]
cmp rdx, rcx
jne 0x140030520
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140030519
mov rdx, qword [rsp + 0x30]
dec rcx
xor r8d, r8d
nop word cs:[rax + rax]
movzx eax, byte [rdx + r8]
movzx r9d, byte [rsi + r8]
lea r10d, [rax - 0x41]
lea r11d, [rax + 0x20]
cmp r10b, 0x1a
movzx r10d, r11b
cmovae r10d, eax
lea eax, [r9 - 0x41]
lea r11d, [r9 + 0x20]
cmp al, 0x1a
movzx eax, r11b
cmovae eax, r9d
cmp r10b, al
sete al
jne 0x140030492
lea r9, [r8 + 1]
cmp rcx, r8
mov r8, r9
jne 0x1400304d0
jmp 0x140030492
mov al, 1
jmp 0x140030492
call fcn.1400d58e0
int3
Function at 0x140040850
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x168
mov rdi, rdx
mov rsi, rcx
mov r14, qword [0x1401054a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov ecx, dword [0x140145048]
cmp ecx, 0xffffffff
je 0x14004088c
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140040891
call fcn.140040a40
movzx eax, byte [0x140146218]
test al, al
je 0x1400409f3
mov rbx, qword [0x140148300]
mov rcx, rbx
call fcn.140035640
mov rcx, qword [0x140147ce8]
inc rcx
mov edx, 0x100
lea rax, [0x1401464e0]
nop word cs:[rax + rax]
movzx r8d, cl
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x1400408fe
lea r8d, [rcx + 1]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x1400408fe
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x1400408d0
jmp 0x140040922
lea rcx, [rax + r9*8]
mov dword [rcx], 1
lea rcx, [r8 + r8*2]
mov qword [rax + rcx*8 + 8], rdi
mov qword [0x140147ce8], r8
mov dword [rsi], r8d
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 + 0x28], eax
mov dword [rsp + 0x24], 0xffffffff
cmp eax, 0xffffffff
jne 0x14004097e
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x24]
call fcn.14001ddb0
test rax, rax
je 0x14004097e
lea rdx, str._var_tmp_build_firefox_1d8abcb1f7a7_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x196
mov r9, rax
call fcn.14001e930
mov rcx, rdi
call fcn.14001eb10
mov eax, dword [rsi]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x24], 0x100
cmp eax, 0xff
jle 0x1400409d3
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x24]
call fcn.14001ddb0
test rax, rax
je 0x1400409d3
lea rdx, str._var_tmp_build_firefox_1d8abcb1f7a7_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x197
mov r9, rax
call fcn.14001e930
mov rcx, rsi
call fcn.14001eb10
mov rax, qword [rsp + 0x160]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140040a34
add rsp, 0x168
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140146218]
call fcn.1400d3f14
test eax, eax
je 0x1400408a0
mov ecx, 8
call fcn.1400d4140
mov rbx, rax
mov rcx, rax
call fcn.140035600
mov qword [0x140148300], rbx
lea rcx, [0x140146218]
call fcn.1400d3fef
jmp 0x1400408a0
call fcn.1400d58e0
int3
mov eax, 0xffffffff
mov qword [rcx], rax
jmp 0x140040850
Function at 0x140040df0
Capabilities:
Get thread local storage value

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

Function at 0x140040e30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140145048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x140040e58
test rdi, rdi
je 0x140040e71
call fcn.140040a40
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
Function at 0x140040e80
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x168
mov rdi, rdx
mov rsi, rcx
mov r14, qword [0x1401054a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov ecx, dword [0x140145048]
cmp ecx, 0xffffffff
je 0x14004088c
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140040891
call fcn.140040a40
movzx eax, byte [0x140146218]
test al, al
je 0x1400409f3
mov rbx, qword [0x140148300]
mov rcx, rbx
call fcn.140035640
mov rcx, qword [0x140147ce8]
inc rcx
mov edx, 0x100
lea rax, [0x1401464e0]
nop word cs:[rax + rax]
movzx r8d, cl
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x1400408fe
lea r8d, [rcx + 1]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x1400408fe
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x1400408d0
jmp 0x140040922
lea rcx, [rax + r9*8]
mov dword [rcx], 1
lea rcx, [r8 + r8*2]
mov qword [rax + rcx*8 + 8], rdi
mov qword [0x140147ce8], r8
mov dword [rsi], r8d
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 + 0x28], eax
mov dword [rsp + 0x24], 0xffffffff
cmp eax, 0xffffffff
jne 0x14004097e
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x24]
call fcn.14001ddb0
test rax, rax
je 0x14004097e
lea rdx, str._var_tmp_build_firefox_1d8abcb1f7a7_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x196
mov r9, rax
call fcn.14001e930
mov rcx, rdi
call fcn.14001eb10
mov eax, dword [rsi]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x24], 0x100
cmp eax, 0xff
jle 0x1400409d3
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x24]
call fcn.14001ddb0
test rax, rax
je 0x1400409d3
lea rdx, str._var_tmp_build_firefox_1d8abcb1f7a7_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x197
mov r9, rax
call fcn.14001e930
mov rcx, rsi
call fcn.14001eb10
mov rax, qword [rsp + 0x160]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140040a34
add rsp, 0x168
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140146218]
call fcn.1400d3f14
test eax, eax
je 0x1400408a0
mov ecx, 8
call fcn.1400d4140
mov rbx, rax
mov rcx, rax
call fcn.140035600
mov qword [0x140148300], rbx
lea rcx, [0x140146218]
call fcn.1400d3fef
jmp 0x1400408a0
call fcn.1400d58e0
int3
mov eax, 0xffffffff
mov qword [rcx], rax
jmp 0x140040850

Function at 0x140040ea0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140040eb5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1400428a0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, qword [0x1401054a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm0, qword [0x140148370]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jne 0x1400429e4
jp 0x1400429e4
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
movzx eax, byte [0x140146248]
test al, al
je 0x140042a05
movzx eax, byte [0x140146250]
test al, al
je 0x140042a3a
rdtsc
mov rdi, rax
mov rbx, rdx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r15, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r15, qword [0x140148368]
movq xmm0, r15
punpckldq xmm0, xmmword [0x14010a780]
subpd xmm0, xmmword [0x14010a790]
movapd xmm1, xmm0
unpckhpd xmm1, xmm0
addsd xmm1, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x20]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x14010a7a0]
ucomisd xmm2, xmm1
ja 0x1400429e4
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x140148360]
movq xmm2, rdi
punpckldq xmm2, xmmword [0x14010a780]
subpd xmm2, xmmword [0x14010a790]
movapd xmm0, xmm2
unpckhpd xmm0, xmm2
addsd xmm0, xmm2
divsd xmm0, xmm1
movsd qword [0x140148370], xmm0
mov rax, qword [rsp + 0x28]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140042a00
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400d58e0
lea rcx, [0x140146248]
call fcn.1400d3f14
test eax, eax
je 0x14004290c
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140148360], rdx
lea rcx, [0x140146248]
call fcn.1400d3fef
jmp 0x14004290c
lea rcx, [0x140146250]
call fcn.1400d3f14
test eax, eax
je 0x14004291b
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x140148368], rax
lea rcx, [0x140146250]
call fcn.1400d3fef
jmp 0x14004291b