joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017800
Capabilities:
Get socket status

Disassembly:
jmp 0x1400bc250
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rbx, qword [rbp + 0x210]
lea r13, [0x1401e1a10]
mov r15, r9
mov qword [rsp + 0x2f8], rdi
mov r12, r8
movzx r14d, dl
mov rsi, rcx
movabs rdx, 0x8fafd21e25c5e09b
cmp rsi, 0xffffffffffffffff
jne 0x1400bc2cb
mov dword [rsp + 0x48], 0x2719
mov byte [rsp + 0x4c], 1
mov qword [rsp + 0x50], r13
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
jmp 0x1400bc343
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdx, r12
mov rcx, rsi
test r15, r15
je 0x1400bc2fd
mov eax, dword [r15]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], eax
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
movsxd rax, dword [rsp + 0x30]
mov qword [r15], rax
jmp 0x1400bc311
xor r8d, r8d
mov dword [rsp + 0x30], 0
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x60], r13
setne byte [rsp + 0x5c]
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
cmp rdi, 0xffffffffffffffff
jne 0x1400bc45f
movabs rdx, 0x8fafd21e25c5e09b
mov ecx, dword [rbx]
cmp ecx, 0x2733
jne 0x1400bc369
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rdx
je 0x1400bc37f
cmp ecx, 0x2745
jne 0x1400bc385
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rdx
jmp 0x1400bc38b
cmp ecx, 0x4d5
jne 0x1400bc357
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rdx
jne 0x1400bc456
test r14b, 1
jmp 0x1400bc395
cmp ecx, 0x86
jne 0x1400bc456
test r14b, 4
jne 0x1400bc456
cmp rsi, 0xffffffffffffffff
je 0x1400bc43c
xor ecx, ecx
mov qword [rbp - 0x68], rsi
mov dword [rbp - 0x70], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [rsi + 1]
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, [rbp - 0x70]
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x70], r13
setne byte [rsp + 0x6c]
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbx], xmm0
test edi, edi
jne 0x1400bc412
mov dword [rsp + 0x78], edi
mov byte [rsp + 0x7c], dil
mov qword [rbp - 0x80], r13
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rbx], xmm0
jmp 0x1400bc29f
jle 0x1400bc433
mov dword [rsp + 0x38], 0
mov byte [rsp + 0x3c], 0
mov qword [rsp + 0x40], r13
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
jmp 0x1400bc29f
test edi, edi
js 0x1400bc456
jmp 0x1400bc29f
mov dword [rsp + 0x38], 0x2719
mov byte [rsp + 0x3c], 1
mov qword [rsp + 0x40], r13
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
mov rax, 0xffffffffffffffff
jmp 0x1400bc47c
mov dword [rsp + 0x38], 0
mov rax, rdi
mov byte [rsp + 0x3c], 0
mov qword [rsp + 0x40], r13
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
mov rdi, qword [rsp + 0x2f8]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14000fde0
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret
Function at 0x140018e90
Capabilities:
Terminate process

