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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x468e41
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x468e56
cmp qword [rax + 8], 0
je 0x468e56
add rax, 0x10
jmp 0x468f00
mov rcx, rdi
call fcn.0053fd10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x468e31
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x468ee5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x468efe
mov rbx, rax
test rax, rax
jne 0x468eb7
mov rax, qword [0x005f7f18]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.0044f650
test rax, rax
je 0x468f14
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], 0
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x468f08
dec ecx
mov rdx, rbx
call fcn.005ab204
test rsi, rsi
je 0x468ed1
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x468ed3
mov rcx, qword [rsi + 8]
jmp 0x468ed3
xor ecx, ecx
lea rax, [rbx + 0x10]
mov qword [rbx + 8], 1
mov qword [rbx + 0x10], rcx
jmp 0x468f00
mov rcx, rdi
call fcn.0053fd10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x468e72
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rdi
call fcn.0053fd10
mov ecx, eax
jmp 0x468eaf
mov ecx, 8
mov edx, 0x18
call fcn.00578c70
ud2
Function at 0x468f30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x468f66
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x468f7b
mov r14, rax
cmp qword [rax + 8], 0
je 0x468f7b
add r14, 0x10
jmp 0x469083
mov rcx, rdi
call fcn.0053fd10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x468f53
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x469067
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x469080
mov rbx, rax
test rax, rax
jne 0x468ff8
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
mov rax, qword [0x005f7f18]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.0044f650
test rax, rax
je 0x46909f
mov rbx, rax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x469090
dec ecx
mov rdx, rbx
call fcn.005ab204
test rsi, rsi
je 0x469012
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x469014
mov rax, qword [rsi + 8]
jmp 0x469014
xor eax, eax
lea r14, [rbx + 0x10]
mov rsi, qword [rbx + 0x10]
cmp qword [rbx + 8], 0
mov qword [rbx + 8], 1
mov qword [rbx + 0x10], rax
je 0x469083
test rsi, rsi
je 0x469083
dec qword [rsi]
jne 0x469083
mov rax, qword [rsi + 0x10]
lock dec qword [rax]
jne 0x46904c
lea rcx, [rsi + 0x10]
call fcn.004c20e0
dec qword [rsi + 8]
jne 0x469083
mov edx, 0x20
mov r8d, 8
mov rcx, rsi
call fcn.0044f660
jmp 0x469083
mov rcx, rdi
call fcn.0053fd10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x468f97
xor r14d, r14d
mov rax, r14
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, rdi
call fcn.0053fd10
mov ecx, eax
jmp 0x468ff0
mov ecx, 8
mov edx, 0x18
call fcn.00578c70
ud2
Function at 0x469240
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x469274
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x469289
mov rdi, rax
cmp qword [rax + 8], 0
je 0x469289
add rdi, 8
jmp 0x46938d
mov rcx, rbx
call fcn.0053fd10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x469261
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x469372
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x46938b
mov rdi, rax
test rax, rax
jne 0x469300
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], 0
mov rax, qword [0x005f7f18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.0044f650
test rax, rax
je 0x4693b8
mov rdi, rax
mov qword [rax], rbx
mov qword [rax + 8], 0
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x469398
dec ecx
mov rdx, rdi
call fcn.005ab204
test rsi, rsi
je 0x469314
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
jne 0x46934c
mov rax, qword [0x005f7f18]
movzx eax, byte [rax]
mov ecx, 0x28
mov edx, 8
call fcn.0044f650
test rax, rax
je 0x4693a7
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
mov byte [rax + 0x20], 0
add rdi, 8
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rcx
mov qword [rdi], rax
test rcx, rcx
je 0x46938d
lock dec qword [rcx]
jne 0x46938d
lea rcx, [rsp + 0x20]
call fcn.004c23b0
jmp 0x46938d
mov rcx, rbx
call fcn.0053fd10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x4692a5
xor edi, edi
mov rax, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call fcn.0053fd10
mov ecx, eax
jmp 0x4692f8
mov ecx, 8
mov edx, 0x28
call fcn.00578c70
ud2
mov ecx, 8
mov edx, 0x10
call fcn.00578c70
ud2

Function at 0x471430
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
nop word [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x471440
test al, 1
je 0x47145f
test al, 2
jne 0x471479
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x005b88b0]
mov edx, 0x23
call fcn.00587f10
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x005b88f0]
mov edx, 0x25
call fcn.00587f10
ud2

Function at 0x48c890
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [rcx]
mov rdi, qword [rsi]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x48c8a7
dec ecx
jmp 0x48c8b1
mov rcx, rdi
call fcn.0053fd10
mov ecx, eax
mov edx, 1
call fcn.005ab204
lea rcx, [rsi + 8]
call fcn.0048f810
mov edx, 0x70
mov r8d, 8
mov rcx, rsi
call fcn.0044f660
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x48c8e2
dec ecx
jmp 0x48c8ec
mov rcx, rdi
call fcn.0053fd10
mov ecx, eax
xor esi, esi
xor edx, edx
call fcn.005ab204
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x48da50
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
mov rsi, qword [rax]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x48da6c
dec ecx
jmp 0x48da76
mov rcx, rsi
call fcn.0053fd10
mov ecx, eax
mov edx, 1
call fcn.005ab204
mov rdi, qword [rsp + 0x20]
mov rax, qword [rdi + 8]
test rax, rax
je 0x48da9d
lock dec qword [rax]
jne 0x48da9d
lea rcx, [rdi + 8]
call fcn.004c23b0
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.0044f660
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x48dabb
dec ecx
jmp 0x48dac5
mov rcx, rsi
call fcn.0053fd10
mov ecx, eax
xor edx, edx
call fcn.005ab204
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x48db10
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, qword [rcx]
mov rsi, qword [rdi]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x48db27
dec ecx
jmp 0x48db31
mov rcx, rsi
call fcn.0053fd10
mov ecx, eax
mov edx, 1
call fcn.005ab204
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.0044f660
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x48db59
dec ecx
jmp 0x48db63
mov rcx, rsi
call fcn.0053fd10
mov ecx, eax
xor esi, esi
xor edx, edx
call fcn.005ab204
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x48dd90
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, qword [rcx]
mov rdi, qword [rsi]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x48dda8
dec ecx
jmp 0x48ddb2
mov rcx, rdi
call fcn.0053fd10
mov ecx, eax
mov edx, 1
call fcn.005ab204
cmp qword [rsi + 8], 0
je 0x48ddfd
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x48ddfd
dec qword [rbx]
jne 0x48ddfd
mov rax, qword [rbx + 0x10]
lock dec qword [rax]
jne 0x48dde4
lea rcx, [rbx + 0x10]
call fcn.004c20e0
dec qword [rbx + 8]
jne 0x48ddfd
mov edx, 0x20
mov r8d, 8
mov rcx, rbx
call fcn.0044f660
mov edx, 0x18
mov r8d, 8
mov rcx, rsi
call fcn.0044f660
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x48de1b
dec ecx
jmp 0x48de25
mov rcx, rdi
call fcn.0053fd10
mov ecx, eax
xor esi, esi
xor edx, edx
call fcn.005ab204
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
mov rdx, rcx
lea rcx, [0x005ae340]
jmp fcn.004690d0

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

Disassembly:
mov rdx, rcx
lea rcx, [0x005ae4a8]
jmp fcn.00468e10

Function at 0x4c52b0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x4c5d60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
mov rcx, rdx
call fcn.00535720
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x2c], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x4c5e25
mov eax, dword [rsp + 0x2c]
movaps xmm0, xmmword [rsp + 0xa0]
movups xmmword [rsi + 0x78], xmm0
movaps xmm0, xmmword [rsp + 0x90]
movups xmmword [rsi + 0x68], xmm0
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rsi + 0x58], xmm0
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x48], xmm0
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmm2, xmmword [rsp + 0x50]
movaps xmm3, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x38], xmm3
movups xmmword [rsi + 0x28], xmm2
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
mov dword [rsi + 0x88], eax
xor eax, eax
jmp 0x4c5e3b
call fcn.005357d0
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0xb0
pop rsi
ret

Function at 0x4c6080
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.00535720
movzx ecx, bl
mov dword [rsp + 0x2c], ecx
lea r8, [rsp + 0x2c]
mov rcx, rax
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x4c60b2
xor eax, eax
add rsp, 0x30
pop rbx
ret
call fcn.005357d0
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret

Function at 0x4c7470
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rdx
xor esi, esi
xor ebx, ebx
cmp r8d, 0x3b9aca00
setne bl
cmove edi, esi
call fcn.00535720
mov word [rsp + 0x2c], bx
mov word [rsp + 0x2e], di
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, pe_nt_image_headers64
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x4c74ce
call fcn.005357d0
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x4c80e0
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov esi, edx
call fcn.00535720
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x20], 4
xor esi, esi
lea r9, [rsp + 0x2c]
mov rcx, rax
xor edx, edx
mov r8d, 3
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x4c8123
call fcn.005357d0
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret
Function at 0x4d2a60
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov bpl, 1
cmp qword [rdx + 0x10], 0
jne 0x4d2b91
mov rdi, r8
mov rsi, rdx
mov r15, rcx
lea rdx, [rcx + 0x10]
lea rcx, [rsp + 0x30]
call fcn.004d2f00
lea r13, [r15 + 0x38]
mov rcx, qword [r15 + 0x88]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r8d, 0xffffffff
cmp r14, r8
cmovb r8, r14
mov qword [rsp + 0x20], r13
mov rdx, rbp
xor r9d, r9d
call sub.KERNEL32.dll_ReadFile
lea r12, [rsi + 0x10]
test eax, eax
jne 0x4d2add
call fcn.005357d0
mov ebx, eax
cmp eax, 0x3e5
jne 0x4d2b45
mov dword [rsp + 0x2c], 0
mov rcx, qword [r15 + 0x88]
lea r8, [rsp + 0x2c]
mov rdx, r13
xor r9d, r9d
call sub.KERNEL32.dll_GetOverlappedResult
test eax, eax
jne 0x4d2b0e
call fcn.005357d0
mov ebx, eax
cmp eax, 0x3e4
jne 0x4d2b45
mov rcx, r12
call fcn.004d1380
mov qword [rsi + 0x10], 1
mov qword [rsi + 0x18], 0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x20], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x30], rax
lock inc qword [r15]
mov bpl, 1
jg 0x4d2b91
ud2
mov r15, rbp
cmp ebx, 0x218
setne bpl
je 0x4d2b7b
shl rbx, 0x20
or rbx, 2
mov rcx, r12
call fcn.004d1380
mov qword [rsi + 0x10], 3
mov qword [rsi + 0x18], rbx
mov rcx, rsi
mov rdx, rdi
call fcn.004d3bb0
test r14, r14
je 0x4d2b91
mov r8d, 1
mov rcx, r15
mov rdx, r14
call fcn.0044f660
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x4d2c00
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, r9
mov rsi, r8
mov r14, rdx
mov rdx, qword [r8 + 0x10]
mov rax, rdx
sub rax, r9
jb 0x4d2d62
mov rdi, rcx
lea r12, [r14 + 0x60]
mov rcx, qword [r14 + 0x88]
mov r15, qword [rsi]
mov r8d, 0xffffffff
cmp rax, r8
cmovb r8, rax
lea rdx, [r15 + rbx]
mov qword [rsp + 0x20], r12
xor r9d, r9d
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x4d2c6b
call fcn.005357d0
cmp eax, 0x3e5
jne 0x4d2d27
mov dword [rsp + 0x2c], 0
mov rcx, qword [r14 + 0x88]
lea r8, [rsp + 0x2c]
mov rdx, r12
xor r9d, r9d
call sub.KERNEL32.dll_GetOverlappedResult
mov r12, qword [rsp + 0x90]
test eax, eax
je 0x4d2cdf
mov r13d, dword [rsp + 0x2c]
lea r15, [r12 + 0x38]
mov rcx, r15
call fcn.004d1380
mov qword [r12 + 0x38], 2
mov qword [r12 + 0x40], rbx
movups xmm0, xmmword [rsi]
movups xmmword [r12 + 0x48], xmm0
mov rax, qword [rsi + 0x10]
mov qword [r12 + 0x58], rax
lock inc qword [r14]
jle 0x4d2d73
mov qword [rdi], 1
mov qword [rdi + 8], r13
jmp 0x4d2d51
call fcn.005357d0
cmp eax, 0x3e4
jne 0x4d2d27
lea r15, [r12 + 0x38]
mov rcx, r15
call fcn.004d1380
mov qword [r12 + 0x38], 1
mov qword [r12 + 0x40], rbx
movups xmm0, xmmword [rsi]
movups xmmword [r12 + 0x48], xmm0
mov rax, qword [rsi + 0x10]
mov qword [r12 + 0x58], rax
lock inc qword [r14]
jle 0x4d2d73
mov qword [rdi], 0
jmp 0x4d2d51
shl rax, 0x20
or rax, 2
mov qword [rdi + 8], rax
mov qword [rdi], 2
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x4d2d51
mov r8d, 1
mov rcx, r15
call fcn.0044f660
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str._home_codespace_.cargo_registry_src_index.crates.io_6f17d22bba15001f_mio_0.8.5_src_sys_windows_named_pipe.rs
mov rcx, rbx
call fcn.0058e550
ud2
ud2

Function at 0x4db600
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
cmp word [rdx], 0
movzx edx, r8w
je 0x4db638
mov ecx, 0x17
xor r8d, r8d
call sub.WS2_32.dll_socket
cmp rax, 0xffffffffffffffff
je 0x4db66c
mov rdi, rax
mov dword [rsp + 0x24], 1
lea r8, [rsp + 0x24]
jmp 0x4db65b
mov ecx, 2
xor r8d, r8d
call sub.WS2_32.dll_socket
cmp rax, 0xffffffffffffffff
je 0x4db66c
mov rdi, rax
mov dword [rsp + 0x20], 1
lea r8, [rsp + 0x20]
mov rcx, rdi
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x4db684
call fcn.005357d0
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x4db68a
mov qword [rsi + 8], rdi
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x4dd7e0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x5212f0
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, dword [rdx]
mov edx, dword [r8]
shl rdx, 0x20
or rdx, rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 8
xor esi, esi
lea r9, [rsp + 0x28]
xor edx, edx
mov r8d, 0xc
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x521339
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 0x4dd800
Capabilities:
Set socket configuration

Disassembly:
jmp 0x5213a0
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, dword [rdx]
mov edx, dword [r8]
shl rdx, 0x20
or rdx, rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 8
xor esi, esi
lea r9, [rsp + 0x28]
xor edx, edx
mov r8d, 0xd
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x5213e9
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 0x4de250
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x006320a8]
cmp rax, 3
jne 0x4de2d9
cmp word [rdi], 0
mov eax, 2
mov ecx, 0x17
cmove ecx, eax
mov edx, 1
xor r8d, r8d
call sub.WS2_32.dll_socket
cmp rax, 0xffffffffffffffff
je 0x4de2ae
mov rdi, rax
mov dword [rsp + 0x2c], 1
lea r8, [rsp + 0x2c]
mov rcx, rax
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x4de2c6
call fcn.005357d0
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x4de2cc
mov qword [rsi + 8], rdi
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov byte [rsp + 0x2b], 1
lea rax, [rsp + 0x2b]
mov qword [rsp + 0x30], rax
lea rax, str._home_codespace_.cargo_registry_src_index.crates.io_6f17d22bba15001f_mio_0.8.5_src_sys_windows_net.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x006320a8]
lea r9, [0x005c5e28]
lea r8, [rsp + 0x30]
xor edx, edx
call fcn.00541900
jmp 0x4de269

