joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140171b70
Capabilities:
Get number of processors

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r9
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x38], rdx
mov rsi, rcx
mov eax, dword [0x140318148]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0xc8]
cmp eax, 1
je 0x140171bfd
test eax, eax
jne 0x140171d5f
mov byte [rbp - 9], 1
mov eax, dword [0x140318148]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x80]
lea rdx, [0x1401626f0]
call case.0x1401bdf56.407
mov eax, dword [0x140318148]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0xc8], 1
mov eax, dword [0x140318148]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x98]
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x140171d19
lea rcx, [rax + 1]
mov edx, dword [0x140318148]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
mov qword [rdx + 0x98], rcx
mov rcx, qword [rdx + 0xa0]
test rcx, rcx
je 0x140171d2b
lock inc qword [rcx]
jle 0x140171d74
mov eax, dword [0x140318148]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
dec qword [rax + 0x98]
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rcx
cmp qword [rcx + 0xb8], 0
je 0x140171d49
add rcx, 0xb8
lea rdx, [rbp - 0x28]
mov r8d, 3
call fcn.14016df90
test rax, rax
je 0x140171cfe
mov rax, qword [rbp - 0x18]
lock dec qword [rax]
jne 0x140171cd2
lea rcx, [rbp - 0x18]
mov rdi, rdx
call fcn.140178540
mov rdx, rdi
mov qword [rsi + 8], rdx
mov qword [rsi], 0
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x30], rax
mov rcx, qword [rbp - 0x20]
call fcn.140171a00
mov byte [rbp - 9], 0
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x140171d11
mov rax, qword [rbp - 0x18]
movups xmm0, xmmword [rbp - 0x28]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
movups xmmword [rsi + 0x10], xmm0
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov byte [rbp - 9], 1
lea rcx, str.C:Usersdd.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.38.0_src_runtimecontextcurrent.rs
call fcn.1401e1590
jmp 0x140171d74
mov ecx, dword [0x140318148]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov qword [rcx + 0x98], rax
xor eax, eax
jmp 0x140171d61
lea rcx, str.A_Tokio_1.x_context_was_found__but_IO_is_disabled._Call__enable_io__on_the_runtime_builder_to_enable_IO.A_Tokio_1.x_context_was_found__but_timers_are_disabled._Call__enable_time__on_the_runtime_builder_to_enable_timers.Oh_no__We_never_placed_the_Core_back__this_is_a_bug_
mov edx, 0x68
mov r8, rdi
call fcn.1401e1610
jmp 0x140171d74
mov al, 1
mov byte [rbp - 0x28], al
mov byte [rbp - 9], 1
lea rcx, [rbp - 0x28]
mov rdx, rdi
call fcn.1401dea60
ud2
Function at 0x140171ef0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x10], 0xffffffffffffffff
je 0x140171f08
add rcx, 0x10
add rsp, 0x28
jmp 0x14017e0b0
lea rcx, str.C:Usersdd.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.38.0_srciopoll_evented.rs
call fcn.1401e15f0
int3
jmp 0x1401acaa0
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rbp - 4], eax
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401acadd
xor eax, eax
add rsp, 0x30
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret

Function at 0x14017ad70
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
mov r8d, dword [rdx + 0x80]
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x14017ad9a
call fcn.1401b5830
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x14017adb0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x14017adda
xor eax, eax
add rsp, 0x28
ret
call fcn.1401b5830
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret

Function at 0x14017adf0
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x14017adf0
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1002
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14017ae25
xor eax, eax
add rsp, 0x38
ret
call fcn.1401b5830
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x14017ae40
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14017ae40
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, 0xffff
mov r8d, 4
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14017ae78
xor eax, eax
add rsp, 0x38
ret
call fcn.1401b5830
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x14017ae90
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x14017ae90
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14017aec5
xor eax, eax
add rsp, 0x38
ret
call fcn.1401b5830
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x14017aee0
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rdi, rdx
mov rsi, qword [rcx]
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14017b007
mov r9d, dword [rdi + 8]
xor ecx, ecx
mov r8d, 0
cmp r9d, 0x3b9aca00
je 0x14017af68
mov eax, 0x3e8
mul qword [rdi]
mov r8d, r9d
imul r9, r8, 0x431bde83
shr r9, 0x32
add r9, rax
adc rdx, 0
mov eax, 0xffffffff
cmp r9, rax
cmovae r9, rax
xor r8d, r8d
neg rdx
sbb r8d, r8d
or r8d, r9d
mov r9d, dword [rdi + 0x18]
cmp r9d, 0x3b9aca00
je 0x14017afa9
mov eax, 0x3e8
mul qword [rdi + 0x10]
mov ecx, r9d
imul r9, rcx, 0x431bde83
shr r9, 0x32
add r9, rax
adc rdx, 0
mov eax, 0xffffffff
cmp r9, rax
cmovae r9, rax
xor ecx, ecx
neg rdx
sbb ecx, ecx
or ecx, r9d
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x50], ecx
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 rcx, rsi
mov edx, 0x98000004
mov r9d, 0xc
call qword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x14017b007
xor eax, eax
jmp 0x14017b014
call fcn.1401b5830
shl rax, 0x20
or rax, 2
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x14019dfb0
Capabilities:
Get session user name

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov dword [rbp - 4], 0
lea rdx, [rbp - 4]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14019e0f0
call fcn.1401b5830
mov edi, eax
mov rcx, rdi
shl rcx, 0x20
or rcx, 2
call fcn.1400111e0
cmp edi, 0x7a
jne 0x14019e031
mov ebx, dword [rbp - 4]
test rbx, rbx
je 0x14019e054
lea rdi, [rbx + rbx]
movzx eax, byte [0x140317f91]
mov edx, 2
mov rcx, rdi
call fcn.14001a230
test rax, rax
jne 0x14019e059
mov ecx, 2
mov rdx, rdi
call fcn.1401e13b0
call fcn.1401b5830
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x14019e0e4
mov eax, 2
mov qword [rbp - 0x10], rbx
mov dword [rbp - 4], ebx
lea rdx, [rbp - 4]
mov qword [rbp - 0x18], rax
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14019e083
mov r8d, dword [rbp - 4]
test r8, r8
je 0x14019e0ab
dec r8
jmp 0x14019e0ae
call fcn.1401b5830
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp - 0x10]
test edx, edx
jne 0x14019e0d2
jmp 0x14019e0e4
xor r8d, r8d
lea rcx, [rbp - 0x38]
mov rdx, qword [rbp - 0x18]
call fcn.1401acce0
movups xmm0, xmmword [rbp - 0x38]
movups xmm1, xmmword [rbp - 0x28]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp - 0x10]
test edx, edx
je 0x14019e0e4
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp - 0x18]
call fcn.14001a240
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1402ab559]
lea r8, [0x1402ab5d0]
mov edx, 0x16
call fcn.1401e16f0
int3

