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

Disassembly:
push rbp
push rsi
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x1400db149
mov byte [rbp + 7], 0
mov eax, dword [0x1401b20b0]
cmp eax, 3
jne 0x1400db038
cmp byte [rbp + 7], 0
jne 0x1400db130
mov ecx, dword [0x1401b2128]
test ecx, ecx
je 0x1400db04c
dec ecx
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x1400db064
mov rcx, qword [0x1401b2078]
cmp rax, rcx
jne 0x1400db075
mov eax, dword [0x1401b2080]
cmp eax, 0xffffffff
je 0x1400db130
inc eax
jmp 0x1400db096
lea rcx, [rbp + 7]
call fcn.1400db1af
cmp byte [rbp + 7], 0
je 0x1400db003
jmp 0x1400db130
lea rcx, [0x1401b2110]
call fcn.1400d8900
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x1400db019
call fcn.1400dac40
mov rcx, qword [0x1401b2078]
cmp rax, rcx
je 0x1400db025
mov rcx, rax
mov dl, 1
xor eax, eax
lock cmpxchg byte [0x1401b2084], dl
jne 0x1400db130
mov qword [0x1401b2078], rcx
mov eax, 1
mov dword [0x1401b2080], eax
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 1
mov qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
mov byte [rbp - 3], 0
mov dword [rbp - 7], 0
cmp qword [0x1401b2088], 0
jne 0x1400db155
mov qword [0x1401b2088], 0xffffffffffffffff
lea rcx, [0x1401b2090]
call fcn.1400db250
movups xmm0, xmmword [rbp - 0x20]
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [0x1401b20a0], xmm1
movups xmmword [0x1401b2090], xmm0
inc qword [0x1401b2088]
dec dword [0x1401b2080]
jne 0x1400db130
mov qword [0x1401b2078], 0
xor eax, eax
xchg byte [0x1401b2084], al
cmp al, 2
jne 0x1400db130
lea rcx, [0x1401b2084]
call sub.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle
mov eax, dword [0x1401b20f0]
cmp eax, 3
jne 0x1400db141
call qword [0x1401b20e8]
nop
add rsp, 0x48
pop rsi
pop rbp
ret
lea rcx, str.std_src_synconce.rs
call fcn.14001dfc0
lea rcx, str.std_srcio_stdio.rs
call fcn.14001bd00
ud2
Function at 0x1400db7e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
test rcx, rcx
jne 0x1400db906
mov ecx, dword [0x1401b2148]
test ecx, ecx
je 0x1400db8c7
dec ecx
mov edx, 1
call sub.kernel32.dll_TlsSetValue
mov ecx, dword [0x1401b2128]
test ecx, ecx
je 0x1400db8da
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
test rax, rax
je 0x1400db8f9
movzx eax, byte [0x1401b2168]
mov edx, 0x30
xor ecx, ecx
call fcn.1400ff580
test rax, rax
je 0x1400db93e
mov rsi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x18], 0
mov qword [rax + 0x10], rdi
mov byte [rax + 0x28], 0
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x38], rax
mov rax, qword [0x1401b5038]
lock inc qword [rsi]
jle 0x1400db99b
mov ecx, dword [0x1401b2148]
test ecx, ecx
je 0x1400db899
dec ecx
jmp 0x1400db8ab
lea rdi, [rbp - 0x38]
lea rcx, [0x1401b2130]
call fcn.1400d8900
mov ecx, eax
add rsi, 0x10
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1401b2130]
call fcn.1400d8900
mov ecx, eax
jmp 0x1400db805
lea rcx, [0x1401b2110]
call fcn.1400d8900
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
test rax, rax
jne 0x1400db830
call fcn.1400dac40
mov rdi, rax
jmp 0x1400db830
cmp rcx, 1
je 0x1400db94d
lea rax, str.use_of_std::thread::current___is_not_possible_after_the_threads_n_________local_data_has_been_destroyed
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x30], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rdx, str.std_src_threadcurrent.rs
lea rcx, [rbp - 0x40]
call fcn.14001a380
mov ecx, 8
mov edx, 0x30
call fcn.140017699
mov dword [rbp - 0x10], 0
mov byte [rbp - 0xc], 0
lea rax, str.fatal_runtime_error:__n_n____________Attempted_to_access_thread_local_data_while_allocating_said_data._n_n____________Do_not_access_functions_that_allocate_in_the_global_allocator__n_n____________This_is_a_bug_in_the_global_allocator._n_n_________n
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rax, [rbp - 8]
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.1400d8ae0
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x48]
call fcn.1400d8c20
mov ecx, 7
int 0x29
ud2

