joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b2303
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 0x1400b232f
xor eax, eax
jmp 0x1400b2334
call fcn.14000c13a
nop
add rsp, 0x38
ret

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

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x1400f10b0]
test ecx, ecx
je 0x1400b3844
dec ecx
call fcn.1400ef2fc
cmp rax, 2
jb 0x1400b3784
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400b3784
add rdi, 0x10
jmp 0x1400b383a
mov ecx, dword [0x1400f10b0]
test ecx, ecx
je 0x1400b3857
dec ecx
call fcn.1400ef2fc
cmp rax, 1
je 0x1400b3838
mov rsi, rax
test rax, rax
jne 0x1400b3807
mov qword [rsp + 0x28], 0
lea rax, str.p_v_
mov qword [rsp + 0x20], rax
movzx eax, byte [0x1401a21a8]
mov ecx, 0x18
mov edx, 8
call fcn.140021300
test rax, rax
je 0x1400b387a
mov rsi, rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov ecx, dword [0x1400f10b0]
test ecx, ecx
je 0x1400b386a
dec ecx
mov rdx, rsi
call fcn.1400ef304
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1400b383a
test rcx, rcx
je 0x1400b383a
lock dec qword [rcx]
jne 0x1400b383a
call fcn.1400b38d0
jmp 0x1400b383a
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, str.p_v_
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400b3766
lea rcx, str.p_v_
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400b3794
lea rcx, str.p_v_
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400b37ff
mov ecx, 8
mov edx, 0x18
call fcn.140023b30
ud2
Function at 0x1400b3b00
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400b3b85
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 0x1400b3bc6
cmp dword [rsp + 0x2c], 0
je 0x1400b3baa
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400b3bee
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401a2118]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401a2118], rsi
jne 0x1400b3b60
mov byte [0x1401a2110], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1400b3bbc
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1400b3c3a
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400b3baf
mov edi, dword [rsp + 0x28]
jmp 0x1400b3bbc
mov edi, dword [rsi + 0x18]
jmp 0x1400b3bba
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 + 0x30], 0
lea rdx, [0x140166740]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.1400b3ca0
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 + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Result::unwrap____on_an__Err__value
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.1400270d0
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Result::unwrap____on_an__Err__value
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1400b3ce0
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400f10d0]
test ecx, ecx
je 0x1400b427f
dec ecx
call fcn.1400ef2fc
cmp rax, 2
jb 0x1400b4209
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1400b426e
mov ecx, dword [0x1400f10d0]
test ecx, ecx
je 0x1400b4292
dec ecx
call fcn.1400ef2fc
cmp rax, 1
je 0x1400b4274
mov rsi, rax
test rax, rax
jne 0x1400b4268
movzx eax, byte [0x1401a21a8]
mov ecx, 0x10
mov edx, 8
call fcn.140021300
test rax, rax
je 0x1400b42b5
mov rsi, rax
lea rax, [0x1400f10b8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400f10d0]
test ecx, ecx
je 0x1400b42a5
dec ecx
mov rdx, rsi
call fcn.1400ef304
mov word [rsi + 8], 1
add rsi, 9
jmp 0x1400b4276
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400f10b8]
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400b41f5
lea rcx, [0x1400f10b8]
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400b4215
lea rcx, [0x1400f10b8]
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400b4260
mov ecx, 8
mov edx, 0x10
call fcn.140023b30
ud2
Function at 0x1400b4980
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401660c0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x1400b49f1
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400b4a27
test eax, eax
js 0x1400b4a02
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400b4a1a
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x140166128]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400b2e10
mov rcx, rax
call fcn.1400b2ef0
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400f1090]
test ecx, ecx
je 0x1400b4f1d
dec ecx
call fcn.1400ef2fc
cmp rax, 2
jb 0x1400b4e90
cmp qword [rax + 8], 0
je 0x1400b4e90
add rax, 0x10
jmp 0x1400b4f17
mov ecx, dword [0x1400f1090]
test ecx, ecx
je 0x1400b4f30
dec ecx
call fcn.1400ef2fc
cmp rax, 1
je 0x1400b4f15
mov rsi, rax
test rax, rax
jne 0x1400b4efb
movzx eax, byte [0x1401a21a8]
mov ecx, 0x20
mov edx, 8
call fcn.140021300
test rax, rax
je 0x1400b4f53
mov rsi, rax
lea rax, [0x1400f1078]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400f1090]
test ecx, ecx
je 0x1400b4f43
dec ecx
mov rdx, rsi
call fcn.1400ef304
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x1400b4f17
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400f1078]
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400b4e75
lea rcx, [0x1400f1078]
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400b4ea0
lea rcx, [0x1400f1078]
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400b4ef3
mov ecx, 8
mov edx, 0x20
call fcn.140023b30
ud2
Function at 0x1400b9170
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.1400d1e80
mov rsi, rdx
test rax, rax
je 0x1400b921f
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400b9213
test rax, rax
je 0x1400b9213
mov rax, rsi
dec rsi
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1400b9206
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140021390
mov edx, 8
mov rcx, rsi
call fcn.140021390
mov qword [rdi], 0
jmp 0x1400b937f
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.1400d20e0
cmp dword [rsp + 0x40], 2
jne 0x1400b929d
mov rax, qword [rsp + 0x48]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x1400b927e
test rcx, rcx
je 0x1400b927e
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r14
call qword [r15]
cmp qword [r15 + 8], 0
je 0x1400b9271
mov rdx, qword [r15 + 0x10]
mov rcx, r14
call fcn.140021390
mov edx, 8
mov rcx, rbx
call fcn.140021390
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
mov r12, qword [rsp + 0x78]
test rsi, rsi
je 0x1400b92ef
mov qword [rsp + 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x1400b936b
mov rbx, qword [rsp + 0x40]
jmp 0x1400b92f1
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 0x1400b935a
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 sub.kernel32.dll_CloseHandle
test r15, r15
je 0x1400b935a
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x1400b9377
mov qword [rdi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x1400b9377
call sub.kernel32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400d6d00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x1400f10f0]
test ecx, ecx
je 0x1400d6df4
dec ecx
call fcn.1400ef2fc
cmp rax, 2
jb 0x1400d6d34
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400d6d34
add rdi, 0x10
jmp 0x1400d6dea
mov ecx, dword [0x1400f10f0]
test ecx, ecx
je 0x1400d6e07
dec ecx
call fcn.1400ef2fc
cmp rax, 1
je 0x1400d6de8
mov rsi, rax
test rax, rax
jne 0x1400d6db7
mov qword [rsp + 0x28], 0
lea rax, [0x1400f10d8]
mov qword [rsp + 0x20], rax
movzx eax, byte [0x1401a21a8]
mov ecx, 0x18
mov edx, 8
call fcn.140021300
test rax, rax
je 0x1400d6e2a
mov rsi, rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov ecx, dword [0x1400f10f0]
test ecx, ecx
je 0x1400d6e1a
dec ecx
mov rdx, rsi
call fcn.1400ef304
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1400d6dea
test rcx, rcx
je 0x1400d6dea
lock dec qword [rcx]
jne 0x1400d6dea
call fcn.1400d6e60
jmp 0x1400d6dea
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1400f10d8]
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400d6d16
lea rcx, [0x1400f10d8]
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400d6d44
lea rcx, [0x1400f10d8]
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400d6daf
mov ecx, 8
mov edx, 0x18
call fcn.140023b30
ud2
Function at 0x1400d83d0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
movzx eax, byte [0x1401a21a8]
mov ecx, 0x10
mov edx, 8
call fcn.140021300
test rax, rax
je 0x1400d8487
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400d84e0]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400d847a
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400d8459
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call fcn.140021390
mov edx, 8
mov rcx, rsi
call fcn.140021390
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.140023b30
ud2

