joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010af0
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 rsi, rdx
xor ebp, ebp
mov qword [rax - 0x10], rbp
mov rbx, r8
mov dword [rax - 0x18], ebp
mov rdi, rcx
mov dword [rax - 0x20], 0x10000
mov r9d, 0xff
mov rcx, qword [rsi + 0x120]
xor r8d, r8d
mov edx, 0x40000003
mov dword [rax - 0x28], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x140010ba2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140010b5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140010b69
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 [rdi + 0x48]
test rax, rax
je 0x140010b95
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rdi + 0x48], rbx
jmp 0x140010c89
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
jmp 0x140010c89
mov r8, rax
mov dword [rsp + 0x20], ebp
mov rdx, rsi
mov rcx, rdi
call fcn.1400102f0
test eax, eax
je 0x140010bdc
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 0x140010b5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140010b69
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 0x140010c84
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140010c84
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x140010c25
mov qword [rbx + 0x40], rbp
jmp 0x140010c5d
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 0x140010c49
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140010c57
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 [rdi + 0x48]
test rax, rax
je 0x140010c7c
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x140010c80
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
mov r14, qword [rsp + 0x50]
inc dword [rsi + 0x78]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140010f40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
test dword [rdx + 0x58], 0x1000000
lea rbx, [rdx + 0x80]
mov rdi, rdx
mov rbp, rcx
je 0x140010fbc
mov r8d, reloc.WS2_32.dll_recv
lea rcx, [0x140010cb0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x1400110e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140010fa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cdqe
mov qword [rbx + 0x40], rax
jmp 0x1400110b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
jmp 0x1400110b8
xor eax, eax
lea rsi, [rbx + 0x40]
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rax
test dword [rdx + 0x58], 0x100000
je 0x140010fe6
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x118]
lea rdx, [0x1400b8f76]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001102f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14001102f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400110a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400110b3
test dword [rdi + 0x58], 0x100000
je 0x1400110e9
cmp qword [rbx + 0x70], 0
jne 0x140011060
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x70], rax
test rax, rax
je 0x140011127
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x1400110e9
mov rdx, qword [rbx + 0x58]
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 0x1400110e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400110a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400110b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rsi], rax
mov qword [rbx + 0x68], 0
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x1400110df
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rbp + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rbp + 0x48], rbx
jmp 0x140011108
mov qword [rbx + 0x68], rbx
mov qword [rbp + 0x48], rbx
jmp 0x140011108
mov rcx, qword [rdi + 0x128]
test rcx, rcx
je 0x140011108
xor r9d, r9d
lea rdx, [0x140011bf0]
lea r8d, [r9 + 0x32]
call fcn.14000e100
or dword [rdi + 0x58], 0x20000
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.14000f3c0
int3
Function at 0x140012cc0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x1400af210]
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 0x140012ebc
xor eax, eax
mov qword [rsp + 0x480], rbx
mov qword [0x1400b9410], rax
mov ebx, 2
xor ecx, ecx
mov word [0x1400b9410], bx
mov qword [0x1400b9418], rax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [0x1400b9414]
mov word [0x1400b9412], ax
lea rcx, str.0.0.0.0
call fcn.14000ff50
test eax, eax
jne 0x140012ecb
call fcn.1400027d0
test eax, eax
jne 0x140012ed1
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 0x140012dd0
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 0x140012ed7
mov eax, dword [0x1400b9440]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x1400b9440], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x140012df7
jmp 0x140012eec
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x140012f40
cmp eax, 0x273a
jbe 0x140012f40
cmp eax, 0x2740
jae 0x140012f40
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 0x140012e6d
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 0x140012f01
mov eax, dword [0x1400b943c]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x1400b943c], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x140012e94
jmp 0x140012f16
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x140012f2b
cmp eax, 0x273a
jbe 0x140012f2b
cmp eax, 0x2740
jae 0x140012f2b
mov rdi, qword [rsp + 0x470]
mov rbx, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140052350
add rsp, 0x478
ret
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.14000f3c0
int3
call fcn.14005be50
int3
call fcn.14005be50
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.14000f3c0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.14000f3c0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.14000f3c0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.14000f3c0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.14000f3c0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.14000f3c0
int3
Function at 0x140014bd0
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 + 0x18c], 0x2000
jne 0x140014c0f
mov rcx, qword [0x1400b93f8]
lea r9, str.Cannot_resume_connections_without_enabling_MHD_ALLOW_SUSPEND_RESUME__n
mov r8d, 0xb13
lea rdx, [0x1400b0c30]
call qword [0x1400b9400]
int3
lea rcx, [rdi + 0x128]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsi + 0x178], 1
lea rcx, [rdi + 0x128]
mov byte [rdi + 0x173], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rdi + 0x160], 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
je 0x140014c86
mov rcx, qword [rdi + 0x168]
lea rdx, [0x1400afe6c]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x140014c86
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140014c86
lea rdx, str.Failed_to_signal_resume_via_inter_thread_communication_channel.
mov rcx, rdi
call fcn.14001d140
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140014f30
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
mov rax, qword [0x1400af210]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor eax, eax
mov dword [rsp + 0x30], 0x1c
mov rbx, rcx
mov qword [r11 - 0x30], rax
mov rcx, qword [rcx + 0x150]
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov dword [rsp + 0x50], eax
cmp rcx, 0xffffffffffffffff
je 0x140015121
movzx eax, byte [rbx + 0x171]
test al, al
jne 0x140015121
mov qword [r11 + 0x10], rsi
lea r8, [r11 - 0x38]
lea rdx, [r11 - 0x30]
mov qword [r11 + 0x18], rdi
call qword [sym.imp.WS2_32.dll_accept]
xor dil, dil
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140015062
cmp dword [rsp + 0x30], 0
jle 0x140015062
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 0x140014ff5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14001c600
mov r8, rax
lea rdx, str.Failed_to_set_nonblocking_mode_on_incoming_connection_socket:__s_n
mov rcx, rbx
call fcn.14001d140
jmp 0x140014ff8
mov dil, 1
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14001501b
lea rdx, str.Failed_to_set_noninheritable_mode_on_incoming_connection_socket._n
mov rcx, rbx
call fcn.14001d140
mov r9d, dword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov byte [rsp + 0x28], dil
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x20], 0
call fcn.140014450
mov eax, 1
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140052350
add rsp, 0x60
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2726
je 0x14001511a
cmp eax, 0x2746
je 0x14001511a
cmp eax, 0x2733
je 0x1400150a0
mov ecx, eax
call fcn.14001c600
mov r8, rax
lea rdx, str.Error_accepting_connection:__s_n
mov rcx, rbx
call fcn.14001d140
cmp rsi, 0xffffffffffffffff
je 0x1400150d5
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1400150d5
mov rcx, qword [0x1400b93f8]
lea r9, [0x1400b0828]
mov r8d, 0xc19
lea rdx, [0x1400b1050]
call qword [0x1400b9400]
int3
cmp edi, 0x2728
je 0x1400150e5
cmp edi, 0x2747
jne 0x14001511a
mov r8d, dword [rbx + 0x178]
mov rcx, rbx
test r8d, r8d
jne 0x140015107
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
call fcn.14001d140
xor eax, eax
jmp 0x140015042
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 byte [rbx + 0x172], 1
call fcn.14001d140
xor eax, eax
jmp 0x140015042
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140052350
add rsp, 0x60
pop rbx
ret
Function at 0x1400154a0
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 + 0x174], 0
mov rcx, qword [rcx + 0x160]
mov r13, r9
mov r12, rdx
cmp rcx, 0xffffffffffffffff
je 0x1400154fd
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400154fd
nop dword [rax + rax]
mov rcx, qword [r14 + 0x160]
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1400154e0
mov rcx, qword [r14 + 0x150]
cmp rcx, 0xffffffffffffffff
je 0x14001552b
movzx eax, byte [r14 + 0x171]
test al, al
jne 0x14001552b
mov rdx, r12
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14001552b
mov rcx, r14
call fcn.140014f30
mov eax, dword [r14 + 0x18c]
and eax, 4
test al, al
jne 0x1400155ec
mov qword [rsp + 0x78], rbx
mov rbx, qword [r14 + 0x18]
test rbx, rbx
je 0x1400155e7
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 + 0x110]
mov rbp, qword [rbx + 8]
cmp r15, 0xffffffffffffffff
je 0x1400155c6
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.140013af0
mov rbx, rbp
test rbp, rbp
jne 0x140015570
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.140015140
mov eax, 1
add rsp, 0x50
pop r14
pop r13
pop r12
ret
Function at 0x140015e60
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400af210]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
or ebp, 0xffffffff
xor r14d, r14d
mov qword [r11 - 0x40], rax
mov rbx, rcx
mov qword [r11 - 0x38], rax
mov rcx, qword [rcx + 0x150]
or esi, ebp
mov qword [r11 - 0x30], rax
mov edi, r14d
mov qword [r11 - 0x28], rax
mov r15d, 0x300
cmp rcx, 0xffffffffffffffff
je 0x140015ed4
movzx eax, byte [rbx + 0x171]
test al, al
jne 0x140015ed4
mov qword [r11 - 0x40], rcx
lea edi, [r14 + 1]
mov dword [r11 - 0x38], r15d
mov ebp, r14d
mov rcx, qword [rbx + 0x160]
cmp rcx, 0xffffffffffffffff
je 0x140015ef4
mov eax, edi
mov esi, edi
add rax, rax
inc edi
mov qword [rsp + rax*8 + 0x28], rcx
mov dword [rsp + rax*8 + 0x30], r15d
test dword [rbx + 0x18c], 0x2000
je 0x140015f08
mov rcx, rbx
call fcn.140014ca0
test edi, edi
je 0x140015fba
or r8d, 0xffffffff
lea rcx, [rsp + 0x28]
mov edx, edi
call qword [sym.imp.WS2_32.dll_WSAPoll]
test eax, eax
jns 0x140015f53
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x140015fba
mov ecx, eax
call fcn.14001c600
mov r8, rax
lea rdx, str.poll_failed:__s_n
mov rcx, rbx
call fcn.14001d140
xor eax, eax
jmp 0x140015fbf
cmp esi, 0xffffffff
je 0x140015f8d
movsxd rax, esi
add rax, rax
movzx ecx, word [rsp + rax*8 + 0x32]
and cx, r15w
cmp r14w, cx
je 0x140015f8d
nop dword [rax]
mov rcx, qword [rbx + 0x160]
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140015f70
movzx eax, byte [rbx + 0x170]
test al, al
jne 0x140015f4f
cmp ebp, 0xffffffff
je 0x140015fba
movsxd rax, ebp
add rax, rax
movzx ecx, word [rsp + rax*8 + 0x32]
and cx, r15w
cmp r14w, cx
je 0x140015fba
mov rcx, rbx
call fcn.140014f30
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052350
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140017980
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400af210]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rax, [0x140013630]
mov qword [0x1400b93f8], 0
mov ecx, 0x202
mov qword [0x1400b9400], rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400179e8
mov rcx, qword [0x1400b93f8]
lea r9, str.Failed_to_initialize_winsock_n
mov r8d, 0x1a69
lea rdx, [0x1400b38d0]
call qword [0x1400b9400]
int3
movzx eax, word [rsp + 0x20]
mov dword [0x1400b8fbc], 1
cmp al, 2
je 0x140017a25
shr ax, 8
cmp al, 2
je 0x140017a25
mov rcx, qword [0x1400b93f8]
lea r9, str.Winsock_version_2.2_is_not_available_n
mov r8d, 0x1a6c
lea rdx, str.T:Bin_prepmhd_srclibmicrohttpd_0.9.55W32VS2015...._srcmicrohttpddaemon.c
call qword [0x1400b9400]
int3
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
xor ecx, ecx
mov qword [0x1400b93d0], rax
call fcn.14005a440
mov qword [0x1400b93d8], rax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140052350
add rsp, 0x1d8
ret
Function at 0x14001af90
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x11c], 0
mov rbx, rcx
mov rdi, qword [rcx + 0x20]
jne 0x14001b16c
mov qword [rsp + 0x30], rbp
xor ebp, ebp
mov byte [rcx + 0x11c], 1
mov rcx, qword [rcx + 0x38]
mov qword [rsp + 0x38], rsi
test rcx, rcx
je 0x14001afd3
call fcn.14001c390
mov qword [rbx + 0x38], rbp
lea rcx, [rdi + 0x128]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rbx + 0x170], bpl
je 0x14001b02a
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
test rcx, rcx
jne 0x14001affb
mov qword [rdi + 0x20], rax
jmp 0x14001affe
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
test rcx, rcx
jne 0x14001b01a
mov qword [rdi + 0x28], rax
mov byte [rbx + 0x170], bpl
jmp 0x14001b0ca
mov qword [rcx + 8], rax
mov byte [rbx + 0x170], bpl
jmp 0x14001b0ca
mov eax, dword [rdi + 0x18c]
and eax, 4
test al, al
jne 0x14001b09f
mov rax, qword [rdi + 0x180]
cmp qword [rbx + 0x100], rax
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x18]
jne 0x14001b071
test rcx, rcx
jne 0x14001b05a
mov qword [rdi + 0x40], rax
jmp 0x14001b05e
mov qword [rcx + 0x10], rax
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
test rcx, rcx
jne 0x14001b093
mov qword [rdi + 0x48], rax
jmp 0x14001b097
test rcx, rcx
jne 0x14001b07c
mov qword [rdi + 0x50], rax
jmp 0x14001b080
mov qword [rcx + 0x10], rax
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
test rcx, rcx
jne 0x14001b093
mov qword [rdi + 0x58], rax
jmp 0x14001b097
mov qword [rcx + 0x18], rax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x10], rbp
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
test rcx, rcx
jne 0x14001b0b1
mov qword [rdi + 0x10], rax
jmp 0x14001b0b4
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
test rcx, rcx
jne 0x14001b0c6
mov qword [rdi + 0x18], rax
jmp 0x14001b0ca
mov qword [rcx + 8], rax
mov qword [rbx + 8], rbp
mov qword [rbx], rbp
mov rax, qword [rdi + 0x30]
mov qword [rbx + 8], rbp
mov rbp, qword [rsp + 0x30]
mov qword [rbx], rax
cmp qword [rdi + 0x38], 0
jne 0x14001b0ee
mov qword [rdi + 0x38], rbx
jmp 0x14001b0f6
mov rax, qword [rdi + 0x30]
mov qword [rax + 8], rbx
mov qword [rdi + 0x30], rbx
lea rcx, [rdi + 0x128]
mov byte [rbx + 0x178], 0
mov byte [rbx + 0x11b], 0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [rdi + 0x18c]
mov rsi, qword [rsp + 0x38]
and eax, 4
test al, al
je 0x14001b16c
cmp qword [rdi + 0x160], 0xffffffffffffffff
je 0x14001b16c
mov rcx, qword [rdi + 0x168]
lea rdx, [0x1400b28bc]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x14001b16c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14001b16c
lea rdx, str.Failed_to_signal_end_of_connection_via_inter_thread_communication_channel
mov rcx, rdi
call fcn.14001d140
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001bd80
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov ebp, edx
mov rdi, rcx
test rcx, rcx
je 0x14001bddd
test r8, r8
je 0x14001bddd
cmp qword [rcx + 0x38], 0
jne 0x14001bddd
mov eax, dword [rcx + 0x120]
cmp eax, 4
je 0x14001bdb8
cmp eax, 9
jne 0x14001bddd
mov rax, qword [r8 + 0x28]
mov rcx, qword [rcx + 0x20]
test rax, rax
je 0x14001bdef
test dword [rcx + 0x18c], 0x8000
jne 0x14001bdef
lea rdx, str.Attempted_upgrade_connection_on_daemon_without_MHD_ALLOW_UPGRADE_option__n
call fcn.14001d140
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp ebp, 0x65
je 0x14001be02
test rax, rax
je 0x14001be02
lea rdx, str.Application_used_invalid_status_code_for_upgrade_response__n
jmp 0x14001bdd8
lea rcx, [r8 + 0x38]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rsi + 0x88]
lea rcx, [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r11, qword [rdi + 0x58]
xor ebx, ebx
mov qword [rdi + 0x38], rsi
mov dword [rdi + 0x128], ebp
test r11, r11
je 0x14001be92
movzx ecx, byte [r11]
lea r9, str.HEAD
test cl, cl
je 0x14001be86
mov r10, r11
sub r10, r9
nop dword [rax + rax]
movzx r8d, byte [r9]
cmp cl, r8b
je 0x14001be79
lea eax, [rcx - 0x41]
movsx edx, cl
cmp al, 0x19
ja 0x14001be66
add edx, 0x20
lea eax, [r8 - 0x41]
cmp al, 0x19
movsx eax, r8b
ja 0x14001be75
add eax, 0x20
cmp dl, al
jne 0x14001be92
movzx ecx, byte [r10 + r9 + 1]
inc r9
test cl, cl
jne 0x14001be50
mov eax, ebx
cmp byte [r9], al
sete al
test eax, eax
jne 0x14001beaa
cmp ebp, 0xc8
jb 0x14001beaa
cmp ebp, 0xcc
je 0x14001beaa
cmp ebp, 0x130
jne 0x14001beb5
mov rax, qword [rsi + 0x60]
mov qword [rdi + 0xe0], rax
cmp dword [rdi + 0x120], 4
jne 0x14001bf85
test r11, r11
je 0x14001bf85
movzx ecx, byte [r11]
lea r9, str.POST
test cl, cl
je 0x14001bf16
mov r10, r11
sub r10, r9
movzx r8d, byte [r9]
cmp cl, r8b
je 0x14001bf09
lea eax, [rcx - 0x41]
movsx edx, cl
cmp al, 0x19
ja 0x14001bef6
add edx, 0x20
lea eax, [r8 - 0x41]
cmp al, 0x19
movsx eax, r8b
ja 0x14001bf05
add eax, 0x20
cmp dl, al
jne 0x14001bf22
movzx ecx, byte [r10 + r9 + 1]
inc r9
test cl, cl
jne 0x14001bee0
mov eax, ebx
cmp byte [r9], al
sete al
test eax, eax
jne 0x14001bf74
movzx ecx, byte [r11]
lea r9, [0x1400b2da4]
test cl, cl
je 0x14001bf6a
sub r11, r9
movzx r8d, byte [r9]
cmp cl, r8b
je 0x14001bf5d
lea eax, [rcx - 0x41]
movsx edx, cl
cmp al, 0x19
ja 0x14001bf4a
add edx, 0x20
lea eax, [r8 - 0x41]
cmp al, 0x19
movsx eax, r8b
ja 0x14001bf59
add eax, 0x20
cmp dl, al
jne 0x14001bf85
movzx ecx, byte [r11 + r9 + 1]
inc r9
test cl, cl
jne 0x14001bf34
cmp byte [r9], bl
sete bl
test ebx, ebx
je 0x14001bf85
mov byte [rdi + 0x119], 1
mov dword [rdi + 0x120], 9
cmp byte [rdi + 0x11b], 0
mov rbx, qword [rsp + 0x30]
jne 0x14001bf9b
mov rcx, rdi
call fcn.14001b180
mov rbp, qword [rsp + 0x38]
mov eax, 1
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret