joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d0d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rdi, qword [0x1400f74a8]
mov rax, qword [rdi]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, byte [rdx]
lea rcx, [rdx + 2]
mov r8, rax
shr r8, 1
test al, 1
cmovne rcx, qword [rdx + 0x10]
mov qword [rsp + 0x28], rcx
cmovne r8, qword [rdx + 8]
mov qword [rsp + 0x30], r8
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.14001cba0
mov rcx, rsi
call fcn.14001cf30
movzx ecx, byte [rsi]
lea rbx, [rsi + 2]
mov edx, ecx
mov rax, qword [rsi + 0x10]
and dl, 1
je 0x14001d145
mov r9, qword [rsi + 8]
mov r8, rax
cmp r9, 2
jae 0x14001d154
jmp 0x14001d195
mov r9, rcx
shr r9, 1
mov r8, rbx
cmp r9, 2
jb 0x14001d195
cmp word [r8 + 2], 0x3a
jne 0x14001d195
movzx r8d, word [r8]
cmp r8w, 0x41
jb 0x14001d195
cmp r8w, 0x5b
jb 0x14001d179
add r8d, 0xffffff9f
cmp r8w, 0x19
ja 0x14001d195
mov r8d, 2
mov rcx, rsi
xor edx, edx
call fcn.14007e8d0
movzx ecx, byte [rsi]
mov rax, qword [rsi + 0x10]
mov edx, ecx
and dl, 1
mov r8, qword [0x1400fa658]
mov r9, qword [r8]
test dl, dl
cmove rax, rbx
dec r9
je 0x14001d217
test dl, dl
je 0x14001d1b9
mov rcx, qword [rsi + 8]
test rcx, rcx
jne 0x14001d1c3
jmp 0x14001d217
shr cl, 1
movzx ecx, cl
test rcx, rcx
je 0x14001d217
lea r8, [rax + rcx*2]
mov rdx, qword [0x1400fa648]
movzx r10d, word [r8 - 2]
add r8, 0xfffffffffffffffe
xor r11d, r11d
nop word [rax + rax]
cmp word [rdx + r11*2], r10w
je 0x14001d1f6
inc r11
cmp r9, r11
jne 0x14001d1e0
cmp r8, rax
jne 0x14001d1ce
jmp 0x14001d217
sub r8, rax
cmp r8, 0xfffffffffffffffe
je 0x14001d217
sar r8, 1
dec rcx
cmp r8, rcx
jae 0x14001d217
inc r8
mov rcx, rsi
xor edx, edx
call fcn.14007e8d0
mov rax, qword [rsp + 0x38]
xor rax, rsp
mov rcx, qword [rdi]
cmp rcx, rax
jne 0x14001d232
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.1400c8850
lea rsi, [rsi + r9]
ret
Function at 0x140022490
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rdx
mov r14, rcx
mov r15, qword [0x1400f74a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x40]
call fcn.140034350
test byte [rsp + 0x50], 1
je 0x1400224d8
mov rcx, qword [rsp + 0x60]
jmp 0x1400224dd
lea rcx, [rsp + 0x52]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test byte [rsp + 0x50], 1
je 0x1400224fb
mov rcx, qword [rsp + 0x60]
call fcn.1400c7190
test rsi, rsi
je 0x1400225be
test edi, edi
je 0x1400225be
mov ecx, edi
add rcx, rcx
call fcn.1400c7150
mov rbx, rax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x30]
call fcn.140034350
test byte [rsp + 0x50], 1
je 0x14002253f
mov rcx, qword [rsp + 0x60]
jmp 0x140022544
lea rcx, [rsp + 0x52]
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test byte [rsp + 0x50], 1
je 0x140022561
mov rcx, qword [rsp + 0x60]
call fcn.1400c7190
mov qword [rsp + 0x20], rbx
cmp word [rbx], 0
je 0x140022581
xor ecx, ecx
nop
lea rax, [rcx + 1]
cmp word [rbx + rcx*2 + 2], 0
mov rcx, rax
jne 0x140022570
jmp 0x140022583
xor eax, eax
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x20]
call fcn.1400343c0
test byte [rsi], 1
je 0x1400225a5
mov rcx, qword [rsi + 0x10]
call fcn.1400c7190
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.1400c71c0
test edi, edi
setne al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
mov rdx, qword [r15]
cmp rdx, rcx
jne 0x1400225df
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400c8850
int3
Function at 0x140022d40
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.140023260
test rdi, rdi
je 0x140022da4
test al, al
je 0x140022da4
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 0x140022da4
test rcx, rcx
js 0x140022da4
cmp qword [r14 + 0x10], rax
jb 0x140022da4
mov rcx, r14
mov edx, ebx
mov r8, rdi
mov r9, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x1400236b0
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 [0x1400f74a8]
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 0x140023736
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 0x14002378d
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 0x140023791
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x14002376b
call fcn.1400c8850
int3

Function at 0x140022db0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140022e45
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 0x140022e09
mov r15, qword [rsp + 0x48]
call fcn.140022b40
mov rcx, r14
mov rdx, rsi
mov r8, r15
mov r9, rax
call fcn.140044ce0
mov rcx, qword [rsi]
call fcn.140044c70
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140022e31
mov qword [rsi], rdi
mov r14, qword [rsp + 0x48]
call fcn.140022b40
mov rcx, rdi
mov rdx, rsi
mov r8, r14
mov r9, rax
call fcn.140044ca0
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 0x1400231a0
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 0x1400231e5
mov rbx, rdx
mov r14, qword [rsp + 0x48]
call fcn.140022b40
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.140044ce0
mov rcx, rsi
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140022db0
Function at 0x1400236b0
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.140023260
test rdi, rdi
je 0x140022da4
test al, al
je 0x140022da4
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 0x140022da4
test rcx, rcx
js 0x140022da4
cmp qword [r14 + 0x10], rax
jb 0x140022da4
mov rcx, r14
mov edx, ebx
mov r8, rdi
mov r9, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x1400236b0
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 [0x1400f74a8]
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 0x140023736
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 0x14002378d
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 0x140023791
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x14002376b
call fcn.1400c8850
int3

Function at 0x140025210
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 [0x1400f74a8]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x160], rax
test rdx, rdx
je 0x1400252a2
mov rsi, rdx
mov rdi, rcx
mov ebp, 0xffffffff
lea rbx, str._var_tmp_build_firefox_d8b47d80163d_security_sandbox_chromium_base_rand_util_win.cc
lea r14, str.success
lea r15, [rsp + 0x28]
jmp 0x140025268
add rdi, r12
sub rsi, r12
je 0x1400252a2
cmp rsi, rbp
mov r12d, 0xffffffff
cmovb r12, rsi
mov rcx, rdi
mov edx, r12d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140025260
mov rcx, r15
mov rdx, rbx
mov r8d, 0x20
mov r9, r14
call fcn.14001e070
mov rcx, r15
call fcn.14001e310
jmp 0x140025260
mov rax, qword [rsp + 0x160]
xor rax, rsp
mov rcx, qword [r13]
cmp rcx, rax
jne 0x1400252ca
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400c8850
int3
Function at 0x1400294b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
sub rsp, 0x128
mov r9, qword [0x1400f74a8]
mov rax, qword [r9]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r10, qword [rcx + 8]
mov rax, 0xffffffffffffffff
test r10, r10
je 0x14002964e
mov r11, qword [rdx + 8]
test r11, r11
je 0x14002964e
cmp r11, 1
jne 0x140029527
cmp r10, r8
jbe 0x14002964e
mov rdx, qword [rdx]
movzx edx, byte [rdx]
mov rcx, qword [rcx]
nop word [rax + rax]
cmp byte [rcx + r8], dl
je 0x140029646
inc r8
cmp r10, r8
jne 0x140029510
jmp 0x14002964e
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 0x1400295af
xor esi, esi
jmp 0x1400295f0
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 0x1400295c0
test rdx, rdx
je 0x140029612
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 0x140029600
mov rax, 0xffffffffffffffff
cmp r10, r8
jbe 0x14002964e
mov rcx, qword [rcx]
nop word cs:[rax + rax]
movzx edx, byte [rcx + r8]
cmp byte [rsp + rdx + 0x20], 0
jne 0x14002964b
inc r8
cmp r10, r8
jne 0x140029630
jmp 0x14002964e
cmp r10, r8
je 0x14002964e
mov rax, r8
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
mov rdx, qword [r9]
cmp rdx, rcx
jne 0x14002966b
add rsp, 0x128
pop rdi
pop rsi
ret
call fcn.1400c8850
int3
Function at 0x140029880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
sub rsp, 0x128
mov r9, qword [0x1400f74a8]
mov rax, qword [r9]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r10, qword [rcx + 8]
mov rax, 0xffffffffffffffff
test r10, r10
je 0x140029a19
mov r11, qword [rdx + 8]
test r11, r11
je 0x1400298f7
cmp r11, 1
jne 0x1400298ff
cmp r10, r8
jbe 0x140029a19
mov rdx, qword [rdx]
movzx edx, byte [rdx]
mov rcx, qword [rcx]
nop word cs:[rax + rax]
cmp byte [rcx + r8], dl
jne 0x140029a16
inc r8
cmp r10, r8
jne 0x1400298e0
jmp 0x140029a19
mov rax, r11
jmp 0x140029a19
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 0x140029987
xor esi, esi
jmp 0x1400299c0
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 0x140029990
test rdx, rdx
je 0x1400299e2
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 0x1400299d0
mov rax, 0xffffffffffffffff
cmp r10, r8
jbe 0x140029a19
mov rcx, qword [rcx]
nop word cs:[rax + rax]
movzx edx, byte [rcx + r8]
cmp byte [rsp + rdx + 0x20], 0
je 0x140029a16
inc r8
cmp r10, r8
jne 0x140029a00
jmp 0x140029a19
mov rax, r8
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
mov rdx, qword [r9]
cmp rdx, rcx
jne 0x140029a36
add rsp, 0x128
pop rdi
pop rsi
ret
call fcn.1400c8850
int3
Function at 0x14002a0a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0x130
mov r9, qword [0x1400f74a8]
mov rax, qword [r9]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov r10, qword [rcx + 8]
test r10, r10
je 0x14002a238
dec r10
cmp r10, r8
cmovae r10, r8
mov r8, qword [rdx + 8]
test r8, r8
je 0x14002a241
cmp r8, 1
jne 0x14002a119
mov rax, qword [rdx]
movzx edx, byte [rax]
mov rcx, qword [rcx]
cmp byte [rcx + r10], dl
jne 0x14002a241
mov rax, r10
nop dword [rax]
sub rax, 1
jb 0x14002a238
cmp byte [rcx + r10 - 1], dl
mov r10, rax
je 0x14002a100
jmp 0x14002a244
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 0x14002a1a2
xor r11d, r11d
jmp 0x14002a1e4
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 0x14002a1b0
test rdx, rdx
je 0x14002a203
add rax, r11
xor r8d, r8d
nop
movzx r11d, byte [rax + r8]
mov byte [rsp + r11 + 0x20], 1
inc r8
cmp rdx, r8
jne 0x14002a1f0
mov rcx, qword [rcx]
movzx eax, byte [rcx + r10]
cmp byte [rsp + rax + 0x20], 0
je 0x14002a241
mov rax, r10
nop word cs:[rax + rax]
sub rax, 1
jb 0x14002a238
movzx edx, byte [rcx + r10 - 1]
cmp byte [rsp + rdx + 0x20], 0
mov r10, rax
jne 0x14002a220
jmp 0x14002a244
mov rax, 0xffffffffffffffff
jmp 0x14002a244
mov rax, r10
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
mov rdx, qword [r9]
cmp rdx, rcx
jne 0x14002a260
add rsp, 0x130
pop rsi
ret
call fcn.1400c8850
int3
Function at 0x14002f9f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov r14, qword [0x1400f74a8]
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 0x14002fa26
xor ebx, ebx
jmp 0x14002fac8
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.14002a320
cmp ebp, 1
je 0x14002fa6a
test ebp, ebp
jne 0x14002fac8
cmp qword [rsp + 0x40], rsi
jne 0x14002fa1f
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
mov r8, rsi
call sub.ntdll.dll_memcmp
test eax, eax
sete bl
jmp 0x14002fac8
test rsi, rsi
je 0x14002fac6
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 0x14002fac8
lea rdx, [rcx + 1]
cmp rsi, rcx
mov rcx, rdx
jne 0x14002fa80
jmp 0x14002fac8
mov bl, 1
mov rax, qword [rsp + 0x48]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14002fae5
mov eax, ebx
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400c8850
int3

Function at 0x14002fc20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov ebx, r8d
mov r14, qword [0x1400f74a8]
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 0x14002fc90
mov rsi, qword [rdx]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov r9, rdi
call fcn.14002a320
cmp ebx, 1
je 0x14002fcac
test ebx, ebx
jne 0x14002fc90
cmp qword [rsp + 0x38], rdi
jne 0x14002fc90
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
mov r8, rdi
call sub.ntdll.dll_memcmp
test eax, eax
sete al
jmp 0x14002fc92
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
mov rdx, qword [r14]
cmp rdx, rcx
jne 0x14002fd20
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002fd19
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 0x14002fc92
lea r9, [r8 + 1]
cmp rcx, r8
mov r8, r9
jne 0x14002fcd0
jmp 0x14002fc92
mov al, 1
jmp 0x14002fc92
call fcn.1400c8850
int3
Function at 0x140040050
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 [0x1400f74a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov ecx, dword [0x140134048]
cmp ecx, 0xffffffff
je 0x14004008c
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140040091
call fcn.140040240
movzx eax, byte [0x140135218]
test al, al
je 0x1400401f3
mov rbx, qword [0x140137300]
mov rcx, rbx
call fcn.140034e40
mov rcx, qword [0x140136ce8]
inc rcx
mov edx, 0x100
lea rax, [0x1401354e0]
nop word cs:[rax + rax]
movzx r8d, cl
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x1400400fe
lea r8d, [rcx + 1]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x1400400fe
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x1400400d0
jmp 0x140040122
lea rcx, [rax + r9*8]
mov dword [rcx], 1
lea rcx, [r8 + r8*2]
mov qword [rax + rcx*8 + 8], rdi
mov qword [0x140136ce8], 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 0x14004017e
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x24]
call fcn.14001d5b0
test rax, rax
je 0x14004017e
lea rdx, str._var_tmp_build_firefox_d8b47d80163d_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x196
mov r9, rax
call fcn.14001e130
mov rcx, rdi
call fcn.14001e310
mov eax, dword [rsi]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x24], 0x100
cmp eax, 0xff
jle 0x1400401d3
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x24]
call fcn.14001d5b0
test rax, rax
je 0x1400401d3
lea rdx, str._var_tmp_build_firefox_d8b47d80163d_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x197
mov r9, rax
call fcn.14001e130
mov rcx, rsi
call fcn.14001e310
mov rax, qword [rsp + 0x160]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140040234
add rsp, 0x168
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140135218]
call fcn.1400c6e84
test eax, eax
je 0x1400400a0
mov ecx, 8
call fcn.1400c70b0
mov rbx, rax
mov rcx, rax
call fcn.140034e00
mov qword [0x140137300], rbx
lea rcx, [0x140135218]
call fcn.1400c6f5f
jmp 0x1400400a0
call fcn.1400c8850
int3
mov eax, 0xffffffff
mov qword [rcx], rax
jmp 0x140040050
Function at 0x1400405f0
Capabilities:
Get thread local storage value

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

Function at 0x140040630
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140134048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x140040658
test rdi, rdi
je 0x140040671
call fcn.140040240
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