joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400168a4
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 0x1400168d4
xor eax, eax
jmp 0x140016997
mov rbp, rbx
cmp word [rax], si
je 0x1400168f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400168e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400168dc
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.1400167c4
movsxd r14, eax
test eax, eax
jne 0x140016937
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400168cd
mov rcx, r14
call fcn.140011bd4
mov rdi, rax
test rax, rax
jne 0x140016950
xor ecx, ecx
call fcn.140011da0
jmp 0x14001692c
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.1400167c4
test eax, eax
jne 0x140016981
mov rcx, rdi
call fcn.140011da0
jmp 0x14001698b
xor ecx, ecx
call fcn.140011da0
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 0x14001ab1c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ab32
mov al, 1
jmp 0x14001ab92
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001ab43
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001ab90
mov ecx, dword [rcx + 0x18]
nop
call fcn.140017558
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001ab90
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001ab90
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001ab90
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001ab92
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001c408
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000fc18
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001c492
cmp byte [rbp - 0x21], r15b
je 0x14001c48d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001c4c8
call fcn.140011ff0
test eax, eax
jne 0x14001c4b4
cmp byte [rbp - 0x21], r15b
je 0x14001c4ac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001c4c8
cmp byte [rbp - 0x21], r15b
je 0x14001c4c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000fa9c
test eax, eax
jne 0x14001c568
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000fc18
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001c507
cmp byte [rbp - 0x21], r15b
je 0x14001c53c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001c53c
call fcn.140011ff0
test eax, eax
jne 0x14001c528
cmp byte [rbp - 0x21], r15b
je 0x14001c521
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001c53c
cmp byte [rbp - 0x21], r15b
je 0x14001c539
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000fa9c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001c568
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001c56b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001c579
mov rcx, rdi
call fcn.140011da0
cmp byte [rbp + 0x3f], r15b
je 0x14001c588
mov rcx, qword [rbp + 0x27]
call fcn.140011da0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14001eaf0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001eb18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001eb18
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 [0x140166640]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140166650]
mov dword [rax], 1
mov rax, qword [0x140166660]
mov dword [rax], 1
mov rax, qword [0x1401665e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140166630]
mov dword [0x14018200c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010b0
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140166710]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1401666f0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140166590]
cmp dword [rax], 1
je 0x1400010f1
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001104
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
lea rcx, [sym._matherr]
call sym.__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 0x14000adf0
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 0x14000ae8a
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::h533ab413710763a7
mov rcx, qword [rsp + 0x58]
call dbg.alloc::vec::Vec<T,A>::as_mut_ptr::h5609cbb68fa93790
mov qword [rsp + 0x60], rax
jmp 0x14000af4c
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x80], rax
lea rax, [0x14012a530]
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]
sete al
xor al, 0xff
test al, 1
jne 0x14000aee2
jmp 0x14000ae5e
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.C:UsersKAVIN_STUDIO.cargo_registry_srcindex.crates.io_6f17d22bba15001fhostname_0.3.1_srcwindows.rs
mov rax, rsp
mov qword [rax + 0x20], r9
lea r9, [rsp + 0x98]
call sym.core::panicking::assert_failed::h0c23a4b8d469d2b4
ud2
mov rdx, qword [rsp + 0x60]
mov ecx, 5
lea r8, [rsp + 0x78]
call sub.kernel32.dll_GetComputerNameExW
mov dword [rsp + 0x44], eax
jmp 0x14000af66
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x124], eax
cmp eax, 0
jne 0x14000af82
call dbg.std::io::error::Error::last_os_error::hd7b3d88fd4c81729
mov qword [rsp + 0x38], rax
jmp 0x14000af97
mov eax, dword [rsp + 0x78]
mov edx, eax
lea rcx, [rsp + 0xc8]
call dbg.alloc::vec::Vec<T,A>::set_len::h8c65508251b48e8c
jmp 0x14000afc2
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov byte [rax + 0x18], 2
lea rcx, [rsp + 0xc8]
call sym.core::ptr::drop_in_place_alloc::vec::Vec_u16__::ha6fb693799f34567
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::h835fc79eefad5efe
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rax
jmp 0x14000afdb
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xe0]
call dbg.from_wide
jmp 0x14000aff4
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 0x14000afa8
Function at 0x14000f560
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::h53ad656c7866e118
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 0x14006b670
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 0x14006b6c8
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 0x14006b6e2
lea rax, [0x1401254a4]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, [0x140139050]
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
ud2
mov qword [rsp + 0x30], 0
lea rdx, [0x14013e3b0]
lea r9, str.library_std_src_syswindows_net.rs
lea rcx, [rsp + 0x2c]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
ud2

Function at 0x14008b660
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 0x14008b695
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14008b6a5
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 0x14008d080
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], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor esi, esi
mov r14d, 0xffffffff
xor edi, edi
xor r15d, r15d
cmp r8, 0x201
jae 0x14008d100
jmp 0x14008d0ef
jae 0x14008d1a4
cmp r8, 0x201
jae 0x14008d100
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x14008d147
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x14008d127
lea rcx, [rsp + 0x30]
mov rdx, r15
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h2bdf9a6d8105bb54
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rsi, qword [rsp + 0x38]
cmp rsi, r14
mov r15d, 0xffffffff
cmovb r15, rsi
mov qword [rsp + 0x40], r15
mov rdi, rsi
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 ebx, eax
test eax, eax
jne 0x14008d16b
call fcn.14012572c
test eax, eax
jne 0x14008d202
mov r8d, ebx
cmp rbp, r8
jne 0x14008d0e0
call fcn.14012572c
cmp eax, 0x7a
jne 0x14008d222
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x14008d0ef
jmp 0x14008d100
cmp r12, r8
jb 0x14008d23c
lea rcx, [rsp + 0x48]
mov rdx, r13
call dbg.from_wide
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rdi, qword [rsp + 0x28]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
test rsi, rsi
je 0x14008d1eb
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rdi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14012572c
shl rax, 0x20
or rax, 2
mov rdi, qword [rsp + 0x28]
mov qword [rdi], rax
mov byte [rdi + 0x18], 2
test rsi, rsi
jne 0x14008d1d5
jmp 0x14008d1eb
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x14008d251
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 0x14008d290
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x70
call sub.kernel32.dll_GetEnvironmentStringsW
test rax, rax
je 0x14008d2a8
mov rdx, rax
add rsp, 0x70
pop rsi
ret
call fcn.14012572c
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::h777c0ce01dc2e028]
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 0x14008dc70
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov r14, r9
mov r15, r8
mov r8, rdx
mov rdx, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r9
lea rsi, [rsp + 0x28]
mov rcx, rsi
call sym.std::sys::windows::to_u16s::inner::h36a8adcb91ede8d9
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
test rbx, rbx
je 0x14008dcf4
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, r14
call sym.std::sys::windows::to_u16s::inner::h36a8adcb91ede8d9
mov r12, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
test r12, r12
je 0x14008dcf9
mov rcx, rbx
mov rdx, r12
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
je 0x14008dcfe
xor r14d, r14d
test r15, r15
jne 0x14008dd13
jmp 0x14008dd27
mov r14, rdi
jmp 0x14008dd40
mov r14, r15
jmp 0x14008dd27
call fcn.14012572c
mov r14d, eax
shl r14, 0x20
or r14, 2
test r15, r15
je 0x14008dd27
add r15, r15
mov r8d, 2
mov rcx, r12
mov rdx, r15
call sym.__rust_dealloc
test rdi, rdi
je 0x14008dd40
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test r14, r14
jne 0x14008dd56
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov qword [rsp + 0x20], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [sym.__std::path::Display_as_core::fmt::Debug_::fmt::h7e2d7c98dd80582f]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h777c0ce01dc2e028]
mov qword [rsp + 0x50], rax
lea rax, [0x14013afa8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 3
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], 3
lea rdx, [0x14013afd8]
lea rcx, [rsp + 0x78]
call dbg.panic_fmt
ud2
Function at 0x14008de20
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::h36a8adcb91ede8d9
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
test rbx, rbx
je 0x14008de8d
xor esi, esi
mov rcx, rbx
xor edx, edx
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
jne 0x14008de72
call fcn.14012572c
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rdi, rdi
je 0x14008de90
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
jmp 0x14008de90
mov rsi, rdi
test rsi, rsi
jne 0x14008dea0
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::h7e2d7c98dd80582f]
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::h777c0ce01dc2e028]
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, [0x14013b038]
lea rcx, [rsp + 0x40]
call dbg.panic_fmt
ud2
Function at 0x14008f440
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x20], xmm6
mov rsi, r8
mov rdi, rcx
test r8, r8
je 0x14008f4b9
js 0x14008f607
mov r15, rdx
mov rax, qword [0x1401666a8]
movzx eax, byte [rax]
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x14008f60e
mov r14, rax
mov rbx, rax
mov rcx, r14
mov rdx, r15
mov r8, rsi
call sym.memcpy
mov rcx, r14
cmp rsi, 8
jb 0x14008f5bc
cmp rsi, 0x20
jae 0x14008f4c3
xor eax, eax
jmp 0x14008f556
mov ebx, 1
jmp 0x14008f5df
mov rax, rsi
and rax, 0xffffffffffffffe0
xor ecx, ecx
movdqa xmm0, xmmword [0x140137080]
movdqa xmm1, xmmword [0x140137090]
movdqa xmm2, xmmword [0x1401370a0]
nop word cs:[rax + rax]
movdqu xmm3, xmmword [rbx + rcx]
movdqu xmm4, xmmword [rbx + rcx + 0x10]
movdqa xmm5, xmm3
paddb xmm5, xmm0
movdqa xmm6, xmm4
paddb xmm6, xmm0
movdqa xmm7, xmm5
pminub xmm7, xmm1
pcmpeqb xmm7, xmm5
pand xmm7, xmm2
movdqa xmm5, xmm6
pminub xmm5, xmm1
pcmpeqb xmm5, xmm6
pand xmm5, xmm2
pxor xmm7, xmm3
pxor xmm5, xmm4
movdqu xmmword [rbx + rcx], xmm7
movdqu xmmword [rbx + rcx + 0x10], xmm5
add rcx, 0x20
cmp rax, rcx
jne 0x14008f4f0
cmp rax, rsi
je 0x14008f5df
test sil, 0x18
je 0x14008f5b6
mov rdx, rsi
and rdx, 0xfffffffffffffff8
lea rcx, [r14 + rdx]
movdqa xmm0, xmmword [0x1401370b0]
movdqa xmm1, xmmword [0x1401370c0]
movdqa xmm2, xmmword [0x1401370d0]
nop dword [rax]
movq xmm3, qword [rbx + rax]
movdqa xmm4, xmm3
paddb xmm4, xmm0
movdqa xmm5, xmm4
pmaxub xmm5, xmm1
pcmpeqb xmm5, xmm4
pandn xmm5, xmm2
pxor xmm5, xmm3
movq qword [rbx + rax], xmm5
add rax, 8
cmp rdx, rax
jne 0x14008f580
cmp rdx, rsi
jne 0x14008f5bc
jmp 0x14008f5df
add rax, r14
mov rcx, rax
add r14, rsi
nop
movzx eax, byte [rcx]
lea edx, [rax - 0x61]
cmp dl, 0x1a
setb dl
shl dl, 5
xor dl, al
mov byte [rcx], dl
lea rax, [rcx + 1]
mov rcx, rax
cmp rax, r14
jne 0x14008f5c0
mov qword [rdi], rbx
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
mov byte [rdi + 0x18], 0
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call dbg.capacity_overflow
ud2
mov ecx, 1
mov rdx, rsi
call dbg.handle_alloc_error
ud2

Function at 0x14009ab60
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14009abc1
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14009abc1
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14009abc1
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14009abc1
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14009ac01
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14009abef
xor eax, eax
add rsp, 0x38
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret
Function at 0x14009ac10
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14009ac71
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14009ac71
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14009ac71
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14009ac71
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14009acb1
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14009ac9f
xor eax, eax
add rsp, 0x38
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

Function at 0x14009ae00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
mov r9d, 2
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x14009ae36
cdqe
jmp 0x14009ae44
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14009ae4c
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14009ae5d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14009ae70
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
xor esi, esi
xor eax, eax
cmp r8d, 0x3b9aca00
setne al
cmove edx, esi
mov word [rsp + 0x2c], ax
mov word [rsp + 0x2e], dx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov edx, 0xffff
mov r8d, pe_nt_image_headers64
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x14009aec4
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x14009af50
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14009af87
xor eax, eax
add rsp, 0x38
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x14009b010
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov rax, rdx
sub rax, rsi
jb 0x14009b08a
mov rcx, qword [rcx]
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rdi]
add rdx, rsi
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x14009b06b
cdqe
add rsi, rax
mov qword [rdi + 0x10], rsi
mov rax, qword [rdi + 0x18]
cmp rax, rsi
cmova rsi, rax
mov qword [rdi + 0x18], rsi
xor eax, eax
jmp 0x14009b083
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14009b07b
xor eax, eax
jmp 0x14009b083
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, [0x14013b860]
mov rcx, rsi
call dbg.slice_start_index_len_fail
ud2