Disassembly:
jmp 0x14015b8bc
sub rsp, 0x28
mov ecx, Ordinal_26
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14015b8d6
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.14001d490
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400194e0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401a890c
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1401f8a38]
mov ecx, 5
lea r8, [0x1401f8a30]
lea rdx, str.FlsGetValue
call fcn.1401a7f04
mov ecx, ebx
test rax, rax
je 0x1401a8946
add rsp, 0x20
pop rbx
jmp qword [case.0x14006bf61.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14001a330
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x140080980
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x14023d880], eax
inc eax
cmp eax, 1
jne 0x1400809cd
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x14023d884], eax
test dil, dil
je 0x1400809e0
xor eax, eax
lock xadd dword [0x14023d884], eax
test eax, eax
jne 0x140080a04
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14000fde0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
lea rdx, str.winsock
lea rax, [0x1401e1a10]
mov byte [rsp + 0x24], 1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.140015770
int3
Function at 0x14001bd40
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401a8964
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1401f8a58]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x1401f8a50]
call fcn.1401a7f04
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1401a89a4
call qword [case.0x14006bf61.0]
jmp 0x1401a89aa
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001bf40
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400b6f50
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400b6f86
mov rax, qword [rax + 0x38]
test rax, rax
je 0x1400b6f7e
xor edx, edx
mov rcx, rax
mov rax, qword [rax]
call qword [case.0x14006bf61.0]
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400b6fdb
mov ecx, dword [0x14023d88c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400b6fcb
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400b6fcb
cmp qword [rcx], 0
jne 0x1400b6fcb
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
mov qword [rcx], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.14001b300
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001e5d0
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401ad2a0
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c810
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401ad32a
cmp byte [rbp - 0x21], r15b
je 0x1401ad325
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r8d, ebx
jmp 0x1401ad360
call fcn.140020f70
test eax, eax
jne 0x1401ad34c
cmp byte [rbp - 0x21], r15b
je 0x1401ad344
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r8d, 1
jmp 0x1401ad360
cmp byte [rbp - 0x21], r15b
je 0x1401ad35d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r8d, r15d
lea rdx, [rbp + 0x17]
mov rcx, rsi
call fcn.14000b3a0
test eax, eax
jne 0x1401ad3f8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c810
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401ad39b
cmp byte [rbp - 0x21], r15b
je 0x1401ad3d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401ad3d0
call fcn.140020f70
test eax, eax
jne 0x1401ad3bc
cmp byte [rbp - 0x21], r15b
je 0x1401ad3b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401ad3d0
cmp byte [rbp - 0x21], r15b
je 0x1401ad3cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r8d, ebx
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000b3a0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401ad3f8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401ad3fb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401ad409
mov rcx, rdi
call fcn.140001e90
cmp byte [rbp + 0x3f], r15b
je 0x1401ad418
mov rcx, qword [rbp + 0x27]
call fcn.140001e90
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001ef50
Capabilities:
Parse pe header

Disassembly:
jmp 0x14019f278
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14019f043
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14019f043
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14019f043
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14019f043
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14019f043
cmp dword [rcx + 0x84], 0xe
jbe 0x14019f043
cmp dword [rcx + 0xf8], 0
je 0x14019f043
mov ecx, ebx
call fcn.14019f1d4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14019ed4c
cmp dword [rbp + 0x20], 0
je 0x14019f090
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14019f0c8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14019efdc

Function at 0x14001f4c0
Capabilities:
Create thread

Disassembly:
jmp 0x14017e260
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov edi, edx
mov rsi, rcx
test r8, r8
jne 0x14017e290
call fcn.14000c160
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140003d00
xor eax, eax
jmp 0x14017e310
mov rdx, r9
mov rcx, r8
call fcn.14017e040
mov rbx, rax
test rax, rax
je 0x14017e2e0
lea rax, [rsp + 0x50]
mov rdx, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x14017dde0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14017e320
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000a0a0
xor edi, edi
test rbx, rbx
je 0x14017e30d
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14017e2f6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14017e305
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140001e90
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14017e330
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
xor ebx, ebx
jmp 0x14017e2e2
Function at 0x140020990
Capabilities:
Print debug messages

Disassembly:
jmp 0x140109288
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140017aa0
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1401ee278]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.14000f8a0
test eax, eax
jne 0x14010931f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14010931f
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140109318
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x14023d080], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x140020e90
Capabilities:
Delete registry value

