joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140069250
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rbx, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call dbg.maybe_verbatim
mov rsi, qword [rsp + 0x20]
mov r15, qword [rsp + 0x28]
test r15, r15
je 0x1400692fe
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x20]
mov rdx, rdi
mov r8, rbx
call dbg.maybe_verbatim
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
test r14, r14
je 0x14006932e
mov rcx, r15
mov rdx, r14
mov r8d, 1
call sub.KERNEL32.dll_MoveFileExW
test eax, eax
je 0x140069303
test rbx, rbx
je 0x1400692e1
add rbx, rbx
mov r8d, 2
mov rcx, r14
mov rdx, rbx
call sym.__rust_dealloc
test rsi, rsi
je 0x1400692fa
add rsi, rsi
mov r8d, 2
mov rcx, r15
mov rdx, rsi
call sym.__rust_dealloc
xor ebx, ebx
jmp 0x140069347
mov rbx, rsi
jmp 0x140069347
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
test rbx, rbx
je 0x14006932b
add rbx, rbx
mov r8d, 2
mov rcx, r14
mov rdx, rbx
call sym.__rust_dealloc
mov rbx, rdi
test rsi, rsi
je 0x140069347
add rsi, rsi
mov r8d, 2
mov rcx, r15
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140069380
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call dbg.maybe_verbatim
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x1400693bb
mov rcx, rdi
call sub.KERNEL32.dll_RemoveDirectoryW
test eax, eax
je 0x1400693c0
xor ebx, ebx
test rsi, rsi
jne 0x1400693d4
jmp 0x1400693e8
mov rbx, rsi
jmp 0x1400693e8
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400693e8
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x14006a3b0
Capabilities:
Set file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call dbg.maybe_verbatim
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14006a3f0
mov rcx, rdi
mov edx, ebx
call sub.KERNEL32.dll_SetFileAttributesW
test eax, eax
je 0x14006a3f5
xor ebx, ebx
test rsi, rsi
jne 0x14006a409
jmp 0x14006a41d
mov rbx, rsi
jmp 0x14006a41d
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14006a41d
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x14006a6e0
Capabilities:
Copy file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rsi, r9
mov r12, rcx
lea rcx, [rsp + 0x38]
call dbg.maybe_verbatim
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x14006a796
mov r8, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov rdx, rsi
call dbg.maybe_verbatim
mov r14, qword [rsp + 0x38]
mov r15, qword [rsp + 0x40]
test r15, r15
je 0x14006a7a5
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [sym.std::sys::windows::fs::copy::callback::he15d036b9397dee4]
lea r9, [rsp + 0x38]
mov rcx, rbx
mov rdx, r15
call sub.KERNEL32.dll_CopyFileExW
test eax, eax
je 0x14006a7b4
mov rax, qword [rsp + 0x38]
mov qword [r12 + 8], rax
mov qword [r12], 0
test r14, r14
jne 0x14006a7d3
jmp 0x14006a7e7
mov qword [r12 + 8], rdi
mov qword [r12], 1
jmp 0x14006a800
mov qword [r12 + 8], r14
mov qword [r12], 1
jmp 0x14006a7e7
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [r12 + 8], rax
mov qword [r12], 1
test r14, r14
je 0x14006a7e7
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call sym.__rust_dealloc
test rdi, rdi
je 0x14006a800
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
mov rax, r12
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14006adf0
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rax, r8
mov rsi, rcx
mov r10, qword [rsp + 0x60]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdx]
mov qword [rsp + 0x20], r10
lea r9, [rsp + 0x2c]
mov rdx, rax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x14006ae46
mov eax, dword [rsp + 0x2c]
mov qword [rsi], 1
mov qword [rsi + 8], rax
mov rax, rsi
add rsp, 0x30
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x14006ae60
cmp eax, 0x3e5
jne 0x14006ae6c
mov qword [rsi], 0
jmp 0x14006ae3d
movaps xmm0, xmmword [0x1400ec990]
movups xmmword [rsi], xmm0
jmp 0x14006ae3d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 2
jmp 0x14006ae3d
Function at 0x14006b9b0
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 sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14006ba04
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14006ba9a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x14006ba17
cmp eax, 0x2739
jne 0x14006ba65
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14006ba60
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x14006ba7a
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x14006ba9a
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14006ba9a
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call fcn.1400e255c
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14006be90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x14006bece
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14006bef5
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14006bee2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14006bef5
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov rsi, rcx
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
mov rcx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x38]
mov rdx, rax
call sub.WS2_32.dll_WSARecv
test eax, eax
je 0x14006bf62
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14006bf73
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14006bf86
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14006bf86
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x40
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
mov r9d, 2
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x14006bfd1
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14006bff8
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14006bfe5
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14006bff8
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret
Function at 0x14006c010
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov r10d, dword [rsp + 0x100]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x3c], pe_nt_image_headers64
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
lea rcx, [rsp + 0x3c]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, rax
mov r9d, r10d
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x14006c0dc
mov ecx, dword [rsp + 0x3c]
movzx edx, word [rsp + 0x40]
cmp edx, 0x17
je 0x14006c133
cmp edx, 2
jne 0x14006c12a
cmp ecx, 0x10
jb 0x14006c202
movzx ecx, word [rsp + 0x42]
mov edx, dword [rsp + 0x44]
rol cx, 8
movzx ecx, cx
shl rcx, 0x20
or rcx, rdx
xor edi, edi
jmp 0x14006c165
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14006c18f
mov eax, dword [rsp + 0x3c]
movzx ecx, word [rsp + 0x40]
cmp ecx, 0x17
je 0x14006c1a2
cmp ecx, 2
jne 0x14006c12a
cmp eax, 0x10
jb 0x14006c202
movzx eax, word [rsp + 0x42]
mov ecx, dword [rsp + 0x44]
rol ax, 8
movzx eax, ax
shl rax, 0x20
or rax, rcx
xor edi, edi
jmp 0x14006c1cf
lea rax, str.invalid_argument82
jmp 0x14006c197
cmp ecx, 0x1c
jb 0x14006c21c
movzx edx, word [rsp + 0x42]
mov r8d, dword [rsp + 0x44]
mov r9d, dword [rsp + 0x58]
rol dx, 8
mov ecx, dword [rsp + 0x48]
shl rcx, 0x10
mov r10, qword [rsp + 0x4c]
mov di, 1
mov r11d, dword [rsp + 0x54]
cdqe
mov qword [rsi], rax
mov word [rsi + 8], di
mov dword [rsi + 0xa], ecx
shr rcx, 0x20
mov word [rsi + 0xe], cx
mov qword [rsi + 0x10], r10
mov dword [rsi + 0x18], r11d
mov dword [rsi + 0x1c], r8d
mov dword [rsi + 0x20], r9d
mov word [rsi + 0x24], dx
jmp 0x14006c1f8
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov word [rsi + 8], 2
jmp 0x14006c1f8
cmp eax, 0x1c
jb 0x14006c21c
movzx ecx, word [rsp + 0x42]
mov r8d, dword [rsp + 0x44]
mov r9d, dword [rsp + 0x58]
rol cx, 8
mov eax, dword [rsp + 0x48]
shl rax, 0x10
mov r10, qword [rsp + 0x4c]
mov di, 1
mov edx, dword [rsp + 0x54]
mov qword [rsi], 0
mov word [rsi + 8], di
mov dword [rsi + 0xa], eax
shr rax, 0x20
mov word [rsi + 0xe], ax
mov qword [rsi + 0x10], r10
mov dword [rsi + 0x18], edx
mov dword [rsi + 0x1c], r8d
mov dword [rsi + 0x20], r9d
mov word [rsi + 0x24], cx
add rsp, 0xc8
pop rdi
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
lea r8, [0x1400f3328]
mov edx, 0x42
call dbg.panic
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___library_std_src_sys_common_net.rs
lea r8, [0x1400f32c8]
mov edx, 0x43
call dbg.panic
ud2
Function at 0x14006c240
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x3c], 0
mov rcx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rax
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x14006c291
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14006c2a7
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x40
pop rsi
ret

