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

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140095c01
xor eax, eax
jmp 0x140095c06
call fcn.1400409a9
nop
add rsp, 0x38
ret

Function at 0x140095cce
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov r8d, dword [rdx + 0x80]
call sub.ws2_32.dll_connect
test eax, eax
je 0x140095ceb
add rsp, 0x28
jmp fcn.1400409a9
xor eax, eax
add rsp, 0x28
ret

Function at 0x140095dc0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x140095e55
mov rax, qword [0x140178038]
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x140095e94
cmp dword [rbp], 0
je 0x140095e78
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140095eb7
mov edi, eax
mov rax, qword [0x140175108]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140175108], rsi
jne 0x140095e30
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140095e89
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x140095ef9
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140095e7d
mov edi, dword [rbp + 4]
jmp 0x140095e89
mov edi, dword [rsi + 0x18]
jmp 0x140095e87
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rdx, [0x140138928]
lea r9, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 4]
lea r8, [rbp - 0x38]
call fcn.140096bc0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 0x38]
call fcn.140005270
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.140096c00
int3
Function at 0x140096680
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140138688]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x1400966ef
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14009671b
test eax, eax
js 0x1400966fb
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140096711
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, [0x1401386f0]
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.140095f90
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140096040
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1400de100]
test ecx, ecx
je 0x140097d51
dec ecx
call fcn.1400dafa4
cmp rax, 1
jbe 0x140097cb1
add rax, 8
jmp 0x140097d48
je 0x140097d46
movzx eax, byte [0x140175150]
mov edx, 0x10
xor ecx, ecx
call fcn.1400c3e00
test rax, rax
je 0x140097d84
mov rbx, rax
mov rsi, rax
lea rax, [0x1400de0e8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400de100]
test ecx, ecx
je 0x140097d64
dec ecx
call fcn.1400dafa4
mov rdi, rax
mov ecx, dword [0x1400de100]
test ecx, ecx
je 0x140097d74
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140097d41
mov rax, qword [rdi + 8]
test rax, rax
je 0x140097d34
lock dec qword [rax]
jne 0x140097d34
mov rcx, qword [rdi + 8]
call fcn.1400974b0
mov edx, 8
mov rcx, rdi
call fcn.1400020c0
mov rax, rbx
jmp 0x140097d48
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400de0e8]
call fcn.140095dc0
mov ecx, eax
jmp 0x140097c9d
lea rcx, [0x1400de0e8]
call fcn.140095dc0
mov ecx, eax
jmp 0x140097cf7
lea rcx, [0x1400de0e8]
call fcn.140095dc0
mov ecx, eax
jmp 0x140097d0b
mov ecx, 8
mov edx, 0x10
call fcn.140002550
int3
Function at 0x140098220
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1400de0c0]
test ecx, ecx
je 0x1400982ce
dec ecx
call fcn.1400dafa4
cmp rax, 1
jbe 0x14009824e
add rax, 8
jmp 0x1400982c5
je 0x1400982c3
movzx eax, byte [0x140175150]
mov edx, 0x10
xor ecx, ecx
call fcn.1400c3e00
test rax, rax
je 0x140098301
mov rbx, rax
mov rsi, rax
lea rax, [0x1400de0a8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400de0c0]
test ecx, ecx
je 0x1400982e1
dec ecx
call fcn.1400dafa4
mov rdi, rax
mov ecx, dword [0x1400de0c0]
test ecx, ecx
je 0x1400982f1
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400982be
mov edx, 8
mov rcx, rdi
call fcn.1400020c0
mov rax, rbx
jmp 0x1400982c5
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400de0a8]
call fcn.140095dc0
mov ecx, eax
jmp 0x14009823d
lea rcx, [0x1400de0a8]
call fcn.140095dc0
mov ecx, eax
jmp 0x14009828c
lea rcx, [0x1400de0a8]
call fcn.140095dc0
mov ecx, eax
jmp 0x1400982a0
mov ecx, 8
mov edx, 0x10
call fcn.140002550
int3

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1400de0a0]
test ecx, ecx
je 0x140098806
dec ecx
call fcn.1400dafa4
cmp rax, 1
jbe 0x14009877e
add rax, 8
jmp 0x1400987fd
je 0x1400987fb
movzx eax, byte [0x140175150]
mov edx, 0x18
xor ecx, ecx
call fcn.1400c3e00
test rax, rax
je 0x140098839
mov rbx, rax
mov rsi, rax
lea rax, [0x1400de088]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov byte [rsi + 0x10], 0
mov ecx, dword [0x1400de0a0]
test ecx, ecx
je 0x140098819
dec ecx
call fcn.1400dafa4
mov rdi, rax
mov ecx, dword [0x1400de0a0]
test ecx, ecx
je 0x140098829
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400987f6
mov edx, 8
mov rcx, rdi
call fcn.1400020c0
mov rax, rbx
jmp 0x1400987fd
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400de088]
call fcn.140095dc0
mov ecx, eax
jmp 0x14009876d
lea rcx, [0x1400de088]
call fcn.140095dc0
mov ecx, eax
jmp 0x1400987c4
lea rcx, [0x1400de088]
call fcn.140095dc0
mov ecx, eax
jmp 0x1400987d8
mov ecx, 8
mov edx, 0x18
call fcn.140002550
int3
Function at 0x14009bb60
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
mov rax, r8
mov rsi, rcx
mov dword [rbp + 8], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov dword [rbp + 0x20], 7
mov qword [rbp + 0x24], 0
mov word [rbp + 0x2c], 0
mov byte [rbp + 0x28], 1
lea r8, [rbp + 8]
mov rcx, rdx
mov rdx, rax
call fcn.1400b3870
mov rdi, rdx
test rax, rax
je 0x14009bbe7
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rdi
call fcn.140096060
mov qword [rsi], 0
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 8]
mov rdx, rdi
call fcn.1400b3ac0
cmp dword [rbp + 8], 2
jne 0x14009bc0b
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 2
jmp 0x14009bc3a
movups xmm0, xmmword [rbp + 8]
movups xmm1, xmmword [rbp + 0x18]
movups xmm2, xmmword [rbp + 0x28]
movups xmm3, xmmword [rbp + 0x38]
movaps xmmword [rbp - 0x40], xmm0
mov rax, qword [rbp + 0x48]
mov qword [rbp], rax
movaps xmmword [rbp - 0x10], xmm3
movaps xmmword [rbp - 0x20], xmm2
movaps xmmword [rbp - 0x30], xmm1
cmp qword [rbp - 0x40], 2
jne 0x14009bc63
lea rcx, [rbp - 0x38]
call fcn.140096060
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp fcn.1400dad84
mov r12, qword [rbp - 8]
test rdi, rdi
je 0x14009bcb1
mov qword [rbp - 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x14009bd2d
mov rbx, qword [rbp - 0x40]
jmp 0x14009bcb3
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x14009bd1c
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call fcn.1400dad84
test r15, r15
je 0x14009bd1c
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14009bd56
mov qword [rsi], 0
mov rcx, rbx
call fcn.1400dad84
jmp 0x14009bd56
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 8], 1
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x10], rax
call fcn.140096060
mov qword [rsi], 0
mov rcx, rdi
call fcn.1400dad84
jmp 0x14009bbd5
Function at 0x1400b5430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, r9
mov rdi, r8
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
add rsi, r8
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x38], rsi
mov byte [rbp - 0x30], 0x81

