joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015190
Capabilities:
Access peb ldr_data

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov ebp, r9d
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov eax, dword [0x14005bb90]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
je 0x1400151df
cmp byte [0x14005bb94], 0
je 0x1400151df
mov eax, dword [0x14005b2c8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
jmp 0x1400151e4
call fcn.140015cd0
mov qword [rsi], rax
lea r14, [rsi + 8]
mov qword [rsi + 8], 0
mov byte [rsi + 0x10], 0
mov dword [rsi + 0x14], ebp
lea rcx, [rsi + 0x18]
mov qword [rsi + 0x20], 0
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
mov dword [rsi + 0x28], eax
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmm1, xmmword [rdi]
movups xmmword [rsi + 0x40], xmm1
mov dword [rdi], 0
mov qword [rdi + 8], 0
mov qword [rsi + 0x50], rbx
movups xmmword [rsi + 0x60], xmm0
mov qword [rsi + 0x58], 8
call sub.ntdll.dll_RtlQueryPerformanceCounter
mov eax, dword [0x14005bb90]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
jne 0x140015264
mov rcx, rsi
call fcn.140015ce0
jmp 0x14001529e
cmp byte [0x14005bb94], 0
jne 0x140015284
mov rax, qword gs:[0x30]
cmp qword [rax + 0x58], 0
je 0x1400152c4
mov byte [0x14005bb94], 1
mov eax, dword [0x14005b2c8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 8], rsi
lea r8, [rsi + 0x40]
mov rax, qword [0x14005b050]
lea rcx, [0x14005b050]
mov rdx, r14
call qword [rax + 0x30]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
mov dword [0x14005bb90], eax
jmp 0x14001525a
Function at 0x1400186f0
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
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x28], rax
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]
nop
mov rbx, rsi
cmp rsi, rax
je 0x14001878f
mov rbx, qword [rcx + r9*8]
mov rbx, qword [rbx]
cmp rbx, rdx
je 0x1400187ad
cmp dword [rdx + 0x10], edi
je 0x14001879e
mov rdx, qword [rdx]
jmp 0x140018780
cmp rdx, rax
je 0x1400187ad
mov qword [r14], rdx
mov byte [r14 + 8], 0
jmp 0x1400187d9
mov qword [rsp + 0x20], r8
mov rdx, qword [rax]
lea rcx, [r15 + 8]
lea r8, [rsp + 0x20]
call fcn.140018980
mov rax, qword [r15 + 8]
mov r9, qword [rax]
lea r8, [r9 + 0x10]
mov rcx, r15
mov rdx, r14
call fcn.140018800
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14004ce20
mov rax, r14
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140018800
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 0x140018887
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 0x1400188c7
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x140018890
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.140017e40
xor eax, eax
mov r15, rbx
jmp 0x140018930
mov rbx, qword [r15]
cmp rbx, rdx
je 0x140018904
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 0x140018946
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.140019050
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 0x140018926
or r9, 1
mov rax, qword [rsi + r9*8]
mov rax, qword [rax]
mov qword [rsi + r9*8], rax
cmp rax, r15
je 0x140018929
mov rax, qword [rcx + 0x18]
lea rbx, [rax + r9*8]
mov rax, qword [rax + r9*8]
mov rdi, qword [rax + 8]
jmp 0x140018926
Function at 0x140019780
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 0x140019795
mov r8, qword [r8]
movabs rsi, 0xcbf29ce484222325
mov rdx, r9
add rdx, r9
je 0x1400197cb
movabs r11, 0x100000001b3
lea rdi, [r9 + r9]
add rdi, 0xffffffffffffffff
mov r10d, edx
and r10d, 6
cmp rdi, 7
jae 0x1400197d3
mov rdx, r8
jmp 0x140019841
mov rbx, rsi
jmp 0x140019867
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 0x1400197e0
mov rbx, rsi
test r10, r10
je 0x140019867
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 0x140019850
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 0x140019893
mov rcx, qword [rcx]
mov rdx, rsi
cmp rsi, r11
je 0x1400198a2
mov rdx, qword [rdi + r10*8]
mov rdx, qword [rdx]
cmp rdx, rcx
je 0x140019909
cmp qword [rcx + 0x20], r9
jne 0x140019890
cmp qword [rcx + 0x28], 7
jbe 0x1400198c0
mov rdx, qword [rcx + 0x10]
test r9, r9
jne 0x1400198c9
jmp 0x140019904
lea rdx, [rcx + 0x10]
test r9, r9
je 0x140019904
xor ebx, ebx
nop dword [rax + rax]
movzx ebp, word [rdx + rbx*2]
cmp bp, word [r8 + rbx*2]
jne 0x140019890
add rbx, 1
cmp r9, rbx
jne 0x1400198d0
xor ebx, ebx
nop word cs:[rax + rax]
movzx ebp, word [r8 + rbx*2]
cmp bp, word [rdx + rbx*2]
jne 0x140019909
add rbx, 1
cmp r9, rbx
jne 0x1400198f0
mov qword [rax], rcx
jmp 0x14001990c
mov qword [rax], r11
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140019920
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 0x14001999f
mov rsi, qword [r9 + r10*8]
mov rsi, qword [rsi]
cmp rsi, rcx
je 0x1400199e4
cmp dword [rcx + 0x10], r8d
je 0x1400199af
mov rcx, qword [rcx]
jmp 0x140019990
mov rsi, rcx
nop word cs:[rax + rax]
nop dword [rax]
mov rdi, rdx
cmp rdx, r11
je 0x1400199cf
mov rdi, qword [r9 + r10*8]
mov rdi, qword [rdi]
cmp rdi, rsi
je 0x1400199df
cmp r8d, dword [rsi + 0x10]
jne 0x1400199df
mov rsi, qword [rsi]
jmp 0x1400199c0
cmp rcx, rsi
jne 0x1400199ea
mov rcx, r11
mov rsi, r11
mov qword [rax], rcx
mov qword [rax + 8], rsi
pop rdi
pop rsi
ret

Function at 0x140019ae0
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 0x140019b5c
cmp rbx, r8
jne 0x140019b73
mov rdx, r8
jmp 0x140019b6d
cmp rbx, r8
je 0x140019ba5
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.140017e40
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 0x140019b6d
Function at 0x14001a4d0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rsi, rcx
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
xor ecx, ecx
cpuid
mov ebp, eax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x38], ecx
mov byte [rsp + 0x3c], 0
lea rdi, [rsi + 0x30]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140011680
test ebp, ebp
jg 0x14001a559
mov eax, 0x80000000
xor ecx, ecx
cpuid
cmp eax, 0x80000004
jge 0x14001a66e
cmp byte [rsi + 0x27], 0
je 0x14001a6f6
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004ce20
nop
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor r14d, r14d
mov eax, 1
xor ecx, ecx
cpuid
mov r15d, ecx
mov r12d, edx
mov r8d, eax
cmp ebp, 7
jl 0x14001a587
mov eax, 7
xor ecx, ecx
cpuid
mov r14d, ebx
shr r14b, 5
and r14b, 1
mov dword [rsi], r8d
mov eax, r8d
and eax, 0xf
mov dword [rsi + 0x10], eax
mov eax, r8d
shr eax, 0xc
and eax, 3
mov dword [rsi + 4], eax
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.14001a3e0
mov eax, dword [rsp + 0x2c]
mov dword [rsi + 8], eax
mov eax, dword [rsp + 0x28]
mov dword [rsi + 0xc], eax
mov eax, dword [rsp + 0x24]
mov dword [rsi + 0x18], eax
mov eax, dword [rsp + 0x20]
mov dword [rsi + 0x14], eax
mov eax, r12d
shr eax, 0x17
and al, 1
mov byte [rsi + 0x1c], al
mov eax, r12d
shr eax, 0x19
and al, 1
mov byte [rsi + 0x1d], al
shr r12d, 0x1a
and r12b, 1
mov byte [rsi + 0x1e], r12b
mov eax, r15d
and al, 1
mov byte [rsi + 0x1f], al
mov eax, r15d
shr eax, 9
and al, 1
mov byte [rsi + 0x20], al
mov eax, r15d
shr eax, 0x13
and al, 1
mov byte [rsi + 0x21], al
mov eax, r15d
shr eax, 0x14
and al, 1
mov byte [rsi + 0x22], al
mov eax, r15d
shr eax, 0x17
and al, 1
mov byte [rsi + 0x23], al
mov eax, r15d
shr eax, 0x1f
mov byte [rsi + 0x28], al
mov ecx, r15d
and ecx, 0x1c000000
xor ebp, ebp
mov eax, 0
cmp ecx, 0x1c000000
jne 0x14001a64e
xor ecx, ecx
xgetbv
and eax, 6
cmp rax, 6
sete al
mov byte [rsi + 0x24], al
shr r15d, 0x19
and r15b, 1
mov byte [rsi + 0x26], r15b
test al, al
movzx eax, r14b
cmove eax, ebp
mov byte [rsi + 0x25], al
jmp 0x14001a51e
mov edi, eax
mov eax, 0x80000002
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, 0x80000003
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 eax, 0x80000004
xor ecx, ecx
cpuid
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], ebx
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x5c], edx
mov byte [rsp + 0x60], 0
lea rcx, [rsi + 0x50]
lea rdx, [rsp + 0x30]
call fcn.140011680
cmp edi, 0x80000007
jl 0x14001a532
mov eax, 0x80000007
xor ecx, ecx
cpuid
shr edx, 8
and dl, 1
mov byte [rsi + 0x27], dl
cmp byte [rsi + 0x27], 0
jne 0x14001a53c
cmp byte [rsi + 0x28], 0
je 0x14001a53c
mov eax, 0x40000000
xor ecx, ecx
cpuid
cmp edx, 0x76482074
jne 0x14001a53c
cmp ebx, 0x7263694d
jne 0x14001a53c
cmp ecx, 0x666f736f
jne 0x14001a53c
mov byte [rsi + 0x27], 1
jmp 0x14001a53c
Function at 0x14001a910
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.14001ad40
test rdi, rdi
je 0x14001a95b
test al, al
je 0x14001a95b
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 0x14001a95b
test rcx, rcx
js 0x14001a95b
cmp qword [rsi + 0x10], rax
jae 0x14001a967
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.14001ad50