Disassembly:
jmp 0x140047cb0
sub rsp, 0x58
call fcn.140003f40
test eax, eax
jne 0x140047cc7
mov eax, 0x80004005
add rsp, 0x58
ret
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x68]
xor ebx, ebx
mov qword [rsp + 0x50], rdi
mov r9d, 0x20006
mov qword [rsp + 0x68], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140047dc6
mov rdi, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rbx
mov r9d, 0x20006
lea rbx, str.D5D53ADA_EAFD_4AA8_BD6B_DA32F20171C4
mov qword [rsp + 0x78], rsi
mov rdx, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140047d99
mov rsi, qword [rsp + 0x70]
lea rdx, str.LocalService
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [0x14023d0b0]
lea rax, str.APPID
xor r8d, r8d
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x30]
movdqu xmmword [rsp + 0x40], xmm0
lea edx, [r8 + 0x65]
call fcn.14001e8a0
mov ebx, eax
test rsi, rsi
je 0x140047da2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140047da2
mov ecx, eax
call fcn.14001df00
mov ebx, eax
mov rsi, qword [rsp + 0x78]
test rdi, rdi
je 0x140047dcf
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
mov ecx, eax
call fcn.14001df00
mov ebx, eax
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x140022410
Capabilities:
Get socket status

Disassembly:
jmp 0x1400bc7a0
push rbp
push rbx
push rdi
push r12
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, qword [rbp + 0x210]
mov rax, r8
mov qword [rsp + 0x30], rax
mov r10, r9
mov qword [rsp + 0x40], r9
movzx r12d, dl
mov r15, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400bc814
lea rdi, [0x1401e1a10]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rdi
xor eax, eax
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x1400bc98b
cmp byte [rbp + 0x208], 0
mov qword [rsp + 0x2a0], r14
je 0x1400bc853
test r12b, 0x10
je 0x1400bc853
xor r14d, r14d
lea rdi, [0x1401e1a10]
mov dword [rsp + 0x30], r14d
xor eax, eax
mov byte [rsp + 0x34], r14b
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x1400bc983
mov qword [rsp + 0x2e8], rsi
mov r8, r10
mov qword [rsp + 0x2a8], r13
mov rdx, rax
mov r13d, dword [rbp + 0x200]
mov r9d, r13d
mov qword [rsp + 0x20], rbx
call fcn.14000f430
test eax, eax
jns 0x1400bc971
and r12b, 1
lea rdi, [0x1401e1a10]
xor r14d, r14d
movabs rcx, 0x8fafd21e25c5e09b
test r12b, r12b
jne 0x1400bc9a9
mov eax, dword [rbx]
cmp eax, 0x2733
je 0x1400bc8ba
cmp eax, 0x4d5
jne 0x1400bc9a9
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rcx
jne 0x1400bc9a9
xor ecx, ecx
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x80], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r15 + 1]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rdi
setne byte [rsp + 0x4c]
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x1400bc930
mov dword [rsp + 0x58], r14d
mov byte [rsp + 0x5c], r14b
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
jmp 0x1400bc94f
jle 0x1400bc94b
mov dword [rsp + 0x68], r14d
mov byte [rsp + 0x6c], r14b
mov qword [rsp + 0x70], rdi
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbx], xmm0
jmp 0x1400bc94f
test esi, esi
js 0x1400bc9a9
mov r8, qword [rsp + 0x40]
mov r9d, r13d
mov rdx, qword [rsp + 0x30]
mov rcx, r15
mov qword [rsp + 0x20], rbx
call fcn.14000f430
test eax, eax
js 0x1400bc893
mov eax, eax
mov r13, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x2e8]
mov r14, qword [rsp + 0x2a0]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14000fde0
add rsp, 0x2b0
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret
xor eax, eax
jmp 0x1400bc973
Function at 0x140077a40
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140077a40
jmp 0x1400b4cf0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov ecx, dword [0x14023d88c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
test rax, rax
je 0x140077a90
mov rax, qword [rax + 8]
test rax, rax
je 0x140077a90
mov rdx, qword [rax]
test rdx, rdx
je 0x140077a90
mov qword [rax], rsi
movzx eax, byte [rdx]
cmp al, 0x12
jb 0x140077a88
mov byte [rdx + 0x48], al
jmp 0x140077aa1
mov rcx, rdx
call fcn.14001b300
mov ecx, 0x49
call fcn.140002480
mov rdx, rax
mov byte [rax + 0x48], reloc.WS2_32.dll_select
mov qword [rdx + 0x20], rsi
lea rax, [0x140014b50]
mov qword [rdx + 0x28], rax
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], rsi
mov dword [rdx + 0x30], esi
mov rax, qword [rbx]
mov qword [rdx + 0x38], rax
mov qword [rbx], rsi
mov rcx, qword [rdi]
xor r8d, r8d
mov rcx, qword [rcx + 0x10]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140017f10
lea r8, [rcx + 0x20]
add rcx, 0x18
jmp 0x14000f7e0

