joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014da0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140018660]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140014dbf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014dc8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140005700
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400af210]
xor rax, rsp
mov qword [rsp + 0x40], rax
and dword [rcx + 0x58], 0xfffffeff
mov rbx, rcx
sub dword [rcx + 0x7c], 1
mov eax, dword [rcx + 0x58]
jne 0x140005741
test al, 1
jne 0x140005741
test al, 0x40
je 0x140005741
and eax, 0xffffffbf
mov dword [rcx + 0x58], eax
test al, 0x20
je 0x140005741
mov rax, qword [rcx + 8]
dec dword [rax + 8]
mov eax, dword [rcx + 0x58]
bt eax, 0x11
jae 0x1400057ae
bt eax, 0x19
jae 0x140005798
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x20]
xor eax, eax
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
lea r8d, [rax + 1]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x1400057ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140052350
add rsp, 0x50
pop rbx
ret
bt eax, 0x16
jb 0x1400057ae
call fcn.1400057d0
test eax, eax
jne 0x1400057b0
or dword [rbx + 0x58], 0x400000
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140052350
add rsp, 0x50
pop rbx
ret

Function at 0x1400057d0
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rbp
push rdi
sub rsp, 0x78
mov rax, qword [0x1400af210]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, rcx
or edx, 0xffffffff
mov rcx, qword [0x1400b9220]
xor edi, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140005933
mov eax, 2
mov qword [rsp + 0xa0], rsi
xchg dword [0x1400b8f6c], eax
cmp eax, 1
je 0x14000583d
mov rcx, qword [0x1400b9220]
lea edx, [rdi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x140005939
xor eax, eax
jmp 0x140005917
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x98], rbx
lea rcx, str.conout_
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov qword [rsp + 0x70], r14
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000589d
lea rdx, [0x1400b9200]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14000589d
lock or dword [0x1400b9218], 1
mov esi, 1
mov dword [rsp + 0x50], 0xd0001
mov r14d, reloc.WS2_32.dll_listen
mov word [rsp + 0x48], si
mov ecx, r14d
mov dword [rsp + 0x4c], esi
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rbp + 0x110]
lea r9, [rsp + 0x40]
mov r8d, esi
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], r14w
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov r14, qword [rsp + 0x70]
test eax, eax
jne 0x1400058fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x14000590d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x98]
mov eax, edi
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140052350
add rsp, 0x78
pop rdi
pop rbp
ret
call fcn.14005be50
int3
call fcn.14005be50
int3
Function at 0x140005a30
Capabilities:
Manipulate console buffer

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400af210]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xb8]
mov ebp, r9d
movzx r12d, r8b
mov r15d, edx
mov rsi, rcx
cmp dword [r14], 0
je 0x140005a6f
or eax, 0xffffffff
jmp 0x140005bf6
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r13
movzx r13d, byte [rsp + 0xb0]
nop word [rax + rax]
mov rcx, qword [rsi + 0x110]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140005aaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
movsx eax, word [rsp + 0x34]
mov ebx, r15d
movsx edx, word [rsp + 0x38]
movsx r9d, word [rsp + 0x28]
sub edx, eax
mov eax, dword [0x1400afe24]
inc edx
mov edi, dword [0x1400afe10]
mov r11d, dword [0x1400afe20]
movsx r8d, word [rsp + 0x2e]
mov dword [0x1400afe10], r9d
mov dword [0x1400afe20], edx
cmp eax, 0xffffffff
jne 0x140005af6
mov eax, r8d
jmp 0x140005b02
mov ecx, r8d
sub ecx, edx
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx r10d, word [rsp + 0x2a]
lea ecx, [rdx + rax]
cmp ecx, r10d
jle 0x140005b15
mov eax, r10d
sub eax, edx
test eax, eax
mov r10d, 0
cmovs eax, r10d
mov dword [0x1400afe24], eax
cmp edi, 0xffffffff
je 0x140005b62
cmp r11d, 0xffffffff
je 0x140005b62
cmp r9d, edi
jne 0x140005b3c
cmp edx, r11d
je 0x140005b62
mov ecx, 0x1c
call fcn.140008830
movzx r8d, word [rsp + 0x2e]
xor r10d, r10d
mov eax, dword [0x1400afe24]
mov edx, dword [0x1400afe20]
mov r9d, dword [0x1400afe10]
test r13b, r13b
je 0x140005b6f
movsx ecx, r8w
add ecx, ebp
jmp 0x140005b72
lea ecx, [rax + rbp]
cmp ecx, eax
jge 0x140005b7a
mov ecx, eax
jmp 0x140005b87
lea r8d, [rdx + rax]
cmp ecx, r8d
jl 0x140005b87
lea ecx, [r8 - 1]
test r12b, r12b
je 0x140005b94
movsx ebx, word [rsp + 0x2c]
add ebx, r15d
test ebx, ebx
jns 0x140005b9d
mov ebx, r10d
jmp 0x140005ba6
cmp ebx, r9d
jl 0x140005ba6
lea ebx, [r9 - 1]
mov word [rsp + 0x22], cx
mov rcx, qword [rsi + 0x110]
mov word [rsp + 0x20], bx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x140005be2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x140005a90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
or eax, 0xffffffff
jmp 0x140005be4
xor eax, eax
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140052350
add rsp, 0x60
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
Function at 0x140005c10
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400af210]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx ebp, word [reloc.WS2_32.dll_getsockopt]
xor r14d, r14d
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x30], r14d
cmp dword [rdx], r14d
jne 0x140005c62
mov rcx, qword [rcx + 0x110]
movzx edx, bp
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x140005c6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
or eax, 0xffffffff
jmp 0x140005d1c
mov rcx, qword [rdi + 0x110]
mov qword [rsp + 0x90], rbx
mov ebx, dword [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
je 0x140005d09
nop dword [rax]
mov rcx, qword [rdi + 0x110]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140005d09
movsx eax, word [rsp + 0x38]
mov edx, 0x20
movsx r8d, word [rsp + 0x3a]
mov r9d, ebx
mov rcx, qword [rdi + 0x110]
imul r8d, eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x140005cfe
mov r8d, dword [rsp + 0x34]
lea rax, [rsp + 0x34]
mov rcx, qword [rdi + 0x110]
mov r9d, ebx
movzx edx, bp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x140005d3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x140005c90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
or eax, 0xffffffff
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140052350
mov rbp, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x38]
mov dword [0x1400afe24], r14d
call fcn.140005940
xor eax, eax
jmp 0x140005d14
Function at 0x1400091c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r9d, r9d
mov rdi, rcx
mov r10d, r9d
mov ebx, r9d
mov r11d, r9d
cmp edx, 2
jb 0x140002a37
lea eax, [rdx - 2]
mov r8, rcx
shr eax, 1
inc eax
mov ecx, eax
lea r11d, [rax + rax]
nop
mov eax, dword [r8]
lea r8, [r8 + 0x20]
add r9, rax
mov eax, dword [r8 - 0x10]
add r10, rax
sub rcx, 1
jne 0x140002a20
cmp r11d, edx
jae 0x140002a45
mov eax, r11d
add rax, rax
mov ebx, dword [rdi + rax*8]
mov rdi, qword [rsp + 0x10]
lea rax, [r10 + r9]
add rax, rbx
mov rbx, qword [rsp + 8]
ret
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov eax, dword [rcx + 0x58]
mov ebx, r8d
mov rdi, rdx
test al, 1
je 0x1400091e7
mov eax, 0xfffff00d
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
bt eax, 0x10
jb 0x1400091fd
mov eax, 0xfffff031
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x1400092bb
cmp eax, 0xc
je 0x140009265
cmp eax, 0xe
je 0x140009223
mov eax, 0xfffff02a
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rcx + 0x100], 0
ja 0x1400092bb
lea r9, [rsp + 0x50]
call fcn.140006730
test eax, eax
je 0x140009251
mov ecx, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp fcn.14000f480
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp 0x1400029f0
cmp dword [rcx + 0x100], 0
ja 0x1400092bb
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x50]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1400092ac
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp fcn.14000f480
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 0xfffff008
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000c2f0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov dword [rsp + 0x38], 0x3c
mov rcx, rbx
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14000c33b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x40
pop rbx
ret
cmp dword [rsp + 0x30], 0
je 0x14000c366
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8d, [rdx - 3]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14000c32f
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x14000c370
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov rdi, r8
mov dword [rsp + 0x60], 1
mov rbx, rdx
mov rbp, rcx
je 0x14000c3ac
mov eax, 0xfffff00e
jmp 0x14000c4b8
lea r8, [rsp + 0x60]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x14000c3cf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14000c4b8
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14000c3ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000c4b8
mov rdx, qword [rbp + 0x38]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x14000c3e3
mov eax, dword [0x1400b9440]
cmp esi, 0x17
mov r8, qword [0x1400b9460]
cmove eax, dword [0x1400b943c]
test r8, r8
je 0x14000c44f
test dword [rbx + 0x58], 0x100000
jne 0x14000c44f
test eax, eax
jne 0x14000c44f
mov dl, 3
mov rcx, rdi
call r8
test eax, eax
je 0x14000c444
or dword [rbx + 0x58], 0x40000
jmp 0x14000c44f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
jne 0x14000c3e3
test dword [rbx + 0x58], 0x2000000
je 0x14000c48e
mov edx, 6
mov dword [rsp + 0x48], 1
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov rcx, rdi
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14000c48e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x14000c4b8
test dword [rbx + 0x58], 0x4000000
je 0x14000c4a3
mov rdx, rdi
call fcn.14000c2f0
test eax, eax
jne 0x14000c4b8
mov qword [rbx + 0x110], rdi
cmp esi, 0x17
jne 0x14000c4b6
or dword [rbx + 0x58], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000c7d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x20], r9d
push rsi
push rdi
push r14
sub rsp, 0x30
cmp qword [rcx + 0x110], 0xffffffffffffffff
mov r14d, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x14000c844
movzx ecx, word [rdx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000c81e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14000c8a9
movzx r9d, word [rdi]
mov r8, rsi
mov rcx, qword [rbx + 8]
mov rdx, rbx
call fcn.14000c370
mov ebp, eax
test eax, eax
je 0x14000c844
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x14000c8a9
cmp word [rdi], 0x17
jne 0x14000c875
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x68]
mov edx, 0x29
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
mov r8d, r14d
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14000c8a0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x14000c8a9
mov dword [rbx + 0x118], eax
or dword [rbx + 0x58], 0x200
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14000cbf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor eax, eax
lea rbx, [rdx + 0x80]
mov qword [rbx + 0x40], rax
lea r14, [rbx + 0x40]
mov qword [r14 + 8], rax
xor ebp, ebp
mov qword [r14 + 0x10], rax
mov rdi, rdx
mov qword [r14 + 0x18], rax
mov rsi, rcx
or dword [rdx + 0x58], 0x80000
lea rax, [0x1400b8f74]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
test dword [rdx + 0x58], 0x100000
mov dword [rsp + 0x40], ebp
je 0x14000cc64
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x110]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], ebp
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x14000ccef
mov eax, dword [rdi + 0x58]
bt eax, 0x12
jae 0x14000cd57
bts eax, 0x11
mov dword [rdi + 0x58], eax
mov eax, dword [rsp + 0x78]
mov qword [rbx + 0x48], rax
inc dword [rdi + 0x78]
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14000cce2
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14000cdcd
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14000cdcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14000cd57
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x14000cd0e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14000cd1c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14000cd4a
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x14000cdcd
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x14000cdcd
or dword [rdi + 0x58], 0x20000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x100000
je 0x14000cdcd
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x14000cdcd
mov rdx, qword [rbx + 0x70]
lea r8, [0x14000c8c0]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x14000cdcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14000cdaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000cdbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov rdx, rbx
mov rcx, rsi
mov qword [r14], rax
call fcn.14000c2c0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000d4f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rdi, r8
mov rcx, qword [r8 + 0x70]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
jne 0x14000d56f
mov eax, dword [rdx + 0x58]
bt eax, 0xb
jae 0x14000d5ea
btr eax, 0xb
sub dword [rdx + 0x7c], 1
mov dword [rdx + 0x58], eax
jne 0x14000d545
test al, 1
jne 0x14000d545
test al, 0x40
je 0x14000d545
and eax, 0xffffffbf
mov dword [rdx + 0x58], eax
test al, 0x20
je 0x14000d545
mov rax, qword [rdx + 8]
dec dword [rax + 8]
mov r9, qword [rdx + 0x100]
test r9, r9
je 0x14000d5ea
mov ecx, dword [r8 + 0x40]
call fcn.140012f60
mov ecx, eax
call fcn.14000f480
mov edx, eax
mov rcx, rbx
call r9
jmp 0x14000d5ea
cmp dword [r8 + 0x40], 0
jl 0x14000d5c4
lea r9, [rdx + 0x110]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14000d5c4
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x14000d5ea
xor edx, edx
mov rcx, rbx
call rax
jmp 0x14000d5ea
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
test dword [rbx + 0x58], 0x800
je 0x14000d5ea
mov rdx, rdi
mov rcx, rbx
call fcn.14000c900
dec dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
test al, 1
je 0x14000d610
cmp dword [rbx + 0x78], 0
jne 0x14000d610
test al, 8
jne 0x14000d610
or eax, 8
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000d620
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
sub dword [rdx + 0x7c], 1
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
jne 0x14000d65f
mov eax, dword [rdx + 0x58]
test al, 1
jne 0x14000d65f
test al, 0x40
je 0x14000d65f
and eax, 0xffffffbf
mov dword [rdx + 0x58], eax
test al, 0x20
je 0x14000d65f
mov rax, qword [rdx + 8]
dec dword [rax + 8]
mov rcx, qword [r8 + 0x18]
xor edi, edi
mov rax, qword [r8 + 0x10]
mov qword [rcx], rax
mov rcx, qword [r8 + 0x10]
mov rax, qword [r8 + 0x18]
mov qword [rcx + 8], rax
mov ecx, dword [r8 + 0x40]
test ecx, ecx
js 0x14000d6f1
mov rcx, qword [rbx + 0x110]
xor r9d, r9d
mov edx, 0xffff
mov dword [rsp + 0x20], edi
mov r8d, 0x7010
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14000d6e9
or dword [rbx + 0x58], 0x19000
mov dword [rbx + 0x100], edi
mov dword [rbx + 0x88], send
mov qword [rbx + 0xc0], rdi
mov qword [rbx + 0xf0], rdi
mov qword [rbx + 0xf8], 0xffffffffffffffff
mov qword [rbx + 0x80], rbx
mov qword [rbx + 0x108], rdi
inc dword [rsi + 0xa8]
jmp 0x14000d6f8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14000d6f6
call fcn.140012f60
mov edi, eax
mov ecx, edi
call fcn.14000f480
mov edx, eax
mov rcx, rbp
call qword [rbp + reloc.WS2_32.dll_WSASetLastError]
dec dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
test al, 1
je 0x14000d72d
cmp dword [rbx + 0x78], 0
jne 0x14000d72d
test al, 8
jne 0x14000d72d
or eax, 8
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000d750
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov edi, edx
mov rcx, qword [rcx + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x14000d79b
mov dword [rsp + 0x40], edx
lea r9, [rsp + 0x40]
mov edx, 6
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14000d79b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x14000d7bc
test edi, edi
je 0x14000d7b3
or dword [rbx + 0x58], 0x2000000
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
and dword [rbx + 0x58], 0xfdffffff
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000e3c0
Capabilities:
Resolve dns

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x40]
lea r9, [rcx + 0x48]
mov r8, qword [r9]
mov rbx, rcx
mov rcx, qword [rcx + 0x38]
mov qword [r9], 0
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov ecx, eax
call fcn.14000e340
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret
Function at 0x14000fba0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x1400af210]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r9d, dword [rdx + 0x58]
mov rdi, r8
btr r9d, 0x11
mov rbx, rdx
mov dword [rdx + 0x58], r9d
mov rsi, rcx
mov r10d, dword [r8 + 0x40]
test r10d, r10d
jns 0x14000fc55
mov ecx, r10d
call fcn.140012f60
mov r11d, eax
cmp eax, 0x2738
je 0x14000fc55
lea ecx, [rax - 0x2744]
test ecx, 0xfffffffd
je 0x14000fc4a
bt r9d, 8
jae 0x14000fd9c
mov rcx, rbx
call fcn.140002980
xor edi, edi
test dword [rbx + 0x58], 0x80000
je 0x14000fc2c
mov qword [rbp - 0x61], rdi
lea rax, [rbp - 0x69]
mov dword [rbp - 0x69], edi
jmp 0x14000fc33
lea rax, [rbx + 0xf0]
movups xmm0, xmmword [rax]
mov ecx, r11d
movaps xmmword [rbp - 0x69], xmm0
call fcn.14000f480
movsxd rdx, eax
jmp 0x14000fd88
bt r9d, 0x13
jae 0x14000fd9c
bt r9d, 0x13
jb 0x14000fc80
mov rdx, qword [rdi + 0x48]
lea r9, [rbx + 0x100]
sar r10d, 0x1f
lea r8, [rbx + 0xf0]
and r10d, 2
mov dword [rsp + 0x20], r10d
jmp 0x14000fd93
bt r9d, 8
jae 0x14000fd9c
xor edi, edi
lea r8, [rbp - 0x69]
mov qword [rbp - 0x61], rdi
mov edx, 0x10000
mov dword [rbp - 0x69], edi
mov rcx, rbx
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
call qword [rbx + 0x190]
cmp qword [rbp - 0x61], rdi
je 0x14000fd81
cmp dword [rbp - 0x69], edi
je 0x14000fd81
xor edx, edx
lea rcx, [rbp - 0x49]
mov r8d, 0x80
call fcn.1400541f0
mov rcx, qword [rbx + 0x70]
lea rax, [rbp - 0x55]
mov qword [rsp + 0x40], rdi
lea r9, [rbp - 0x59]
mov qword [rsp + 0x38], rdi
lea r8d, [rdi + 1]
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x69]
lea rax, [rbp - 0x49]
mov dword [rbp - 0x55], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x51], edi
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
je 0x14000fd26
mov edx, dword [rbp - 0x59]
lea r9, [rbp - 0x49]
jmp 0x14000fd8b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
cmp eax, 0x2738
jne 0x14000fd46
mov edx, dword [rbp - 0x59]
lea r9, [rbp - 0x49]
mov dword [rsp + 0x20], 2
jmp 0x14000fd8f
cmp edx, 0x2733
jne 0x14000fd52
xor edx, edx
jmp 0x14000fd88
add eax, 0xffffd8bc
mov rcx, rbx
test eax, 0xfffffffd
je 0x14000fd72
call fcn.140002980
mov ecx, edx
call fcn.14000f480
movsxd rdx, eax
jmp 0x14000fd88
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor edx, edx
lea r8, [rbp - 0x69]
jmp 0x14000fd96
mov rdx, 0xfffffffffffff024
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea r8, [rbp - 0x69]
mov rcx, rbx
call qword [rbx + 0x188]
mov eax, dword [rbx + 0x58]
and eax, 0x20100
cmp eax, 0x100
jne 0x14000fdb6
mov rdx, rbx
mov rcx, rsi
call fcn.14000fa50
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x14000fddf
test ecx, ecx
jne 0x14000fddf
test al, 8
jne 0x14000fddf
or eax, 8
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140052350
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret