joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401210d0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1401bd080
movzx ecx, bl
mov dword [rsp + 0x2c], ecx
lea r8, [rsp + 0x2c]
mov rcx, rax
mov edx, 0x8004667e
call sub.ws2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x140121102
xor eax, eax
add rsp, 0x30
pop rbx
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret

Function at 0x140121120
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rdx
mov rdi, rcx
call fcn.1401bd080
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov rcx, rax
mov edx, 0xffff
mov r8d, 8
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140121256
mov rcx, rdi
call fcn.1401bd080
mov rcx, rax
mov r10d, dword [rsi + 8]
xor r8d, r8d
mov r9d, 0
cmp r10d, 0x3b9aca00
je 0x1401211b8
mov eax, 0x3e8
mul qword [rsi]
mov r9d, r10d
imul r10, r9, 0x431bde83
shr r10, 0x32
add r10, rax
adc rdx, 0
mov eax, 0xffffffff
cmp r10, rax
cmovae r10, rax
xor r9d, r9d
neg rdx
sbb r9d, r9d
or r9d, r10d
mov r10d, dword [rsi + 0x18]
cmp r10d, 0x3b9aca00
je 0x1401211fb
mov eax, 0x3e8
mul qword [rsi + 0x10]
mov r8d, r10d
imul r10, r8, 0x431bde83
shr r10, 0x32
add r10, rax
adc rdx, 0
mov eax, 0xffffffff
cmp r10, rax
cmovae r10, rax
xor r8d, r8d
neg rdx
sbb r8d, r8d
or r8d, r10d
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x4c], r9d
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x54], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x48]
mov edx, 0x98000004
mov r9d, 0xc
call sub.ws2_32.dll_WSAIoctl
cmp eax, 0xffffffff
je 0x140121256
xor eax, eax
jmp 0x140121263
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140134140
Capabilities:
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, 0xe8
mov rsi, rcx
test edx, edx
je 0x14013417b
mov byte [rsi + 4], 0x12
mov rdi, r9
bt rdx, 0x20
jb 0x1401342ed
movabs rax, 0xaaaaaaaaaaaaaaab
imul rax, rdi
ror rax, 1
movabs rcx, 0x2aaaaaaaaaaaaaab
cmp rax, rcx
jb 0x1401342ff
mov rax, qword [0x1402f8e48]
mov rax, qword [rax]
cmp rax, 2
jae 0x1401345ad
movzx edx, byte [0x1402f7b08]
test dl, dl
je 0x1401345ad
movzx eax, dl
cmp eax, 1
je 0x1401341e3
cmp eax, 2
jne 0x140134597
mov dl, 2
mov rcx, qword [0x1402f7af8]
call fcn.14015c5a0
test al, al
je 0x1401345ad
mov rcx, qword [0x1402f7af8]
mov rax, qword [rcx + 0x38]
test rax, rax
je 0x14013462e
lea rdx, [rcx + 0x30]
mov r8, qword [rcx + 0x30]
movups xmm0, xmmword [rcx + 0x40]
mov qword [rsp + 0x90], r8
mov qword [rsp + 0x98], rax
movups xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea rax, [0x140043130]
mov qword [rsp + 0x58], rax
lea rax, str.invalid_settings_payload_length__len
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 1
mov qword [rsp + 0xd8], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0xc8], rax
test byte [rax + rcx*8], ah
add byte [rax], al
add byte [rax - 0x39], cl
test byte [rax + rdx*8], ah
add byte [rax], al
add byte [rcx], al
add byte [rax], al
add byte [rax - 0x73], cl
test byte [rax + rdx*4], ah
add byte [rax], al
add byte [rax - 0x77], cl
and al, 0x60
test rdi, rdi
je 0x1401344df
mov byte [rsi + 4], 0x10
jmp fcn.14013415e
test rdi, rdi
je 0x140134518
xor eax, eax
lea r14, [0x14021f574]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x24], 0
xor edx, edx
mov dword [rsp + 0x2c], 0
xor r11d, r11d
mov dword [rsp + 0x28], 0
and al, 0x28
add byte [rax], al
add byte [rax], al
mov dword [rsi], 0
mov dword [rsi + 8], 0
mov dword [rsi + 0x10], 0
mov dword [rsi + 0x18], 0
mov dword [rsi + 0x20], 0
mov dword [rsi + 0x28], 0
mov dword [rsi + 0x30], 0
mov byte [rsi + 0x38], 1
jmp fcn.140134164
mov dword [rsp + 0x28], 0
xor r11d, r11d
mov dword [rsp + 0x2c], 0
xor edx, edx
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x30], 0
xor eax, eax
lea rcx, [0x1402f7af8]
call fcn.1401e56f0
mov edx, eax
test al, al
jne 0x1401341e3
mov byte [rsi + 4], 0x11
jmp fcn.14013415e
lea rcx, [0x14021d590]
lea r8, [0x14021daf0]
mov edx, 0x22
call fcn.1401ea870
ud2
Function at 0x14015ff40
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
nop word [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14015ff50
test al, 1
je 0x14015ff6f
test al, 2
jne 0x14015ff89
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1402414b8]
mov edx, 0x23
call fcn.1401ea970
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140241478]
mov edx, 0x25
call fcn.1401ea970
ud2

Function at 0x140163a90
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x140163aa8
add rcx, 0x18
add rsp, 0x28
jmp 0x140185680
lea rcx, [0x1402427c0]
lea r8, str.C:Users123.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.35.0_srciopoll_evented.rs
mov edx, 0x2b
call fcn.1401ea970
ud2
jmp 0x1401b4a50
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl

Function at 0x140163f60
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140182970
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1401bd080
movzx ecx, bl
mov dword [rsp + 0x2c], ecx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401829b1
xor eax, eax
add rsp, 0x30
pop rbx
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret

Function at 0x140163f70
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x1401829d0
push rsi
sub rsp, 0x30
mov rsi, rdx
call fcn.1401bd080
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140182a0f
xor eax, eax
add rsp, 0x30
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rsi
ret

Function at 0x140163f80
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x140182910
push rsi
sub rsp, 0x30
mov rsi, rdx
call fcn.1401bd080
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x1002
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14018294f
xor eax, eax
add rsp, 0x30
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rsi
ret
Function at 0x140180150
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x20], rcx
mov rax, qword [rcx]
nop
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140180170
test al, 1
je 0x140180201
test al, 2
jne 0x14018021b
xor rax, 3
mov qword [rbp], rax
mov rcx, rbp
lea rdx, [rbp + 0x20]
call fcn.14017e8c0
test rax, rax
je 0x1401801ca
mov qword [rbp + 0x10], rax
mov rcx, rax
mov qword [rbp + 0x18], rdx
call qword [rdx]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rcx, qword [rbp + 0x10]
je 0x1401801ca
mov r8, qword [rax + 0x10]
call fcn.1400275e0
mov rcx, qword [rbp + 0x20]
mov qword [rbp + 8], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp + 8]
jb 0x140180235
jne 0x1401801f7
mov rcx, qword [rbp + 0x20]
call fcn.14017fcc0
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1402414b8]
mov edx, 0x23
call fcn.1401ea970
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140241478]
mov edx, 0x25
call fcn.1401ea970
ud2
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.1401dfa60]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 2
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
lea rdx, [0x140241500]
lea rcx, [rbp - 0x58]
call fcn.1401ea8d0
ud2

Function at 0x1401827f0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
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]
add rsp, 0x58
ret

Function at 0x1401828d0
Capabilities:
Connect socket

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.1401bd080
mov r8d, dword [rsi + 0x80]
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x140182907
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x20
pop rsi
ret
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x140182910
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x140182910
push rsi
sub rsp, 0x30
mov rsi, rdx
call fcn.1401bd080
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x1002
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14018294f
xor eax, eax
add rsp, 0x30
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rsi
ret
Function at 0x140182970
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140182970
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1401bd080
movzx ecx, bl
mov dword [rsp + 0x2c], ecx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401829b1
xor eax, eax
add rsp, 0x30
pop rbx
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret

Function at 0x1401829d0
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x1401829d0
push rsi
sub rsp, 0x30
mov rsi, rdx
call fcn.1401bd080
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140182a0f
xor eax, eax
add rsp, 0x30
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rsi
ret
Function at 0x1401b0270
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1401b0300
jmp 0x1401b02ef
jae 0x1401b03c0
cmp r8, 0x201
jae 0x1401b0300
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1401b0358
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1401b032f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1401e95b0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1401b0381
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1401b0428
mov r8d, r14d
cmp r15, r8
jne 0x1401b02e0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1401b044b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1401b02ef
jmp 0x1401b0300
cmp rsi, r8
jb 0x1401b0465
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1401b4ca0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x1401b0411
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400275e0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x1401b03f9
jmp 0x1401b0411
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1401ea970
jmp 0x1401b047a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1401eade0
ud2
Function at 0x1401b4a50
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x140163aa8
add rcx, 0x18
add rsp, 0x28
jmp 0x140185680
lea rcx, [0x1402427c0]
lea r8, str.C:Users123.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.35.0_srciopoll_evented.rs
mov edx, 0x2b
call fcn.1401ea970
ud2
jmp 0x1401b4a50
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
cmp r9, 0x7fffffff