Function at 0x1400debf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
cmp r9b, 1
jbe 0x1400dec0f
xor r8d, r8d
xor eax, eax
jmp case.0x1400deddf.6
movzx r8d, byte [rdx + 0x3a]
test r8b, 1
jne 0x1400dec5e
movzx eax, byte [rdx + 0x10]
lea r10d, [rax - 5]
Function at 0x1400f4560
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp rdx, 0x21
jae 0x1400f47a6
mov r13, r9
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x28], rax
mov r14d, dword [rbp + 0xa0]
lea rax, [rsi - 0x18]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x30], r9
Function at 0x1400fac20
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x308
lea rbp, [rsp + 0x80]
mov rsi, r8
mov r8, rdx
mov qword [rbp + 0x270], rcx
movabs rax, 0x3fffffffffffffff
add rax, rdx
mov rcx, rax
or rcx, rdx
shr rcx, 0x20
je 0x1400fac68
xor edx, edx
div r8
jmp 0x1400fac6d
xor edx, edx
div r8d
mov qword [rbp + 0x240], rax
cmp r8, 0x1001
mov qword [rbp + 0x260], r8
mov rax, r8
jae 0x1400faca3
shr rax, 1
sub r8, rax
cmp r8, 0x40
mov eax, 0x40
cmovb rax, r8
mov qword [rbp + 0x268], rax
jmp 0x1400faccb
or rax, 1
bsr rcx, rax
xor ecx, 0xffffffc0
add ecx, 0x41
shr ecx, 1
mov eax, 1
shl rax, cl
shr r8, cl
add r8, rax
shr r8, 1
mov qword [rbp + 0x268], r8
mov rax, qword [rbp + 0x270]
lea rcx, [rax + 0x20]
mov qword [rbp + 0x248], rcx
lea rcx, [rax + 0x10]
mov qword [rbp + 0x228], rcx
add rax, 0xfffffffffffffff0
mov qword [rbp + 0x238], rax
mov r15d, 1
xor r13d, r13d
xor r10d, r10d
mov qword [rbp + 0x278], r9
mov qword [rbp + 0x280], rsi
mov r11, qword [rbp + 0x260]
sub r11, r13
ja 0x1400fad40
nop dword [rax]
Function at 0x1400fe630
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 esi, dword [0x1401200b0]
test esi, esi
je 0x1400fe6d8
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400fe6cf
je 0x1400fe6cd
movzx eax, byte [0x1401b2168]
mov edx, 0x10
xor ecx, ecx
call fcn.1400ff580
test rax, rax
je 0x1400fe6f9
mov qword [rax], 0
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 0x1400fe6c8
mov rax, qword [rdi]
test rax, rax
je 0x1400fe6b7
lock dec qword [rax]
jne 0x1400fe6b7
mov rcx, qword [rdi]
call fcn.1400fe710
mov rcx, qword [0x1401b2100]
xor edx, edx
mov r8, rdi
call fcn.14011d4ec
mov rax, rsi
jmp 0x1400fe6cf
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140120098]
call fcn.1400d8900
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400fe65a
jmp 0x1400fe6cf
mov ecx, 8
mov edx, 0x10
call fcn.140017699
int3
Function at 0x1400feb30
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 eax, dword [0x1401b20f0]
cmp eax, 3
jne 0x1400fed1c
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
ja 0x1400fed42
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
lea rax, [rdi + 1]
cmp rdi, 0xe
ja 0x1400febc8
xor edx, edx
nop word cs:[rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400fec84
inc rdx
cmp rax, rdx
jne 0x1400febb0
jmp 0x1400fece7
lea rcx, [rbp - 0x59]
and rcx, 0xfffffffffffffff8
sub rcx, rbx
je 0x1400febfe
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400fec84
inc rdx
cmp rcx, rdx
jne 0x1400febe0
lea rdx, [rdi - 0xf]
cmp rcx, rdx
jbe 0x1400fec02
jmp 0x1400fec50
lea rdx, [rdi - 0xf]
movabs r8, 0x8080808080808080
movabs r9, 0x101010101010100
nop word cs:[rax + rax]
mov r10, qword [rbp + rcx - 0x60]
mov r11, qword [rbp + rcx - 0x58]
mov rbx, r9
sub rbx, r11
or rbx, r11
mov r11, r9
sub r11, r10
or r11, r10
and r11, r8
and r11, rbx
cmp r11, r8
jne 0x1400fec50
add rcx, 0x10
cmp rcx, rdx
jbe 0x1400fec20
sub rax, rcx
je 0x1400fece7
lea r8, [rcx + rbp]
add r8, 0xffffffffffffffa0
xor edx, edx
nop word cs:[rax + rax]
cmp byte [r8 + rdx], 0
je 0x1400fec81
inc rdx
cmp rax, rdx
jne 0x1400fec70
jmp 0x1400fece7
add rdx, rcx
cmp rdx, rdi
jne 0x1400fece7
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps 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 0x1400fecfb
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400fed13
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400fed54
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 0x1400fed54
mov rbx, rdx
call fcn.1400ff0c6
mov rdx, rbx
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
jbe 0x1400feb85
lea r9, [rbp + 0x150]
mov rcx, rsi
mov r8, rdi
call fcn.1400ff130
nop
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ff130
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
cmp r8, 0xffffffffffffffff
je 0x1400ff347
mov rbx, r8
mov r15, r8
inc r15
js 0x1400ff353
mov rdi, r9
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1401b2168]
xor ecx, ecx
mov rdx, r15
call fcn.1400ff580
test rax, rax
je 0x1400ff35f
mov r12, rax
mov rcx, rax
mov rdx, r14
mov r8, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rbx, 0x10
jae 0x1400ff1c8
test rbx, rbx
je 0x1400ff26f
xor eax, eax
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x1400ff2d2
inc rax
cmp rbx, rax
jne 0x1400ff1b0
jmp 0x1400ff26f
lea rax, [r14 + 7]
and rax, 0xfffffffffffffff8
sub rax, r14
jne 0x1400ff221
lea rcx, [rbx - 0x10]
xor eax, eax
movabs rdx, 0x8080808080808080
movabs r8, 0x101010101010100
nop
mov r9, qword [r14 + rax]
mov r10, qword [r14 + rax + 8]
mov r11, r8
sub r11, r10
or r11, r10
mov r10, r8
sub r10, r9
or r10, r9
and r10, rdx
and r10, r11
cmp r10, rdx
jne 0x1400ff24c
add rax, 0x10
cmp rax, rcx
jbe 0x1400ff1f0
jmp 0x1400ff24c
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [r14 + rcx], 0
je 0x1400ff2d2
inc rcx
cmp rax, rcx
jne 0x1400ff230
lea rcx, [rbx - 0x10]
cmp rax, rcx
jbe 0x1400ff1db
cmp rax, rbx
je 0x1400ff26f
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x1400ff2d2
inc rax
cmp rbx, rax
jne 0x1400ff260
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], rbx
lea rcx, [rbp - 0x40]
call fcn.140017820
mov rbx, rax
mov r14, rdx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x38], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x40]
lea r9, [rbp - 8]
mov rcx, rax
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400ff303
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400ff317
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, qword [0x1401b2100]
xor edx, edx
mov r8, r12
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp fcn.14011d4ec
mov rcx, qword [rdi]
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 [rbx], 0
test r14, r14
je 0x1400ff337
mov rcx, qword [0x1401b2100]
xor edx, edx
mov r8, rbx
call fcn.14011d4ec
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, str.alloc_src_ffic_str.rs
call fcn.14001dfc0
lea rcx, str.alloc_src_ffic_str.rs
call fcn.140017660
mov ecx, 1
mov rdx, r15
call fcn.140017699
int3
Function at 0x1401021e0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov esi, 1
test cl, 1
jne 0x140102360
mov eax, dword [0x1401b20f0]
cmp eax, 3
jne 0x140102370
mov r15, rdx
cmp byte [rdx], 0
mov eax, 0x17
mov ebx, 2
cmovne ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140102278
test byte [r15], 1
je 0x1401022eb
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 0x140102302
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x140102292
mov r14d, eax
cmp eax, 0x2726
jne 0x140102355
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14010234d
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x14010224c
call sub.kernel32.dll_GetLastError
mov r14d, eax
mov rcx, rdi
call sub.ws2_32.dll_closesocket
jmp 0x140102355
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 - 0x14], r9w
mov word [rbp - 0x12], cx
mov dword [rbp - 0x10], eax
movups xmmword [rbp - 0xc], xmm0
mov dword [rbp + 4], edx
lea rdx, [rbp - 0x14]
mov rcx, rdi
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
je 0x140102331
xor esi, esi
mov rdx, rdi
jmp 0x140102360
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, rdi
call sub.ws2_32.dll_closesocket
mov rdx, rbx
jmp 0x140102360
call sub.ws2_32.dll_WSAGetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
mov rdx, r14
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rdi, rdx
call fcn.1400ff0c6
mov rdx, rdi
jmp 0x14010220e
Function at 0x140103f60
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140103fa2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x140103faa
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x140103fbb
jmp 0x140103fd2
xor r10d, r10d
jmp 0x14010405d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140103fd2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140103fe9
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140104009
add r11, r8
jmp 0x140104139
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x1401040d2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140104080
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x1401040ef
mov r9d, dword [rdx + r10]
mov r8d, 4
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jb 0x140104100
jmp 0x14010411b
xor r9d, r9d
xor r8d, r8d
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jae 0x14010411b
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8d, r11d
jae 0x140104135
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140104150
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x1401200f8]
test esi, esi
je 0x14010421d
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140104265
je 0x140104219
movzx eax, byte [0x1401b2168]
mov edx, 0x50
xor ecx, ecx
call fcn.1400ff580
test rax, rax
je 0x14010426d
movups xmm0, xmmword [0x14017c1f8]
movups xmmword [rax + 0x30], xmm0
movups xmm0, xmmword [0x14017c1e8]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [0x14017c1d8]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [0x14017c1c8]
movups xmmword [rax], xmm0
movabs rcx, 0x2000000000000
mov qword [rax + 0x40], rcx
mov dword [rax + 0x48], 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 0x140104262
mov rax, qword [rdi + 8]
cmp rax, 2
je 0x140104251
test rax, rax
je 0x14010423e
mov rax, qword [rdi + 0x10]
lock dec qword [rax]
jne 0x140104251
mov rcx, qword [rdi + 0x10]
call fcn.140102b00
jmp 0x140104251
xor eax, eax
jmp 0x140104265
lea rcx, [0x1401200e0]
call fcn.1400d8900
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140104178
jmp 0x140104265
mov rax, qword [rdi + 0x10]
lock dec qword [rax]
jne 0x140104251
mov rcx, qword [rdi + 0x10]
call fcn.1401029d0
mov rcx, qword [0x1401b2100]
xor edx, edx
mov r8, rdi
call fcn.14011d4ec
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov ecx, 8
mov edx, 0x50
call fcn.140017699
int3
Function at 0x140107440
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, 0x48
mov qword [rsp + 0x40], r8
mov rsi, qword [rcx + 0x10]
mov rbx, qword [rcx + 0x18]
cmp rbx, 0xffffffffffffffff
je 0x1401075ef
mov rax, qword [rdx]
mov qword [rsp + 0x38], rax
cmp r9, 0x7fffffff
mov r15d, 0x7fffffff
cmovb r15, r9
mov r12, qword [rcx + 0x20]
jmp 0x1401074b5
mov rcx, qword [0x1401b2100]
xor edx, edx
mov r8, rbp
call fcn.14011d4ec
dec r13
mov rcx, qword [0x1401b2100]
xor edx, edx
mov r8, r13
call fcn.14011d4ec
lea rcx, [rsp + 0x28]
mov rdx, rsi
mov r8, qword [rsp + 0x38]
mov r9b, 1
call fcn.140106ef0
movzx eax, byte [rsp + 0x31]
cmp al, 3
je 0x14010760b
mov rbp, qword [rsp + 0x28]
cmp al, 2
je 0x140107625
movzx edi, byte [rsp + 0x30]
mov rcx, rbx
mov rdx, qword [rsp + 0x40]
mov r8d, r15d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x14010762f
test r12, r12
sete r14b
call sub.ws2_32.dll_WSAGetLastError
mov r13d, eax
shl r13, 0x20
or r13, 2
mov rcx, r13
call fcn.14005f5c0
cmp al, 0xd
setne al
or al, r14b
jne 0x140107561
mov rcx, qword [r12]
mov rax, qword [r12 + 8]
lock inc qword [rax]
jle 0x140107648
add rcx, 0x10
mov rdx, qword [r12 + 8]
mov r8, qword [r12 + 0x10]
movzx r9d, byte [r12 + 0x18]
call fcn.14005e2e0
test rax, rax
cmovne r13, rax
mov rcx, r13
call fcn.140029e40
cmp al, 0xd
jne 0x14010761e
and ebp, 0x23
mov rax, qword [rsi + 0x90]
mov ecx, edi
shl ecx, 0x10
xor rbp, 0x2f
nop word cs:[rax + rax]
mov edx, eax
shr edx, 0x10
cmp dil, dl
jne 0x1401075ac
mov edx, eax
and edx, ebp
or rdx, rcx
lock cmpxchg qword [rsi + 0x90], rdx
jne 0x140107590
mov eax, r13d
and eax, 3
cmp eax, 1
jne 0x1401074b5
mov rbp, qword [r13 - 1]
mov rdi, qword [r13 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x1401075d0
mov rcx, rbp
call rax
cmp qword [rdi + 8], 0
je 0x1401074a1
cmp qword [rdi + 0x10], 0x11
jb 0x140107490
mov rbp, qword [rbp - 8]
jmp 0x140107490
mov r8, qword [rdx]
lea rcx, [rsp + 0x28]
mov rdx, rsi
mov r9b, 1
call fcn.140106ef0
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x140107615
mov eax, 2
mov r13, rbp
jmp 0x140107634
cmp al, 2
jne 0x14010764a
mov r13, qword [rsp + 0x28]
mov eax, 1
jmp 0x140107634
mov eax, 1
mov r13, rbp
jmp 0x140107634
movsxd r13, eax
xor eax, eax
mov rdx, r13
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rcx, str.src_index.crates.io_6f17d22bba15001f_tokio_1.41.0_src_io_poll_evented.rs
call fcn.14001dfc0
int3
Function at 0x140107a60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x140120118]
test esi, esi
je 0x140107b39
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140107b31
je 0x140107b2f
movzx eax, byte [0x1401b2168]
mov edx, 0x28
xor ecx, ecx
call fcn.1400ff580
test rax, rax
je 0x140107b5a
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
mov byte [rax + 0x20], 0
movzx eax, byte [0x1401b2168]
mov edx, 0x10
xor ecx, ecx
call fcn.1400ff580
test rax, rax
je 0x140107b69
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 0x140107b2a
mov rax, qword [rdi]
lock dec qword [rax]
jne 0x140107b19
mov rcx, qword [rdi]
call fcn.1400039d0
mov rcx, qword [0x1401b2100]
xor edx, edx
mov r8, rdi
call fcn.14011d4ec
mov rax, rsi
jmp 0x140107b31
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140120100]
call fcn.1400d8900
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140107a88
jmp 0x140107b31
mov ecx, 8
mov edx, 0x28
call fcn.140017699
mov ecx, 8
mov edx, 0x10
call fcn.140017699
int3