joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005a650
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x1400a40c8]
test ecx, ecx
je 0x14005a749
dec ecx
call fcn.1400a154c
cmp rax, 2
jb 0x14005a680
cmp qword [rax + 8], 0
je 0x14005a680
add rax, 0x10
jmp 0x14005a743
mov ecx, dword [0x1400a40c8]
or ecx, ecx
je 0x14005a75c
dec ecx
call fcn.1400a154c
cmp rax, 1
je 0x14005a723
push rax
pop rsi
nop
or rax, rax
jne 0x14005a6f3
movzx eax, byte [0x1401262b8]
mov ecx, 0x20
mov edx, 8
call fcn.140005be0
test rax, rax
je 0x14005a782
push rax
nop
pop rsi
lea rax, [0x1400a40b0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400a40c8]
test ecx, ecx
je 0x14005a76f
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
sub ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14005a727
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14005a72f
xor eax, eax
jmp 0x14005a743
call fcn.140067020
nop
push rax
pop rcx
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, [0x1400a40b0]
call fcn.14005a4e0
mov ecx, eax
jmp 0x14005a665
lea rcx, [0x1400a40b0]
call fcn.14005a4e0
mov ecx, eax
jmp 0x14005a690
lea rcx, [0x1400a40b0]
call fcn.14005a4e0
mov ecx, eax
jmp 0x14005a6eb
mov ecx, 8
mov edx, 0x20
call fcn.140006d30
ud2
Function at 0x140063440
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400a4108]
xor edx, edx
jmp fcn.140057b20
Function at 0x140065100
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor edi, edi
mov r15d, 0xffffffff
sub esi, esi
xor r13d, r13d
cmp r8, 0x201
jae 0x140065190
jmp 0x14006516f
jae 0x140065236
cmp r8, 0x201
jae 0x140065190
mov ebx, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x1400651d7
sub r8, r13
sub rsi, r13
cmp rsi, r8
jae 0x1400651b7
lea rcx, [rsp + 0x38]
mov rdx, r13
call fcn.140047740
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x40]
cmp rdi, r15
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rsp + 0x48], r13
mov rsi, rdi
mov rbx, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
push rbp
nop
pop rcx
mov edx, r12d
call sub.KERNEL32.dll_GetSystemDirectoryW
mov r14d, eax
or eax, eax
jne 0x1400651fd
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14006531f
mov r8d, r14d
cmp r12, r8
jne 0x140065160
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140065343
add r12, r12
cmp r12, r15
cmovae r12, r15
mov r8, r12
cmp r8, 0x201
jb 0x14006516f
jmp 0x140065190
cmp rbx, r8
jb 0x14006535d
lea rcx, [rsp + 0x88]
nop
push rbp
pop rdx
call fcn.14004f770
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
lea rcx, [rsp + 0x50]
call fcn.14004dad0
mov rax, qword [rsp + 0x78]
cmp byte [rax], 0
jne 0x1400652a3
lea rdx, [0x14010b160]
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.14004e720
mov rbx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x88]
push rbx
nop
pop rdx
call fcn.140053bf0
cmp qword [rsp + 0x58], 0
je 0x1400652d2
mov edx, 1
push rbx
pop rcx
nop
call fcn.140005c70
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x18], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rcx + 8], xmm0
mov qword [rcx], 0
test rdi, rdi
je 0x14006530a
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.140005c70
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov qword [rcx], 1
or rdi, rdi
jne 0x1400652fb
jmp 0x14006530a
lea rcx, str.internal_error:_entered_unreachable_code_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_syncmpmcmod.rs
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14000dc00
jmp 0x140065372
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
nop
push rbx
pop rdx
mov r8, rax
call fcn.14000e810
ud2
Function at 0x1400653c0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x448
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov r15d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor edi, edi
sub ebx, ebx
xor r14d, r14d
cmp r15, 0x201
jae 0x140065430
jmp 0x14006541f
jae 0x1400654dd
cmp r15, 0x201
jae 0x140065430
mov r13d, 0x200
lea r12, [rsp + 0x48]
mov rbp, r15
jmp 0x14006547f
sub r15, r14
sub rbx, r14
cmp rbx, r15
jae 0x14006545a
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8, r15
call fcn.140047740
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rdi, qword [rsp + 0x38]
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rsp + 0x40], r14
nop
push rdi
pop rbx
mov r13, r14
mov r12, qword [rsp + 0x20]
mov rbp, r14
sub ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r12
mov edx, ebp
call sub.KERNEL32.dll_GetSystemDirectoryW
mov esi, eax
or eax, eax
jne 0x14006549f
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140065510
mov r15d, esi
cmp rbp, r15
jne 0x140065410
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140065583
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
cmovae rbp, rax
mov r15, rbp
cmp r15, 0x201
jb 0x14006541f
jmp 0x140065430
cmp r13, r15
jb 0x14006559d
test esi, esi
je 0x140065534
lea r14, [r15 + r15]
movzx eax, byte [0x1401262b8]
mov edx, 2
mov rcx, r14
call fcn.140005be0
test rax, rax
je 0x1400655b1
push rax
nop
pop rsi
jmp 0x14006553c
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov qword [rcx], 0
or rdi, rdi
jne 0x14006555f
jmp 0x14006556e
mov esi, 2
xor r14d, r14d
nop
push rsi
pop rcx
mov rdx, r12
mov r8, r14
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x28]
mov qword [rax], rsi
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
or rdi, rdi
je 0x14006556e
mov edx, 2
mov rcx, qword [rsp + 0x20]
call fcn.140005c70
nop
add rsp, 0x448
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.internal_error:_entered_unreachable_code_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_syncmpmcmod.rs
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14000dc00
jmp 0x1400655be
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r15
mov rdx, r13
call fcn.14000e810
jmp 0x1400655be
mov ecx, 2
mov rdx, r14
call fcn.140006d30
ud2
Function at 0x1400655f0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
sub edi, edi
mov r15d, 0xffffffff
sub esi, esi
xor r13d, r13d
cmp r8, 0x201
jae 0x140065680
jmp 0x14006565f
jae 0x140065726
cmp r8, 0x201
jae 0x140065680
mov ebx, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x1400656c7
sub r8, r13
sub rsi, r13
cmp rsi, r8
jae 0x1400656a7
lea rcx, [rsp + 0x38]
mov rdx, r13
call fcn.140047740
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x40]
cmp rdi, r15
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rsp + 0x48], r13
push rdi
pop rsi
nop
mov rbx, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
nop
push rbp
pop rcx
mov edx, r12d
call sub.KERNEL32.dll_GetWindowsDirectoryW
mov r14d, eax
or eax, eax
jne 0x1400656ed
call sub.KERNEL32.dll_GetLastError
or eax, eax
jne 0x14006580f
mov r8d, r14d
cmp r12, r8
jne 0x140065650
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140065833
add r12, r12
cmp r12, r15
cmovae r12, r15
mov r8, r12
cmp r8, 0x201
jb 0x14006565f
jmp 0x140065680
cmp rbx, r8
jb 0x14006584d
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.14004f770
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
lea rcx, [rsp + 0x50]
call fcn.14004dad0
mov rax, qword [rsp + 0x78]
cmp byte [rax], 0
jne 0x140065793
lea rdx, [0x14010b160]
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.14004e720
mov rbx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x88]
push rbx
nop
pop rdx
call fcn.140053bf0
cmp qword [rsp + 0x58], 0
je 0x1400657c2
mov edx, 1
push rbx
nop
pop rcx
call fcn.140005c70
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x18], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rcx + 8], xmm0
mov qword [rcx], 0
or rdi, rdi
je 0x1400657fa
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.140005c70
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test rdi, rdi
jne 0x1400657eb
jmp 0x1400657fa
lea rcx, str.internal_error:_entered_unreachable_code_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_syncmpmcmod.rs
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14000dc00
jmp 0x140065862
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rbx
mov r8, rax
call fcn.14000e810
ud2
Function at 0x140065af0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
push rdx
pop rdi
nop
mov rsi, rcx
movups xmm0, xmmword [0x14010b4b8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
nop
push rdx
pop rcx
xor edx, edx
sub r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x140065b5a
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140065b69
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140065ba0
cmp eax, 0x103
je 0x140065baa
test eax, eax
js 0x140065b86
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140065ba0
mov ecx, eax
call sub.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, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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.140065c10
mov rcx, rax
call fcn.1400658b0
mov ecx, 7
int 0x29
ud2

Function at 0x140066000
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
push rdx
nop
pop rdi
nop
push rcx
pop rsi
movups xmm0, xmmword [0x14010b4b8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
push rdx
pop rcx
nop
xor edx, edx
xor r8d, r8d
sub r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x140066071
nop
push rdi
pop rcx
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400660a7
or eax, eax
js 0x140066082
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
sub eax, eax
jmp 0x14006609a
mov ecx, eax
call sub.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, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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.140065c10
nop
push rax
pop rcx
call fcn.1400658b0
mov ecx, 7
int 0x29
ud2
Function at 0x140067020
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140067056
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [fcn.1400594b0]
mov qword [rsp + 0x48], rax
lea rax, [0x14010b550]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.14000db00
ud2

Function at 0x140076710
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
push rcx
pop rax
nop
add qword [rcx + 0x30], 8
mov r10, qword [rcx + 0x40]
test r10, r10
je 0x14007674b
mov esi, 8
mov r9d, 8
sub r9, r10
cmp r9, 8
cmovb rsi, r9
cmp rsi, 3
jbe 0x140076753
mov r11d, dword [rdx]
mov r8d, 4
jmp 0x140076759
sub r9d, r9d
jmp 0x140076809
xor r11d, r11d
sub r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, rsi
jae 0x14007677c
movzx edi, word [rdx + r8]
lea ecx, [r8*8]
shl rdi, cl
or r11, rdi
or r8, 2
cmp r8, rsi
jae 0x140076793
movzx esi, byte [rdx + r8]
shl r8d, 3
mov ecx, r8d
shl rsi, cl
or r11, rsi
lea ecx, [r10*8]
shl r11, cl
or r11, qword [rax + 0x38]
mov qword [rax + 0x38], r11
cmp r10, 8
jbe 0x1400767b5
add r10, 8
jmp 0x1400768de
mov r10, qword [rax + 0x18]
mov r8, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r8
rol r8, 0xd
xor r10, r11
xor r8, rcx
rol rcx, 0x20
mov rsi, qword [rax + 8]
add rsi, r10
rol r10, 0x10
xor r10, rsi
add rcx, r10
rol r10, 0x15
xor r10, rcx
add rsi, r8
rol r8, 0x11
mov qword [rax + 0x18], r10
xor r8, rsi
rol rsi, 0x20
mov qword [rax + 0x10], r8
mov qword [rax + 8], rsi
xor rcx, r11
mov qword [rax], rcx
mov ecx, 8
sub rcx, r9
mov r10d, ecx
and r10d, 7
and rcx, 0xfffffffffffffff8
cmp r9, rcx
jae 0x140076882
mov r8, qword [rax]
mov r11, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
add r8, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r9]
xor rsi, r8
rol r8, 0x20
xor rdi, rbx
add r11, rdi
rol rdi, 0x10
xor rdi, r11
add r8, rdi
rol rdi, 0x15
add r11, rsi
rol rsi, 0x11
xor rsi, r11
rol r11, 0x20
xor rdi, r8
xor r8, rbx
add r9, 8
cmp r9, rcx
jb 0x140076830
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r11
mov qword [rax], r8
cmp r10d, 3
jbe 0x140076894
mov r11d, dword [rdx + r9]
mov r8d, 4
jmp 0x14007689a
xor r11d, r11d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r10
jae 0x1400768c0
lea rcx, [r8 + r9]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r11, rsi
or r8, 2
cmp r8, r10
jae 0x1400768da
add r9, r8
movzx edx, byte [rdx + r9]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r11, rdx
mov qword [rax + 0x38], r11
mov qword [rax + 0x40], r10
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400814a0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
lea rdx, str.RUST_TEST_THREADSRUST_TEST_THREADS_is_____should_be_a_positive_integer.
lea rcx, [rsp + 0x70]
mov r8d, 0x11
call fcn.14004c590
movzx ebx, byte [rsp + 0x88]
cmp bl, 3
jne 0x14008151c
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x20], xmm0
mov r8, qword [rsp + 0x80]
mov qword [rsp + 0x30], r8
test r8, r8
je 0x1400815fc
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx]
cmp eax, 0x2d
je 0x140081556
cmp eax, 0x2b
jne 0x1400815b4
dec r8
je 0x1400815fc
lea r9, [rcx + 1]
cmp r8, 0x11
jb 0x140081569
jmp 0x1400815bd
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call sub.KERNEL32.dll_GetSystemInfo
mov esi, dword [rsp + 0x60]
cmp esi, 1
adc esi, 0
cmp bl, 2
je 0x1400815a6
cmp qword [rsp + 0x78], 0
je 0x1400815a6
mov rcx, qword [rsp + 0x70]
jmp 0x14008159c
mov r9, rcx
cmp r8, 1
je 0x1400815fc
cmp r8, 0x11
jae 0x1400815bd
sub eax, eax
sub esi, esi
nop dword [rax]
movzx edx, byte [r9 + rax]
add edx, 0xffffffd0
cmp edx, 9
ja 0x1400815fc
lea r10, [rsi + rsi*4]
push rax
pop rax
lea rsi, [rdx + r10*2]
inc rax
cmp r8, rax
jne 0x140081570
test rsi, rsi
je 0x1400815fc
cmp qword [rsp + 0x28], 0
je 0x1400815a6
mov edx, 1
call fcn.140005c70
nop
push rsi
pop rax
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
mov r9, rcx
cmp r8, 0x11
jb 0x140081569
xor r10d, r10d
mov r11d, 0xa
xor esi, esi
nop dword [rax + rax]
cmp r8, r10
je 0x14008158f
movzx edi, byte [r9 + r10]
mov rax, rsi
mul r11
seto dl
add edi, 0xffffffd0
cmp edi, 9
ja 0x1400815fc
test dl, dl
jne 0x1400815fc
nop
push rax
pop rsi
mov eax, edi
inc r10
add rsi, rax
jae 0x1400815d0
lea rax, [rsp + 0x20]
mov qword [rsp + 0x90], rax
lea rax, [0x1400598f0]
mov qword [rsp + 0x98], rax
lea rax, [0x14010d680]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rdx, str.library_test_srchelpersconcurrency.rs
lea rcx, [rsp + 0x40]
call fcn.14000db00
ud2
Function at 0x140081ea0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
or r11, r11
je 0x140081ed6
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x140081ede
mov esi, dword [rdx]
mov r9d, 4
jmp 0x140081ee3
xor r10d, r10d
jmp 0x140081f91
xor esi, esi
sub r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140081f06
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140081f1d
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140081f3d
add r11, r8
jmp 0x14008206e
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140082012
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop word cs:[rax + rax]
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140081fc0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140082024
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x14008202a
xor r9d, r9d
sub r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140082050
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14008206a
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400a2300
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400a30d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400a30d0
nop
push rbx
pop rdx
push rax
pop rcx
nop
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400a2370
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140126334]
nop
push rcx
pop rbx
test esi, esi
jle 0x1400a24a0
mov rax, qword [0x140126338]
sub r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400a23bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400a2445
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400a23a0
push rbx
nop
pop rcx
call fcn.1400a2df0
nop
push rax
pop rdi
test rax, rax
je 0x1400a24c2
mov rax, qword [0x140126338]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400a2f30
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140126338]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400a24a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400a243e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400a2450
add dword [0x140126334], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140126338]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
or eax, eax
jne 0x1400a243e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400a2300
nop dword [rax]
sub esi, esi
jmp 0x1400a23c8
mov rax, qword [0x140126338]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400a2300
nop
push rbx
pop rdx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400a2300
nop
nop word cs:[rax + rax]
nop dword [rax]