Function at 0x14001a9f0
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 0x14001aa64
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.14001a980
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14001aa5d
mov qword [rsi], rdi
call fcn.14001a880
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
cmpsd dword [rsi], dword [rdi]
invalid
or al, 0x15
sub dword [rsi - 1], ebx
jnp 0x1400ae51c
invalid
jns 0x1400ae559
and al, 0x7c
sub eax, 0x23767df4
mov eax, 0xa61f9556
jno 0x1400ae5f9
mov cl, 0x57
fcomp qword [rax + riz - 0x1f]
pop rsp
and cl, ah
sub dl, 0x63
insd dword [rdi], dx
test eax, 0xbb2b1393
add esp, dword [rdx + 0xa]
invalid
invalid
xchg esp, eax
jl 0x1400ae621
invalid
mov ecx, 0x2ac98ec7
sar bl, 0xa7
pop rsi
jae 0x1400ae5d9
and byte [rsi], ch
pop rcx
invalid

Function at 0x14001ad50
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 [0x14005b018]
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 0x14001ae02
mov rsi, qword [rsp + 0xc0]
lea rdx, [rsp + 0x28]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001ae28
mov rax, qword [rsp + 0x40]
sub rax, rbx
add rax, qword [rsp + 0x30]
mov qword [rsi], rax
mov sil, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004ce20
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 0x14001adb0
xor esi, esi
jmp 0x14001ade4
xor eax, eax
jmp 0x14001adde
Function at 0x14001b850
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 [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x14001b8e0
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]
jmp 0x14001b8a8
add rdi, rbx
sub rsi, rbx
je 0x14001b8e0
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14001b8a0
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.140016b00
mov rcx, r12
call fcn.140016c00
jmp 0x14001b8a0
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14004ce20
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140020000
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 [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ecx, dword [0x14005b070]
cmp ecx, 0xffffffff
je 0x140020039
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14002003e
call fcn.1400201a0
call fcn.140020420
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rcx, qword [0x14005bcb0]
add rcx, 1
mov r8d, 0x100
lea rax, [0x14005bcc0]
movzx edx, cl
lea rdi, [rdx + rdx*2]
cmp dword [rax + rdi*8], 0
jne 0x1400200ea
lea rcx, [rax + rdi*8]
mov dword [rcx], 1
lea rcx, [rdx + rdx*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x14005bcb0], rdx
mov dword [rsi], edx
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], 0xffffffff
mov dword [rsp + 0x24], eax
cmp eax, 0xffffffff
je 0x14002010e
mov eax, dword [rsi]
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x24], eax
cmp eax, 0xff
jg 0x140020153
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14004ce20
nop
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r14
ret
lea edx, [rcx + 1]
movzx edx, dl
lea rdi, [rdx + rdx*2]
cmp dword [rax + rdi*8], 0
je 0x140020074
add rcx, 2
add r8, 0xfffffffffffffffe
jne 0x140020067
jmp 0x140020097
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.140016e40
test rax, rax
je 0x1400200b3
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x196
mov r9, rax
call fcn.140016b50
mov rcx, rdi
call fcn.140016c00
jmp 0x1400200b3
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.140016e40
test rax, rax
je 0x1400200cc
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x197
mov r9, rax
call fcn.140016b50
mov rcx, rsi
call fcn.140016c00
jmp 0x1400200cc
Function at 0x140020490
Capabilities:
Get thread local storage value

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

