joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019450
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, edx
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
mov eax, 0x80000000
lea ecx, [rbx + rax]
test eax, ecx
jne 0x1400194a1
cmp ebx, 0x80010106
je 0x1400194a1
call fcn.140067ee0
mov r8d, ebx
lea rdx, str.addAcServicesToFirewall:_CoInitializeEx_failed__0x_08lx
mov rcx, rax
call fcn.140067c40
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x14019d558]
xor edx, edx
mov r8d, 1
lea rcx, [0x14019d548]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x1400194f5
call qword [sym.imp.ole32.dll_CoUninitialize]
call fcn.140067ee0
mov r8d, ebx
lea rdx, str.addAcServicesToFirewall:_Create_INetFwPolicy2_failed__0x_08lx
mov rcx, rax
call fcn.140067c40
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0x90]
mov ebx, eax
test eax, eax
jns 0x14001955c
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
call qword [rdx + select]
call qword [sym.imp.ole32.dll_CoUninitialize]
call fcn.140067ee0
mov r8d, ebx
lea rdx, str.addAcServicesToFirewall:_Get_INetFwRules_failed__0x_08lx
mov rcx, rax
call fcn.140067c40
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140019551
mov rax, qword [rcx]
call qword [rax + select]
nop
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov r9d, edi
lea r8, [0x14019d620]
mov rdx, qword [rsp + 0x50]
lea rcx, str.InfoSafeAcUpdate
call fcn.1400198f0
mov r9d, edi
lea r8, [0x14019d4f8]
mov rdx, qword [rsp + 0x50]
lea rcx, str.InfoSafeAcService
call fcn.1400198f0
mov r9d, edi
lea r8, str.ISVS.exe
mov rdx, qword [rsp + 0x50]
lea rcx, str.InfoSafeISVService
call fcn.1400198f0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400195bf
mov rax, qword [rcx]
call qword [rax + select]
nop
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + select]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14001c340
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x3a0
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rsp + 0x390], rax
xor r14d, r14d
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x60]
call fcn.140191ec0
lea rdx, [rsp + 0x60]
lea rcx, str.AcService.db3_journal
call fcn.14005a030
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x170]
call fcn.140191ec0
lea rdx, [rsp + 0x170]
lea rcx, str.AcService.db3_shm
call fcn.14005a030
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x280]
call fcn.140191ec0
lea rdx, [rsp + 0x280]
lea rcx, str.AcService.db3_wal
call fcn.14005a030
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea r15, [0x1401f90e0]
mov rdx, r15
lea rcx, str.AcService.db3
call fcn.14005a030
mov ecx, 0x18
call fcn.14016aa7c
mov rbx, rax
mov qword [rsp + 0x20], rax
mov rdi, 0xffffffffffffffff
test rax, rax
je 0x14001c4db
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_AcDb_.0
mov qword [rbx], rax
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8, rdi
inc r8
cmp byte [r15 + r8], 0
jne 0x14001c475
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.1400056b0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x10]
call fcn.140068240
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14001c4de
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c4d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c5bd
call fcn.14016aab8
jmp 0x14001c4de
mov rbx, r14
mov qword [rsp + 0x20], rbx
lea rsi, [rbx + 0x10]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rbx
lea rdx, str.VACUUM
mov rcx, rsi
call fcn.1400686f0
nop
jmp 0x14001c517
mov ecx, 0x48
call fcn.14016aa7c
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14001c55c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
test rbx, rbx
je 0x14001c542
lock inc dword [rbx + 8]
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.140041160
mov r14, rax
mov qword [0x1401f9050], r14
test rbx, rbx
je 0x14001c58f
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14001c58f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14001c58f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14016ab50
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
call fcn.140170de4
nop
int3
Function at 0x140020e70
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rbx, qword [rbp + 0x60]
mov r14, r9
mov esi, r8d
mov r12, rdx
mov r15, rcx
cmp qword [rbx + 0x10], 1
je 0x140020ead
mov eax, dword [rbx]
jmp 0x140020ee0
mov rcx, qword [rbx + 8]
movabs rax, 0x4800144005b3
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add eax, dword [rbx]
xor r13d, r13d
lea rdi, section..data
movabs rcx, 0x4d54ee85da812030
cmp eax, 0x40
jne 0x140020f47
add rcx, qword [0x1401ef008]
mov dword [rbp - 0x1c], r13d
cmp rcx, 1
jbe 0x140020f1e
mov rax, qword [section..data]
mov edx, 0x2745
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x140020f20
mov al, 1
movzx eax, al
mov dword [rbp - 0x20], 0x2745
add rax, 2
mov qword [rbp - 0x18], rdi
movups xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movsd xmm1, qword [rbp - 0x10]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov rax, qword [rbx + 0x10]
test al, 1
je 0x140020f62
cmp rax, 1
jne 0x140021077
cmp dword [rbx], r13d
jne 0x140021077
test r14, r14
je 0x140020fe5
mov rdi, qword [rbp + 0x50]
test rdi, rdi
je 0x140020fde
lea rax, [rbp + 0x60]
mov qword [rbp - 0x30], r13
mov qword [rsp + 0x38], rax
mov r9d, esi
lea rax, [rbp - 0x38]
mov dword [rbp - 0x40], r13d
mov qword [rsp + 0x30], rax
mov r8d, esi
lea rax, [rbp - 0x40]
mov qword [rbp - 0x38], r13
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rbp - 0x30]
mov dword [rbp + 0x60], r13d
mov rcx, r12
mov qword [rsp + 0x20], rax
call sub.MSWSOCK.dll_GetAcceptExSockaddrs
movsxd rsi, dword [rbp + 0x60]
cmp rsi, qword [rdi]
jbe 0x140020fcc
mov edx, 0x2726
mov rcx, rbx
call fcn.14001fab0
jmp 0x140020fde
mov rdx, qword [rbp - 0x38]
mov r8, rsi
mov rcx, r14
call fcn.140191740
mov qword [rdi], rsi
lea rdi, section..data
mov rcx, qword [rbp + 0x58]
mov qword [rbp - 0x28], r15
cmp rcx, 0xffffffffffffffff
jne 0x14002104d
movabs rcx, 0x4d54ee85da812030
mov dword [rbp - 0x1c], r13d
add rcx, qword [0x1401ef008]
cmp rcx, 1
jbe 0x140021022
mov rax, qword [section..data]
mov edx, 0x2719
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x140021024
mov al, 1
movzx eax, al
mov dword [rbp - 0x20], 0x2719
add rax, 2
mov qword [rbp - 0x18], rdi
movups xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movsd xmm1, qword [rbp - 0x10]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
jmp 0x140021077
lea r9, [rbp - 0x28]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov rcx, rbx
setne dl
call fcn.1400124a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140023920
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, r9
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov esi, ecx
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
mov rcx, rbx
mov rdi, rax
sete dl
call fcn.1400124a0
cmp rdi, 0xffffffffffffffff
jne 0x140023978
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp esi, 0x17
jne 0x1400239a6
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov edx, 0x29
mov dword [rsp + 0x20], 4
mov r8d, 0x1b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140023b30
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [rcx + 8]
mov rsi, r9
mov r14, rdx
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp qword [rdx], 0xffffffffffffffff
jne 0x140023b72
mov rdx, qword [rsp + 0xd8]
xor r9d, r9d
mov rcx, qword [rcx + 8]
mov r8d, 0x2719
add rsp, 0x70
pop r14
pop rdi
pop rsi
jmp fcn.140022470
test r8b, r8b
je 0x140023b99
mov rdx, qword [rsp + 0xd8]
xor r9d, r9d
mov rcx, qword [rcx + 8]
mov r8d, 1
add rsp, 0x70
pop r14
pop rdi
pop rsi
jmp fcn.140022470
mov r8d, dword [rsp + 0xc0]
xorps xmm0, xmm0
mov edx, dword [rsp + 0xb8]
xor r9d, r9d
mov ecx, dword [rsp + 0xb0]
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], r15
xor r15d, r15d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x20], r15d
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
lea rcx, [rsp + 0x40]
mov rbx, rax
sete dl
call fcn.1400124a0
cmp rbx, 0xffffffffffffffff
je 0x140023c35
cmp dword [rsp + 0xb0], 0x17
jne 0x140023c35
lea r9, [rsp + 0x90]
mov dword [rsp + 0x90], r15d
mov edx, 0x29
mov dword [rsp + 0x20], 4
mov r8d, 0x1b
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x140023c68
xorps xmm0, xmm0
mov qword [rsp + 0x68], r15
lea r9, [rsp + 0x58]
mov byte [rsp + 0x90], r15b
mov r8b, 1
lea rdx, [rsp + 0x90]
movups xmmword [rsp + 0x58], xmm0
call fcn.1400113c0
xor r9d, r9d
mov qword [rsi], rbx
cmp rbx, 0xffffffffffffffff
jne 0x140023c8c
mov rdx, qword [rsp + 0xd8]
lea r8, [rsp + 0x40]
mov rcx, qword [rdi + 8]
call fcn.140022370
jmp 0x140023d03
mov rsi, qword [rsp + 0xd8]
lea rax, [rsp + 0x90]
mov r8, qword [rsp + 0xc8]
mov rdx, rbx
mov rcx, qword [r14]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x90], r15d
call sub.MSWSOCK.dll_AcceptEx
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140023cf7
cmp eax, 0x3e5
je 0x140023cf7
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call fcn.140022470
jmp 0x140023d03
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.140022520
mov rbx, qword [rsp + 0x98]
mov r15, qword [rsp + 0xa0]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret
Function at 0x140024510
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x20], r9d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rbp, r8
mov r15, rdx
mov rsi, rcx
mov r13, qword [rsp + 0xd0]
lea rdx, [r13 + 0x30]
mov ecx, 0xd8
call fcn.140010e70
mov rdi, rax
mov rax, qword [r15 + 0x18]
xor edx, edx
mov r14d, edx
mov ecx, edx
test rax, rax
je 0x140024571
mov rcx, qword [r15 + 0x10]
mov r14, rax
lock inc dword [rax + 0xc]
mov qword [rdi + 0x20], rdx
lea rax, [0x140026b90]
mov qword [rdi + 0x28], rax
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
mov qword [rdi + 0x18], rdx
mov dword [rdi + 0x30], edx
mov qword [rdi + 0x38], rdx
mov qword [rdi + 0x40], rdx
test r14, r14
je 0x1400245ac
mov qword [rdi + 0x38], rcx
mov qword [rdi + 0x40], r14
lock inc dword [r14 + 0xc]
movups xmm0, xmmword [rbp]
movups xmmword [rdi + 0x48], xmm0
mov rax, qword [r13 + 8]
mov qword [rdi + 0x60], rax
movups xmm0, xmmword [r13 + 0x10]
movups xmmword [rdi + 0x68], xmm0
movsd xmm1, qword [r13 + 0x20]
movsd qword [rdi + 0x78], xmm1
mov eax, dword [r13 + 0x28]
mov dword [rdi + 0x80], eax
mov rax, qword [r13 + 0x30]
mov qword [rdi + 0x88], rax
mov qword [rdi + 0x90], rdx
mov qword [rdi + 0x98], rdx
mov rax, qword [r13 + 0x38]
mov qword [rdi + 0x90], rax
mov rax, qword [r13 + 0x40]
mov qword [rdi + 0x98], rax
mov qword [r13 + 0x38], rdx
mov qword [r13 + 0x40], rdx
lea rcx, [rdi + 0xa0]
mov r9, qword [rsp + 0xd8]
xor r8d, r8d
call fcn.140025270
test r14, r14
je 0x140024646
mov eax, 0xffffffff
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x140024646
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
movups xmm0, xmmword [rbp]
movups xmmword [rsp + 0x40], xmm0
movq qword [rsp + 0x58], xmm0
movq xmm0, qword [rbp + 8]
movd dword [rsp + 0x50], xmm0
mov rax, qword [rbp + 8]
mov qword [rsp + 0x60], rax
test byte [r15 + 8], 0x10
je 0x140024694
test rax, rax
jne 0x140024694
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.140022470
jmp 0x140024739
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x1400246bc
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.140022470
jmp 0x140024739
xor eax, eax
mov dword [rsp + 0xd0], eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0xd0]
mov r8d, 1
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x274d
cmp eax, 0x4d2
cmove eax, ecx
test ebx, ebx
je 0x14002472c
cmp eax, 0x3e5
je 0x14002472c
mov r9d, dword [rsp + 0xd0]
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.140022470
jmp 0x140024739
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.140022520
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140029250
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x20], r9d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rbp, r8
mov r15, rdx
mov rsi, rcx
mov r13, qword [rsp + 0xd0]
lea rdx, [r13 + 0x30]
mov ecx, 0xd8
call fcn.140010e70
mov rdi, rax
mov rax, qword [r15 + 0x18]
xor edx, edx
mov r14d, edx
mov ecx, edx
test rax, rax
je 0x1400292b1
mov rcx, qword [r15 + 0x10]
mov r14, rax
lock inc dword [rax + 0xc]
mov qword [rdi + 0x20], rdx
lea rax, [0x14002de80]
mov qword [rdi + 0x28], rax
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
mov qword [rdi + 0x18], rdx
mov dword [rdi + 0x30], edx
mov qword [rdi + 0x38], rdx
mov qword [rdi + 0x40], rdx
test r14, r14
je 0x1400292ec
mov qword [rdi + 0x38], rcx
mov qword [rdi + 0x40], r14
lock inc dword [r14 + 0xc]
movups xmm0, xmmword [rbp]
movups xmmword [rdi + 0x48], xmm0
mov rax, qword [r13 + 8]
mov qword [rdi + 0x60], rax
movups xmm0, xmmword [r13 + 0x10]
movups xmmword [rdi + 0x68], xmm0
movsd xmm1, qword [r13 + 0x20]
movsd qword [rdi + 0x78], xmm1
mov eax, dword [r13 + 0x28]
mov dword [rdi + 0x80], eax
mov rax, qword [r13 + 0x30]
mov qword [rdi + 0x88], rax
mov qword [rdi + 0x90], rdx
mov qword [rdi + 0x98], rdx
mov rax, qword [r13 + 0x38]
mov qword [rdi + 0x90], rax
mov rax, qword [r13 + 0x40]
mov qword [rdi + 0x98], rax
mov qword [r13 + 0x38], rdx
mov qword [r13 + 0x40], rdx
lea rcx, [rdi + 0xa0]
mov r9, qword [rsp + 0xd8]
xor r8d, r8d
call fcn.140025270
test r14, r14
je 0x140029386
mov eax, 0xffffffff
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x140029386
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
movups xmm0, xmmword [rbp]
movups xmmword [rsp + 0x40], xmm0
movq qword [rsp + 0x58], xmm0
movq xmm0, qword [rbp + 8]
movd dword [rsp + 0x50], xmm0
mov rax, qword [rbp + 8]
mov qword [rsp + 0x60], rax
test byte [r15 + 8], 0x10
je 0x1400293d4
test rax, rax
jne 0x1400293d4
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.140022470
jmp 0x140029479
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x1400293fc
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.140022470
jmp 0x140029479
xor eax, eax
mov dword [rsp + 0xd0], eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0xd0]
mov r8d, 1
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x274d
cmp eax, 0x4d2
cmove eax, ecx
test ebx, ebx
je 0x14002946c
cmp eax, 0x3e5
je 0x14002946c
mov r9d, dword [rsp + 0xd0]
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.140022470
jmp 0x140029479
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.140022520
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002c970
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
cmp qword [rdx + 0x10], 1
mov rbx, rdx
mov rdi, rcx
je 0x14002c99c
mov edx, dword [rdx]
jmp 0x14002c9cf
mov rcx, qword [rdx + 8]
movabs rax, 0x4800144005b3
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul edx, ecx, 0x3e8
add edx, dword [rbx]
xor r14d, r14d
lea rsi, section..data
movabs r15, 0x4d54ee85da812030
sub edx, 0x79
je 0x14002caba
sub edx, 0x450
je 0x14002ca80
sub edx, 6
je 0x14002ca46
cmp edx, 1
jne 0x14002cb0b
mov rcx, qword [0x1401ef008]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x14002ca38
mov rax, qword [section..data]
mov edx, 0x2751
mov rcx, rsi
call qword [rax + 0x30]
mov dword [rbp - 0x20], 0x2751
jmp 0x14002caeb
mov al, 1
mov dword [rbp - 0x20], 0x2751
jmp 0x14002caeb
mov rcx, qword [0x1401ef008]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x14002ca75
mov rax, qword [section..data]
mov edx, 0x2743
mov rcx, rsi
call qword [rax + 0x30]
mov dword [rbp - 0x20], 0x2743
jmp 0x14002caeb
mov al, 1
mov dword [rbp - 0x20], 0x2743
jmp 0x14002caeb
mov rcx, qword [0x1401ef008]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x14002caaf
mov rax, qword [section..data]
mov edx, 0x274d
mov rcx, rsi
call qword [rax + 0x30]
mov dword [rbp - 0x20], 0x274d
jmp 0x14002caeb
mov al, 1
mov dword [rbp - 0x20], 0x274d
jmp 0x14002caeb
mov rcx, qword [0x1401ef008]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x14002cae2
mov rax, qword [section..data]
mov edx, 0x274c
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x14002cae4
mov al, 1
mov dword [rbp - 0x20], 0x274c
movzx eax, al
mov qword [rbp - 0x18], rsi
add rax, 2
movups xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movsd xmm1, qword [rbp - 0x10]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov rax, qword [rbx + 0x10]
test al, 1
je 0x14002cb26
cmp rax, 1
jne 0x14002cba8
cmp dword [rbx], r14d
jne 0x14002cba8
cmp rdi, 0xffffffffffffffff
jne 0x14002cb7f
mov rcx, qword [0x1401ef008]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x14002cb54
mov rax, qword [section..data]
mov edx, 0x2719
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x14002cb56
mov al, 1
movzx eax, al
mov dword [rbp - 0x20], 0x2719
add rax, 2
mov qword [rbp - 0x18], rsi
movups xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movsd xmm1, qword [rbp - 0x10]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
jmp 0x14002cba8
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov edx, 0xffff
mov r8d, 0x7010
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov rcx, rbx
setne dl
call fcn.1400124a0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
Function at 0x14002d100
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r9
cmp rcx, 0xffffffffffffffff
jne 0x14002d18b
movabs rcx, 0x4d54ee85da812030
mov dword [rsp + 0x24], 0
add rcx, qword [0x1401ef008]
lea rbx, section..data
cmp rcx, 1
jbe 0x14002d14d
mov rax, qword [section..data]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14002d14f
mov al, 1
movzx eax, al
add rax, 2
mov dword [rsp + 0x20], 0x2719
mov qword [rsp + 0x30], rax
mov eax, 0xffffffff
movsd xmm1, qword [rsp + 0x30]
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.1400124a0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140032260
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rbx, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x14003229a
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rbx
jmp fcn.140022470
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x1400322c2
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rbx
jmp fcn.140022470
mov eax, dword [rsp + 0x70]
lea r9, [rsp + 0x78]
xor edx, edx
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x78], edx
mov r8d, r10d
mov qword [rsp + 0x58], rsi
mov rdx, r11
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x14003231b
mov eax, 0x2746
jmp 0x140032328
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x58]
je 0x140032357
cmp eax, 0x3e5
je 0x140032357
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.140022470
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.140022520
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret