joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor edi, dword [rdx]
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401830f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140183100]
mov dword [rax], 1
mov rax, qword [0x140183110]
mov dword [rax], 1
mov rax, qword [0x1401830e0]
mov dword [rax], 1
mov rax, qword [0x140182fc0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1401830d0]
mov dword [0x1401a400c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1401830b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140183090]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140182f70]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x14000fd50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
mov edi, edx
mov rsi, rcx
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rax + rcx + 0x88]
mov r15d, dword [rax + rcx + 0x1c]
mov r13d, dword [rax + rcx + 0x20]
mov r12d, dword [rax + rcx + 0x24]
mov ebx, dword [r13 + rcx]
add rbx, rcx
mov rcx, rbx
call dbg.strlen_rt
lea r8, [rax + 1]
lea rcx, [rsp + 0x28]
mov rdx, rbx
call dbg.to_str
cmp qword [rsp + 0x28], 0
jne 0x14000fe5b
add r13, rsi
add r12, rsi
lea rbx, [rsp + 0x28]
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x38]
cmp rax, 0x32
mov edx, 0x32
cmovb rdx, rax
test rdx, rdx
je 0x14000fe20
mov r8, qword [rsp + 0x30]
mov ecx, 0x35
xor r9d, r9d
nop word cs:[rax + rax]
cmp rax, r9
je 0x14000fe25
movzx r10d, byte [r8 + r9]
imul ecx, ecx, 0x10f29f
add ecx, r10d
and ecx, 0xffffff
inc r9
cmp rdx, r9
jne 0x14000fdf0
jmp 0x14000fe25
mov ecx, 0x35
cmp ecx, edi
je 0x14000fe93
add r12, 2
mov r14d, dword [r13 + 4]
add r13, 4
add r14, rsi
mov rcx, r14
call dbg.strlen_rt
lea r8, [rax + 1]
mov rcx, rbx
mov rdx, r14
call dbg.to_str
cmp qword [rsp + 0x28], 0
je 0x14000fdc0
lea rax, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
lea rax, str.src_dynimp.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x14014ad28]
lea r9, sym._ZN4core3ptr48drop_in_place_LT_core..str..error..Utf8Error_GT_17h254d7f31887518eeE.llvm.5285002098635429146
lea r8, [rsp + 0x40]
mov edx, 0x2b
call dbg.unwrap_failed
ud2
add r15, rsi
movzx eax, word [r12]
mov eax, dword [r15 + rax*4]
add rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140086ab0
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
test rdx, rdx
je 0x140086b01
xor r8d, r8d
nop dword [rax]
movzx r9d, byte [rcx + r8]
test r9b, r9b
jne 0x140086ad4
inc r8
cmp r8, rdx
jb 0x140086ac0
jmp 0x140086b01
lea r10d, [r9 - 0x20]
cmp r9b, 0x61
movzx r9d, r9b
movzx r10d, r10b
cmovb r10d, r9d
mov r9d, eax
shl r9d, 5
add r9d, eax
movzx eax, r10b
add eax, r9d
inc r8
cmp r8, rdx
jb 0x140086ac0
ret

Function at 0x140086b10
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp - 8], rsi
mov qword [rsp - 0x10], rdi
mov eax, ecx
mov rcx, rdx
mov r10, r8
mov rdx, r9
mov r8, qword [rsp + 0x28]
mov r9, qword [rsp + 0x30]
sub rcx, 4
jle 0x140086b42
lea rsi, [rsp + 0x38]
lea rdi, [rsp + 0x28]
rep movsq qword [rdi], qword [rsi]
syscall
mov rsi, qword [rsp - 8]
mov rdi, qword [rsp - 0x10]
ret
Function at 0x1400882c0
Capabilities:
Access peb ldr_data
Hash data using djb2

