joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004ad08
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18004ad1e
mov al, 1
jmp 0x18004ad7e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18004ad2f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18004ad7c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18004f288
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18004ad7c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18004ad7c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18004ad7c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18004ad7e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x18004b4ec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180069b30]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18004b543
cmp word [rdx], r13w
jne 0x18004b543
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18004b548
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18004b66d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18004b68e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18004b581
mov rdx, r9
mov word [rbx], cx
jmp 0x18004b5a8
cmp r9, r8
jae 0x18004b5b8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18004b562
jmp 0x18004b66d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004b662
cmp dword [rsp + 0x80], esi
je 0x18004b662
lea r8, [0x180069b30]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18004b63a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18004b60a
mov word [rbx], r13w
jmp 0x18004b66a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18004b617
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18004b66a
cmp word [rsp + 0x70], r13w
jne 0x18004b647
cmp rbx, r14
je 0x18004b604
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180049ea4
cmp word [rsp + 0x70], r13w
je 0x18004b66d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180069b30]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18004b667
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18004b66d
Function at 0x18004da1c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18004da4c
xor eax, eax
jmp 0x18004db0f
mov rbp, rbx
cmp word [rax], si
je 0x18004da71
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18004da58
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18004da54
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18004d93c
movsxd r14, eax
test eax, eax
jne 0x18004daaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18004da45
mov rcx, r14
call fcn.18004835c
mov rdi, rax
test rax, rax
jne 0x18004dac8
xor ecx, ecx
call fcn.1800472f0
jmp 0x18004daa4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18004d93c
test eax, eax
jne 0x18004daf9
mov rcx, rdi
call fcn.1800472f0
jmp 0x18004db03
xor ecx, ecx
call fcn.1800472f0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180052aac
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180049ea4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180049ea4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180052bfc
cmp rax, 0xffffffffffffffff
je 0x180052bfc
xor edi, edi
test rbp, rbp
jle 0x180052ba7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18004aef4
mov rbx, rax
test rax, rax
jne 0x180052b34
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180052b9d
mov edx, 0x8000
mov ecx, r14d
call fcn.180052930
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18004a908
cmp eax, 0xffffffff
je 0x180052b7d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180052b44
mov edx, r15d
mov ecx, r14d
call fcn.180052930
jmp 0x180052b9d
cmp byte [rsi + 0x38], dil
je 0x180052b94
cmp dword [rsi + 0x34], 5
jne 0x180052b94
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180052b9d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800472f0
jmp 0x180052c10
jns 0x180052c10
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180049ea4
cmp rax, 0xffffffffffffffff
jne 0x180052bc8
cmp byte [rsi + 0x30], dil
je 0x180052c10
mov edi, dword [rsi + 0x2c]
jmp 0x180052c10
mov ecx, r14d
call fcn.18004f288
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180052c10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180052c10
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180052c09
mov eax, dword [rsi + 0x2c]
jmp 0x180052c0e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180049ea4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180054750
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180054778
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180054778
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14012d4c0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14012d4d0]
mov dword [rax], 1
mov rax, qword [0x14012d4e0]
mov dword [rax], 1
mov rax, qword [0x14012d470]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14012d4b0]
mov dword [0x14014500c], 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 [0x14012d590]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14012d570]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14012d420]
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 0x14000b380
Capabilities:
Get hostname

Disassembly:
sub rsp, 0x148
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x78], 0
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x140], 0
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x138], rax
mov rdx, qword [rsp + 0x138]
mov ecx, 5
lea r8, [rsp + 0x78]
call sub.kernel32.dll_GetComputerNameExW
mov dword [rsp + 0x7c], eax
mov al, 1
test al, 1
jne 0x14000b41a
mov eax, dword [rsp + 0x78]
mov edx, eax
lea rcx, [rsp + 0xc8]
mov qword [rsp + 0x58], rcx
call dbg.alloc::vec::Vec<T>::with_capacity::hbea88eb0c329bada
mov rcx, qword [rsp + 0x58]
call dbg.alloc::vec::Vec<T,A>::as_mut_ptr::he94b1975da8611f7
mov qword [rsp + 0x60], rax
jmp 0x14000b4ce
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x80], rax
lea rax, [0x1400fe5d0]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x100], rax
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x108], rcx
mov eax, dword [rax]
cmp eax, dword [rcx]
je 0x14000b3ee
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov byte [rsp + 0x97], 0
mov qword [rsp + 0x98], 0
mov cl, byte [rsp + 0x97]
lea r9, str._home_kali_.cargo_registry_src_index.crates.io_6f17d22bba15001f_hostname_0.3.1_src_windows.rs
mov rax, rsp
mov qword [rax + 0x20], r9
lea r9, [rsp + 0x98]
call sym.core::panicking::assert_failed::hf9eb4c278e0b2467
lea rcx, [rsp + 0xc8]
call sym.core::ptr::drop_in_place_alloc::vec::Vec_u16__::hd80f564441265d57
jmp 0x14000b5be
mov rdx, qword [rsp + 0x60]
mov ecx, 5
lea r8, [rsp + 0x78]
call sub.kernel32.dll_GetComputerNameExW
mov dword [rsp + 0x44], eax
jmp 0x14000b4e8
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x124], eax
cmp eax, 0
jne 0x14000b504
call dbg.std::io::error::Error::last_os_error::h39b1e570093e3a15
mov qword [rsp + 0x38], rax
jmp 0x14000b519
mov eax, dword [rsp + 0x78]
mov edx, eax
lea rcx, [rsp + 0xc8]
call dbg.alloc::vec::Vec<T,A>::set_len::h788e4bf7c26ebc39
jmp 0x14000b54e
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 8], rcx
movabs rcx, 0x8000000000000000
mov qword [rax], rcx
lea rcx, [rsp + 0xc8]
call sym.core::ptr::drop_in_place_alloc::vec::Vec_u16__::hd80f564441265d57
mov rax, qword [rsp + 0x70]
add rsp, 0x148
ret
lea rcx, [rsp + 0xc8]
call sym.__alloc::vec::Vec_T_A__as_core::ops::deref::Deref_::deref::h4029893192846677
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rax
jmp 0x14000b567
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xe0]
call dbg.from_wide
jmp 0x14000b580
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xe0]
mov qword [rax], rcx
mov rcx, qword [rsp + 0xe8]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0xf0]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0xf8]
mov qword [rax + 0x18], rcx
jmp 0x14000b534
mov rcx, qword [rsp + 0x110]
call sym._Unwind_Resume
int3
Function at 0x140010440
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0xc8
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
call dbg.core::mem::maybe_uninit::MaybeUninit<T>::zeroed::ha51d386115595bcc
lea rax, [rsp + 0x30]
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x30]
call sub.kernel32.dll_GetNativeSystemInfo
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov r8d, 0x30
call sym.memcpy
lea rcx, [rsp + 0x98]
lea rdx, [rsp + 0x60]
mov r8d, 0x30
call sym.memcpy
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x98]
mov r8d, 0x30
call sym.memcpy
mov rax, qword [rsp + 0x28]
add rsp, 0xc8
ret
Function at 0x140066660
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1f8
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x1400666b8
lea rsi, [rsp + 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.ws2_32.dll_WSAStartup
mov dword [rsp + 0x2c], eax
test eax, eax
jne 0x1400666d0
lea rax, [0x1400f9574]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
mov qword [rsp + 0x30], 0
lea rdx, [0x140110310]
lea r9, str.library_std_src_syswindows_net.rs
lea rcx, [rsp + 0x2c]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
int3

Function at 0x140084ed0
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 0x140084f05
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140084f15
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
Function at 0x1400862d0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov r14d, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp r8, 0x201
jae 0x140086350
jmp 0x14008633f
jae 0x1400863f4
cmp r8, 0x201
jae 0x140086350
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x140086397
sub r8, r15
sub rsi, r15
cmp rsi, r8
jae 0x140086377
lea rcx, [rsp + 0x30]
mov rdx, r15
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h0f5ccd690f57f673
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmp rbx, r14
mov r15d, 0xffffffff
cmovb r15, rbx
mov qword [rsp + 0x40], r15
mov rsi, rbx
mov r12, r15
mov r13, qword [rsp + 0x20]
mov rbp, r15
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov ecx, ebp
mov rdx, r13
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
test eax, eax
jne 0x1400863bb
call fcn.1400f9804
test eax, eax
jne 0x140086452
mov r8d, edi
cmp rbp, r8
jne 0x140086330
call fcn.1400f9804
cmp eax, 0x7a
jne 0x14008647c
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x14008633f
jmp 0x140086350
cmp r12, r8
jb 0x140086496
lea rcx, [rsp + 0x48]
mov rdx, r13
call dbg.from_wide
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rsi, qword [rsp + 0x28]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x14008643b
add rbx, rbx
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rbx
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400f9804
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x28]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140086425
jmp 0x14008643b
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x1400864ab
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call dbg.slice_end_index_len_fail
ud2

Function at 0x1400864e0
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x70
call sub.kernel32.dll_GetEnvironmentStringsW
test rax, rax
je 0x1400864f8
mov rdx, rax
add rsp, 0x70
pop rsi
ret
call fcn.1400f9804
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h0ae59b4b5a93ace0]
mov qword [rsp + 0x38], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rdx, str.library_std_src_syswindowsos.rs
lea rcx, [rsp + 0x40]
call dbg.panic_fmt
ud2
Function at 0x140086ac0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rdi, rcx
movabs rsi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call sym.std::sys::windows::to_u16s::inner::h6585014e7b142911
mov rax, qword [rsp + 0xa8]
cmp rax, rsi
jne 0x140086b0f
lea rcx, [rsp + 0xb0]
call dbg.drop_in_place<std::io::error::Error>
mov qword [rdi], rsi
jmp 0x140086cda
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x30], rax
xor r15d, r15d
mov edi, 0xffffffff
xor r14d, r14d
xor esi, esi
cmp r8, 0x201
jae 0x140086ba0
jmp 0x140086b7f
jae 0x140086c49
cmp r8, 0x201
jae 0x140086ba0
mov r13d, 0x200
lea r12, [rsp + 0xa8]
mov rbp, r8
jmp 0x140086be6
sub r8, rsi
sub r14, rsi
cmp r14, r8
jae 0x140086bc7
lea rcx, [rsp + 0x48]
mov rdx, rsi
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h0f5ccd690f57f673
mov r15, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
cmp r15, rdi
mov esi, 0xffffffff
cmovb rsi, r15
mov qword [rsp + 0x58], rsi
mov r14, r15
mov r13, rsi
mov r12, qword [rsp + 0x30]
mov rbp, rsi
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x38]
mov rdx, r12
mov r8d, ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x140086c10
call fcn.1400f9804
test eax, eax
jne 0x140086d0e
mov r8d, ebx
cmp rbp, r8
jne 0x140086b70
call fcn.1400f9804
cmp eax, 0x7a
jne 0x140086d42
add rbp, rbp
cmp rbp, rdi
cmovae rbp, rdi
mov r8, rbp
cmp r8, 0x201
jb 0x140086b7f
jmp 0x140086ba0
cmp r13, r8
jb 0x140086d5c
lea rcx, [rsp + 0x88]
mov rdx, r12
call dbg.from_wide
movabs rsi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
mov rdi, qword [rsp + 0x40]
test r15, r15
je 0x140086ca6
add r15, r15
mov r8d, 2
mov rcx, qword [rsp + 0x30]
mov rdx, r15
call sym.__rust_dealloc
cmp qword [rsp + 0x60], rsi
jne 0x140086cf1
mov qword [rdi], rsi
lea rcx, [rsp + 0x68]
mov rsi, qword [rsp + 0x28]
call dbg.drop_in_place<std::io::error::Error>
test rsi, rsi
je 0x140086cda
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rdi
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rsi, qword [rsp + 0x28]
test rsi, rsi
jne 0x140086cc4
jmp 0x140086cda
call fcn.1400f9804
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rsi, 0x8000000000000000
mov qword [rsp + 0x60], rsi
mov rdi, qword [rsp + 0x40]
test r15, r15
jne 0x140086c90
jmp 0x140086ca6
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x140086d71
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
call dbg.slice_end_index_len_fail
ud2
Function at 0x140086e90
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov r14, r9
mov r15, r8
mov r8, rdx
mov rdx, rcx
movabs r13, 0x8000000000000000
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r9
lea rsi, [rsp + 0x30]
mov rcx, rsi
call sym.std::sys::windows::to_u16s::inner::h6585014e7b142911
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
cmp rdi, r13
jne 0x140086eed
mov r14, rbx
jmp 0x140086f55
lea rcx, [rsp + 0x30]
mov rdx, r15
mov r8, r14
call sym.std::sys::windows::to_u16s::inner::h6585014e7b142911
mov r12, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
cmp r12, r13
jne 0x140086f11
mov r14, r15
jmp 0x140086f3c
mov rcx, rbx
mov rdx, r15
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
je 0x140086f6d
xor r14d, r14d
test r12, r12
je 0x140086f3c
add r12, r12
mov r8d, 2
mov rcx, r15
mov rdx, r12
call sym.__rust_dealloc
test rdi, rdi
je 0x140086f55
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test r14, r14
jne 0x140086f84
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400f9804
mov r14d, eax
shl r14, 0x20
or r14, 2
test r12, r12
jne 0x140086f28
jmp 0x140086f3c
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [sym.__std::path::Display_as_core::fmt::Debug_::fmt::h345ec2bf278d2ebc]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h0ae59b4b5a93ace0]
mov qword [rsp + 0x58], rax
lea rax, str.failed_to_set_environment_variable____to___:
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 3
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], 3
lea rdx, str.library_std_srcenv.rs
lea rcx, [rsp + 0x80]
call dbg.panic_fmt
ud2
Function at 0x140087060
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov r8, rdx
mov rdx, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], r8
lea rcx, [rsp + 0x40]
call sym.std::sys::windows::to_u16s::inner::h6585014e7b142911
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
movabs rax, 0x8000000000000000
cmp rdi, rax
jne 0x1400870a2
mov rsi, rbx
jmp 0x1400870da
xor esi, esi
mov rcx, rbx
xor edx, edx
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
jne 0x1400870c1
call fcn.1400f9804
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rdi, rdi
je 0x1400870da
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test rsi, rsi
jne 0x1400870ea
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
lea rax, [sym.__std::path::Display_as_core::fmt::Debug_::fmt::h345ec2bf278d2ebc]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x80], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h0ae59b4b5a93ace0]
mov qword [rsp + 0x88], rax
lea rax, str.failed_to_remove_environment_variable__
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
lea rdx, str.library_std_srcenv.rs
lea rcx, [rsp + 0x40]
call dbg.panic_fmt
ud2