Function at 0x14019e150
Capabilities:
Get hostname

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov dword [rbp - 4], 0
lea r8, [rbp - 4]
mov ecx, 5
xor edx, edx
call sub.kernel32.dll_GetComputerNameExW
mov ebx, dword [rbp - 4]
test rbx, rbx
mov qword [rbp - 0x10], rbx
je 0x14019e1b1
lea rdi, [rbx + rbx]
movzx eax, byte [0x140317f91]
mov edx, 2
mov rcx, rdi
call fcn.14001a230
test rax, rax
je 0x14019e23e
mov rdx, rax
jmp 0x14019e1b6
mov edx, 2
lea r8, [rbp - 4]
mov ecx, 5
mov qword [rbp - 0x18], rdx
call sub.kernel32.dll_GetComputerNameExW
test eax, eax
je 0x14019e212
mov r8d, dword [rbp - 4]
lea rcx, [rbp - 0x38]
mov rdx, qword [rbp - 0x18]
call fcn.1401acce0
movups xmm0, xmmword [rbp - 0x38]
movups xmm1, xmmword [rbp - 0x28]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp - 0x10]
test edx, edx
mov rcx, qword [rbp - 0x18]
je 0x14019e206
add rdx, rdx
mov r8d, 2
call fcn.14001a240
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.1401b5830
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp - 0x10]
test edx, edx
mov rcx, qword [rbp - 0x18]
jne 0x14019e1f8
jmp 0x14019e206
mov ecx, 2
mov rdx, rdi
call fcn.1401e13b0
int3
Function at 0x1401a95c0
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 + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1401a9660
jmp 0x1401a964f
jae 0x1401a971f
cmp r8, 0x201
jae 0x1401a9660
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1401a96b7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1401a968f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.1401e00a0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1401a96e0
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1401a978b
mov r8d, r13d
cmp r12, r8
jne 0x1401a9640
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1401a97bf
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1401a964f
jmp 0x1401a9660
cmp r14, r8
jb 0x1401a97d9
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.1401acce0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x1401a9774
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.14001a240
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 + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x1401a975f
jmp 0x1401a9774
lea rcx, [0x1402ac568]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1401e16f0
jmp 0x1401a97ee
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1401e1ac0
ud2
Function at 0x1401acaa0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x10], 0xffffffffffffffff
je 0x140171f08
add rcx, 0x10
add rsp, 0x28
jmp 0x14017e0b0
lea rcx, str.C:Usersdd.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.38.0_srciopoll_evented.rs
call fcn.1401e15f0
int3
jmp 0x1401acaa0
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rbp - 4], eax
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401acadd
xor eax, eax
add rsp, 0x30
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, qword [rcx]
mov rcx, qword [rax]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1401acb35
movsxd rdx, eax
xor ecx, ecx
jmp 0x1401acb59
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x1401acb59
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, qword [rcx]
mov rcx, qword [rax]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x1401acba9
movsxd rdx, eax
xor eax, eax
add rsp, 0x20
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
push rsi
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov rax, qword [rcx]
mov rcx, qword [rax]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rbp + 4], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 4]
call qword [sym.imp.ws2_32.dll_WSASend]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1401acc23
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
xor ecx, ecx
cmp esi, 0xffffffff
sete cl
mov edx, dword [rbp + 4]
cmove rdx, rax
mov rax, rcx
add rsp, 0x48
pop rsi
pop rbp
ret
Function at 0x1401b0de0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.1401d7f70
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r15, rcx
lea r12, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xffc]
lea rbx, [0x1401b71a0]
lea r14, [rbp + 0xfb0]
mov rsi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1010], r15
mov r8d, 0x1000
mov rcx, r15
mov rdx, r12
call fcn.1401b6cd0
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x1401b0fd0
test r15, r15
je 0x1401b0f9c
cmp r15, 0x1000
ja 0x1401b0ff2
xor r12d, r12d
nop word cs:[rax + rax]
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0x1008]
mov r9, r14
call rsi
test eax, eax
je 0x1401b0f70
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x1401b0f00
mov ecx, dword [rbp + 0x1000]
mov eax, dword [rbp + 0x1004]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xfe8], r8
mov qword [rbp + 0xff0], rdx
jne 0x1401b0f90
add r12, rax
cmp r12, r15
je 0x1401b0f60
jbe 0x1401b0eb0
jmp 0x1401b0fde
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x1401b0e5e
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe8], 1
mov qword [rbp + 0xff0], rax
lea rcx, [rbp + 0xff0]
call fcn.1401a3360
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfe0]
call fcn.1401a3360
jmp 0x1401b0f9c
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.1401e1ad0
jmp 0x1401b1006
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.1401e1ac0
ud2
Function at 0x1401b54f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1402ae780]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1401b5528
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1401b557f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x1401b558c
xor edx, edx
xor eax, eax
jmp 0x1401b55b6
cmp eax, 0x103
je 0x1401b55c0
test eax, eax
js 0x1401b559f
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1401b55b6
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x1402ae7e8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1401ac200
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1401a3a60
mov ecx, 7
int 0x29
ud2

Function at 0x1401b5610
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1402ae780]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1401b5648
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1401b56a6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x1401b56d3
test eax, eax
js 0x1401b56b2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1401b56c9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x1402ae7e8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1401ac200
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1401a3a60
mov ecx, 7
int 0x29
ud2
Function at 0x1401b5730
Capabilities:
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov r14d, 0x17
cmove r14d, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, r14d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401b5811
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1401b5798
mov esi, eax
cmp eax, 0x2726
jne 0x1401b5804
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1401b57fc
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x1401b5811
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov ebx, 1
mov rsi, rdi
jmp 0x1401b5811
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x1401b6300
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x60], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x5c], ecx
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor edi, edi
xor eax, eax
mov qword [rbp - 8], rax
nop word cs:[rax + rax]
Function at 0x1401b7690
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1401b7800
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x1401b76cd
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1401b77c5
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1401b77e3
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rbp + 4], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rbp + 4]
mov r8d, eax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x1401b772c
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x1401b776f
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x1401b7773
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x1401b7777
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x1401b77a1
lea rax, [rbp - 8]
jmp 0x1401b7783
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1401b77a7
mov qword [rbp - 8], 1
lea rax, [rbp - 0x10]
mov qword [rax], 0
lea rcx, [rbp - 0x40]
call fcn.1401a3360
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
cmp rcx, 2
jne 0x1401b77b2
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x1401b7715
mov ecx, 1
jmp 0x1401b771f
mov r8d, 0x10
mov rcx, rbx
call fcn.1401e02a0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x1401b76da
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1401e02a0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1401b76da
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.1401dffd0
int3
Function at 0x1401bbc00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1401be0c0
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
movabs r14, 0x8000000000000000
cmp rcx, r14
jne 0x1401bbc3e
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], r14
jmp 0x1401bbc64
mov rdx, qword [rbp - 0x18]