Function at 0x14006c2c0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r10d, r10d
cmp r8d, 0x3b9aca00
je 0x14006c32c
mov r10d, 0x3e8
mov rax, rdx
mul r10
mov r10d, 0xffffffff
jo 0x14006c32c
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14006c32c
imul edx, edx, 0xf4240
sub r8d, edx
mov rdx, rax
inc rdx
sete r11b
test r8d, r8d
setne r8b
cmove rdx, rax
and r8b, r11b
jne 0x14006c32c
mov r10d, 0xffffffff
cmp rdx, r10
cmovb r10, rdx
test r10, r10
je 0x14006c36f
mov rcx, qword [rcx]
mov dword [rsp + 0x34], r10d
mov dword [rsp + 0x20], 4
lea rax, [rsp + 0x34]
mov edx, 0xffff
mov r8d, r9d
mov r9, rax
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14006c35d
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

Function at 0x14006c460
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
movzx eax, dl
mov dword [rsp + 0x24], eax
mov rcx, qword [rcx]
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x14006c489
xor eax, eax
add rsp, 0x28
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret

Function at 0x14006c4a0
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
xor esi, esi
xor eax, eax
cmp r8d, 0x3b9aca00
cmove edx, esi
setne al
mov rcx, qword [rcx]
mov word [rsp + 0x28], ax
mov word [rsp + 0x2a], dx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x28]
mov edx, 0xffff
mov r8d, pe_nt_image_headers64
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x14006c4f4
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x14006c580
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
movzx eax, dl
mov rcx, qword [rcx]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14006c5b7
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x14006c650
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
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x14006c691
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14006c6b8
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14006c6a5
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14006c6b8
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14006d120
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
sub rsp, 0x58
add rdx, rcx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rcx
mov word [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x40]
call dbg.from_iter<u16, std::sys_common::wtf8::EncodeWide>
mov rdx, qword [rsp + 0x38]
cmp rdx, qword [rsp + 0x28]
jne 0x14006d164
lea rcx, [rsp + 0x28]
call dbg.reserve_for_push<u16, alloc::alloc::Global>
mov rdx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov word [rsi + rdx*2], 0
mov rcx, rsi
call sub.KERNEL32.dll_SetCurrentDirectoryW
test eax, eax
je 0x14006d1a2
xor edi, edi
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14006d198
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call sym.__rust_dealloc
mov rax, rdi
add rsp, 0x58
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rdx, qword [rsp + 0x28]
test rdx, rdx
jne 0x14006d187
jmp 0x14006d198
Function at 0x14006fda0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14006feab
mov rsi, rcx
mov rbx, qword [rdi + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x14006fdd7
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14006fe70
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14006fe8e
sub rax, rdx
add rdx, qword [rbx + 8]
mov rbx, qword [rdi + 0x20]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x14006fe2d
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14006fe49
jmp 0x14006fe3e
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x14006fe44
cmp eax, 0x6d
jne 0x14006fe60
mov byte [rsi + 1], 0
jmp 0x14006fe54
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14006fe56
mov r8d, 0x10
mov rcx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h322975b10a0521ae
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14006fde4
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h322975b10a0521ae
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14006fde4
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call dbg.assert_failed<std::sys::windows::pipe::State, std::sys::windows::pipe::State>
ud2
Function at 0x140074540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
lea rcx, [rsp + 0x20]
call dbg.maybe_verbatim
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x140074584
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1400745df
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x1400745d5
mov rbx, qword [rsp + 0x20]
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x1400745cd
lea rdi, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400745ba
mov r8, qword [rax + 0x10]
mov rcx, qword [rdi]
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov qword [rsi + 8], 0
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsi + 8], 0
test rbx, rbx
je 0x1400745d5
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp sym.__rust_dealloc

Function at 0x140075020
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140075056
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
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 + 0x40], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h600cd89747de4836]
mov qword [rsp + 0x48], rax
lea rax, [0x1400f24e8]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call dbg.panic_fmt
ud2

Function at 0x140075e80
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140075f46
mov rsi, rax
mov qword [rax], rdi
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [dbg.thread_start]
xor ebx, ebx
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rcx, rax
test rax, rax
jne 0x140075f36
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
call qword [rax]
mov rax, qword [rsi + 8]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140075f0f
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call sym.__rust_dealloc
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
shl rcx, 0x20
or rcx, 2
mov ebx, 1
mov rax, rbx
mov rdx, rcx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 0x10
mov edx, 8
call dbg.handle_alloc_error
ud2
Function at 0x1400761d0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14007624e
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x14007628f
cmp dword [rsp + 0x2c], 0
je 0x140076273
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400762b7
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14012e1b0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14012e1b0], rsi
jne 0x140076230
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140076285
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14007630d
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140076278
mov edi, dword [rsp + 0x28]
jmp 0x140076285
mov edi, dword [rsi + 0x18]
jmp 0x140076283
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x40], 0
lea rdx, [0x1400f29e0]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x30], 0
lea rax, str.capacity_overflow
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call dbg.panic_fmt
ud2
mov qword [rsp + 0x30], 0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, str.capacity_overflow
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call dbg.assert_failed<u32, u32>
ud2