joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001db8c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140030198]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140014d38
xor ebx, ebx
cmp qword [0x140036fe0], rbx
mov rdi, rax
jne 0x14001dc9f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14001dd76
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001dd76
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140036fe0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140036fe8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140036ff0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140037000], rax
test rax, rax
je 0x14001dc96
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140036ff8], rax
jmp 0x14001dca6
mov rax, qword [0x140036ff8]
jmp 0x14001dcad
mov rax, qword [0x140036ff8]
mov r11, qword [0x140037000]
cmp rax, rdi
je 0x14001dd14
cmp r11, rdi
je 0x14001dd14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140037000]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14001dd14
test rax, rax
je 0x14001dd14
call rsi
test rax, rax
je 0x14001dd0e
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14001dd0e
test byte [rsp + 0x40], 1
jne 0x14001dd14
bts ebp, 0x15
jmp 0x14001dd54
mov rcx, qword [0x140036fe8]
cmp rcx, rdi
je 0x14001dd54
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001dd54
call rax
mov rbx, rax
test rax, rax
je 0x14001dd54
mov rcx, qword [0x140036ff0]
cmp rcx, rdi
je 0x14001dd54
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001dd54
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140036fe0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001dd76
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14001dd78
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140011ae0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001ddc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001e26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001e26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001e26
cmp dword [rcx + 0x84], 0xe
jbe 0x140001e26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001e28
xor al, al
add rsp, 0x28
ret
Function at 0x140002c10
Capabilities:
Write file on windows

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

Function at 0x140002c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002db0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002ccb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002d55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002cb0
mov rcx, rbx
call fcn.1400036d0
mov rdi, rax
test rax, rax
je 0x140002dd2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003810
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002db7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002d4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002d60
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002d4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c10
nop dword [rax]
xor esi, esi
jmp 0x140002cd8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c10
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c10
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003340
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000339c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003393
test rsi, rsi
je 0x140003393
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003378
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400036d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006ab0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400036f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400036f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400036f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000374d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003744
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400036f0
add rax, 0x28
cmp rax, r9
jne 0x140003730
xor eax, eax
ret

Function at 0x140003750
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ab0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000376f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003778
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000376f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003810
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ab0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000382f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003838
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400f1260]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400f1270]
mov dword [rax], 1
mov rax, qword [0x1400f1280]
mov dword [rax], 1
mov rax, qword [0x1400f1200]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400f1250]
mov dword [0x14010300c], 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 [0x1400f1330]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400f1310]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400f11b0]
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 0x140001570
Capabilities:
Log keystrokes via polling

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
xor esi, esi
lea rbx, [rsp + 0x2c]
lea r14, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_i32_::fmt::hf1278c0b00373808]
lea r15, str._pressed_n
lea r12, [rsp + 0x30]
lea rdi, [rsp + 0x40]
mov ebp, 0x46
nop word cs:[rax + rax]
mov eax, esi
and eax, 0x7ffffffe
cmp eax, 4
je 0x1400015c6
cmp esi, 6
ja 0x1400015e0
bt ebp, esi
jae 0x1400015e0
inc esi
cmp esi, 0xff
jne 0x1400015b0
xor esi, esi
xor ecx, ecx
mov edx, 0x5f5e100
call sym.std::thread::sleep::h0439b739caeccedc
jmp 0x1400015b0
mov ecx, esi
call sub.USER32.dll_GetAsyncKeyState
test ax, ax
jns 0x1400015c6
mov dword [rsp + 0x2c], esi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 2
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 1
mov rcx, rdi
call dbg._print
jmp 0x1400015c6

Function at 0x140003700
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 0x140003758
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 0x140003772
lea rax, [0x1400bd99c]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, [0x1400c3c70]
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
ud2
mov qword [rsp + 0x30], 0
lea rdx, [0x1400c8fd0]
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 0x1400236f0
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 0x140023725
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140023735
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 0x140025110
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 0x140025190
jmp 0x14002517f
jae 0x140025234
cmp r8, 0x201
jae 0x140025190
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x1400251d7
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x1400251b7
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 0x1400251fb
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140025292
mov r8d, ebx
cmp rbp, r8
jne 0x140025170
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400252b2
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x14002517f
jmp 0x140025190
cmp r12, r8
jb 0x1400252cc
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 0x14002527b
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 sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rdi, qword [rsp + 0x28]
mov qword [rdi], rax
mov byte [rdi + 0x18], 2
test rsi, rsi
jne 0x140025265
jmp 0x14002527b
lea rcx, [0x1400c4b08]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x1400252e1
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 0x140025320
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x70
call sub.KERNEL32.dll_GetEnvironmentStringsW
test rax, rax
je 0x140025338
mov rdx, rax
add rsp, 0x70
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 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 0x140025d00
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 0x140025d84
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 0x140025d89
mov rcx, rbx
mov rdx, r12
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x140025d8e
xor r14d, r14d
test r15, r15
jne 0x140025da3
jmp 0x140025db7
mov r14, rdi
jmp 0x140025dd0
mov r14, r15
jmp 0x140025db7
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
test r15, r15
je 0x140025db7
add r15, r15
mov r8d, 2
mov rcx, r12
mov rdx, r15
call sym.__rust_dealloc
test rdi, rdi
je 0x140025dd0
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test r14, r14
jne 0x140025de6
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, [0x1400c5bc8]
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, [0x1400c5bf8]
lea rcx, [rsp + 0x78]
call dbg.panic_fmt
ud2
Function at 0x140025eb0
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 0x140025f1d
xor esi, esi
mov rcx, rbx
xor edx, edx
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
jne 0x140025f02
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rdi, rdi
je 0x140025f20
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
jmp 0x140025f20
mov rsi, rdi
test rsi, rsi
jne 0x140025f30
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, [0x1400c5c58]
lea rcx, [rsp + 0x40]
call dbg.panic_fmt
ud2
Function at 0x1400274d0
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 0x140027549
js 0x140027697
mov r15, rdx
mov rax, qword [0x1400f12c8]
movzx eax, byte [rax]
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x14002769e
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 0x14002764c
cmp rsi, 0x20
jae 0x140027553
xor eax, eax
jmp 0x1400275e6
mov ebx, 1
jmp 0x14002766f
mov rax, rsi
and rax, 0xffffffffffffffe0
xor ecx, ecx
movdqa xmm0, xmmword [0x1400c1ca0]
movdqa xmm1, xmmword [0x1400c1cb0]
movdqa xmm2, xmmword [0x1400c1cc0]
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 0x140027580
cmp rax, rsi
je 0x14002766f
test sil, 0x18
je 0x140027646
mov rdx, rsi
and rdx, 0xfffffffffffffff8
lea rcx, [r14 + rdx]
movdqa xmm0, xmmword [0x1400c1cd0]
movdqa xmm1, xmmword [0x1400c1ce0]
movdqa xmm2, xmmword [0x1400c1cf0]
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 0x140027610
cmp rdx, rsi
jne 0x14002764c
jmp 0x14002766f
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 0x140027650
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 0x140032bf0
Capabilities:
Set socket configuration

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

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140032d01
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140032d01
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140032d01
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140032d01
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x140032d41
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 0x140032d2f
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 0x140032e90
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 0x140032ec6
cdqe
jmp 0x140032ed4
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140032edc
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140032eed
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 0x140032f00
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 0x140032f54
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 0x140032fe0
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 0x140033017
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 0x1400330a0
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 0x14003311a
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 0x1400330fb
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 0x140033113
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14003310b
xor eax, eax
jmp 0x140033113
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, [0x1400c6480]
mov rcx, rsi
call dbg.slice_start_index_len_fail
ud2