Function at 0x1400204d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14005b070]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14002050e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140020507
call fcn.1400201a0
jmp 0x1400204ee

Function at 0x140020540
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 0x14002055d
mov dword [rsi], eax
mov al, 1
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x140020557

Function at 0x140020a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x140020a92
mov rdi, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140020a92
cmp word [rax + rcx + 0x14], 0x78
jae 0x140020aa5
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, r8
mov r12, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
test rax, rax
je 0x140020a92
cmp r12, 0xffff
ja 0x140020ad1
mov word [rsi], r12w
mov al, 1
jmp 0x140020a94
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov edx, dword [r14 + 0x18]
lea rcx, [rdx*4]
test rcx, rcx
je 0x140020a92
lea rbx, [rax + rdx*4]
lea r13, [r12 + 1]
mov qword [rsp + 0x20], rax
mov rbp, rax
nop word cs:[rax + rax]
nop dword [rax]
mov rax, rbx
sub rax, rbp
mov rcx, rax
sar rcx, 2
shr rax, 0x3f
add rax, rcx
and rax, 0xfffffffffffffffe
lea r15, [rax*2]
add r15, rbp
mov edx, dword [rbp + rax*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov cl, byte [r12]
test cl, cl
je 0x140020b63
mov rdx, r13
nop dword [rax + rax]
cmp cl, byte [rax]
jne 0x140020b65
add rax, 1
movzx ecx, byte [rdx]
add rdx, 1
test cl, cl
jne 0x140020b50
xor ecx, ecx
movzx ecx, cl
movzx eax, byte [rax]
mov edx, ecx
sub edx, eax
test edx, edx
cmovle rbx, r15
lea rdx, [r15 + 4]
cmovg rbp, rdx
cmp ecx, eax
je 0x140020b8d
xor eax, eax
cmp rbp, rbx
jne 0x140020b10
jmp 0x140020a94
mov edx, dword [r14 + 0x24]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
sub r15, qword [rsp + 0x20]
sar r15, 1
movzx eax, word [rax + r15]
add ax, word [r14 + 0x10]
mov word [rsi], ax
jmp 0x140020acd
Function at 0x140020c60
Capabilities:
Parse pe header

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

Function at 0x140021c70
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [0x14005d530]
mov ecx, dword [0x14005b2c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140021cb7
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14004ce20
nop
add rsp, 0x58
ret
lea rcx, [0x14005d530]
call fcn.14004c320
cmp dword [0x14005d530], 0xffffffff
jne 0x140021ca4
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movups xmmword [0x14005d520], xmm2
movups xmmword [0x14005d510], xmm1
movups xmmword [0x14005d500], xmm0
lea rcx, [0x14005d530]
call fcn.14004c388
jmp 0x140021ca4