Function at 0x140080980
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x140080980
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x14023d880], eax
inc eax
cmp eax, 1
jne 0x1400809cd
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x14023d884], eax
test dil, dil
je 0x1400809e0
xor eax, eax
lock xadd dword [0x14023d884], eax
test eax, eax
jne 0x140080a04
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14000fde0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
lea rdx, str.winsock
lea rax, [0x1401e1a10]
mov byte [rsp + 0x24], 1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.140015770
int3

Function at 0x14008e9f0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14008e9f0
push rdi
sub rsp, 0x20
mov rdi, qword [rcx]
cmp rdi, 0xffffffffffffffff
je 0x14008ea66
xor ecx, ecx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov rbx, qword [rsp + 0x38]
je 0x14008ea66
cmp eax, 0x2733
je 0x14008ea34
cmp eax, 0x4d5
jne 0x14008ea66
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x20
pop rdi
ret
Function at 0x14009e510
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14009e510
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
lea r15, [0x1401e1a10]
mov rdi, r9
mov r14, rdx
mov rsi, rcx
mov ebx, ebp
cmp rcx, 0xffffffffffffffff
je 0x14009e64f
test r8b, r8b
je 0x14009e589
movzx eax, byte [rdx]
test al, 8
je 0x14009e589
or al, 8
mov dword [rsp + 0x60], ebp
xor ecx, ecx
mov byte [rdx], al
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x80
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
je 0x14009e64f
mov eax, dword [rdi]
cmp eax, 0x2733
jne 0x14009e5e4
mov rcx, qword [rdi + 8]
movabs rdx, 0x8fafd21e25c5e09b
cmp qword [rcx + 8], rdx
je 0x14009e5ff
jmp 0x14009e665
cmp eax, 0x4d5
jne 0x14009e665
mov rax, qword [rdi + 8]
movabs rdx, 0x8fafd21e25c5e09b
cmp qword [rax + 8], rdx
jne 0x14009e665
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], ebp
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
jne 0x14009e665
mov dword [rsp + 0x30], ebp
mov byte [rsp + 0x34], bpl
mov qword [rsp + 0x38], r15
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x1400acd40
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x1400acd40
push rbx
sub rsp, 0x50
mov rbx, qword [rcx + 8]
lea rax, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov dword [rsp + 0x68], eax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x50
pop rbx
ret
Function at 0x1400ace40
Capabilities:
Terminate thread

Disassembly:
jmp 0x1400ace40
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x30
mov rbx, qword [rcx]
mov rsi, rcx
test rbx, rbx
je 0x1400acf09
mov qword [rsp + 0x40], rdi
nop
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rbx + 8]
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x14023d814], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x1400aceb0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400aced2
mov rdx, rcx
xor r8d, r8d
lea rcx, [0x14000bb00]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rsi]
mov rbx, qword [rdi + 0x18]
mov qword [rsi], rbx
test rdi, rdi
je 0x1400acefb
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x20
mov rcx, rdi
call fcn.140019f20
mov rbx, qword [rsi]
test rbx, rbx
jne 0x1400ace60
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret

Function at 0x1400acf50
Capabilities:
Terminate thread

Disassembly:
jmp 0x1400acf50
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x14023d814], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x1400acfad
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [0x14000bb00]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret