joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005bc10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
lea rcx, [0x1401010d8]
jmp 0x14005cfc0
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14005d067
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14005d05f
je 0x14005d000
test rdi, rdi
je 0x14005d004
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x14005d006
mov rbx, qword [rdi + 8]
jmp 0x14005d006
xor eax, eax
jmp 0x14005d05f
xor ebx, ebx
mov rax, qword [0x140457a18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140008a30
test rax, rax
je 0x14005d081
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14005d05c
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140008a40
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400b7a70
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005cfe4
jmp 0x14005d05f
mov ecx, 8
mov edx, 0x10
call fcn.1400dc220
int3

Function at 0x14005caf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rcx, qword [0x1401011e0]
xor edx, edx
jmp 0x14005d0a0
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14005d187
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14005d17f
je 0x14005d17d
test rbx, rbx
je 0x14005d0e4
mov rdi, qword [rbx + 8]
cmp qword [rbx], 0
mov qword [rbx], 0
jne 0x14005d0f4
call fcn.1400649b0
mov rcx, rax
call fcn.1400645b0
mov rdi, rax
mov rax, qword [0x140457a18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140008a30
test rax, rax
je 0x14005d1a1
mov qword [rax], rdi
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14005d178
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x820]
lea rdx, [rax - 1]
mov qword [rcx + 0x820], rdx
cmp qword [rcx + 0x818], 0
jne 0x14005d165
cmp rax, 1
jne 0x14005d165
call fcn.140065c70
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140008a40
mov rax, rsi
jmp 0x14005d17f
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400b7a70
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005d0c8
jmp 0x14005d17f
mov ecx, 8
mov edx, 0x10
call fcn.1400dc220
ud2
Function at 0x14005cfc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
lea rcx, [0x1401010d8]
jmp 0x14005cfc0
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14005d067
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14005d05f
je 0x14005d000
test rdi, rdi
je 0x14005d004
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x14005d006
mov rbx, qword [rdi + 8]
jmp 0x14005d006
xor eax, eax
jmp 0x14005d05f
xor ebx, ebx
mov rax, qword [0x140457a18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140008a30
test rax, rax
je 0x14005d081
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14005d05c
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140008a40
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400b7a70
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005cfe4
jmp 0x14005d05f
mov ecx, 8
mov edx, 0x10
call fcn.1400dc220
int3

Function at 0x14005d0a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rcx, qword [0x1401011e0]
xor edx, edx
jmp 0x14005d0a0
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14005d187
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14005d17f
je 0x14005d17d
test rbx, rbx
je 0x14005d0e4
mov rdi, qword [rbx + 8]
cmp qword [rbx], 0
mov qword [rbx], 0
jne 0x14005d0f4
call fcn.1400649b0
mov rcx, rax
call fcn.1400645b0
mov rdi, rax
mov rax, qword [0x140457a18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140008a30
test rax, rax
je 0x14005d1a1
mov qword [rax], rdi
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14005d178
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x820]
lea rdx, [rax - 1]
mov qword [rcx + 0x820], rdx
cmp qword [rcx + 0x818], 0
jne 0x14005d165
cmp rax, 1
jne 0x14005d165
call fcn.140065c70
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140008a40
mov rax, rsi
jmp 0x14005d17f
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400b7a70
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005d0c8
jmp 0x14005d17f
mov ecx, 8
mov edx, 0x10
call fcn.1400dc220
ud2

Function at 0x1400616a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rcx, qword [0x1404578f8]
xor edx, edx
jmp 0x14005cfc0
Function at 0x140089b70
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call sub.kernel32.dll_GetSystemInfo
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret

Function at 0x14008ae80
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3c8], rcx
mov qword [rbp + 0x3d0], 0
mov qword [rbp + 0x3d8], 2
mov qword [rbp + 0x3e0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c0], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14008af10
jmp 0x14008aeff
jae 0x14008afcb
cmp r8, 0x201
jae 0x14008af10
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x14008af67
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x14008af3f
lea rcx, [rbp + 0x3d0]
mov rdx, rbx
call fcn.140078aa0
mov rsi, qword [rbp + 0x3d0]
mov rax, qword [rbp + 0x3d8]
mov qword [rbp + 0x3c0], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e0], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c0]
mov r12, rbx
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.kernel32.dll_GetCurrentDirectoryW
mov r13d, eax
test eax, eax
jne 0x14008af8d
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14008b037
mov r8d, r13d
cmp r12, r8
jne 0x14008aef0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14008b06a
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14008aeff
jmp 0x14008af10
cmp r14, r8
jb 0x14008b084
lea rcx, [rbp + 0x3a0]
mov rdx, r15
call fcn.140099070
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
mov rsi, qword [rbp + 0x3c8]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d0]
test rdx, rdx
je 0x14008b020
mov rcx, qword [rbp + 0x3d8]
add rdx, rdx
mov r8d, 2
call fcn.140008a40
mov rax, rsi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3c8]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d0]
test rdx, rdx
jne 0x14008b00b
jmp 0x14008b020
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400e9040
jmp 0x14008b099
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.1400ef270
ud2
Function at 0x1400a00b0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1400dcc80
mov rdx, qword [rbp - 0x28]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x1400a0137
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400a016a
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400a017e
lea rax, str.XC_
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x1400a019e
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140008a40
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x1400a019e
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140008a40
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x1400a0910
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10a8
call fcn.1400fe650
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1010], xmm6
mov rsi, rdx
mov rdi, rcx
lea r15, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r15
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea r14, [0x1400abef0]
lea r12, [rbp + 0xfb0]
mov qword [rbp + 0x1008], rdi
mov r8d, 0x1000
mov rcx, rdi
mov rdx, r15
call fcn.1400ab6f0
mov r13, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x1400a0adc
test r13, r13
je 0x1400a0ab1
cmp r13, 0x1000
ja 0x1400a0afe
mov rdi, r15
xor r15d, r15d
nop dword [rax + rax]
mov r8d, r13d
sub r8d, r15d
lea rdx, [r15 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r9, r12
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x1400a0a7f
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rbp + 0xffc], 0
je 0x1400a0a10
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 0x1400a0a9e
add r15, rax
cmp r15, r13
je 0x1400a0a70
jbe 0x1400a09c0
jmp 0x1400a0aea
mov r15, rdi
mov rdi, qword [rbp + 0x1008]
jmp 0x1400a0971
call sub.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.140069970
mov rdi, qword [rbp + 0x1008]
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rbp + 0x1010]
add rsp, 0x10a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfe0]
call fcn.140069970
jmp 0x1400a0ab1
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r15
mov rdx, r13
call fcn.1400ef2e0
jmp 0x1400a0b12
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r13
call fcn.1400ef270
ud2
Function at 0x1400a5aa0
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rbp - 0x10]
call fcn.1400b34c0
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
cmp rax, rbx
je 0x1400a5b00
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.1400b59b0
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x1400a5b0c
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x1400a5b37
test rdi, rdi
je 0x1400a5b62
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140008a40
xor eax, eax
jmp 0x1400a5b03
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x1400a5b03
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.140008a40
jmp 0x1400a5b00
xor eax, eax
jmp 0x1400a5b03

