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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.1400a28a0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x140081d80]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call case.0x140077289.252
cmp qword [rbp + 0xfe8], 0
jne 0x14007ac07
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x14007abd3
cmp r12, 0x1000
ja 0x14007ac29
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x14007aba7
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14007ab50
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14007abad
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x14007ab90
jbe 0x14007ab00
jmp 0x14007ac15
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x14007aab5
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.140068ae0
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.140068ae0
jmp 0x14007abd3
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.1400ab100
jmp 0x14007ac3d
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.1400ab080
ud2
Function at 0x14007e050
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.1400899d0
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x14007e111
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.1400803d0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x14007e111
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14007e0e5
test rdi, rdi
je 0x14007e0e1
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140002d90
xor esi, esi
jmp 0x14007e111
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14007e10e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140002d90
mov rsi, rbx
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x14007e700
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.1400899d0
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je case.0x1400719eb.398
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.1400803d0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
je case.0x1400719eb.398
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14007e793
test rdi, rdi
je 0x14007e78f
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140002d90
xor esi, esi
jmp case.0x1400719eb.398
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
retf
add cl, byte [rax - 0x7b]
invalid
je 0x14007e7bc
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140002d90
clc
invalid
mov rsi, rbx
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret

Function at 0x14007e7d0
Capabilities:
Move file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov eax, edx
mov rdx, rcx
lea rcx, [rbp - 0x28]
call fcn.1400899d0
add byte [rax], al
mov rax, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
jne 0x14007e7ec
movabs r14, 0x8000000000000000
cmp rax, r14
je case.0x1400726e6.348
test bh, dh
add byte [rax], al
invalid
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rax
invalid
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rcx
ror byte [rax - 0x73], 1
test al, 0x48
test al, 0x48
lea edx, [rbp - 0x40]
mov r8b, 1
call fcn.1400803d0
mov rax, qword [rbp - 0x58]
invalid
invalid
mov rsi, qword [rbp - 0x50]
cmp rax, r14
je case.0x1400726e6.348
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x28]
mov rdx, rbx
mov edx, ebx
mov r8, rdi
call fcn.1400899d0
mov cl, 0
add byte [rax - 0x75], cl
invalid
invalid
mov rsi, qword [rbp - 0x20]
cmp rax, r14
je 0x14007e8a1
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x40], eax
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rcx
lea rcx, [rbp - 0x58]
test al, 0x48
lea edx, [rbp - 0x40]
mov r8b, 1
call fcn.1400803d0
sbb eax, dword [rax]
invalid
mov rdi, qword [rbp - 0x58]
mov rsi, qword [rbp - 0x50]
cmp rdi, r14
jne 0x14007e8c4
mov r14, qword [rbp - 8]
mov r15, qword [rbp - 0x10]
test r14, r14
je case.0x1400726e6.348
mov r15, qword [rbp - 0x10]
mov rcx, r15
mov rdx, rsi
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
ror byte [rbx + rcx*4 + 0x75], 0xf8
je 0x14007e929
test rdi, rdi
je 0x14007e8fb
invalid
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140002d90
xchg ebp, eax
clc
invalid
test r14, r14
je 0x14007e914
add r14, r14
mov r8d, 2
mov rcx, r15
mov ecx, edi
mov rdx, r14
call fcn.140002d90
clc
invalid
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
Function at 0x14007f120
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1400c3a98]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14007f164
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14007f1c3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14007f1d2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14007f20a
cmp eax, 0x103
je 0x14007f214
test eax, eax
js 0x14007f1ef
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14007f20a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1400c3af8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140075720
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400690e0
mov ecx, 7
int 0x29
ud2

Function at 0x14007f280
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1400c3a98]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14007f2c4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14007f32a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14007f361
test eax, eax
js 0x14007f33b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14007f354
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1400c3af8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140075720
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400690e0
mov ecx, 7
int 0x29
ud2
Function at 0x140080b90
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x28], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x24], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov r12, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x10], rax
nop
Function at 0x140082240
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140082393
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x140082277
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140082358
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140082376
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400822d9
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x14008230b
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x14008230f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x140082313
cmp eax, 0x6d
jne 0x14008233e
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x140082318
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140082344
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.140068ae0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14008234e
cmp rax, 1
je 0x1400822c2
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x1400822cc
mov r8d, 0x10
mov rcx, rbx
call fcn.1400a9d00
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x140082284
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1400a9d00
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140082284
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400a9c70
int3
Function at 0x140088870
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x1400888a8
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1400888c0
nop
add rsp, 0x38
ret