Function at 0x4de3c0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
sub rsp, 0x48
cmp word [rdx], 0
je 0x4de3ec
movups xmm0, xmmword [rdx + 4]
movzx eax, word [rdx + 0x1c]
rol ax, 8
mov r8d, dword [rdx + 0x18]
add rdx, 0x14
mov esi, 0x1c
mov r9w, 0x17
jmp 0x4de405
movzx eax, word [rdx + 6]
rol ax, 8
add rdx, 2
mov esi, 0x10
mov r9w, 2
xorps xmm0, xmm0
mov edx, dword [rdx]
mov word [rsp + 0x2c], r9w
mov word [rsp + 0x2e], ax
mov dword [rsp + 0x30], edx
movups xmmword [rsp + 0x34], xmm0
mov dword [rsp + 0x44], r8d
call fcn.00535720
lea rdx, [rsp + 0x2c]
mov rcx, rax
mov r8d, esi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x4de43e
xor esi, esi
jmp 0x4de45d
call fcn.005357d0
mov rsi, rax
shl rsi, 0x20
or rsi, 2
mov ecx, eax
call fcn.005403a0
xor ecx, ecx
cmp al, 0xd
cmove rsi, rcx
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x4e6360
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, qword [rcx]
mov rsi, qword [rdi]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x4e6377
dec ecx
jmp 0x4e6381
mov rcx, rsi
call fcn.0053fd10
mov ecx, eax
mov edx, 1
call fcn.005ab204
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.0044f660
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x4e63a9
dec ecx
jmp 0x4e63b3
mov rcx, rsi
call fcn.0053fd10
mov ecx, eax
xor esi, esi
xor edx, edx
call fcn.005ab204
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x4e6d80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x4e6db0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x4e6dc5
cmp byte [rax + 8], 0
je 0x4e6dc5
add rax, 9
jmp 0x4e6e54
mov rcx, rdi
call fcn.0053fd10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x4e6da1
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x4e6e3d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x4e6e52
mov rbx, rax
test rax, rax
jne 0x4e6e1a
mov rax, qword [0x005f7f18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.0044f650
test rax, rax
je 0x4e6e68
mov rbx, rax
mov qword [rax], rdi
mov byte [rax + 8], 0
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x4e6e5c
dec ecx
mov rdx, rbx
call fcn.005ab204
xor ecx, ecx
test rsi, rsi
je 0x4e6e30
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rbx + 9]
mov byte [rbx + 8], 1
mov byte [rbx + 9], cl
jmp 0x4e6e54
mov rcx, rdi
call fcn.0053fd10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x4e6dd9
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rdi
call fcn.0053fd10
mov ecx, eax
jmp 0x4e6e12
mov ecx, 8
mov edx, 0x10
call fcn.00578c70
ud2
Function at 0x4e7200
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rdx
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x4e7234
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x4e7249
mov rdi, rax
cmp qword [rax + 8], 0
je 0x4e7249
add rdi, 8
jmp 0x4e7373
mov rcx, rbx
call fcn.0053fd10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x4e7221
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x4e7358
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x4e7371
mov rdi, rax
test rax, rax
jne 0x4e72d8
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
mov rax, qword [0x005f7f18]
movzx eax, byte [rax]
mov ecx, 0x40
mov edx, 8
call fcn.0044f650
test rax, rax
je 0x4e738d
mov rdi, rax
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmm2, xmmword [rsp + 0x40]
movups xmm3, xmmword [rsp + 0x50]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x4e737e
dec ecx
mov rdx, rdi
call fcn.005ab204
add rdi, 8
test rsi, rsi
je 0x4e7312
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x4e7312
movups xmm0, xmmword [rsi + 8]
movups xmm1, xmmword [rsi + 0x18]
movups xmm2, xmmword [rsi + 0x28]
movups xmmword [rsp + 0x48], xmm2
movups xmmword [rsp + 0x38], xmm1
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rax
jmp 0x4e731c
lea rcx, [rsp + 0x20]
call fcn.004e81e0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm1
mov rdx, qword [rsp + 0x50]
mov qword [rdi + 0x30], rdx
cmp qword [rdi], 0
mov qword [rdi], rax
mov qword [rdi + 8], rcx
je 0x4e7373
lock dec qword [0x006320d0]
jmp 0x4e7373
mov rcx, rbx
call fcn.0053fd10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x4e7265
xor edi, edi
mov rax, rdi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call fcn.0053fd10
mov ecx, eax
jmp 0x4e72d0
mov ecx, 8
mov edx, 0x40
call fcn.00578c70
ud2
mov rdx, rcx
lea rcx, [0x005ae758]
jmp 0x4e7200