joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4046d0
Capabilities:
Delete directory

Disassembly:
push r13
mov eax, 0x44a8
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0040a6a0
sub rsp, rax
mov r8d, 0x1000
lea r13, [rsp + 0x2490]
mov rdx, rcx
lea rdi, [rsp + 0x480]
mov rcx, r13
call fcn.00405090
mov rdx, r13
mov rcx, rdi
call sub.msvcrt.dll_wcscpy
mov rcx, rdi
call sub.msvcrt.dll_wcslen
mov r12, rax
movzx eax, word [rsp + rax*2 + 0x47e]
cmp ax, 0x2f
je 0x404734
cmp ax, 0x5c
jne 0x4047b5
lea rdx, [0x0040d388]
mov rcx, rdi
call sub.msvcrt.dll_wcscat
lea rbx, [rsp + 0x250]
mov rcx, rdi
mov rdx, rbx
call fcn.0040a8f0
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x40479b
lea rsi, [rsp + 0x20]
mov r8d, 0x230
mov rdx, rbx
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call fcn.004047d0
mov rdx, rbx
mov rcx, rbp
call fcn.0040a980
test eax, eax
je 0x404764
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__findclose]
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
nop
add rsp, 0x44a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [0x0040d384]
mov rcx, rdi
add r12, 1
call sub.msvcrt.dll_wcscat
jmp 0x404734

Function at 0x4047d0
Capabilities:
Delete file

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.0040a6a0
sub rsp, rax
lea rbx, [r8 + 0x24]
mov rdi, rcx
mov rbp, rdx
lea rdx, [0x0040d38c]
mov rcx, rbx
mov rsi, r8
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x404810
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x0040d390]
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x404801
xor eax, eax
mov rdx, rbx
mov rcx, rdi
mov word [rdi + rbp*2], ax
call sub.msvcrt.dll_wcscat
test byte [rsi], 0x10
jne 0x404860
mov rcx, rdi
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x404801
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call rbx
jmp 0x404801
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rdi
mov rcx, rbx
call fcn.00404ee0
mov rcx, rbx
call fcn.004046d0
jmp 0x404801
Function at 0x4048a0
Capabilities:
Create directory