Function at 0x1401b4b10
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
xor ecx, ecx

Function at 0x1401b4b70
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rax
call qword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x1401b4bc5
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
shr bl, 0x17
Function at 0x1401b9150
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.1401e07c0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov rbx, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r14, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r14
lea r15, [0x1401c0f70]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0xfb0]
mov rcx, rbx
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1401b9341
mov r12, qword [sym.imp.kernel32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov r13, qword [sym.imp.kernel32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], rbx
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x1401b9217
cmp dword [rbp + 0xff0], 0
jne 0x1401b9356
mov eax, dword [rbp + 0xff4]
test rax, rax
je 0x1401b9356
cmp eax, 0x1000
ja 0x1401b93a1
xor ebx, ebx
nop word cs:[rax + rax]
cmp rbx, rax
ja 0x1401b9386
lea rdx, [rbx + rbp]
add rdx, 0xffffffffffffffb0
mov rdi, rax
mov r8d, eax
sub r8d, ebx
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call r13
test eax, eax
je 0x1401b9349
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x1401b92c0
cmp dword [rbp + 0xff0], 0
jne 0x1401b934f
mov eax, dword [rbp + 0xff4]
add rbx, rax
mov rax, rdi
cmp rbx, rdi
jne 0x1401b9260
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rbx, qword [rbp + 0xfe0]
mov rcx, rbx
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x1401b9217
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1401b9356
call qword [sym.imp.kernel32.dll_GetLastError]
mov rbx, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, rbx
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rbx
mov qword [rbp + 0xfd0], rax
mov rdx, rax
call fcn.1401eae50
jmp 0x1401b93bc
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfd0], rax
mov rcx, rax
call fcn.1401eade0
ud2
Function at 0x1401bd1b0
Capabilities:
Move file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.1401c7d40
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
test rax, rax
je 0x1401bd2ea
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.1401bf920
mov rax, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
test rax, rax
je 0x1401bd2ea
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], rsi
lea rcx, [rbp - 0x18]
mov rdx, rbx
mov r8, rdi
call fcn.1401c7d40
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
test rax, rax
je 0x1401bd2c9
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.1401bf920
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
test rdi, rdi
je 0x1401bd2c9
mov r15, qword [rbp - 0x20]
mov rcx, r15
mov rdx, rdi
mov r8d, 1
call qword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
mov r14, qword [rbp - 0x28]
je 0x1401bd2fa
test rsi, rsi
je 0x1401bd2ac
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1400275e0
test r14, r14
je 0x1401bd2c5
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.1400275e0
xor esi, esi
jmp 0x1401bd2ea
mov r14, qword [rbp - 0x28]
mov r15, qword [rbp - 0x20]
test r14, r14
je 0x1401bd2ea
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1401bd323
add rsi, rsi
mov r8d, 2
add al, byte [rax]
add byte [rax], al
Function at 0x1401bdf50
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140281098]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1401bdf94
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1401bdff3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1401be002
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1401be03a
cmp eax, 0x103
je 0x1401be044
test eax, eax
js 0x1401be01f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1401be03a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x140281100]
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.1401a8d40
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.1401b3ec0
mov rcx, rax
call fcn.1401aa190
mov ecx, 7
int 0x29
ud2

Function at 0x1401be0a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140281098]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1401be0e4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1401be14a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1401be181
test eax, eax
js 0x1401be15b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1401be174
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x140281100]
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.1401a8d40
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.1401b3ec0
mov rcx, rax
call fcn.1401aa190
mov ecx, 7
int 0x29
ud2
Function at 0x1401be1e0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1401be235
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1401be2d1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x1401be249
cmp eax, 0x2739
jne 0x1401be29a
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1401be294
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x1401be2af
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1401be2d1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401be2d1
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x1401c0060
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x128
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x90], xmm6
mov qword [rbp + 0x88], 0xfffffffffffffffe
mov qword [rbp + 0x38], rcx
mov byte [rbp + 0x85], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x34], ecx
xor edi, edi
mov ebx, 8
mov sil, 1
xorps xmm6, xmm6
mov r14, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x18], rax
nop