Function at 0x1400888c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140088903
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, case.0x1400719eb.114
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.H__f_
lea rcx, [rbp - 0x60]
call fcn.1400aab20
ud2

Function at 0x140088f90
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1400df209]
mov ecx, 0x10
mov edx, 8
call fcn.140002d70
test rax, rax
je 0x14008906f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140089120]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140089061
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140089038
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140002d90
pop rax
popfq
idiv edi
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
add al, ch
stosb byte [rdi], al
invalid
add al, byte [rax]
ud2
Function at 0x1400971a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14009721a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140097210
cmp r11, r10
ja 0x1400972a5
cmp r10, rdx
ja 0x1400972b7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140097212
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400971f0
jmp 0x140097287
ja 0x14009721a
mov r11, r10
cmp rax, r8
jne 0x1400971c2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14009728b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140097260
mov r8, r10
sub ecx, r9d
jns 0x14009727e
jmp 0x14009728d
cmp r10, rdx
je 0x140097299
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14009728d
xor al, 1
cmp r8, rdx
jne 0x140097240
jmp 0x14009728d
xor eax, eax
jmp 0x14009728d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1400aaa90
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400ab100
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400ab080
int3
Function at 0x14009ac40
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x14009acb2
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.ADVAPI32.dll_SystemFunction036]
jmp 0x14009ac78
add rdi, rbx
sub rsi, rbx
je 0x14009acb2
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x14009ac70
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x14009ac70
add ebp, 0x80000000
jmp 0x14009acb4
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14009acd0
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
not ecx
cmp r8, 0x40
jb 0x14009ae1c
add rdx, 0x10
xor r9d, r9d
lea rax, [0x1400cc798]
jmp 0x14009ad07
add rdx, 0x10
mov r8, r10
cmp r8, 0xf
jbe 0x14009ae9a
movzx r11d, byte [rdx - 1]
movzx r10d, byte [rdx - 2]
mov r10d, dword [rax + r10*4 + 0x400]
xor r10d, dword [rax + r11*4]
movzx r11d, byte [rdx - 3]
xor r10d, dword [rax + r11*4 + 0x800]
movzx r11d, byte [rdx - 4]
xor r10d, dword [rax + r11*4 + 0xc00]
movzx r11d, byte [rdx - 5]
xor r10d, dword [rax + r11*4 + 0x1000]
movzx r11d, byte [rdx - 6]
xor r10d, dword [rax + r11*4 + 0x1400]
movzx r11d, byte [rdx - 7]
xor r10d, dword [rax + r11*4 + 0x1800]
movzx r11d, byte [rdx - 8]
xor r10d, dword [rax + r11*4 + 0x1c00]
movzx r11d, byte [rdx - 9]
xor r10d, dword [rax + r11*4 + 0x2000]
mov r11d, ecx
movzx esi, byte [rdx - 0xa]
xor r10d, dword [rax + rsi*4 + 0x2400]
movzx esi, ch
movzx edi, byte [rdx - 0xb]
xor r10d, dword [rax + rdi*4 + 0x2800]
movzx edi, cl
movzx ebx, byte [rdx - 0xc]
xor r10d, dword [rax + rbx*4 + 0x2c00]
shr ecx, 0x18
movzx ebx, byte [rdx - 0xd]
xor ebx, ecx
xor r10d, dword [rax + rbx*4 + 0x3000]
shr r11d, 0x10
movzx ecx, r11b
movzx r11d, byte [rdx - 0xe]
xor r11d, ecx
xor r10d, dword [rax + r11*4 + 0x3400]
movzx ecx, byte [rdx - 0xf]
xor ecx, esi
xor r10d, dword [rax + rcx*4 + 0x3800]
inc r9
movzx r11d, byte [rdx - 0x10]
xor r11d, edi
mov ecx, r10d
xor ecx, dword [rax + r11*4 + 0x3c00]
lea r10, [r8 - 0x10]
cmp r9, 4
jne 0x14009ad00
cmp r10, 0x3f
jbe 0x14009ae18
xor r9d, r9d
jmp 0x14009ad00
add r8, 0xfffffffffffffff0
test r8, r8
je 0x14009ae8e
test r8b, 1
jne 0x14009ae32
mov rax, rdx
cmp r8, 1
jne 0x14009ae55
jmp 0x14009ae8e
lea rax, [rdx + 1]
movzx r9d, byte [rdx]
xor r9b, cl
movzx r9d, r9b
lea r10, [0x1400cc798]
shr ecx, 8
xor ecx, dword [r10 + r9*4]
cmp r8, 1
je 0x14009ae8e
add rdx, r8
lea r8, [0x1400cc798]
nop
movzx r9d, byte [rax]
xor r9b, cl
movzx r9d, r9b
shr ecx, 8
xor ecx, dword [r8 + r9*4]
movzx r9d, byte [rax + 1]
xor r9b, cl
movzx r9d, r9b
shr ecx, 8
xor ecx, dword [r8 + r9*4]
add rax, 2
cmp rax, rdx
jne 0x14009ae60
not ecx
mov eax, ecx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rax, str._builds_worker_checkouts_gecko_third_party_rust_crc32fast_src_baseline.rs
mov ecx, 0xf
mov rdx, r8
mov r8, rax
call fcn.1400aac90
int3
Function at 0x14009af60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x48
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
cmp r8, 0x80
jb 0x14009b17d
movdqu xmm4, xmmword [rdx]
movdqu xmm3, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqu xmm1, xmmword [rdx + 0x30]
not ecx
movd xmm0, ecx
pxor xmm0, xmm4
add rdx, 0x40
add r8, 0xffffffffffffffc0
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1400cc700]
nop word cs:[rax + rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm0
pclmulqdq xmm7, xmm5, 0x11
movdqu xmm0, xmmword [rdx]
pxor xmm0, xmm6
pxor xmm0, xmm7
movdqu xmm6, xmmword [rdx + 0x10]
movdqu xmm7, xmmword [rdx + 0x20]
movdqu xmm8, xmmword [rdx + 0x30]
movdqa xmm9, xmm3
pclmulqdq xmm9, xmm4, 0
pxor xmm9, xmm6
pclmulqdq xmm3, xmm5, 0x11
pxor xmm3, xmm9
movdqa xmm6, xmm2
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm7
pclmulqdq xmm2, xmm5, 0x11
pxor xmm2, xmm6
movdqa xmm6, xmm1
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm8
pclmulqdq xmm1, xmm5, 0x11
pxor xmm1, xmm6
add rdx, 0x40
add r8, 0xffffffffffffffc0
cmp r8, 0x3f
ja 0x14009afd0
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm5, xmmword [0x1400cc710]
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
pxor xmm0, xmm3
movdqa xmm3, xmm0
pclmulqdq xmm3, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm3
pxor xmm0, xmm2
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
pxor xmm0, xmm1
cmp r8, 0x10
jb 0x14009b0fa
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rdx]
add r8, 0xfffffffffffffff0
add rdx, 0x10
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
cmp r8, 0xf
ja 0x14009b0d0
movdqa xmm1, xmmword [0x1400cc710]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
psrldq xmm0, 4
pxor xmm0, xmm3
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
pclmulqdq xmm2, xmmword [0x1400cc720], 0x10
pblendw xmm2, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm2, 0
pxor xmm1, xmm0
pextrd ecx, xmm1, 1
not ecx
test r8, r8
je 0x14009b19b
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
jmp fcn.14009acd0
mov eax, ecx
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x14009cae0
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x140095a05
cmp rdx, 4
jae 0x140095a08
xor eax, eax
xor r8d, r8d
jmp 0x140095aa0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400c6190]
movdqa xmm3, xmmword [0x1400c61a0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140095a30
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140095ab7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140095aa0
ret
sub rdx, rcx
cmp rdx, 0x20
jb 0x1400959f0
jmp fcn.1400953c0

Function at 0x1400a2f08
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a2f52
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a2f52
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a2f52
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a2f52
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a2f52
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a2f54
xor al, al
add rsp, 0x28
ret