Function at 0x1400d85b0
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 0x1400d85e6
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, [fcn.1400d33c0]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.1400270d0
ud2
Function at 0x1400dda70
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x1400f1110]
test ecx, ecx
je 0x1400ddb69
dec ecx
call fcn.1400ef2fc
cmp rax, 2
jb 0x1400ddaa0
cmp qword [rax + 8], 0
je 0x1400ddaa0
add rax, 0x10
jmp 0x1400ddb63
mov ecx, dword [0x1400f1110]
test ecx, ecx
je 0x1400ddb7c
dec ecx
call fcn.1400ef2fc
cmp rax, 1
je 0x1400ddb43
mov rsi, rax
test rax, rax
jne 0x1400ddb13
movzx eax, byte [0x1401a21a8]
mov ecx, 0x20
mov edx, 8
call fcn.140021300
test rax, rax
je 0x1400ddba2
mov rsi, rax
lea rax, [0x1400f10f8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400f1110]
test ecx, ecx
je 0x1400ddb8f
dec ecx
mov rdx, rsi
call fcn.1400ef304
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1400ddb47
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400ddb4f
xor eax, eax
jmp 0x1400ddb63
call fcn.1400d85b0
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, [0x1400f10f8]
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400dda85
lea rcx, [0x1400f10f8]
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400ddab0
lea rcx, [0x1400f10f8]
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400ddb0b
mov ecx, 8
mov edx, 0x20
call fcn.140023b30
ud2

Function at 0x1400df07a
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1400df093
dec ecx
add rsp, 0x28
jmp fcn.1400ef2fc
mov rcx, rax
call fcn.1400b3b00
mov ecx, eax
jmp 0x1400df08a

Function at 0x1400e3f5e
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 0x1400e3f65
test al, 1
je 0x1400e3f84
test al, 2
jne 0x1400e3f99
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1401693a0]
mov edx, 0x23
jmp 0x1400e3fac
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1401693e0]
mov edx, 0x25
call fcn.140027e10
ud2

Function at 0x1400e4888
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1400e337e
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 0x1400e48c3
xor eax, eax
jmp 0x1400e48d0
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x1400e48d6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov qword [rsp + 0x60], rdx
mov r14, rcx
lea r12, [rsp + 0x72]
lea rbx, [rsp + 0x42]
lea r15, [rcx + 0x18]
xor eax, eax
cmp qword [rcx + 0x18], 0xffffffffffffffff
cmove r15, rax
mov rbp, qword [r8 + 8]
mov rdi, qword [r8 + 0x10]
mov rcx, rbp
sub rcx, rdi
mov qword [rsp + 0x48], r8
mov rax, qword [r8]
add rax, rdi
mov qword [rsp + 0x50], rax
mov eax, 0x7fffffff
cmp rcx, rax
cmovae rcx, rax
mov qword [rsp + 0x58], rcx
lea r13, [rsp + 0x68]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r14
mov rdx, qword [r14 + 0x10]
mov rcx, r13
mov r8, qword [rsp + 0x60]
xor r9d, r9d
call fcn.1400e468a
mov al, byte [rsp + 0x71]
cmp al, 3
je 0x1400e4a71
mov rsi, qword [rsp + 0x68]
cmp al, 2
je 0x1400e4aa9
mov cl, byte [rsp + 0x70]
movzx edx, word [r12 + 4]
mov word [rbx + 4], dx
mov edx, dword [r12]
mov dword [rbx], edx
mov qword [rsp + 0x38], rsi
mov byte [rsp + 0x40], cl
mov byte [rsp + 0x41], al
cmp rbp, rdi
jb 0x1400e4ac2
mov rcx, r15
lea rdx, str.src_vendor_tokio_src_io_poll_evented.rs
call fcn.1400e339c
mov rcx, qword [r15]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x1400e4a78
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x1400e4a7d
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.14003be38
cmp al, 0xd
jne 0x1400e4a46
mov rax, qword [r15 + 8]
test rax, rax
je 0x1400e4a46
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1400e4ad6
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.14005d852
mov r15, rax
xor ecx, ecx
call fcn.1400b1dbd
test r15, r15
je 0x1400e4a3c
mov ecx, 1
mov rdx, rsi
call fcn.14005d977
mov rsi, r15
mov r14, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
mov rcx, rsi
call fcn.1400e06aa
cmp al, 0xd
jne 0x1400e4aa9
mov qword [rsp + 0x68], rsi
mov rcx, r14
lea rdx, [rsp + 0x38]
call fcn.1400e4603
mov rcx, r13
call fcn.14005642f
jmp 0x1400e4948
mov eax, 1
jmp 0x1400e4aab
movsxd r8, eax
jmp 0x1400e4a80
xor r8d, r8d
lea rax, [rdi + r8]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rdx + 0x18]
cmp rax, rcx
jbe 0x1400e4a99
mov qword [rdx + 0x18], rax
mov rcx, rax
add rdi, r8
jb 0x1400e4ada
cmp rcx, rax
jb 0x1400e4af4
mov qword [rdx + 0x10], rax
xor esi, esi
xor eax, eax
mov rdx, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.src_vendor_tokio_src_io_read_buf.rs
mov rcx, rdi
mov rdx, rbp
call fcn.140027110
ud2
ud2
lea rcx, str.filled_overflowfilled_must_not_become_larger_than_initialized
lea r8, str.src_vendor_tokio_src_io_poll_evented.rs
mov edx, 0xf
call fcn.14002a9f0
ud2
lea rax, [0x140167c28]
lea rcx, [rsp + 0x68]
mov qword [rcx], rax
mov qword [rcx + 8], 1
lea rax, str.called__Result::unwrap____on_an__Err__value
mov qword [rcx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
lea rdx, str.src_vendor_tokio_src_io_poll_evented.rs
call fcn.1400270d0
ud2
Function at 0x1400e4b2b
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 rbp, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
lea rdi, [rsp + 0x3a]
lea r15, [rdx + 0x18]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
cmove r15, rcx
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
lea r13, [rsp + 0x52]
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x40], r15
mov rdx, qword [r14 + 0x10]
mov rcx, rsi
mov r8, rbx
call fcn.1400e4880
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x1400e4c9a
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x1400e4ca8
mov dl, byte [rsp + 0x38]
movzx r8d, word [rdi + 4]
mov word [r13 + 4], r8w
mov r8d, dword [rdi]
mov dword [r13], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
mov rcx, r15
lea rdx, str.src_vendor_tokio_src_io_poll_evented.rs
call fcn.1400e339c
mov rcx, qword [r15]
mov rdx, rbp
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1400e4cba
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.14003be38
cmp al, 0xd
jne 0x1400e4c6a
mov rax, qword [r15 + 8]
test rax, rax
je 0x1400e4c6a
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1400e4cec
mov r15, r14
mov r14, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.14005d852
mov rbx, rax
xor ecx, ecx
call fcn.1400b1dbd
test rbx, rbx
je 0x1400e4c5f
mov ecx, 1
mov rdx, rsi
call fcn.14005d977
mov rsi, rbx
mov rbx, r14
mov r14, r15
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1400e06aa
cmp al, 0xd
jne 0x1400e4ccb
mov qword [rsp + 0x30], rsi
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.1400e4603
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.14005642f
jmp 0x1400e4b81
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1400e4cdb
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x1400e4cdb
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x1400e4cdb
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2

Function at 0x1400efdb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400f0b70
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400f0b70
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400efe20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401a2234]
mov rbx, rcx
test esi, esi
jle 0x1400eff50
mov rax, qword [0x1401a2238]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400efe6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400efef5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400efe50
mov rcx, rbx
call fcn.1400f0890
mov rdi, rax
test rax, rax
je 0x1400eff72
mov rax, qword [0x1401a2238]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400f09d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401a2238]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400eff57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400efeee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400eff00
add dword [0x1401a2234], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401a2238]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1400efeee
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400efdb0
nop dword [rax]
xor esi, esi
jmp 0x1400efe78
mov rax, qword [0x1401a2238]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400efdb0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400efdb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400f0500
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401a22a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401a2280]
test rbx, rbx
je 0x1400f055c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400f0553
test eax, eax
jne 0x1400f0553
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400f0538
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]