Function at 0x1400a8960
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140438d90]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1400a8998
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 sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1400a89ed
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x1400a89fa
xor edx, edx
xor eax, eax
jmp 0x1400a8a23
cmp eax, 0x103
je 0x1400a8a2d
test eax, eax
js 0x1400a8a0d
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400a8a23
mov ecx, eax
call sub.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, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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.140096de0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14006a890
mov ecx, 7
int 0x29
ud2
Function at 0x1400a8a80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140438d90]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1400a8ab8
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 sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x1400a8b14
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0x103
je 0x1400a8b40
test eax, eax
js 0x1400a8b20
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400a8b36
mov ecx, eax
call sub.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, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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.140096de0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14006a890
mov ecx, 7
int 0x29
ud2

Function at 0x1400a9130
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 sub.ws2_32.dll_WSASocketW
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a920a
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x1400a9196
mov esi, eax
cmp eax, 0x2726
jne 0x1400a91fd
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1400a91f6
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x1400a920a
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call sub.ws2_32.dll_closesocket
mov ebx, 1
mov rsi, rdi
jmp 0x1400a920a
call sub.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 0x1400a92b0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x448
lea rbp, [rsp + 0x80]
mov ebx, r9d
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov dword [rbp + 0x1b0], 1
mov rdi, qword [rcx]
lea r8, [rbp + 0x1b0]
mov rcx, rdi
mov edx, 0x8004667e
call sub.ws2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x1400a931f
cmp word [r15], 0
je 0x1400a9334
movups xmm0, xmmword [r15 + 4]
mov eax, dword [r15 + 0x14]
mov edx, dword [r15 + 0x18]
movzx ecx, word [r15 + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1400a934b
call sub.ws2_32.dll_WSAGetLastError
mov r15d, eax
shl r15, 0x20
mov eax, dword [r15 + 2]
movzx ecx, word [r15 + 6]
xorps xmm0, xmm0
mov r8d, 0x10
mov r9w, 2
rol cx, 8
mov word [rbp + 0x1b0], r9w
Function at 0x1400a98e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov r10, r8
mov rsi, rcx
mov eax, dword [rbp + 0x80]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp + 0x3c], pe_nt_image_headers64
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
lea rcx, [rbp + 0x3c]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, r10
mov r9d, eax
call sub.ws2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x1400a9994
mov ecx, dword [rbp + 0x3c]
movzx edx, word [rbp - 0x50]
cmp edx, 0x17
je 0x1400a99e8
cmp edx, 2
jne 0x1400a99df
cmp ecx, 0xf
jbe 0x1400a9aae
mov ecx, dword [rbp - 0x4c]
movzx edx, word [rbp - 0x4e]
rol dx, 8
movzx edx, dx
shl rdx, 0x20
or rdx, rcx
xor edi, edi
jmp 0x1400a9a14
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400a9a3e
mov eax, dword [rbp + 0x3c]
movzx ecx, word [rbp - 0x50]
cmp ecx, 0x17
je 0x1400a9a51
cmp ecx, 2
jne 0x1400a99df
cmp eax, 0xf
jbe 0x1400a9aae
mov eax, dword [rbp - 0x4c]
movzx ecx, word [rbp - 0x4e]
rol cx, 8
movzx ecx, cx
shl rcx, 0x20
or rcx, rax
xor r11d, r11d
jmp 0x1400a9a79
lea rax, str.invalid_argument
jmp 0x1400a9a46
cmp ecx, 0x1b
jbe 0x1400a9ac6
movzx ecx, word [rbp - 0x4e]
rol cx, 8
mov r9d, dword [rbp - 0x4c]
mov r8d, dword [rbp - 0x38]
mov edx, dword [rbp - 0x48]
shl rdx, 0x10
mov r11, qword [rbp - 0x44]
mov di, 1
mov r10d, dword [rbp - 0x3c]
cdqe
mov qword [rsi], rax
mov word [rsi + 8], di
mov dword [rsi + 0xa], edx
shr rdx, 0x20
mov word [rsi + 0xe], dx
mov qword [rsi + 0x10], r11
mov dword [rsi + 0x18], r10d
mov dword [rsi + 0x1c], r9d
mov dword [rsi + 0x20], r8d
mov word [rsi + 0x24], cx
jmp 0x1400a9aa3
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov word [rsi + 8], 2
jmp 0x1400a9aa3
cmp eax, 0x1b
jbe 0x1400a9ac6
movzx eax, word [rbp - 0x4e]
rol ax, 8
mov r8d, dword [rbp - 0x4c]
mov edx, dword [rbp - 0x38]
mov ecx, dword [rbp - 0x48]
shl rcx, 0x10
mov r10, qword [rbp - 0x44]
mov r11w, 1
mov r9d, dword [rbp - 0x3c]
mov qword [rsi], 0
mov word [rsi + 8], r11w
mov dword [rsi + 0xa], ecx
shr rcx, 0x20
mov word [rsi + 0xe], cx
mov qword [rsi + 0x10], r10
mov dword [rsi + 0x18], r9d
mov dword [rsi + 0x1c], r8d
mov dword [rsi + 0x20], edx
mov word [rsi + 0x24], ax
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x140439eb0]
mov edx, 0x39
call fcn.1400e9040
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, [0x140439f08]
mov edx, 0x3a
call fcn.1400e9040
int3
Function at 0x1400ac300
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1400ac441
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x1400ac416
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x38], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x1400ac37f
mov eax, dword [rbp - 0x38]
mov ecx, 2
test rax, rax
je 0x1400ac3c0
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x1400ac3c4
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x38], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x1400ac3c8
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x1400ac3f2
mov rax, rbp
jmp 0x1400ac3d4
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400ac3f8
mov qword [rbp], 1
lea rax, [rbp - 8]
mov qword [rax], 0
lea rcx, [rbp - 0x38]
call fcn.140069970
mov rcx, qword [rbp]
mov rax, qword [rbp - 8]
cmp rcx, 2
jne 0x1400ac403
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x1400ac368
mov ecx, 1
jmp 0x1400ac372
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov rcx, rbx
mov rdx, r8
mov r8, rax
call fcn.140078950
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1400ac331
mov qword [rbp - 0x38], 0
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.140072140
int3