joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ab70
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov rax, rcx
test r9d, r9d
je 0x14000aba0
mov rcx, qword [rsp + 0x70]
mov r10d, r9d
add r10, rdx
dec rcx
test rcx, r10
je 0x14000aba9
mov byte [rax + 8], 4
jmp 0x14000ac61
mov byte [rax + 8], 0
jmp 0x14000ac61
mov rcx, qword [rsp + 0x68]
mov esi, dword [rdx + 0x3c]
lea r10, [rdx + rsi]
movzx ebx, word [rdx + rsi + 0x14]
lea r12, [rbx + r10]
add r12, 0x18
movzx r10d, word [rdx + rsi + 6]
shl r10, 3
lea r15, [r10 + r10*4]
xor r14d, r14d
nop word cs:[rax + rax]
cmp r15, r14
je 0x14000ac4a
lea r13, [r12 + 0x28]
mov r11d, dword [r12 + 8]
mov ebp, dword [r12 + 0xc]
mov r10d, dword [r12 + 0x10]
cmp r11d, r10d
cmovbe r11d, r10d
add r14, 0x28
mov edi, r9d
mov r12, r13
sub edi, ebp
jb 0x14000abe0
add r11d, ebp
mov r12, r13
sub r11d, r9d
jbe 0x14000abe0
add rsi, rbx
add rsi, rdx
mov r9d, dword [r14 + rsi + 4]
add r10d, r9d
jb 0x14000ac50
cmp r10, r8
ja 0x14000ac50
sub r10, r9
sub r10, rdi
jb 0x14000ac56
cmp r10, rcx
jb 0x14000ac56
add rdx, r9
add rdx, rdi
mov qword [rax], rdx
mov qword [rax + 8], r10
jmp 0x14000ac68
mov byte [rax + 8], 1
jmp 0x14000ac61
mov byte [rax + 8], 8
jmp 0x14000ac61
cmp r11, rcx
mov cl, 2
sbb cl, 0
mov byte [rax + 8], cl
mov qword [rax], 0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14000ac80
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov rax, rcx
test r9d, r9d
je 0x14000accc
mov r10d, dword [rdx + 0x3c]
lea r11, [rdx + r10]
sub r9d, dword [r11 + 0x34]
jb 0x14000ad69
cmp r9d, dword [r11 + 0x50]
ja 0x14000ad69
mov rcx, qword [rsp + 0x70]
mov esi, r9d
add rsi, rdx
dec rcx
test rsi, rcx
je 0x14000acd5
mov byte [rax + 8], 4
jmp 0x14000ad6d
mov byte [rax + 8], 0
jmp 0x14000ad6d
mov rcx, qword [rsp + 0x68]
lea r12, [rdx + r10]
add r12, 0x18
movzx ebx, word [r11 + 0x14]
add r12, rbx
movzx r11d, word [r11 + 6]
shl r11, 3
lea r15, [r11 + r11*4]
xor r14d, r14d
nop word [rax + rax]
cmp r15, r14
je 0x14000ad69
lea r13, [r12 + 0x28]
mov esi, dword [r12 + 8]
mov ebp, dword [r12 + 0xc]
mov r11d, dword [r12 + 0x10]
cmp esi, r11d
cmovbe esi, r11d
add r14, 0x28
mov edi, r9d
mov r12, r13
sub edi, ebp
jb 0x14000ad00
add esi, ebp
mov r12, r13
sub esi, r9d
jbe 0x14000ad00
add r10, rbx
add r10, rdx
mov r9d, dword [r14 + r10 + 4]
add r11d, r9d
jb 0x14000ad81
cmp r11, r8
ja 0x14000ad81
sub r11, r9
sub r11, rdi
jb 0x14000ad87
cmp r11, rcx
jb 0x14000ad87
add rdx, r9
add rdx, rdi
mov qword [rax], rdx
mov qword [rax + 8], r11
jmp 0x14000ad74
mov byte [rax + 8], 1
mov qword [rax], 0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov byte [rax + 8], 8
jmp 0x14000ad6d
cmp rsi, rcx
mov cl, 2
sbb cl, 0
mov byte [rax + 8], cl
jmp 0x14000ad6d
Function at 0x14000ada0
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
mov r8d, 0x100
mov eax, 1
cmp rdx, 0x40
jb 0x14000ae9c
test cl, 3
je 0x14000adc7
mov r8d, 0x400
jmp 0x14000ae9c
movzx r9d, word [rcx]
cmp r9d, 0x5a4d
jne 0x14000ae96
mov r9d, dword [rcx + 0x3c]
test r9b, 3
jne 0x14000adbc
cmp r9d, 0x1000000
jbe 0x14000adf6
mov r8d, 0x700
jmp 0x14000ae9c
lea r11, [r9 + 0x78]
cmp r11, rdx
ja 0x14000ae9c
cmp dword [rcx + r9], 0x4550
jne 0x14000ae96
movzx esi, word [rcx + r9 + 0x18]
cmp esi, 0x20b
je 0x14000ae27
cmp esi, 0x10b
jne 0x14000ae96
mov edi, dword [rcx + r9 + 0x54]
cmp rdi, rdx
ja 0x14000ae9c
mov r10d, dword [rcx + r9 + 0x50]
cmp edi, r10d
ja 0x14000adeb
movzx esi, si
cmp esi, 0x10b
jne 0x14000aea2
mov esi, dword [rcx + r9 + 0x74]
cmp esi, 0x10
mov edi, 0x10
cmovb edi, esi
shl edi, 3
add r11, rdi
cmp r11, rdx
ja 0x14000ae9c
movzx r11d, word [rcx + r9 + 6]
cmp r11, 0x60
ja 0x14000adeb
lea r11, [r11 + r11*4]
lea r11, [r9 + r11*8]
movzx ecx, word [rcx + r9 + 0x14]
add rcx, r11
add rcx, 0x18
cmp rcx, rdx
ja 0x14000ae9c
shl r10, 0x20
xor eax, eax
mov r8, r10
jmp 0x14000ae9c
mov r8d, 0x500
or rax, r8
pop rdi
pop rsi
ret
mov r8d, 0x600
jmp 0x14000ae9c

