joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140096b70
Capabilities:
Create process on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0x110]
xor eax, eax
mov qword [rbp - 0x68], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x60], xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov r14, qword [rbp + 0x48]
mov rsi, qword [rbp + 0x50]
mov rdi, qword [rbp + 0x58]
xor r15d, r15d
cmp byte [rbp + 0x30], 0
setne r15b
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x48], rsi
test r14, r14
je 0x140096bcd
add r14, 0xc
jmp 0x140096bd0
xor r14d, r14d
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x58], r9
mov r13, r9
mov qword [rbp - 0x60], r8
mov r12, r8
test rcx, rcx
je 0x140096bf0
add rcx, 0xc
mov rax, rcx
jmp 0x140096bf2
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x70], rax
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov dword [rsp + 0x20], r15d
mov r15d, dword [rbp + 0x38]
mov dword [rsp + 0x28], r15d
mov r15, qword [rbp + 0x40]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov rcx, qword [rbp - 0x70]
mov qword [rbp - 0x78], rcx
mov rdx, rbx
mov qword [rbp - 0x80], rdx
mov r8, r12
mov qword [rbp - 0x88], r8
mov r9, r13
mov qword [rbp - 0x90], r9
lea rcx, [rbp - 0xb8]
call fcn.140008350
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x88]
mov r9, qword [rbp - 0x90]
call sub.KERNEL32.dll_CreateProcessW
mov ebx, eax
lea rcx, [rbp - 0xb8]
call fcn.1400083a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
test ebx, ebx
setne bl
movzx ebx, bl
call fcn.140003bf9
mov dword [rax + 0xe0], esi
movzx eax, bl
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140096de0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rax
mov ebx, edx
mov qword [rbp - 0x40], r8
mov rsi, r8
lea rdi, [rcx + 0x10]
xor eax, eax
test rcx, rcx
cmove rdi, rax
mov qword [rbp - 0x48], rdi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov qword [rbp - 0x54], rcx
mov edx, ebx
mov dword [rbp - 0x4c], edx
mov r8, rsi
mov qword [rbp - 0x5c], r8
lea rcx, [rbp - 0x88]
call fcn.140008350
mov rcx, qword [rbp - 0x54]
mov edx, dword [rbp - 0x4c]
mov r8, qword [rbp - 0x5c]
call sub.KERNEL32.dll_K32EnumProcesses
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1400083a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
test ebx, ebx
setne bl
movzx ebx, bl
call fcn.140003bf9
mov dword [rax + 0xe0], esi
movzx eax, bl
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400973e0
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0xe0]
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rbx, r8
mov r14d, r9d
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x50], rcx
mov byte [rbp - 0x5c], 0
lea rcx, [0x140421d98]
call fcn.1403b0c10
mov qword [rbp - 0x68], rax
mov byte [rbp - 0x60], 0
lea rcx, [0x140421d98]
call fcn.1403b0c10
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x58], rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x7c], rcx
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x84], rdx
mov r8, rbx
mov qword [rbp - 0x8c], r8
mov r9d, r14d
mov dword [rbp - 0x74], r9d
lea rcx, [rbp - 0xb8]
call fcn.140008350
mov rcx, qword [rbp - 0x7c]
mov rdx, qword [rbp - 0x84]
mov r8, qword [rbp - 0x8c]
mov r9d, dword [rbp - 0x74]
call sub.KERNEL32.dll_CreatePipe
mov ebx, eax
lea rcx, [rbp - 0xb8]
call fcn.1400083a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x58], rcx
mov dword [rbp - 0x3c], 1
mov rcx, qword [rbp - 0x50]
mov byte [rbp - 0x5c], 1
mov rax, qword [rbp - 0x68]
mov qword [rax + 8], rcx
mov rcx, qword [rbp - 0x48]
mov byte [rbp - 0x60], 1
mov r8, qword [rbp - 0x70]
mov qword [r8 + 8], rcx
test ebx, ebx
setne bl
movzx ebx, bl
mov rcx, qword [rbp + 0x18]
mov rdx, rax
call fcn.140008140
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x70]
call fcn.140008140
nop
call fcn.140003bf9
mov dword [rax + 0xe0], esi
movzx eax, bl
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1401117e0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rax
mov rbx, r8
mov rsi, r9
test rdx, rdx
je 0x140111813
add rdx, 0xc
jmp 0x140111815
xor edx, edx
mov qword [rbp - 0x40], rdx
mov rdi, rdx
test rcx, rcx
je 0x14011182a
add rcx, 0xc
mov r14, rcx
jmp 0x14011182d
xor r14d, r14d
mov qword [rbp - 0x48], r14
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r14
mov qword [rbp - 0x50], rcx
mov rdx, rdi
mov qword [rbp - 0x58], rdx
mov r8, rbx
mov qword [rbp - 0x60], r8
mov r9, rsi
mov qword [rbp - 0x68], r9
lea rcx, [rbp - 0x90]
call fcn.140008350
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x60]
mov r9, qword [rbp - 0x68]
call sub.WS2_32.dll_GetAddrInfoW
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.1400083a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
call fcn.140003bf9
mov dword [rax + 0xe0], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1401119e0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0xe0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rax
mov ebx, r8d
mov rsi, r9
test rdx, rdx
je 0x140111a16
add rdx, 0xc
jmp 0x140111a18
xor edx, edx
mov qword [rbp - 0x40], rdx
mov rdi, rdx
test rcx, rcx
je 0x140111a2d
add rcx, 0xc
mov r14, rcx
jmp 0x140111a30
xor r14d, r14d
mov qword [rbp - 0x48], r14
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov r15, qword [rbp + 0x38]
mov qword [rsp + 0x28], r15
mov r15, qword [rbp + 0x40]
mov qword [rsp + 0x30], r15
mov r15, qword [rbp + 0x48]
mov qword [rsp + 0x38], r15
mov r15, qword [rbp + 0x50]
mov qword [rsp + 0x40], r15
mov r15, qword [rbp + 0x58]
mov qword [rsp + 0x48], r15
mov rcx, r14
mov qword [rbp - 0x54], rcx
mov rdx, rdi
mov qword [rbp - 0x5c], rdx
mov r8d, ebx
mov dword [rbp - 0x4c], r8d
mov r9, rsi
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.140008350
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.WS2_32.dll_GetAddrInfoExW
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.1400083a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
call fcn.140003bf9
mov dword [rax + 0xe0], esi
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140111b50
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x1f8
lea rbp, [rsp + 0x230]
lea rdx, [rbp - 0x1d0]
mov qword [rbp - 0x1dc], rdx
mov ecx, 0x202
mov dword [rbp - 0x1d4], ecx
lea rcx, [rbp - 0x208]
call fcn.140008350
mov rdx, qword [rbp - 0x1dc]
mov ecx, dword [rbp - 0x1d4]
call sub.WS2_32.dll_WSAStartup
mov ebx, eax
lea rcx, [rbp - 0x208]
call fcn.1400083a0
test ebx, ebx
jne 0x140111bfc
lea rcx, [0x1407b6724]
mov edx, 1
xor eax, eax
lock cmpxchg dword [rcx], edx
test eax, eax
je 0x140111be7
lea rcx, [rbp - 0x208]
call fcn.140008350
call sub.WS2_32.dll_WSACleanup
lea rcx, [rbp - 0x208]
call fcn.1400083a0
nop
add rsp, 0x1f8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [0x140448770]
call fcn.140007ec0
mov rsi, rax
mov rcx, rsi
mov edx, ebx
call fcn.1401214b0
mov rcx, rsi
call fcn.140008990
int3
Function at 0x140117520
Capabilities:
Get local ipv4 addresses

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor ecx, ecx
mov dword [rbp - 0x40], ecx
lea rcx, [0x14048e3c0]
call fcn.140007ec0
mov rbx, rax
mov rcx, qword [0x1407b3750]
mov rdx, qword [rcx + 8]
lea rcx, [rbx + 8]
call fcn.1400080d0
mov qword [rbp - 0x50], rbx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov dword [rbp - 0x54], ecx
mov edx, 0xc0
mov dword [rbp - 0x58], edx
xor r8d, r8d
mov qword [rbp - 0x60], r8
xor r9d, r9d
mov qword [rbp - 0x68], r9
lea rcx, [rbp - 0x90]
call fcn.140008350
mov ecx, dword [rbp - 0x54]
mov edx, dword [rbp - 0x58]
mov r8, qword [rbp - 0x60]
mov r9, qword [rbp - 0x68]
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.1400083a0
cmp ebx, 0x6f
jne 0x1401176d1
mov ecx, dword [rbp - 0x40]
movsxd rcx, ecx
call fcn.1401dd590
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov dword [rbp - 0x58], ecx
mov edx, 0xc0
mov dword [rbp - 0x54], edx
mov r9, qword [rbp - 0x48]
mov qword [rbp - 0x68], r9
xor r8d, r8d
mov qword [rbp - 0x60], r8
lea rcx, [rbp - 0x90]
call fcn.140008350
mov ecx, dword [rbp - 0x58]
mov edx, dword [rbp - 0x54]
mov r9, qword [rbp - 0x68]
mov r8, qword [rbp - 0x60]
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.1400083a0
test ebx, ebx
jne 0x14011767e
mov rsi, qword [rbp - 0x48]
test rsi, rsi
je 0x140117678
lea rcx, [0x140447a30]
call fcn.140007ec0
mov rdi, rax
mov rcx, rdi
mov rdx, rsi
call fcn.140117760
mov r14, qword [rbp - 0x50]
inc dword [r14 + 0x14]
mov rcx, qword [r14 + 8]
mov edx, dword [r14 + 0x10]
mov eax, dword [rcx + 8]
cmp eax, edx
jbe 0x140117686
lea eax, [rdx + 1]
mov dword [r14 + 0x10], eax
mov edx, edx
lea rcx, [rcx + rdx*8 + 0x10]
mov rdx, rdi
call fcn.1400080d0
jmp 0x140117691
mov r14, qword [rbp - 0x50]
jmp 0x14011769a
mov r14, qword [rbp - 0x50]
jmp 0x14011769a
jmp 0x14011762f
mov rcx, r14
mov rdx, rdi
call fcn.14031fab0
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x140117684
test qword [rbp - 0x48], 0xffffffffffff0000
je 0x1401176ad
mov rcx, qword [rbp - 0x48]
call fcn.1402001b0
cmp ebx, 0x6f
je 0x1401176cc
cmp ebx, 0xe8
je 0x1401176bf
cmp ebx, 0x57
jne 0x1401176d7
mov rcx, qword [0x1407b3758]
mov rax, qword [rcx + 8]
jmp 0x1401176e3
jmp 0x1401175c1
mov r14, qword [rbp - 0x50]
jmp 0x1401176b2
test ebx, ebx
jne 0x1401176f8
mov rcx, r14
call fcn.140320290
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [0x140447698]
call fcn.140007ec0
mov rsi, rax
mov ecx, ebx
xor edx, edx
call fcn.140201780
mov rdx, rax
mov rcx, rsi
call fcn.1401dd8a0
mov dword [rsi + 0x50], ebx
mov rcx, rsi
call fcn.140008990
int3
Function at 0x140117d40
Capabilities:
Get networking parameters

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
mov rbx, qword [0x1407b2618]
mov rcx, qword [rbx + 0x20]
mov qword [rbp - 0x58], rcx
xor eax, eax
mov dword [rbp - 0x3c], eax
call fcn.14019b570
mov dword [rbp - 0x3c], 1
lea rdx, [0x140429a80]
cmp byte [rdx + 7], 0
jne 0x140117f5b
xor edx, edx
mov dword [rbp - 0x48], edx
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x60], rdx
xor ecx, ecx
mov qword [rbp - 0x68], rcx
lea rcx, [rbp - 0x90]
call fcn.140008350
mov rdx, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
call sub.IPHLPAPI.DLL_GetNetworkParams
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.1400083a0
cmp esi, 0x6f
jne 0x140117f57
mov ecx, dword [rbp - 0x48]
movsxd rcx, ecx
call fcn.1401dd590
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x68], rdx
mov rcx, qword [rbp - 0x50]
mov qword [rbp - 0x60], rcx
lea rcx, [rbp - 0x90]
call fcn.140008350
mov rdx, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x60]
call sub.IPHLPAPI.DLL_GetNetworkParams
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.1400083a0
test esi, esi
jne 0x140117f18
mov rcx, qword [rbp - 0x50]
cmp byte [rcx], cl
mov rcx, qword [rbp - 0x50]
mov edx, 0x84
call fcn.140114630
lea rcx, [rbx + 8]
mov rdx, rax
call fcn.1400080d0
mov rcx, qword [rbp - 0x50]
cmp byte [rcx], cl
mov rdi, qword [rbp - 0x50]
add rdi, 0x84
mov rcx, rdi
mov edx, 0x84
call fcn.140114630
lea rcx, [rbx + 0x10]
mov rdx, rax
call fcn.1400080d0
mov rcx, qword [rbp - 0x50]
cmp byte [rcx], cl
mov rcx, qword [rbp - 0x50]
mov edx, 0x84
call fcn.140114630
lea rcx, [rbx + 8]
mov rdx, rax
call fcn.1400080d0
mov rcx, qword [rbp - 0x50]
cmp byte [rcx], cl
mov rcx, rdi
mov edx, 0x84
call fcn.140114630
lea rcx, [rbx + 0x10]
mov rdx, rax
call fcn.1400080d0
mov rcx, qword [rbp - 0x50]
mov ecx, dword [rcx + 0x140]
mov dword [0x140429a80], ecx
mov rcx, qword [rbp - 0x50]
cmp byte [rcx], cl
mov rcx, qword [rbp - 0x50]
add rcx, 0x144
mov edx, 0x104
call fcn.140114630
lea rcx, [rbx + 0x18]
mov rdx, rax
call fcn.1400080d0
mov rcx, qword [rbp - 0x50]
cmp dword [rcx + 0x248], 0
setne cl
lea rax, [0x140429a80]
mov byte [rax + 4], cl
mov rcx, qword [rbp - 0x50]
cmp dword [rcx + 0x24c], 0
setne cl
mov byte [rax + 5], cl
mov rcx, qword [rbp - 0x50]
cmp dword [rcx + 0x250], 0
setne cl
mov byte [rax + 6], cl
mov byte [rax + 7], 1
test qword [rbp - 0x50], 0xffffffffffff0000
je 0x140117f4e
mov rcx, qword [rbp - 0x50]
call fcn.1402001b0
jmp 0x140117f4e
lea rcx, [0x140451198]
call fcn.140007ec0
mov rbx, rax
mov rcx, rbx
mov edx, esi
call fcn.140197960
mov rcx, rbx
call fcn.140008990
cmp esi, 0x6f
je 0x140117dcc
test esi, esi
jne 0x140117f2d
mov rcx, qword [rbp - 0x58]
call fcn.14019b7e0
nop
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140140830
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov rbx, rdx
mov rsi, r8
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1401ddd60
mov rcx, qword [rbp - 0x48]
mov rdi, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov qword [rbp - 0x50], rcx
mov rdx, rbx
mov qword [rbp - 0x58], rdx
mov r8, rsi
mov qword [rbp - 0x60], r8
lea rcx, [rbp - 0x88]
call fcn.140008350
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x60]
call sub.WS2_32.dll_getsockname
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1400083a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
cmp byte [rbp - 0x40], 0
je 0x1401408d3
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1401ddda0
call fcn.140003bf9
mov dword [rax + 0xe0], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140140f40
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov esi, edx
mov qword [rbp - 0x40], r8
mov rdi, r8
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov edx, esi
mov dword [rbp - 0x44], edx
mov r8, rdi
mov qword [rbp - 0x54], r8
lea rcx, [rbp - 0x80]
call fcn.140008350
mov rcx, qword [rbp - 0x4c]
mov edx, dword [rbp - 0x44]
mov r8, qword [rbp - 0x54]
call sub.WS2_32.dll_ioctlsocket
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1400083a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140003bf9
mov dword [rax + 0xe0], esi
mov eax, ebx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140140fe0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov esi, edx
mov rbx, r8
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1401ddd60
nop
mov qword [rbp - 0x50], rbx
mov rcx, qword [rbp - 0x48]
mov rdi, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov qword [rbp - 0x5c], rcx
mov edx, esi
mov dword [rbp - 0x54], edx
mov r8, rbx
mov qword [rbp - 0x64], r8
lea rcx, [rbp - 0x90]
call fcn.140008350
mov rcx, qword [rbp - 0x5c]
mov edx, dword [rbp - 0x54]
mov r8, qword [rbp - 0x64]
call sub.WS2_32.dll_ioctlsocket
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.1400083a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x140141091
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1401ddda0
call fcn.140003bf9
mov dword [rax + 0xe0], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1401411f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov rbx, rdx
mov esi, r8d
mov edi, r9d
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1401ddd60
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r14
mov qword [rbp - 0x58], rcx
mov rdx, rbx
mov qword [rbp - 0x60], rdx
mov r8d, esi
mov dword [rbp - 0x4c], r8d
mov r9d, edi
mov dword [rbp - 0x50], r9d
lea rcx, [rbp - 0x88]
call fcn.140008350
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov r8d, dword [rbp - 0x4c]
mov r9d, dword [rbp - 0x50]
call sub.WS2_32.dll_recv
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1400083a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
cmp byte [rbp - 0x40], 0
je 0x1401412a1
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1401ddda0
call fcn.140003bf9
mov dword [rax + 0xe0], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140141300
Capabilities:
Get socket status

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov ebx, ecx
mov rsi, rdx
mov rdi, r8
mov r14, r9
mov r15, qword [rbp + 0x30]
mov qword [rbp - 0x40], r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov qword [rsp + 0x20], r15
mov ecx, ebx
mov dword [rbp - 0x44], ecx
mov rdx, rsi
mov qword [rbp - 0x4c], rdx
mov r8, rdi
mov qword [rbp - 0x54], r8
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140008350
mov ecx, dword [rbp - 0x44]
mov rdx, qword [rbp - 0x4c]
mov r8, qword [rbp - 0x54]
mov r9, qword [rbp - 0x5c]
call sub.WS2_32.dll_select
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1400083a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140003bf9
mov dword [rax + 0xe0], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov rbx, rdx
mov esi, r8d
mov edi, r9d
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1401ddd60
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r14
mov qword [rbp - 0x58], rcx
mov rdx, rbx
mov qword [rbp - 0x60], rdx
mov r8d, esi
mov dword [rbp - 0x4c], r8d
mov r9d, edi
mov dword [rbp - 0x50], r9d
lea rcx, [rbp - 0x88]
call fcn.140008350
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov r8d, dword [rbp - 0x4c]
mov r9d, dword [rbp - 0x50]
call sub.WS2_32.dll_send
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1400083a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
cmp byte [rbp - 0x40], 0
je 0x140141501
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1401ddda0
call fcn.140003bf9
mov dword [rax + 0xe0], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140141560
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov esi, r8d
mov edi, r9d
mov r14, qword [rbp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1401ddd60
nop
mov r14, qword [r14]
mov qword [rbp - 0x50], r14
mov rcx, qword [rbp - 0x48]
mov r15, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov qword [rsp + 0x20], r14
mov r14d, dword [rbp + 0x38]
mov dword [rsp + 0x28], r14d
mov rcx, r15
mov qword [rbp - 0x60], rcx
mov rdx, rbx
mov qword [rbp - 0x68], rdx
mov r8d, esi
mov dword [rbp - 0x54], r8d
mov r9d, edi
mov dword [rbp - 0x58], r9d
lea rcx, [rbp - 0x90]
call fcn.140008350
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x68]
mov r8d, dword [rbp - 0x54]
mov r9d, dword [rbp - 0x58]
call sub.WS2_32.dll_sendto
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.1400083a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x14014163b
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1401ddda0
call fcn.140003bf9
mov dword [rax + 0xe0], esi
mov eax, ebx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1401416c0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov esi, edx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15d, dword [rbp + 0x30]
mov dword [rsp + 0x20], r15d
mov rcx, rbx
mov qword [rbp - 0x50], rcx
mov edx, esi
mov dword [rbp - 0x44], edx
mov r8d, edi
mov dword [rbp - 0x48], r8d
mov r9, r14
mov qword [rbp - 0x58], r9
lea rcx, [rbp - 0x80]
call fcn.140008350
mov rcx, qword [rbp - 0x50]
mov edx, dword [rbp - 0x44]
mov r8d, dword [rbp - 0x48]
mov r9, qword [rbp - 0x58]
call sub.WS2_32.dll_setsockopt
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1400083a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140003bf9
mov dword [rax + 0xe0], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret