joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013d60
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x40
mov eax, dword [rcx + 0x58]
mov rbx, rdx
test al, 1
je 0x140013d7f
mov eax, 0xfffff00d
add rsp, 0x40
pop rbx
ret
bt eax, 0x10
jb 0x140013d90
mov eax, 0xfffff031
add rsp, 0x40
pop rbx
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x140013e2e
cmp eax, 0xc
je 0x140013dde
cmp eax, 0xe
je 0x140013db1
mov eax, 0xfffff02a
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x140013e2e
lea r9, [rsp + 0x60]
call fcn.140011c00
test eax, eax
je 0x140013dd6
mov ecx, dword [rsp + 0x60]
add rsp, 0x40
pop rbx
jmp fcn.140018f20
mov eax, dword [rbx]
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x140013e2e
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x60]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
lea r8d, [rax + 1]
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x140013e24
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
add rsp, 0x40
pop rbx
jmp fcn.140018f20
mov eax, dword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov eax, 0xfffff008
add rsp, 0x40
pop rbx
ret
Function at 0x140016d50
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov rcx, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140016d8b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret

Function at 0x140016da0
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 0x140016deb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x40
pop rbx
ret
cmp dword [rsp + 0x30], 0
je 0x140016e16
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 0x140016ddf
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x140016e20
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov rdi, r8
mov dword [rsp + 0x50], 1
mov rbx, rdx
mov rbp, rcx
je 0x140016e5c
mov eax, 0xfffff00e
jmp 0x140016f3e
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x140016e7f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140016f3e
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140016e9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140016f3e
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 0x140016e93
mov eax, dword [0x140096940]
cmp esi, 0x17
mov r8, qword [0x140096948]
cmove eax, dword [0x14009693c]
test r8, r8
je 0x140016eff
test dword [rbx + 0x58], 0x100000
jne 0x140016eff
test eax, eax
jne 0x140016eff
mov dl, 3
mov rcx, rdi
call r8
test eax, eax
je 0x140016ef4
or dword [rbx + 0x58], 0x40000
jmp 0x140016eff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
jne 0x140016e93
test dword [rbx + 0x58], 0x2000000
je 0x140016f14
mov rdx, rdi
call fcn.140016d50
test eax, eax
jne 0x140016f3e
test dword [rbx + 0x58], 0x4000000
je 0x140016f29
mov rdx, rdi
call fcn.140016da0
test eax, eax
jne 0x140016f3e
mov qword [rbx + 0x110], rdi
cmp esi, 0x17
jne 0x140016f3c
or dword [rbx + 0x58], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140017200
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 0x140017274
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 0x14001724e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400172d9
movzx r9d, word [rdi]
mov r8, rsi
mov rcx, qword [rbx + 8]
mov rdx, rbx
call fcn.140016e20
mov ebp, eax
test eax, eax
je 0x140017274
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x1400172d9
cmp word [rdi], 0x17
jne 0x1400172a5
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 0x1400172d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x1400172d9
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 0x140017620
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, [0x1400963ef]
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 0x140017694
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 0x14001771f
mov eax, dword [rdi + 0x58]
bt eax, 0x12
jae 0x140017787
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 0x140017712
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 0x1400177fd
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x1400177fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140017787
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x14001773e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14001774c
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 0x14001777a
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 0x1400177fd
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x1400177fd
or dword [rdi + 0x58], 0x20000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x100000
je 0x1400177fd
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x1400177fd
mov rdx, qword [rbx + 0x70]
lea r8, [0x1400172f0]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x1400177fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400177df
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400177ed
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.140016d20
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 0x140017f80
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 0x140018004
mov eax, dword [rdx + 0x58]
bt eax, 0xb
jae 0x14001807f
mov ecx, eax
btr ecx, 0xb
sub dword [rdx + 0x7c], 1
mov dword [rdx + 0x58], ecx
jne 0x140017fda
test cl, 1
jne 0x140017fda
test al, 0x40
je 0x140017fda
and eax, 0xfffff7bf
mov dword [rdx + 0x58], eax
test al, 0x20
je 0x140017fda
mov rax, qword [rdx + 8]
dec dword [rax + 8]
mov r9, qword [rdx + 0x100]
test r9, r9
je 0x14001807f
mov ecx, dword [r8 + 0x40]
call fcn.14001cd00
mov ecx, eax
call fcn.140018f20
mov edx, eax
mov rcx, rbx
call r9
jmp 0x14001807f
cmp dword [r8 + 0x40], 0
jl 0x140018059
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 0x140018059
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x14001807f
xor edx, edx
mov rcx, rbx
call rax
jmp 0x14001807f
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
test dword [rbx + 0x58], 0x800
je 0x14001807f
mov rdx, rdi
mov rcx, rbx
call fcn.140017330
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x1400180a8
test ecx, ecx
jne 0x1400180a8
test al, 8
jne 0x1400180a8
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 0x14001a4c0
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
xor ebp, ebp
mov qword [rax - 0x10], rbp
mov rbx, r8
mov dword [rax - 0x18], ebp
mov rsi, rcx
mov dword [rax - 0x20], 0x10000
mov r9d, 0xff
mov rcx, qword [rdi + 0x120]
xor r8d, r8d
mov edx, 0x40040003
mov dword [rax - 0x28], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x14001a572
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14001a52b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001a539
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14001a565
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 0x14001a658
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14001a658
mov r8, rax
mov dword [rsp + 0x20], ebp
mov rdx, rdi
mov rcx, rsi
call fcn.140019ca0
test eax, eax
je 0x14001a5ac
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14001a52b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001a539
xor eax, eax
mov qword [rsp + 0x50], r14
mov qword [rbx + 0x40], rax
lea rdx, [rbx + 0x40]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x58], rax
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14001a653
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14001a653
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x14001a5f4
mov rax, rbp
jmp 0x14001a628
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14001a618
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001a626
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14001a64b
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x14001a64f
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
mov r14, qword [rsp + 0x50]
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14001a910
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test dword [rdx + 0x58], 0x1000000
lea rdi, [rdx + 0x80]
mov rbx, rdx
mov rsi, rcx
je 0x14001a950
mov r8d, reloc.WS2_32.dll_recv
lea rcx, [0x14001a670]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
jmp 0x14001aa0a
xor eax, eax
lea rcx, [rdi + 0x40]
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
test dword [rdx + 0x58], 0x100000
je 0x14001a97a
mov rax, qword [rdi + 0x70]
or rax, 1
mov qword [rdi + 0x58], rax
mov qword [rsp + 0x20], rcx
lea rdx, [0x140096431]
mov rcx, qword [rbx + 0x118]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001a9aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14001aa0e
test dword [rbx + 0x58], 0x100000
je 0x14001aa65
cmp qword [rdi + 0x70], 0
jne 0x14001a9db
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x14001aa9e
cmp qword [rdi + 0x78], 0xffffffffffffffff
lea rcx, [rdi + 0x78]
jne 0x14001aa65
mov rdx, qword [rdi + 0x58]
lea r8, [0x1400172f0]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x14001aa65
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14001aa20
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001aa2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14001aa5b
mov rax, qword [rax + 0x68]
mov qword [rdi + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14001aa84
mov qword [rdi + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14001aa84
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x14001aa84
xor r9d, r9d
lea rdx, [0x14001b2c0]
lea r8d, [r9 + 0x32]
call fcn.140018810
or dword [rbx + 0x58], 0x20000
inc dword [rbx + 0x78]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.140018e70
int3
Function at 0x14001ca60
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x140088008]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14001cc5e
xor eax, eax
mov qword [rsp + 0x480], rbx
mov qword [0x140096910], rax
mov ebx, 2
xor ecx, ecx
mov word [0x140096910], bx
mov qword [0x140096918], rax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [0x140096914]
mov word [0x140096912], ax
lea rcx, str.0.0.0.0
call fcn.140019900
test eax, eax
jne 0x14001cc6d
call fcn.14000d0a0
test eax, eax
jne 0x14001cc73
mov qword [rsp + 0x470], rdi
xor r8d, r8d
mov edi, 1
mov ecx, ebx
mov edx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001cb71
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x14001cc79
mov eax, dword [0x140096940]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x140096940], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x14001cc8e
jmp 0x14001cb98
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x14001cce2
cmp eax, 0x273a
jbe 0x14001cce2
cmp eax, 0x2740
jae 0x14001cce2
xor r8d, r8d
mov edx, edi
lea ecx, [r8 + 0x17]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001cc0f
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x14001cca3
mov eax, dword [0x14009693c]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x14009693c], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x14001ccb8
jmp 0x14001cc36
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x14001cccd
cmp eax, 0x273a
jbe 0x14001cccd
cmp eax, 0x2740
jae 0x14001cccd
mov rdi, qword [rsp + 0x470]
mov rbx, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140028de0
add rsp, 0x478
ret
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.140018e70
int3
call fcn.140033840
int3
call fcn.140033840
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.140018e70
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.140018e70
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.140018e70
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.140018e70
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.140018e70
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.140018e70
int3
Function at 0x14001ed60
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x20]
mov rsi, rcx
test dword [rdi + 0x194], 0x2000
jne 0x14001ed9f
mov rcx, qword [0x140096480]
lea r9, str.Cannot_resume_connections_without_enabling_MHD_ALLOW_SUSPEND_RESUME__n
mov r8d, 0xa7b
lea rdx, [0x14008af70]
call qword [0x140096478]
int3
lea rcx, [rdi + 0x130]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsi + 0x168], 1
lea rcx, [rdi + 0x130]
mov byte [rdi + 0x17b], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rdi + 0x168], 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
je 0x14001ee16
mov rcx, qword [rdi + 0x170]
lea rdx, [0x140088d8c]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x14001ee16
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14001ee16
lea rdx, str.Failed_to_signal_resume_via_inter_thread_communication_channel.
mov rcx, rdi
call fcn.1400285a0
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f3a0
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov rax, qword [0x140088008]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor eax, eax
mov dword [rsp + 0x30], 0x1c
mov rdi, rcx
mov qword [r11 - 0x30], rax
mov rcx, qword [rcx + 0x158]
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov dword [rsp + 0x50], eax
cmp rcx, 0xffffffffffffffff
je 0x14001f5ae
movzx eax, byte [rdi + 0x179]
test al, al
jne 0x14001f5ae
mov qword [r11 + 0x10], rbx
lea r8, [r11 - 0x38]
lea rdx, [r11 - 0x30]
mov qword [r11 + 0x18], rsi
call qword [sym.imp.WS2_32.dll_accept]
xor bl, bl
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001f4cc
cmp dword [rsp + 0x30], 0
jle 0x14001f4cc
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], 1
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x14001f464
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140027c70
mov r8, rax
lea rdx, str.Failed_to_set_nonblocking_mode_on_incoming_connection_socket:__s_n
mov rcx, rdi
call fcn.1400285a0
jmp 0x14001f466
mov bl, 1
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14001f489
lea rdx, str.Failed_to_set_noninheritable_mode_on_incoming_connection_socket._n
mov rcx, rdi
call fcn.1400285a0
mov r9d, dword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov byte [rsp + 0x28], bl
mov rdx, rsi
mov rcx, rdi
mov byte [rsp + 0x20], 0
call fcn.14001df10
mov eax, 1
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140028de0
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2726
je 0x14001f5a7
cmp eax, 0x2746
je 0x14001f5a7
cmp eax, 0x2733
je 0x14001f50a
mov ecx, eax
call fcn.140027c70
mov r8, rax
lea rdx, str.Error_accepting_connection:__s_n
mov rcx, rdi
call fcn.1400285a0
cmp rsi, 0xffffffffffffffff
je 0x14001f53f
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x14001f53f
mov rcx, qword [0x140096480]
lea r9, [0x14008a218]
mov r8d, 0xb83
lea rdx, [0x14008be50]
call qword [0x140096478]
int3
cmp ebx, 0x2728
je 0x14001f54f
cmp ebx, 0x2747
jne 0x14001f5a7
cmp dword [rdi + 0x180], 0
jne 0x14001f570
lea rdx, str.Hit_process_or_system_resource_limit_at_FIRST_connection._This_is_really_bad_as_there_is_no_sane_way_to_proceed._Will_try_busy_waiting_for_system_resources_to_become_magically_available._n
mov rcx, rdi
call fcn.1400285a0
xor eax, eax
jmp 0x14001f4ac
lea rcx, [rdi + 0x130]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rdi + 0x130]
mov byte [rdi + 0x17a], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8d, dword [rdi + 0x180]
lea rdx, str.Hit_process_or_system_resource_limit_at__u_connections__temporarily_suspending_accept__._Consider_setting_a_lower_MHD_OPTION_CONNECTION_LIMIT._n
mov rcx, rdi
call fcn.1400285a0
xor eax, eax
jmp 0x14001f4ac
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140028de0
add rsp, 0x60
pop rdi
ret
Function at 0x14001f9d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push r12
push r13
push r14
sub rsp, 0x50
mov r14, rcx
mov byte [rcx + 0x17c], 0
mov rcx, qword [rcx + 0x168]
mov r13, r9
mov r12, rdx
cmp rcx, 0xffffffffffffffff
je 0x14001fa2d
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14001fa2d
nop dword [rax + rax]
mov rcx, qword [r14 + 0x168]
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x14001fa10
mov rcx, qword [r14 + 0x158]
cmp rcx, 0xffffffffffffffff
je 0x14001fa5b
movzx eax, byte [r14 + 0x179]
test al, al
jne 0x14001fa5b
mov rdx, r12
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14001fa5b
mov rcx, r14
call fcn.14001f3a0
mov eax, dword [r14 + 0x194]
and eax, 4
test al, al
jne 0x14001fb1c
mov qword [rsp + 0x78], rbx
mov rbx, qword [r14 + 0x18]
test rbx, rbx
je 0x14001fb17
mov r14, qword [rsp + 0x80]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
nop dword [rax + rax]
mov r15, qword [rbx + 0x118]
mov rbp, qword [rbx + 8]
cmp r15, 0xffffffffffffffff
je 0x14001faf6
mov rdx, r13
mov rcx, r15
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov rdx, r14
mov rcx, r15
test eax, eax
setne sil
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov rdx, r12
mov rcx, r15
test eax, eax
setne dil
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
movzx r9d, sil
movzx r8d, dil
test eax, eax
mov rcx, rbx
setne dl
call fcn.14001d6b0
mov rbx, rbp
test rbp, rbp
jne 0x14001faa0
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
mov rcx, r14
call fcn.14001f5d0
mov eax, 1
add rsp, 0x50
pop r14
pop r13
pop r12
ret