Function at 0x1400163b0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdx, qword [rcx + 0x18]
lea rax, [rdx - 2]
cmp rax, 4
jb 0x1400164da
cmp rdx, 2
jb 0x1400164f0
mov rsi, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
lea r11, [rdx - 6]
mov r10d, dword [r9 + 4]
lea eax, [rsi*4]
test rsi, rsi
je 0x140016452
mov rdi, qword [rcx]
shl rsi, 2
xor r8d, r8d
jmp 0x140016441
movaps xmmword [rsp + 0x20], xmm0
movzx ebx, byte [rsp + 0x20]
mov ecx, r8d
rol ebx, cl
movzx ebp, byte [rsp + 0x21]
lea ecx, [r8 + 1]
rol ebp, cl
add eax, ebx
movzx ebx, byte [rsp + 0x22]
lea ecx, [r8 + 2]
rol ebx, cl
add ebx, ebp
add ebx, eax
movzx eax, byte [rsp + 0x23]
lea ecx, [r8 + 3]
rol eax, cl
add eax, ebx
add r8, 4
cmp rsi, r8
je 0x140016452
xorps xmm0, xmm0
cmp r8d, 0x3c
je 0x140016400
movss xmm0, dword [rdi + r8]
jmp 0x140016400
cmp r11, 2
jb 0x1400164d1
test dl, 2
jne 0x140016485
mov r8d, dword [r9 + 0x10]
xor r8d, r10d
mov ecx, dword [r9 + 0x14]
xor ecx, r10d
lea r11, [rdx - 8]
add r9, 0x18
rol r8d, cl
add eax, r8d
and rdx, 0xfffffffffffffffe
cmp rdx, 8
jne 0x1400164a0
jmp 0x1400164d1
add r9, 0x10
and rdx, 0xfffffffffffffffe
cmp rdx, 8
je 0x1400164d1
nop word cs:[rax + rax]
mov edx, dword [r9]
xor edx, r10d
mov ecx, dword [r9 + 4]
xor ecx, r10d
rol edx, cl
add edx, eax
mov eax, dword [r9 + 8]
xor eax, r10d
mov ecx, dword [r9 + 0xc]
xor ecx, r10d
rol eax, cl
add r11, 0xfffffffffffffffc
add eax, edx
add r9, 0x10
cmp r11, 1
ja 0x1400164a0
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea r8, [0x1414e09d0]
mov ecx, 4
mov rdx, rax
call dbg.slice_index_order_fail
ud2
lea r8, [0x1414e09d0]
mov rcx, rax
call dbg.slice_end_index_len_fail
ud2
Function at 0x140016b60
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
lea rcx, [rsp + 0x28]
call sym.core::fmt::Formatter::debug_list::h2f19a45e1cfbedbd
mov r14, qword [rsi + 8]
cmp r14, 2
jb 0x140016bde
mov ebp, dword [rsi + 0x10]
mov r15, qword [rsi]
lea rsi, sym._ZN4core3ptr55drop_in_place_LT_pelite..rich_structure..RichRecord_GT_17h7bc618773a4621bdE.llvm.1928057332852803688
lea rdi, [rsp + 0x28]
lea rbx, [rsp + 0x20]
nop word [rax + rax]
mov eax, dword [r15]
xor eax, ebp
movzx ecx, ax
and eax, 0xffff0000
mov edx, dword [r15 + 4]
xor edx, ebp
shl rdx, 0x20
or rax, rdx
or rcx, rax
add r14, 0xfffffffffffffffe
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
call sym.core::fmt::builders::DebugSet::entry::hf949e7f2aa88a99b
add r15, 8
cmp r14, 1
ja 0x140016ba0
lea rcx, [rsp + 0x28]
call sym.core::fmt::builders::DebugList::finish::h588ae68cee13ec29
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14001e270
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rdx]
mov edx, r8d
call sub.KERNEL32.dll_TerminateProcess
mov ecx, 4
test eax, eax
jne 0x14001e29f
call sym.std::sys::windows::os::errno::hdb602b353db42c6a
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
xor ecx, ecx
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x20
pop rsi
ret
Function at 0x14001e3c0
Capabilities:
Enumerate process modules

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x2c], 0
mov r14, qword [rdx]
mov edi, 8
lea r15, [rsp + 0x2c]
xor esi, esi
xor r12d, r12d
jmp 0x14001e41e
mov r13, rbp
mov qword [rsp + 0x48], r13
mov rsi, r13
mov r12d, ebp
lea r8d, [rsi*8]
mov dword [rsp + 0x20], 3
mov rcx, r14
mov rdx, rdi
mov r9, r15
call sub.PSAPI.DLL_EnumProcessModulesEx
test eax, eax
je 0x14001e4c7
mov ebp, dword [rsp + 0x2c]
cmp ebp, r12d
jbe 0x14001e526
mov r12, rbp
sub r12, rsi
jbe 0x14001e410
mov rax, qword [rsp + 0x40]
sub rax, rsi
mov r13, rsi
cmp rax, r12
jae 0x14001e483
lea rcx, [rsp + 0x38]
mov rdx, rsi
mov r8, r12
call sym._ZN5alloc7raw_vec19RawVec_LT_T_C_A_GT_7reserve21do_reserve_and_handle17h407097f1861137a4E.llvm.1226257305578105955
mov rdi, qword [rsp + 0x38]
mov r13, qword [rsp + 0x48]
lea rcx, [rdi + r13*8]
cmp r12, 2
jb 0x14001e4b8
mov r8, rsi
not r8
add r8, rbp
shl r8, 3
xor edx, edx
call sub.msvcrt.dll_memset
mov rax, r13
add rax, rbp
sub rax, rsi
lea rcx, [rdi + rax*8]
add rcx, 0xfffffffffffffff8
add r13, r12
dec r13
mov qword [rcx], 0
inc r13
jmp 0x14001e413
call sym.std::sys::windows::os::errno::hdb602b353db42c6a
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x30]
mov qword [rsi + 8], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x10], xmm0
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x20], rax
mov qword [rsi], 0
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x14001e512
shl rdx, 3
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14d, ebp
shr r14d, 3
cmp rsi, r14
jb 0x14001e605
cmp ebp, 8
jae 0x14001e54c
mov eax, 8
xor ecx, ecx
mov rsi, qword [rsp + 0x30]
jmp 0x14001e5df
mov r15, r14
shl r15, 4
mov rax, qword [0x141511d08]
movzx eax, byte [rax]
mov edx, 8
mov rcx, r15
call sym.__rust_alloc
test rax, rax
je 0x14001e619
cmp r14d, 1
jne 0x14001e582
xor ecx, ecx
mov rsi, qword [rsp + 0x30]
jmp 0x14001e5c5
mov edx, r14d
and edx, 0xfffffffe
lea r8, [rax + 0x18]
xor ecx, ecx
mov rsi, qword [rsp + 0x30]
nop word cs:[rax + rax]
mov r9, qword [rdi + rcx*8]
mov qword [r8 - 0x18], rbx
mov qword [r8 - 0x10], r9
mov r9, qword [rdi + rcx*8 + 8]
mov qword [r8 - 8], rbx
mov qword [r8], r9
add rcx, 2
add r8, 0x20
cmp rdx, rcx
jne 0x14001e5a0
test r14b, 1
je 0x14001e5dc
mov rdx, qword [rdi + rcx*8]
shl rcx, 4
mov qword [rax + rcx], rbx
mov qword [rax + rcx + 8], rdx
mov rcx, r14
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rcx
mov qword [rsi], 4
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x14001e500
jmp 0x14001e512
lea r8, [0x1414e1f78]
mov rcx, r14
mov rdx, rsi
call dbg.slice_end_index_len_fail
jmp 0x14001e626
mov ecx, 8
mov rdx, r15
call dbg.handle_alloc_error
ud2
Function at 0x14001f760
Capabilities:
Suspend thread

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rdx]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
je 0x14001f77f
mov dword [rsi + 8], eax
mov eax, 4
jmp 0x14001f792
call sym.std::sys::windows::os::errno::hdb602b353db42c6a
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14001f7a0
Capabilities:
Resume thread

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rdx]
call sub.KERNEL32.dll_ResumeThread
cmp eax, 0xffffffff
je 0x14001f7bf
mov dword [rsi + 8], eax
mov eax, 4
jmp 0x14001f7d2
call sym.std::sys::windows::os::errno::hdb602b353db42c6a
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14001f7e0
Capabilities:
Terminate thread

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rdx]
mov edx, r8d
call sub.KERNEL32.dll_TerminateThread
mov ecx, 4
test eax, eax
jne 0x14001f80f
call sym.std::sys::windows::os::errno::hdb602b353db42c6a
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
xor ecx, ecx
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x140021590
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_GetNativeSystemInfo
movsx r9, word [rsp + 0x20]
mov eax, dword [rsp + 0x24]
movups xmm0, xmmword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
movss xmm1, dword [rsp + 0x4c]
mov r10b, 0xf
cmp r9, 0xe
ja 0x1400215ec
lea r10, [0x1414e2f32]
movzx r10d, byte [r9 + r10]
mov byte [rsi + 0x28], r10b
mov dword [rsi + 0x18], eax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rcx
mov dword [rsi + 0x1c], edx
mov dword [rsi + 0x20], r8d
movss dword [rsi + 0x24], xmm1
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x1400237d0
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 0x140023828
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 0x140023842
lea rax, [0x1400dc124]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, [0x1414e50a0]
lea r8, [0x1414e85b0]
mov edx, 0x2b
call dbg.panic
ud2
mov qword [rsp + 0x30], 0
lea rdx, [0x1414ea2b8]
lea r9, [0x1414ea2e0]
lea rcx, [rsp + 0x2c]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
ud2
Function at 0x140043300
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 0x140043335
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140043345
lea rax, [0x1414eade0]
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x50
pop rsi
ret
Function at 0x140044d20
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 0x140044da0
jmp 0x140044d8f
jae 0x140044e44
cmp r8, 0x201
jae 0x140044da0
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x140044de7
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x140044dc7
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 0x140044e0b
call fcn.1400dbe94
test eax, eax
jne 0x140044ea2
mov r8d, ebx
cmp rbp, r8
jne 0x140044d80
call fcn.1400dbe94
cmp eax, 0x7a
jne 0x140044ec2
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x140044d8f
jmp 0x140044da0
cmp r12, r8
jb 0x140044edc
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 0x140044e8b
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.1400dbe94
shl rax, 0x20
or rax, 2
mov rdi, qword [rsp + 0x28]
mov qword [rdi], rax
mov byte [rdi + 0x18], 2
test rsi, rsi
jne 0x140044e75
jmp 0x140044e8b
lea rcx, [0x1414e5eb0]
lea r8, [0x1414eb028]
mov edx, 0x28
call dbg.panic
jmp 0x140044ef1
lea rax, [0x1414eb010]
mov rcx, r8
mov rdx, r12
mov r8, rax
call dbg.slice_end_index_len_fail
ud2

Function at 0x140044f30
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x70
call sub.KERNEL32.dll_GetEnvironmentStringsW
test rax, rax
je 0x140044f48
mov rdx, rax
add rsp, 0x70
pop rsi
ret
call fcn.1400dbe94
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, [0x1414ea520]
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, [0x1414ea530]
lea rcx, [rsp + 0x40]
call dbg.panic_fmt
ud2
Function at 0x140045910
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 0x140045994
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 0x140045999
mov rcx, rbx
mov rdx, r12
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x14004599e
xor r14d, r14d
test r15, r15
jne 0x1400459b3
jmp 0x1400459c7
mov r14, rdi
jmp 0x1400459e0
mov r14, r15
jmp 0x1400459c7
call fcn.1400dbe94
mov r14d, eax
shl r14, 0x20
or r14, 2
test r15, r15
je 0x1400459c7
add r15, r15
mov r8d, 2
mov rcx, r12
mov rdx, r15
call sym.__rust_dealloc
test rdi, rdi
je 0x1400459e0
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test r14, r14
jne 0x1400459f6
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, [0x1414e6fd8]
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, [0x1414e7008]
lea rcx, [rsp + 0x78]
call dbg.panic_fmt
ud2
Function at 0x140045ac0
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 0x140045b2d
xor esi, esi
mov rcx, rbx
xor edx, edx
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
jne 0x140045b12
call fcn.1400dbe94
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rdi, rdi
je 0x140045b30
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
jmp 0x140045b30
mov rsi, rdi
test rsi, rsi
jne 0x140045b40
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, [0x1414e7048]
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, [0x1414e7068]
lea rcx, [rsp + 0x40]
call dbg.panic_fmt
ud2
Function at 0x1400470e0
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 0x140047159
js 0x1400472a7
mov r15, rdx
mov rax, qword [0x141511d08]
movzx eax, byte [rax]
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x1400472ae
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 0x14004725c
cmp rsi, 0x20
jae 0x140047163
xor eax, eax
jmp 0x1400471f6
mov ebx, 1
jmp 0x14004727f
mov rax, rsi
and rax, 0xffffffffffffffe0
xor ecx, ecx
movdqa xmm0, xmmword [0x1414e3c50]
movdqa xmm1, xmmword [0x1414e3c60]
movdqa xmm2, xmmword [0x1414e3c70]
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 0x140047190
cmp rax, rsi
je 0x14004727f
test sil, 0x18
je 0x140047256
mov rdx, rsi
and rdx, 0xfffffffffffffff8
lea rcx, [r14 + rdx]
movdqa xmm0, xmmword [0x1414e3c80]
movdqa xmm1, xmmword [0x1414e3c90]
movdqa xmm2, xmmword [0x1414e3ca0]
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 0x140047220
cmp rdx, rsi
jne 0x14004725c
jmp 0x14004727f
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 0x140047260
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 0x140051380
Capabilities:
Set socket configuration

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