Disassembly:
push r13
mov eax, 0x4058
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0040a6a0
sub rsp, rax
lea rbx, [rsp + 0x50]
mov rsi, rdx
mov rdx, rcx
lea rbp, [rsp + 0x20]
mov rcx, rbx
call sub.msvcrt.dll_strcpy
lea r8, [rsp + 0x1050]
mov rdx, rsi
lea rsi, [rsp + 0x2050]
mov rcx, r8
call sub.msvcrt.dll_strcpy
lea rdx, [0x0040d396]
mov rcx, rax
call sub.msvcrt.dll_strtok
test rax, rax
mov rdi, rax
je 0x4049a0
mov r13, qword [sym.imp.msvcrt.dll__wmkdir]
lea r12, [0x0040d396]
mov rdx, rbx
mov ecx, dword [rdx]
add rdx, 4
lea eax, [rcx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x404914
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea rcx, [rdx + 2]
cmove rdx, rcx
mov ecx, eax
add cl, al
sbb rdx, 3
sub rdx, rbx
lea rcx, [rbx + rdx + 1]
mov byte [rbx + rdx], 0x5c
mov rdx, rdi
call sub.msvcrt.dll_strcpy
xor ecx, ecx
mov rdx, r12
call sub.msvcrt.dll_strtok
test rax, rax
mov rdi, rax
je 0x4049a0
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rsi
call fcn.00405090
mov rdx, rbp
mov rcx, rsi
call fcn.0040aa10
test eax, eax
jns 0x404911
mov rcx, rsi
call r13
jmp 0x404911
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rsi
call fcn.00405090
mov rdx, rbp
mov rcx, rsi
call fcn.0040aa10
test eax, eax
jne 0x4049cf
lea rcx, str.WARNING:_file_already_exists_but_should_not:__s_n
mov rdx, rbx
call fcn.00401e00
lea rdx, [0x0040d3c9]
mov rcx, rbx
call fcn.00402e10
add rsp, 0x4058
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x4049f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
mov eax, 0x1028
push rdi
push rsi
push rbx
call fcn.0040a6a0
sub rsp, rax
mov rsi, rdx
mov rdi, r8
lea rdx, [0x0040d3cc]
call fcn.00402e10
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.004048a0
test rbx, rbx
mov rbp, rax
je 0x404ae4
test rax, rax
je 0x404ae4
lea rdi, [rsp + 0x20]
nop dword [rax + rax]
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x404ae0
mov r9, rbx
mov r8d, 1
mov edx, 0x1000
mov rcx, rdi
call sub.msvcrt.dll_fread
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x404ac0
mov r9, rbp
mov r8d, 1
mov edx, 0x1000
mov rcx, rdi
call sub.msvcrt.dll_fwrite
test eax, eax
jle 0x404a95
mov rcx, rbp
call sub.msvcrt.dll_ferror
test eax, eax
je 0x404a40
mov rcx, rbp
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rcx, rbp
call sub.msvcrt.dll_fclose
mov eax, esi
add rsp, 0x1028
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x404a40
mov rcx, rbx
call sub.msvcrt.dll_clearerr
jmp 0x404aa2
xor esi, esi
jmp 0x404aa2
mov esi, 0xffffffff
jmp 0x404ab2
Function at 0x404b40
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push rbp
mov eax, 0x2118
push rdi
push rsi
push rbx
call fcn.0040a6a0
sub rsp, rax
mov r8d, 0x1000
lea rdi, [rsp + 0x110]
mov rdx, rcx
mov dword [rsp + 0x5c], 0
lea rbp, [rsp + 0xa0]
mov rcx, rdi
call fcn.00405090
mov edx, 1
mov ecx, 0x16
call sub.msvcrt.dll_signal
mov edx, 1
mov ecx, 2
call sub.msvcrt.dll_signal
mov edx, 1
mov ecx, 0xf
call sub.msvcrt.dll_signal
mov edx, 1
mov ecx, 0x15
call sub.msvcrt.dll_signal
mov rcx, rbp
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov rsi, qword [sym.imp.msvcrt.dll___iob_func]
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rsi
mov rcx, rax
call sub.msvcrt.dll__fileno
mov rbx, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rbx
mov qword [rsp + 0xf0], rax
call rsi
lea rcx, [rax + 0x30]
call sub.msvcrt.dll__fileno
mov ecx, eax
call rbx
mov qword [rsp + 0xf8], rax
call rsi
lea rcx, [rax + 0x60]
call sub.msvcrt.dll__fileno
mov ecx, eax
call rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rbp
mov rcx, rdi
lea rdx, [rsp + 0x80]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x48], rdx
lea r8, [rsp + 0x60]
mov rdx, rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404cd5
lea rcx, str.Error_creating_child_process__n
call fcn.00401e00
mov eax, 0xffffffff
add rsp, 0x2118
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2118
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x4097c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x004208c4]
test ebp, ebp
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
jle 0x4098da
mov rax, qword [0x004208c8]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40980e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x4098c0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x4097f2
mov rcx, rbx
call fcn.0040a430
test rax, rax
mov r12, rax
je 0x409912
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004208c8]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.0040a550
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
mov qword [r13 + 8], rax
mov rax, qword [0x004208c8]
lea rdx, [rsp + 0x20]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4098f5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4098b9
sub eax, 0x40
and eax, 0xffffffbf
je 0x4098b9
mov r9, rbp
mov r8d, 0x40
add r9, qword [0x004208c8]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4098e1
add dword [0x004208c4], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x40981b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00409750
mov rax, qword [0x004208c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rbp + 8]
call fcn.00409750
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00409750
nop
nop word cs:[rax + rax]

Function at 0x40a090
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00420be0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00420bc0]
test rbx, rbx
je 0x40a0e4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40a0db
test rsi, rsi
je 0x40a0db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40a0c0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x00420be0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x40a340
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40a381
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x40a378
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40a383
add rax, 0x28
cmp rax, r9
jne 0x40a364
xor eax, eax
ret
Function at 0x40a430
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00410810]
cmp word [rbx], 0x5a4d
je 0x40a450
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.0040a300
test eax, eax
je 0x40a444
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.0040a340
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401041e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401041f0]
mov dword [rax], 1
mov rax, qword [0x140104200]
mov dword [rax], 1
mov rax, qword [0x140104180]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1401041d0]
mov dword [0x14011900c], 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 [0x1401042b0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140104290]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [str.p1_r_]
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 0x140018170
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 0x1400181c8
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 0x1400181e2
lea rax, [0x1400d07ec]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, [0x1400d7710]
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
ud2
mov qword [rsp + 0x30], 0
lea rdx, [0x1400dc928]
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 0x140037ca0
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 0x140037cd5
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140037ce5
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 0x1400396c0
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 0x140039740
jmp 0x14003972f
jae 0x1400397e4
cmp r8, 0x201
jae 0x140039740
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x140039787
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x140039767
lea rcx, [rsp + 0x30]
mov rdx, r15
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
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 0x1400397ab
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140039842
mov r8d, ebx
cmp rbp, r8
jne 0x140039720
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140039862
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x14003972f
jmp 0x140039740
cmp r12, r8
jb 0x14003987c
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 0x14003982b
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 0x140039815
jmp 0x14003982b
lea rcx, str.internal_error:_entered_unreachable_codeh
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x140039891
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 0x1400398d0
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x70
call sub.KERNEL32.dll_GetEnvironmentStringsW
test rax, rax
je 0x1400398e8
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::hb9d4a1ba898b0a77]
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 0x14003a2b0
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::h7e66ebc21fd40bcf
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
test rbx, rbx
je 0x14003a334
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, r14
call sym.std::sys::windows::to_u16s::inner::h7e66ebc21fd40bcf
mov r12, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
test r12, r12
je 0x14003a339
mov rcx, rbx
mov rdx, r12
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x14003a33e
xor r14d, r14d
test r15, r15
jne 0x14003a353
jmp 0x14003a367
mov r14, rdi
jmp 0x14003a380
mov r14, r15
jmp 0x14003a367
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
test r15, r15
je 0x14003a367
add r15, r15
mov r8d, 2
mov rcx, r12
mov rdx, r15
call sym.__rust_dealloc
test rdi, rdi
je 0x14003a380
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test r14, r14
jne 0x14003a396
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::h02d0e63eb90fc523]
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::hb9d4a1ba898b0a77]
mov qword [rsp + 0x50], rax
lea rax, [0x1400d9648]
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, [0x1400d9678]
lea rcx, [rsp + 0x78]
call dbg.panic_fmt
ud2
Function at 0x14003a460
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::h7e66ebc21fd40bcf
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
test rbx, rbx
je 0x14003a4cd
xor esi, esi
mov rcx, rbx
xor edx, edx
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
jne 0x14003a4b2
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rdi, rdi
je 0x14003a4d0
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
jmp 0x14003a4d0
mov rsi, rdi
test rsi, rsi
jne 0x14003a4e0
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::h02d0e63eb90fc523]
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::hb9d4a1ba898b0a77]
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, [0x1400d96d8]
lea rcx, [rsp + 0x40]
call dbg.panic_fmt
ud2
Function at 0x14003ba80
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 0x14003baf9
js 0x14003bc47
mov r15, rdx
mov rax, qword [0x140104248]
movzx eax, byte [rax]
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x14003bc4e
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 0x14003bbfc
cmp rsi, 0x20
jae 0x14003bb03
xor eax, eax
jmp 0x14003bb96
mov ebx, 1
jmp 0x14003bc1f
mov rax, rsi
and rax, 0xffffffffffffffe0
xor ecx, ecx
movdqa xmm0, xmmword [0x1400d62c0]
movdqa xmm1, xmmword [0x1400d62d0]
movdqa xmm2, xmmword [0x1400d62e0]
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 0x14003bb30
cmp rax, rsi
je 0x14003bc1f
test sil, 0x18
je 0x14003bbf6
mov rdx, rsi
and rdx, 0xfffffffffffffff8
lea rcx, [r14 + rdx]
movdqa xmm0, xmmword [0x1400d62f0]
movdqa xmm1, xmmword [0x1400d6300]
movdqa xmm2, xmmword [0x1400d6310]
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 0x14003bbc0
cmp rdx, rsi
jne 0x14003bbfc
jmp 0x14003bc1f
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 0x14003bc00
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 0x140045d20
Capabilities:
Set socket configuration

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