Function at 0x1400b68e0
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 rdi, 0x8000000000000000
lea rcx, [rbp - 0x10]
call fcn.1400b3bc0
sar bh, cl
dec dword [rax - 0x75]
invalid
invalid
mov rsi, qword [rbp - 8]
cmp rax, rdi
je case.0x1400b5d22.61
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
jne 0x1400b68ff

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1400de0e0]
test ecx, ecx
je 0x1400b8441
dec ecx
call fcn.1400dafa4
cmp rax, 1
jbe 0x1400b83a1
add rax, 8
jmp 0x1400b8438
je 0x1400b8436
movzx eax, byte [0x140175150]
mov edx, 0x10
xor ecx, ecx
call fcn.1400c3e00
test rax, rax
je 0x1400b8474
mov rbx, rax
mov rsi, rax
lea rax, [0x1400de0c8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400de0e0]
test ecx, ecx
je 0x1400b8454
dec ecx
call fcn.1400dafa4
mov rdi, rax
mov ecx, dword [0x1400de0e0]
test ecx, ecx
je 0x1400b8464
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400b8431
mov rax, qword [rdi + 8]
test rax, rax
je 0x1400b8424
lock dec qword [rax]
jne 0x1400b8424
mov rcx, qword [rdi + 8]
call fcn.1400b8490
mov edx, 8
mov rcx, rdi
call fcn.1400020c0
mov rax, rbx
jmp 0x1400b8438
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400de0c8]
call fcn.140095dc0
mov ecx, eax
jmp 0x1400b838d
lea rcx, [0x1400de0c8]
call fcn.140095dc0
mov ecx, eax
jmp 0x1400b83e7
lea rcx, [0x1400de0c8]
call fcn.140095dc0
mov ecx, eax
jmp 0x1400b83fb
mov ecx, 8
mov edx, 0x10
call fcn.140002550
int3
Function at 0x1400b8d90
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x166], ax
mov rax, qword [0x1401750e8]
cmp rax, 3
jne 0x1400b8f80
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
ja 0x1400b8f90
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
lea rax, [rdi + 1]
cmp rdi, 0xe
ja 0x1400b8e28
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400b8ee4
inc rdx
cmp rax, rdx
jne 0x1400b8e10
jmp 0x1400b8f4b
lea rcx, [rbp - 0x59]
and rcx, 0xfffffffffffffff8
sub rcx, rbx
je 0x1400b8e5e
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400b8ee4
inc rdx
cmp rcx, rdx
jne 0x1400b8e40
lea rdx, [rdi - 0xf]
cmp rcx, rdx
jbe 0x1400b8e62
jmp 0x1400b8eae
lea rdx, [rdi - 0xf]
movdqa xmm0, xmmword [0x1400e2b30]
movabs r8, 0x8080808080808080
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x60]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r9, xmm2
test r9, r8
jne 0x1400b8eae
add rcx, 0x10
cmp rcx, rdx
jbe 0x1400b8e80
sub rax, rcx
je 0x1400b8f4b
lea r8, [rcx + rbp]
add r8, 0xffffffffffffffa0
xor edx, edx
nop word cs:[rax + rax]
cmp byte [r8 + rdx], 0
je 0x1400b8ee1
inc rdx
cmp rax, rdx
jne 0x1400b8ed0
jmp 0x1400b8f4b
add rdx, rcx
cmp rdx, rdi
jne 0x1400b8f4b
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x120], xmm0
movdqa xmmword [rbp + 0x140], xmm0
movdqa xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x158], 0
lea rcx, [rbp - 0x60]
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x158]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400b8f5f
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400b8f77
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400b8fa2
mov rax, qword [rbp + 0x158]
movzx ecx, word [rbp + 0x166]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
jmp 0x1400b8fa2
mov rbx, rdx
call fcn.1400b9450
mov rdx, rbx
jmp 0x1400b8dcc
lea r9, [rbp + 0x150]
mov rcx, rsi
mov r8, rdi
call fcn.1400b94b0
nop
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b94b0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov r14, r8
inc r14
sete r13b
je 0x1400b961f
js 0x1400b962b
mov rdi, r9
mov rbx, r8
mov r12, rdx
mov rsi, rcx
movzx eax, byte [0x140175150]
xor ecx, ecx
mov rdx, r14
call fcn.1400c3e00
test rax, rax
je 0x1400b9630
mov r15, rax
mov rcx, rax
mov rdx, r12
mov r8, rbx
call sub.msvcrt.dll_memcpy
cmp rbx, 0xf
ja 0x1400b9531
test rbx, rbx
je 0x1400b957b
xor eax, eax
nop
cmp byte [r12 + rax], 0
je 0x1400b9543
inc rax
cmp rbx, rax
jne 0x1400b9520
jmp 0x1400b957b
xor ecx, ecx
mov rdx, r12
mov r8, rbx
call fcn.14000ad00
test rax, rax
je 0x1400b957b
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test r13b, r13b
jne 0x1400b960d
mov edx, 1
mov rcx, r15
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.1400020c0
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], rbx
lea rcx, [rbp - 0x30]
call fcn.140002700
mov rbx, rax
mov r14, rdx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x28], 1
mov qword [rbp], 0
lea r8, [rbp - 0x30]
mov r9, rbp
mov rcx, rax
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400b95dd
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400b95f1
mov rcx, qword [rdi]
mov rax, qword [rbp]
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 [rbx], 0
test r14, r14
je 0x1400b960d
mov edx, 1
mov rcx, rbx
call fcn.1400020c0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.library_alloc_src_ffic_str.rs
call fcn.140008d40
call fcn.140002510
mov ecx, 1
mov rdx, r14
call fcn.1400024f0
int3
Function at 0x1400bf320
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
movabs rbx, 0x8000000000000000
lea rcx, [rbp - 0x28]
call fcn.1400b3bc0
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
cmp rcx, rbx
jne 0x1400bf35e
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], rbx
jmp 0x1400bf384
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.1400bf240
mov r14, qword [rbp - 0x10]
cmp r14, rbx
jne 0x1400bf39d
lea rcx, [rbp - 8]
call fcn.140096060
mov qword [rsi], rbx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rdi, qword [rbp - 8]
mov r15, qword [rbp]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1400bf3bf
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x1400bf390
mov qword [rsi], rbx
test r14, r14
je 0x1400bf390
mov edx, 2
mov rcx, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.1400020c0
Function at 0x1400c1b90
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x140175150]
mov edx, 0x10
xor ecx, ecx
call fcn.1400c3e00
test rax, rax
je 0x1400c1c53
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400c1cb0]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400c1c45
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, qword [r14]
test rax, rax
je 0x1400c1c11
mov rcx, rbx
call rax
cmp qword [r14 + 8], 0
je 0x1400c1c24
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.1400020c0
mov edx, 8
mov rcx, rsi
call fcn.1400020c0
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, 8
mov edx, 0x10
call fcn.140002550
ud2
Function at 0x1400ce872
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400ce879
test al, 1
je 0x1400ce898
test al, 2
jne 0x1400ce8b0
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x14013b4a0]
mov edx, 0x23
call fcn.140005f60
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x14013b4e0]
mov edx, 0x25
call fcn.140005f60
int3

Function at 0x1400cfecd
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1400cfee6
dec ecx
add rsp, 0x28
jmp fcn.1400dafa4
mov rcx, rax
call fcn.140095dc0
mov ecx, eax
jmp 0x1400cfedd

Function at 0x1400d2d3f
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1400ce6e9
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400d2d7a
xor eax, eax
jmp 0x1400d2d87
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x1400d2fe5
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r13, r8
mov rdi, rdx
mov rbx, rcx
lea r14, [rsp + 0x32]
lea r15, [rsp + 0x42]
mov r12, qword [rcx + 0x10]
mov esi, 0x7fffffff
cmp r9, rsi
cmovb rsi, r9
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x28]
mov rdx, r12
mov r8, rdi
call fcn.1400d2370
mov al, byte [rsp + 0x31]
cmp al, 3
je 0x1400d3149
mov rbp, qword [rsp + 0x28]
cmp al, 2
je 0x1400d3142
mov cl, byte [rsp + 0x30]
movzx edx, word [r14 + 4]
mov word [r15 + 4], dx
mov edx, dword [r14]
mov dword [r15], edx
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x40], cl
mov byte [rsp + 0x41], al
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x1400d3169
mov rdx, r13
mov r8d, esi
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1400d3150
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.140040b3c
cmp al, 0xd
jne 0x1400d311c
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400d311c
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1400d3175
mov rsi, r12
mov r12, rbx
mov rbx, r14
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.1400403dd
mov r14, rax
xor ecx, ecx
call fcn.14008973a
test r14, r14
je 0x1400d310e
mov ecx, 1
mov rdx, rbp
call fcn.140040dc4
mov rbp, r14
mov r14, rbx
mov rbx, r12
mov r12, rsi
mov rsi, qword [rsp + 0x20]
mov rcx, rbp
call fcn.140040b3c
cmp al, 0xd
jne 0x1400d3142
mov rcx, rbx
lea rdx, [rsp + 0x38]
call fcn.1400d2157
mov rcx, rbp
call fcn.1400891c7
jmp 0x1400d302f
mov eax, 1
jmp 0x1400d3155
mov eax, 2
jmp 0x1400d3155
movsxd rbp, eax
xor eax, eax
mov rdx, rbp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.40.0_srciopoll_evented.rs
call fcn.140008d40
ud2