joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140059010
Capabilities:
Get common file path
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x1400bba20]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor edi, edi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], edi
call fcn.140058cd0
test eax, eax
je 0x1400591da
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x418
call main
mov eax, dword [rsp + 0x40]
lea rcx, [rbp + 0x370]
mov edx, 0x104
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, 2
jb 0x1400591da
cmp word [rbp + 0x372], 0x3a
jne 0x1400591da
mov ecx, eax
lea rax, [rcx + 0xd]
cmp rax, 0x105
jae 0x1400591da
add rcx, rcx
cmp rcx, 0x20a
jae 0x140059200
mov word [rbp + rcx + 0x370], di
lea rdx, [0x1400ab960]
lea rcx, [rbp + 0x370]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rax, [rbp + 0x370]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], di
jne 0x1400590e2
mov r8d, 0x208
mov word [rbp + 0x374], di
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x370]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, eax
test rax, rax
je 0x1400591da
add rax, 0xfffffffffffffffe
add rax, rbx
cmp rax, 0x209
jae 0x1400591da
lea rdx, [rbp + 0x376]
lea rcx, [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x50]
lea rcx, [0x140058ed0]
call fcn.140058c00
mov r8d, dword [rsp + 0x54]
test r8d, r8d
je 0x1400591da
xor edx, edx
mov qword [rsp + 0x30], rdi
mov ecx, 0x400
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400591c3
lea r8, [rsp + 0x30]
mov edx, 2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400591ba
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400591d3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x38]
jmp 0x1400591dc
xor eax, eax
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140079240
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.140079634
int3
Function at 0x14007be10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1400bba20]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x14007be54
movzx eax, r14w
jmp 0x14007bf8a
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x14007be90
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x14007be90
lea ecx, [r9 - 1]
mov dword [rax], ecx
movzx eax, si
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x14007bf8a
cmp qword [rcx + 0x80], r14
je 0x14007bf87
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14007bece
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14007bef7
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.14006b494
cmp ax, di
je 0x14007bf87
movzx edi, si
jmp 0x14007bf87
lea r8, [rbp + 0xf]
mov word [rbp + 7], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp + 9]
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 0x1f]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r8
lea r8, [rbp + 7]
call qword [case.0x14002b511.0]
test eax, eax
je 0x14007bf4c
sub eax, 1
je 0x14007bf4c
cmp eax, 2
jne 0x14007bf87
movzx ecx, word [rbp + 7]
jmp 0x14007beda
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x14007bf76
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.14005fc50
cmp r14, rax
jne 0x14007bf87
lea rax, [rbp + 7]
mov byte [rbx + 0x72], 1
cmp qword [rbp + 0x17], rax
movzx eax, si
jne 0x14007bf8a
movzx eax, di
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140079240
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400863f0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x1400bba20]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x14008612f
call fcn.14005f320
mov dword [rax], 0x16
call fcn.14005e4ac
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140079240
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x1400860f6
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14008619d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140086170
cmp eax, 3
jbe 0x14008618d
cmp eax, 8
je 0x14008617d
cmp eax, 0x12
je 0x14008618d
call fcn.14005f320
mov dword [rax], 0x16
jmp 0x140086106
call fcn.14005f320
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
jmp 0x140086106
call fcn.14005f320
mov dword [rax], 2
jmp 0x140086106
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.140086338
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140086338
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140086338
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.140063a60
test eax, eax
jne 0x1400861fb
mov rax, rdi
jmp 0x14008610a
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14005e4fc
int3
jmp 0x1400860c8
Function at 0x1400863f8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x1400bba20]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x14008626d
call fcn.14005f320
mov dword [rax], 0x16
call fcn.14005e4ac
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140079240
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x140086239
test rbx, rbx
je 0x140086239
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400862c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x1400862a1
cmp eax, 3
jbe 0x1400862bb
cmp eax, 8
je 0x1400862ae
cmp eax, 0x12
je 0x1400862bb
call fcn.14005f320
mov dword [rax], 0x16
jmp 0x140086249
call fcn.14005f320
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
jmp 0x140086249
call fcn.14005f320
mov dword [rax], 2
jmp 0x140086249
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.140086338
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140086338
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140086338
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.140063a60
test eax, eax
je 0x14008624c
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14005e4fc
int3
jmp 0x140086210
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401a3230]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401a3240]
mov dword [rax], 1
mov rax, qword [0x1401a3250]
mov dword [rax], 1
mov rax, qword [0x1401a31b0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1401a3220]
mov dword [0x1401cc00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1401a3300]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1401a32e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1401a3180]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x14008c740
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rdx
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14008c89d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14008c776
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x14008c897
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x14008c8bb
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14008c8d4
mov rsi, rax
test rax, rax
jne 0x14008c7df
mov rax, qword [0x1401a3298]
movzx eax, byte [rax]
mov ecx, 0x60
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14008c8f3
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], 0
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x14008c8e4
dec ecx
mov rdx, rsi
call fcn.140165224
test rdi, rdi
je 0x14008c81a
mov rax, qword [rdi + 8]
mov rcx, qword [rdi + 0x20]
movups xmm0, xmmword [rdi + 0x38]
cmp qword [rdi], 0
mov qword [rdi], 0
je 0x14008c81a
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rsp + 0x40], xmm1
movups xmm1, xmmword [rdi + 0x28]
movaps xmmword [rsp + 0x30], xmm1
movups xmm1, xmmword [rdi + 0x48]
movaps xmmword [rsp + 0x20], xmm1
jmp 0x14008c81c
xor eax, eax
mov r10, qword [rsi + 0x10]
mov r8, qword [rsi + 0x28]
movups xmm1, xmmword [rsi + 0x30]
cmp qword [rsi + 8], 0
movaps xmmword [rsp + 0x50], xmm1
mov r9, qword [rsi + 0x40]
mov rdx, qword [rsi + 0x48]
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], rax
movaps xmm1, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x18], xmm1
mov qword [rsi + 0x28], rcx
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x30], xmm1
movups xmmword [rsi + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi + 0x50], xmm0
je 0x14008c897
cmp r10, 1
jne 0x14008c897
mov qword [rsp + 0x68], r8
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], r9
mov qword [rsp + 0x88], rdx
lea rcx, [rsp + 0x68]
call rdx
add rsi, 0x10
jmp 0x14008c8d6
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7afa5cacbabe961a
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14008c768
jmp 0x14008c776
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7afa5cacbabe961a
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14008c792
xor esi, esi
mov rax, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7afa5cacbabe961a
mov ecx, eax
jmp 0x14008c7d7
mov ecx, 8
mov edx, 0x60
call sym.alloc::alloc::handle_alloc_error::h8e8b408db101c68d
ud2
Function at 0x14008cc10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14008cc40
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14008cc55
cmp byte [rax + 8], 0
je 0x14008cc55
add rax, 9
jmp 0x14008cce4
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7afa5cacbabe961a
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14008cc31
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x14008cccd
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14008cce2
mov rbx, rax
test rax, rax
jne 0x14008ccaa
mov rax, qword [0x1401a3298]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14008ccf8
mov rbx, rax
mov qword [rax], rdi
mov byte [rax + 8], 0
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x14008ccec
dec ecx
mov rdx, rbx
call fcn.140165224
xor ecx, ecx
test rsi, rsi
je 0x14008ccc0
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rbx + 9]
mov byte [rbx + 8], 1
mov byte [rbx + 9], cl
jmp 0x14008cce4
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7afa5cacbabe961a
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14008cc69
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7afa5cacbabe961a
mov ecx, eax
jmp 0x14008cca2
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h8e8b408db101c68d
ud2
Function at 0x14008e6e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::h37e368113016ea1b
jmp sym.std::sys::common::thread_local::os_local::Key_T_::get::h63660e7df5ae0361
Function at 0x140091600
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [rcx]
mov rdi, qword [rsi]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140091617
dec ecx
jmp 0x140091621
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7afa5cacbabe961a
mov ecx, eax
mov edx, 1
call fcn.140165224
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140091649
dec ecx
jmp 0x140091653
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7afa5cacbabe961a
mov ecx, eax
xor esi, esi
xor edx, edx
call fcn.140165224
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x1400916a0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, qword [rcx]
mov rsi, qword [rdi]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400916b7
dec ecx
jmp 0x1400916c1
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7afa5cacbabe961a
mov ecx, eax
mov edx, 1
call fcn.140165224
mov rcx, rdi
call sym._ZN4core3ptr164drop_in_place_LT_alloc..boxed..Box_LT_std..sys..common..thread_local..os_local..Value_LT_core..cell..RefCell_LT
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400916de
dec ecx
jmp 0x1400916e8
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7afa5cacbabe961a
mov ecx, eax
xor esi, esi
xor edx, edx
call fcn.140165224
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140091720
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, qword [rcx]
mov rdi, qword [rsi]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140091737
dec ecx
jmp 0x140091741
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7afa5cacbabe961a
mov ecx, eax
mov edx, 1
call fcn.140165224
cmp qword [rsi + 8], 0
je 0x1400917a1
cmp dword [rsi + 0x10], 1
jne 0x1400917a1
mov rax, qword [rsi + 0x48]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsi + 0x28]
movups xmm1, xmmword [rsi + 0x38]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x28], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
lea rax, [sym._ZN107__LT_proc_macro..bridge..buffer..Buffer_u20_as_u20_core..convert..From_LT_alloc..vec..Vec_LT_u8_GT__GT__GT_4from7reserve]
mov qword [rsi + 0x40], rax
lea rax, [sym._ZN107__LT_proc_macro..bridge..buffer..Buffer_u20_as_u20_core..convert..From_LT_alloc..vec..Vec_LT_u8_GT__GT__GT_4from4drop17h]
mov qword [rsi + 0x48], rax
lea rcx, [rsp + 0x20]
call qword [rsp + 0x40]
mov edx, 0x60
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x1400917bf
dec ecx
jmp 0x1400917c9
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7afa5cacbabe961a
mov ecx, eax
xor esi, esi
xor edx, edx
call fcn.140165224
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140095e00
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x28], rcx
add rcx, 0x18
mov edx, 2
call sym.core::sync::atomic::atomic_load::h1c8bfbea4e26bdd8
mov dword [rsp + 0x30], eax
cmp eax, 0
jne 0x140095e30
mov rcx, qword [rsp + 0x28]
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7afa5cacbabe961a
mov dword [rsp + 0x34], eax
jmp 0x140095e3b
mov eax, dword [rsp + 0x30]
sub eax, 1
mov dword [rsp + 0x34], eax
mov ecx, dword [rsp + 0x34]
call sub.KERNEL32.dll_TlsGetValue
nop
add rsp, 0x38
ret

Function at 0x140095e50
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
add rcx, 0x18
mov edx, 2
call sym.core::sync::atomic::atomic_load::h1c8bfbea4e26bdd8
mov dword [rsp + 0x30], eax
cmp eax, 0
jne 0x140095e85
mov rcx, qword [rsp + 0x28]
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7afa5cacbabe961a
mov dword [rsp + 0x34], eax
jmp 0x140095e90
mov eax, dword [rsp + 0x30]
sub eax, 1
mov dword [rsp + 0x34], eax
mov rdx, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x34]
call fcn.140165224
nop
add rsp, 0x38
ret
Function at 0x1400cce80
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
sub rsp, 0xa8
mov r8, rdx
mov rdx, rcx
mov eax, 0xffffffff
mov eax, eax
mov r9d, eax
lea rcx, [rsp + 0x58]
lea rax, [0x1401858b0]
mov qword [rsp + 0x20], rax
call sym.core::slice::__impl__T__::chunks_mut::h4e7fcb38e2993bf5
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call sym.__I_as_core::iter::traits::collect::IntoIterator_::into_iter::h2de3efbef01d5386
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x70]
call sym.__core::slice::iter::ChunksMut_T__as_core::iter::traits::iterator::Iterator_::next::hbaf3a7924120eaf3
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmove rax, rcx
cmp rax, 0
jne 0x1400ccf1e
mov dword [rsp + 0x3c], 0
jmp 0x1400ccf7b
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rdx
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0xa0], 0
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x98], rcx
mov rcx, qword [rsp + 0x98]
mov r8d, eax
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
mov dword [rsp + 0x38], eax
shr eax, 0x1e
cmp eax, 3
je 0x1400ccf87
jmp 0x1400ccedd
mov eax, dword [rsp + 0x3c]
add rsp, 0xa8
ret
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov edx, eax
call sub.ADVAPI32.dll_SystemFunction036
cmp al, 0
jne 0x1400ccedd
mov ecx, dword [rsp + 0x38]
xor ecx, 0x80000000
call sym.core::num::nonzero::NonZeroU32::new_unchecked::hcd2694ae1933aa5a
mov ecx, eax
call sym._ZN101__LT_getrandom..error..Error_u20_as_u20_core..convert..From_LT_core..num..nonzero..NonZeroU32_GT__GT_4from17h9be2ea41b4e
mov dword [rsp + 0x3c], eax
jmp 0x1400ccf7b

Function at 0x1400d32c0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, r8
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov rsi, rcx
mov rcx, qword [rdx]
mov dword [rsp + 0x34], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x58], rdx
lea rdx, [sym._ZN3std3sys7windows4pipe8AnonPipe21alertable_io_internal8callback17h09050ed31b051827E.llvm.793214423941245703]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call fcn.1401651d4
test eax, eax
je 0x1400d3353
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x1400d3320
movsxd rax, dword [rsp + 0x38]
test rax, rax
je 0x1400d336d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1400d3377
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400d337a
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x60
pop rsi
ret
Function at 0x1400d33f0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, r8
mov rsi, rcx
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov rcx, qword [rdx]
mov rcx, qword [rcx]
mov dword [rsp + 0x34], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x58], rdx
lea rdx, [sym._ZN3std3sys7windows4pipe8AnonPipe21alertable_io_internal8callback17h09050ed31b051827E.llvm.793214423941245703]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call fcn.1401651d4
test eax, eax
je 0x1400d3483
nop
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x1400d3450
movsxd rax, dword [rsp + 0x38]
test rax, rax
je 0x1400d349d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1400d34a7
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400d34aa
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x60
pop rsi
ret
Function at 0x1400d5090
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x1401a3298]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400d5153
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [sym._ZN3std3sys7windows6thread6Thread3new12thread_start17h06e3aca70c1ea436E.llvm.8576752959945271130]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400d5146
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x1400d511f
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call sym.__rust_dealloc
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h8e8b408db101c68d
ud2

Function at 0x1400d5510
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
test rax, rax
je 0x1400d5545
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400d5555
lea rax, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x50
pop rsi
ret