joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043a90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
mov r10, r8
mov rsi, rcx
mov eax, dword [rsp + 0x120]
pxor xmm0, xmm0
movdqa xmmword [rsp + 0xd0], xmm0
movdqa xmmword [rsp + 0xc0], xmm0
movdqa xmmword [rsp + 0xb0], xmm0
movdqa xmmword [rsp + 0xa0], xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x44], pe_nt_image_headers64
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, r10
mov r9d, eax
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x140043b6a
mov ecx, dword [rsp + 0x44]
movzx edx, word [rsp + 0x60]
cmp edx, 0x17
je 0x140043bc4
cmp edx, 2
jne 0x140043bb8
cmp ecx, 0xf
jbe 0x140043d03
movzx ecx, word [rsp + 0x62]
rol cx, 8
mov edx, dword [rsp + 0x64]
mov word [rsp + 0x4c], cx
mov dword [rsp + 0x48], edx
xor r11d, r11d
jmp 0x140043c0e
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140043c52
mov eax, dword [rsp + 0x44]
movzx ecx, word [rsp + 0x60]
cmp ecx, 0x17
je 0x140043c68
cmp ecx, 2
jne 0x140043bb8
cmp eax, 0xf
jbe 0x140043d03
movzx eax, word [rsp + 0x62]
rol ax, 8
mov ecx, dword [rsp + 0x64]
mov word [rsp + 0x4c], ax
mov dword [rsp + 0x48], ecx
xor r10d, r10d
jmp 0x140043cb1
lea rax, [0x140ea9290]
jmp 0x140043c5a
cmp ecx, 0x1b
jbe 0x140043d1b
movzx ecx, word [rsp + 0x62]
rol cx, 8
movdqu xmm0, xmmword [rsp + 0x68]
mov r8d, dword [rsp + 0x64]
mov edx, dword [rsp + 0x78]
movq r10, xmm0
pshufd xmm1, xmm0, 0xee
movq r9, xmm1
shld r9, r10, 0x20
movdqu xmmword [rsp + 0x4a], xmm0
pshufd xmm0, xmm0, 0xff
movd r10d, xmm0
mov r11w, 1
cdqe
movzx edi, word [rsp + 0x4c]
mov word [rsp + 0x40], di
mov edi, dword [rsp + 0x48]
mov dword [rsp + 0x3c], edi
mov qword [rsi], rax
mov word [rsi + 8], r11w
mov eax, dword [rsp + 0x3c]
mov dword [rsi + 0xa], eax
movzx eax, word [rsp + 0x40]
mov word [rsi + 0xe], ax
mov qword [rsi + 0x10], r9
mov dword [rsi + 0x18], r10d
mov dword [rsi + 0x1c], r8d
mov dword [rsi + 0x20], edx
mov word [rsi + 0x24], cx
jmp 0x140043cf9
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov word [rsi + 8], 2
jmp 0x140043cf9
cmp eax, 0x1b
jbe 0x140043d1b
movzx eax, word [rsp + 0x62]
rol ax, 8
movdqu xmm0, xmmword [rsp + 0x68]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x78]
movq r9, xmm0
pshufd xmm1, xmm0, 0xee
movq r8, xmm1
shld r8, r9, 0x20
movdqu xmmword [rsp + 0x4a], xmm0
pshufd xmm0, xmm0, 0xff
movd r9d, xmm0
mov r10w, 1
movzx r11d, word [rsp + 0x4c]
mov word [rsp + 0x40], r11w
mov r11d, dword [rsp + 0x48]
mov dword [rsp + 0x3c], r11d
mov qword [rsi], 0
mov word [rsi + 8], r10w
mov r10d, dword [rsp + 0x3c]
mov dword [rsi + 0xa], r10d
movzx r10d, word [rsp + 0x40]
mov word [rsi + 0xe], r10w
mov qword [rsi + 0x10], r8
mov dword [rsi + 0x18], r9d
mov dword [rsi + 0x1c], edx
mov dword [rsi + 0x20], ecx
mov word [rsi + 0x24], ax
add rsp, 0xe8
pop rdi
pop rsi
ret
lea rcx, [0x140ea91c1]
lea r8, [0x140ea9208]
mov edx, 0x42
call dbg.panic
lea rcx, [0x140ea9220]
lea r8, [0x140ea9268]
mov edx, 0x43
call dbg.panic
int3
Function at 0x140043da0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x40
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rsp + 0x3c], 0
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
call sub.WS2_32.dll_WSASend
mov esi, eax
cmp esi, 0xffffffff
jne 0x140043dea
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
xor ecx, ecx
cmp esi, 0xffffffff
sete cl
mov edx, dword [rsp + 0x3c]
cmove rdx, rax
mov rax, rcx
add rsp, 0x40
pop rsi
ret

Function at 0x140043e10
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r10d, r10d
cmp r8d, 0x3b9aca00
je 0x140043e6e
mov r10d, 0x3e8
mov rax, rdx
mul r10
mov r10d, 0xffffffff
jo 0x140043e6e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140043e6e
imul edx, edx, 0xf4240
xor r11d, r11d
sub r8d, edx
setne r11b
add rax, r11
jb 0x140043e6e
mov r10d, 0xffffffff
cmp rax, r10
cmovb r10, rax
test r10, r10
je 0x140043eb1
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 0x140043e9f
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, [0x140ea80f8]
add rsp, 0x38
ret

Function at 0x140043f80
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 0x140043fa9
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 0x140043fc0
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 + 0x2c], ax
mov word [rsp + 0x2e], dx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov edx, 0xffff
mov r8d, pe_nt_image_headers64
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x140044014
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 0x1400440a0
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 0x1400440d7
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 0x1400441e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rcx, qword [rax]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x140044214
movsxd rdx, eax
xor ecx, ecx
mov rax, rcx
add rsp, 0x28
ret
call sub.WS2_32.dll_WSAGetLastError
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x14004420c
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x28
ret
Function at 0x140044f80
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
sub rsp, 0x58
add rdx, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdx
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 0x140044fc4
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 0x140045002
xor edi, edi
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x140044ff8
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 0x140044fe7
jmp 0x140044ff8
Function at 0x140045860
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov eax, 0xffffffff
cmp r8, rax

Function at 0x140045a80
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
sub esp, 0x68

Function at 0x140046420
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140046591
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x140046457
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140046556
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140046574
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x1400464b8
mov eax, dword [rsp + 0x2c]
mov ecx, 2
test rax, rax
je 0x1400464fc
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x140046500
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x140046504
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x140046533
lea rax, [rsp + 0x30]
jmp 0x140046512
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140046539
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call dbg.drop_in_place<std::io::error::Error>
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
cmp rcx, 2
jne 0x140046543
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
test rcx, rcx
jne 0x1400464a1
mov ecx, 1
jmp 0x1400464ab
mov r8d, 0x10
mov rcx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::hb0ad7a2b9f1c77cc
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x140046464
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::hb0ad7a2b9f1c77cc
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140046464
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call dbg.assert_failed<std::sys::pal::windows::pipe::State, std::sys::pal::windows::pipe::State>
int3
Function at 0x14004a790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
movabs r14, 0x8000000000000000
lea rcx, [rsp + 0x40]
call sym.std::sys::pal::windows::to_u16s::inner::h4c9a51427fa9952c
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
cmp rcx, r14
jne 0x14004a7cd
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
jmp 0x14004a7fa
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call dbg.from_wide_to_user_path
mov rdi, qword [rsp + 0x28]
cmp rdi, r14
jne 0x14004a813
lea rcx, [rsp + 0x30]
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], r14
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rbx
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14004a837
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
jmp 0x14004a807
mov qword [rsi], r14
test rdi, rdi
je 0x14004a807
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp sym.__rust_dealloc
Function at 0x14004c4a0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x140ec6208]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14004c563
mov rsi, rax
mov qword [rax], r14
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, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14004c556
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x14004c52f
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call sym.__rust_dealloc
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2

Function at 0x14004c800
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14004c890
mov rax, qword [dbg.on_tls_callback]
mov dword [rsp + 0x2c], 0
lea rdi, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rdi
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x14004c8d1
cmp dword [rsp + 0x2c], 0
je 0x14004c8b5
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14004c8f7
mov ebx, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140ed4158]
nop dword [rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140ed4158], rsi
jne 0x14004c870
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
mov eax, ebx
jmp 0x14004c8c9
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14004c941
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14004c8ba
mov eax, dword [rsp + 0x28]
jmp 0x14004c8c9
mov eax, dword [rsi + 0x18]
jmp 0x14004c8c7
mov ecx, dword [rsp + 0x28]
mov esi, eax
call sub.KERNEL32.dll_TlsFree
mov eax, esi
dec eax
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x140ea83b8]
lea r9, [0x140ea8b28]
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
mov rcx, rdi
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, [0x140ea8ac8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x140ea36e8]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, [0x140ea8b10]
lea rcx, [rsp + 0x30]
call dbg.panic_fmt
lea rax, [0x140ea8ac8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x140ea36e8]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call dbg.assert_failed<u32, u32>
int3
Function at 0x14004c980
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp edx, 3
je 0x14004c998
test edx, edx
jne 0x14004cb0f
mov rbx, qword [0x140ed4158]
test rbx, rbx
je 0x14004cb0f
xor r14d, r14d
jmp 0x14004c9b9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14004c9ed
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14004cb5a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004c9b0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.1400979f4
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14004c9b0
test r14b, 1
je 0x14004cb0f
mov rbx, qword [0x140ed4158]
test rbx, rbx
je 0x14004cb0f
xor r14d, r14d
jmp 0x14004ca19
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14004ca4d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14004cb5a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004ca10
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.1400979f4
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14004ca10
test r14b, 1
je 0x14004cb0f
mov rbx, qword [0x140ed4158]
test rbx, rbx
je 0x14004cb0f
xor r14d, r14d
jmp 0x14004ca79
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14004caad
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14004cb5a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004ca70
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.1400979f4
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14004ca70
test r14b, 1
je 0x14004cb0f
mov rbx, qword [0x140ed4158]
test rbx, rbx
je 0x14004cb0f
xor r14d, r14d
jmp 0x14004cad9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14004cb09
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14004cb5a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004cad0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.1400979f4
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14004cad0
test r14b, 1
jne 0x14004cb1b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [0x140ed4158]
jmp 0x14004cb28
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14004cb0f
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x14004cb5a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004cb24
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.1400979f4
mov rcx, rdi
call r14
jmp 0x14004cb24
lea rcx, [0x140ea8b60]
call sym.core::option::unwrap_failed::hc0851016c6838662
ud2
Function at 0x140050640
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov qword [rsp + 0x38], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140050659
dec ecx
jmp 0x140050663
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.1400979f4
mov rcx, qword [rsp + 0x38]
cmp qword [rcx + 8], 0
je 0x14005069a
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14005069a
lock dec qword [rax]
jne 0x14005069a
lea rax, [rcx + 0x10]
mov rdi, rcx
mov rcx, rax
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov rcx, rdi
mov edx, 0x18
mov r8d, 8
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400506b5
dec ecx
jmp 0x1400506bf
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
call fcn.1400979f4
nop
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x140050760
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140050777
dec ecx
jmp 0x140050781
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.1400979f4
mov edx, 0x20
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400507a9
dec ecx
jmp 0x1400507b3
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.1400979f4

Function at 0x140050860
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov qword [rsp + 0x38], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140050879
dec ecx
jmp 0x140050883
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.1400979f4
mov rcx, qword [rsp + 0x38]
cmp qword [rcx + 8], 0
je 0x1400508ba
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400508ba
lock dec qword [rax]
jne 0x1400508ba
lea rax, [rcx + 0x10]
mov rdi, rcx
mov rcx, rax
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
mov rcx, rdi
mov edx, 0x18
mov r8d, 8
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400508d5
dec ecx
jmp 0x1400508df
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
call fcn.1400979f4
nop
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x140050980
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140050997
dec ecx
jmp 0x1400509a1
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.1400979f4
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400509c9
dec ecx
jmp 0x1400509d3
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.1400979f4
Function at 0x140050a80
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov qword [rsp + 0x38], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140050a99
dec ecx
jmp 0x140050aa3
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.1400979f4
mov rcx, qword [rsp + 0x38]
cmp qword [rcx + 8], 0
je 0x140050ada
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140050ada
lock dec qword [rax]
jne 0x140050ada
lea rax, [rcx + 0x10]
mov rdi, rcx
mov rcx, rax
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
mov rcx, rdi
mov edx, 0x18
mov r8d, 8
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140050af5
dec ecx
jmp 0x140050aff
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
call fcn.1400979f4
nop
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x140050de0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x200
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rsp + 0x26], ax
mov rax, qword [0x140ed4138]
cmp rax, 3
jne 0x140050eec
lea rax, [rsp + 0x26]
mov qword [rsp + 0x30], rax
cmp rdi, 0x17f
ja 0x140050f0e
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov r8, rdi
call sym.memcpy
mov byte [rsp + rdi + 0x80], 0
inc rdi
lea rcx, [rsp + 0x38]
mov rdx, rbx
mov r8, rdi
call dbg.from_bytes_with_nul
cmp qword [rsp + 0x38], 0
je 0x140050e72
lea rax, [0x140ea6c88]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140050ede
mov rcx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x140050ec3
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140050ed7
mov rax, qword [rsp + 0x28]
movzx ecx, word [rsp + 0x26]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x200
pop rbx
pop rdi
pop rsi
ret
mov rbx, rdx
call dbg.initialize<unsafe extern "system" fn() -> i32, std::sync::once_lock::{impl#0}::get_or_init::{closure_env#0}<unsafe extern "system" fn() -> i32, std::sys::pal::windows::net::init::{closure_env#0}>, !>
mov rdx, rbx
lea rax, [rsp + 0x26]
mov qword [rsp + 0x30], rax
cmp rdi, 0x17f
jbe 0x140050e28
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8, rdi
call dbg.run_with_cstr_allocating<std::sys_common::net::LookupHost>
jmp 0x140050ede