Disassembly:
push rsi
push rdi
push rbx
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov r8, qword [rax + 0x18]
add r8, 0x10
xor eax, eax
jmp 0x1400882eb
mov r10d, 0x1505
cmp r10d, ecx
je 0x14008834f
mov r8, qword [r8]
mov rdx, qword [r8 + 0x30]
test rdx, rdx
je 0x140088354
movzx r9d, word [r8 + 0x58]
test r9, r9
je 0x1400882e0
mov r11, qword [r8 + 0x60]
mov r10d, 0x1505
xor esi, esi
nop dword [rax]
movzx edi, byte [r11 + rsi]
test dil, dil
jne 0x140088324
inc rsi
cmp rsi, r9
jb 0x140088310
jmp 0x1400882e6
lea ebx, [rdi - 0x20]
cmp dil, 0x61
movzx edi, dil
movzx ebx, bl
cmovb ebx, edi
mov edi, r10d
shl edi, 5
add edi, r10d
movzx r10d, bl
add r10d, edi
inc rsi
cmp rsi, r9
jb 0x140088310
jmp 0x1400882e6
mov eax, 1
pop rbx
pop rdi
pop rsi
ret
Function at 0x140088360
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
movzx eax, word [rdx]
cmp eax, 0x5a4d
jne 0x140088533
mov rdi, rdx
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x140088533
mov eax, dword [rdi + rax + 0x88]
mov r12d, dword [rax + rdi + 0x18]
test r12, r12
je 0x1400884dd
mov ebx, dword [rax + rdi + 0x20]
add rbx, rdi
mov ecx, dword [rax + rdi + 0x14]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rax + rdi + 0x1c]
add rcx, rdi
mov qword [rsp + 0x40], rcx
mov eax, dword [rax + rdi + 0x24]
add rax, rdi
mov qword [rsp + 0x48], rax
xor r14d, r14d
lea r15, [rsp + 0x68]
mov qword [rsp + 0x38], rbx
jmp 0x140088417
mov r15, r12
mov r12, rbx
mov rbx, qword [rsp + 0x38]
inc r14
cmp r12, r14
je 0x1400884dd
mov esi, dword [rbx + r14*4]
add rsi, rdi
mov rcx, rsi
call dbg.strlen_rt
inc rax
mov rcx, r15
mov rdx, rsi
mov r8, rax
call dbg.to_str
cmp qword [rsp + 0x68], 0
jne 0x14008840b
mov rbx, r12
mov r12, r15
mov r15, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov rax, qword [rsp + 0x48]
movzx ebp, word [rax + r14*2]
test r13, r13
je 0x140088488
js 0x14008851d
mov rax, qword [0x140183048]
movzx eax, byte [rax]
mov edx, 1
mov rcx, r13
call sym.__rust_alloc
mov rsi, rax
test rax, rax
jne 0x14008848d
jmp 0x140088524
mov esi, 1
mov rcx, rsi
mov rdx, r15
mov r8, r13
call sym.memcpy
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x90], r13
cmp rbp, qword [rsp + 0x28]
jae 0x140088507
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + rbp*4]
add r8, rdi
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x80]
call sym.alloc::collections::btree::map::BTreeMap_K_V_A_::insert::h79a5b85ed140cdf9
jmp 0x140088400
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax], xmm0
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [0x1401598e8]
mov rcx, rbp
mov rdx, qword [rsp + 0x28]
call dbg.panic_bounds_check
jmp 0x14008854b
call dbg.capacity_overflow
jmp 0x14008854b
mov ecx, 1
mov rdx, r13
call dbg.handle_alloc_error
jmp 0x14008854b
lea rcx, [0x140159900]
lea r8, [0x140159930]
mov edx, 0x2b
call dbg.panic
ud2
Function at 0x14008d490
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 0x14008d4e8
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 0x14008d502
lea rax, [0x140145928]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225library_alloc_srccollections_btree_navigate.rs
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
ud2
mov qword [rsp + 0x30], 0
lea rdx, [0x14015f100]
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 0x1400aa380
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 0x1400aa3b5
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400aa3c5
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 0x1400abc60
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 0x1400abce0
jmp 0x1400abccf
jae 0x1400abd84
cmp r8, 0x201
jae 0x1400abce0
lea r12, [rsp + 0x68]
mov r13d, 0x200
mov rbp, r8
jmp 0x1400abd27
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x1400abd07
lea rcx, [rsp + 0x30]
mov rdx, r15
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h5b1c1c8c342c480d
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, qword [rsp + 0x20]
mov r13, r15
mov rbp, r15
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov ecx, ebp
mov rdx, r12
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x1400abd4b
call fcn.140145b70
test eax, eax
jne 0x1400abde2
mov r8d, ebx
cmp rbp, r8
jne 0x1400abcc0
call fcn.140145b70
cmp eax, 0x7a
jne 0x1400abe02
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x1400abccf
jmp 0x1400abce0
cmp r13, r8
jb 0x1400abe1c
lea rcx, [rsp + 0x48]
mov rdx, r12
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 0x1400abdcb
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.140145b70
shl rax, 0x20
or rax, 2
mov rdi, qword [rsp + 0x28]
mov qword [rdi], rax
mov byte [rdi + 0x18], 2
test rsi, rsi
jne 0x1400abdb5
jmp 0x1400abdcb
lea rcx, str.internal_error:_entered_unreachable_codeP
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x1400abe31
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 0x1400abe70
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x70
call sub.kernel32.dll_GetEnvironmentStringsW
test rax, rax
je 0x1400abe88
mov rdx, rax
add rsp, 0x70
pop rsi
ret
call fcn.140145b70
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::h7c1064f9f4e945ad]
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 0x1400ac3b0
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
lea rcx, [rsp + 0xa8]
call sym.std::sys::windows::to_u16s::inner::h9c171d403b3dfa06
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400ac519
mov qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor esi, esi
mov r14d, 0xffffffff
xor r15d, r15d
xor ebx, ebx
cmp r8, 0x201
jae 0x1400ac470
jmp 0x1400ac44f
jae 0x1400ac52f
cmp r8, 0x201
jae 0x1400ac470
lea r12, [rsp + 0xa8]
mov r13d, 0x200
mov rbp, r8
jmp 0x1400ac4b6
sub r8, rbx
sub r15, rbx
cmp r15, r8
jae 0x1400ac497
lea rcx, [rsp + 0x48]
mov rdx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h5b1c1c8c342c480d
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rsi, qword [rsp + 0x50]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rsp + 0x58], rbx
mov r15, rsi
mov r12, qword [rsp + 0x28]
mov r13, rbx
mov rbp, rbx
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 edi, eax
test eax, eax
jne 0x1400ac4e0
call fcn.140145b70
test eax, eax
jne 0x1400ac5eb
mov r8d, edi
cmp rbp, r8
jne 0x1400ac440
call fcn.140145b70
cmp eax, 0x7a
jne 0x1400ac615
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x1400ac44f
jmp 0x1400ac470
lea rcx, [rsp + 0xb0]
call dbg.drop_in_place<std::io::error::Error>
mov byte [rdi + 0x18], 2
jmp 0x1400ac5b7
cmp r13, r8
jb 0x1400ac62f
lea rcx, [rsp + 0x88]
mov rdx, r12
call dbg.from_wide
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 rsi, rsi
je 0x1400ac582
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call sym.__rust_dealloc
cmp byte [rsp + 0x78], 2
jne 0x1400ac5ce
mov byte [rdi + 0x18], 2
lea rcx, [rsp + 0x60]
mov rsi, qword [rsp + 0x30]
call dbg.drop_in_place<std::io::error::Error>
test rsi, rsi
je 0x1400ac5b7
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 + 0x30]
test rsi, rsi
jne 0x1400ac5a1
jmp 0x1400ac5b7
call fcn.140145b70
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x78], 2
mov rdi, qword [rsp + 0x40]
test rsi, rsi
jne 0x1400ac56c
jmp 0x1400ac582
lea rcx, str.internal_error:_entered_unreachable_codeP
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x1400ac644
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 0x1400ac770
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::h9c171d403b3dfa06
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
test rbx, rbx
je 0x1400ac7f4
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, r14
call sym.std::sys::windows::to_u16s::inner::h9c171d403b3dfa06
mov r12, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
test r12, r12
je 0x1400ac7f9
mov rcx, rbx
mov rdx, r12
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
je 0x1400ac7fe
xor r14d, r14d
test r15, r15
jne 0x1400ac813
jmp 0x1400ac827
mov r14, rdi
jmp 0x1400ac840
mov r14, r15
jmp 0x1400ac827
call fcn.140145b70
mov r14d, eax
shl r14, 0x20
or r14, 2
test r15, r15
je 0x1400ac827
add r15, r15
mov r8d, 2
mov rcx, r12
mov rdx, r15
call sym.__rust_dealloc
test rdi, rdi
je 0x1400ac840
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test r14, r14
jne 0x1400ac856
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::h6c8700a25b40fb88]
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::h7c1064f9f4e945ad]
mov qword [rsp + 0x50], rax
lea rax, [0x14015bd88]
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, [0x14015bdb8]
lea rcx, [rsp + 0x78]
call dbg.panic_fmt
ud2
Function at 0x1400ac920
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::h9c171d403b3dfa06
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
test rbx, rbx
je 0x1400ac98d
xor esi, esi
mov rcx, rbx
xor edx, edx
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
jne 0x1400ac972
call fcn.140145b70
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rdi, rdi
je 0x1400ac990
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
jmp 0x1400ac990
mov rsi, rdi
test rsi, rsi
jne 0x1400ac9a0
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::h6c8700a25b40fb88]
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::h7c1064f9f4e945ad]
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, [0x14015be18]
lea rcx, [rsp + 0x40]
call dbg.panic_fmt
ud2
Function at 0x1400adef0
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 0x1400adf6d
setns al
js 0x1400ae0b7
mov r15, rdx
movzx ebx, al
mov rax, qword [0x140183048]
movzx eax, byte [rax]
mov rcx, rsi
mov rdx, rbx
call sym.__rust_alloc
test rax, rax
je 0x1400ae0be
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 0x1400ae06c
cmp rsi, 0x20
jae 0x1400adf77
xor eax, eax
jmp 0x1400ae006
mov ebx, 1
jmp 0x1400ae08f
mov rax, rsi
and rax, 0xffffffffffffffe0
xor ecx, ecx
movdqa xmm0, xmmword [0x140159ed0]
movdqa xmm1, xmmword [0x140159ee0]
movdqa xmm2, xmmword [0x140159ef0]
nop dword [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 0x1400adfa0
cmp rax, rsi
je 0x1400ae08f
test sil, 0x18
je 0x1400ae066
mov rdx, rsi
and rdx, 0xfffffffffffffff8
lea rcx, [r14 + rdx]
movdqa xmm0, xmmword [0x140159f00]
movdqa xmm1, xmmword [0x140159f10]
movdqa xmm2, xmmword [0x140159f20]
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 0x1400ae030
cmp rdx, rsi
jne 0x1400ae06c
jmp 0x1400ae08f
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 0x1400ae070
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 rcx, rbx
mov rdx, rsi
call dbg.handle_alloc_error
ud2

Function at 0x1400b8f70
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x1400b8fd1
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x1400b8fd1
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x1400b8fd1
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x1400b8fd1
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x1400b9011
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 0x1400b8fff
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