joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180011d90
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x180084088]
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 0x180011de2
mov rcx, qword [rcx + 0x110]
movzx edx, bp
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x180011dea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
or eax, 0xffffffff
jmp 0x180011e9c
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 0x180011e89
nop dword [rax]
mov rcx, qword [rdi + 0x110]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x180011e89
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 0x180011e7e
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 0x180011eba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x180011e10
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.18002b180
mov rbp, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
movsx eax, word [rsp + 0x38]
mov ecx, r14d
movsx edx, word [rsp + 0x48]
movsx r8d, word [rsp + 0x3a]
mov dword [0x1800850d0], eax
movsx eax, word [rsp + 0x44]
sub edx, eax
movsx eax, word [rsp + 0x3e]
inc edx
sub eax, edx
mov dword [0x1800850dc], edx
inc eax
test eax, eax
cmovg ecx, eax
lea eax, [rdx + rcx]
cmp eax, r8d
jle 0x180011efd
mov ecx, r8d
sub ecx, edx
test ecx, ecx
cmovs ecx, r14d
xor eax, eax
mov dword [0x1800850e0], ecx
jmp 0x180011e94
Function at 0x180014570
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 0x18001458f
mov eax, 0xfffff00d
add rsp, 0x40
pop rbx
ret
bt eax, 0x10
jb 0x1800145a0
mov eax, 0xfffff031
add rsp, 0x40
pop rbx
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x18001463e
cmp eax, 0xc
je 0x1800145ee
cmp eax, 0xe
je 0x1800145c1
mov eax, 0xfffff02a
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x18001463e
lea r9, [rsp + 0x60]
call fcn.1800127c0
test eax, eax
je 0x1800145e6
mov ecx, dword [rsp + 0x60]
add rsp, 0x40
pop rbx
jmp fcn.180019d80
mov eax, dword [rbx]
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x18001463e
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 0x180014634
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
add rsp, 0x40
pop rbx
jmp fcn.180019d80
mov eax, dword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov eax, 0xfffff008
add rsp, 0x40
pop rbx
ret
Function at 0x180017520
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.1800174a0
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret

Function at 0x180017a70
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 0x180017aab
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret

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

Function at 0x180017b40
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 0x180017b7c
mov eax, 0xfffff00e
jmp 0x180017c5e
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x180017b9f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180017c5e
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x180017bbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180017c5e
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 0x180017bb3
mov eax, dword [0x180093160]
cmp esi, 0x17
mov r8, qword [0x180093180]
cmove eax, dword [0x18009315c]
test r8, r8
je 0x180017c1f
test dword [rbx + 0x58], 0x100000
jne 0x180017c1f
test eax, eax
jne 0x180017c1f
mov dl, 3
mov rcx, rdi
call r8
test eax, eax
je 0x180017c14
or dword [rbx + 0x58], 0x40000
jmp 0x180017c1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
jne 0x180017bb3
test dword [rbx + 0x58], 0x2000000
je 0x180017c34
mov rdx, rdi
call fcn.180017a70
test eax, eax
jne 0x180017c5e
test dword [rbx + 0x58], 0x4000000
je 0x180017c49
mov rdx, rdi
call fcn.180017ac0
test eax, eax
jne 0x180017c5e
mov qword [rbx + 0x110], rdi
cmp esi, 0x17
jne 0x180017c5c
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 0x180017f10
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 0x180017f84
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 0x180017f5e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180017fe9
movzx r9d, word [rdi]
mov r8, rax
mov rcx, qword [rbx + 8]
mov rdx, rbx
call fcn.180017b40
mov ebp, eax
test eax, eax
je 0x180017f84
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x180017fe9
cmp word [rdi], 0x17
jne 0x180017fb5
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 0x180017fe0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x180017fe9
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 0x180018330
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, [0x180092b37]
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 0x1800183a4
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 0x18001842f
mov eax, dword [rdi + 0x58]
bt eax, 0x12
jae 0x180018497
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 0x180018422
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 0x18001850d
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x18001850d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180018497
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x18001844e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18001845c
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 0x18001848a
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 0x18001850d
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x18001850d
or dword [rdi + 0x58], 0x20000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x100000
je 0x18001850d
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x18001850d
mov rdx, qword [rbx + 0x70]
lea r8, [0x180018000]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x18001850d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1800184ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800184fd
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.180017a40
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 0x180018c20
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 0x180018c9f
mov eax, dword [rdx + 0x58]
bt eax, 0xb
jae 0x180018d1a
btr eax, 0xb
sub dword [rdx + 0x7c], 1
mov dword [rdx + 0x58], eax
jne 0x180018c75
test al, 1
jne 0x180018c75
test al, 0x40
je 0x180018c75
and eax, 0xffffffbf
mov dword [rdx + 0x58], eax
test al, 0x20
je 0x180018c75
mov rax, qword [rdx + 8]
dec dword [rax + 8]
mov r9, qword [rdx + 0x100]
test r9, r9
je 0x180018d1a
mov ecx, dword [r8 + 0x40]
call fcn.18001e110
mov ecx, eax
call fcn.180019d80
mov edx, eax
mov rcx, rbx
call r9
jmp 0x180018d1a
cmp dword [r8 + 0x40], 0
jl 0x180018cf4
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 0x180018cf4
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x180018d1a
xor edx, edx
mov rcx, rbx
call rax
jmp 0x180018d1a
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
test dword [rbx + 0x58], 0x800
je 0x180018d1a
mov rdx, rdi
mov rcx, rbx
call fcn.180018040
dec dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
test al, 1
je 0x180018d40
cmp dword [rbx + 0x78], 0
jne 0x180018d40
test al, 8
jne 0x180018d40
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 0x180018d50
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 0x180018d8f
mov eax, dword [rdx + 0x58]
test al, 1
jne 0x180018d8f
test al, 0x40
je 0x180018d8f
and eax, 0xffffffbf
mov dword [rdx + 0x58], eax
test al, 0x20
je 0x180018d8f
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 0x180018e1a
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 0x180018e12
or dword [rbx + 0x58], 0x19000
mov dword [rbx + 0x100], edi
mov dword [rbx + 0x88], recv
mov qword [rbx + 0xc0], rdi
mov qword [rbx + 0xf0], rdi
mov qword [rbx + 0xf8], 0xffffffffffffffff
mov qword [rbx + 0x80], rbx
inc dword [rsi + 0xa8]
jmp 0x180018e21
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180018e1f
call fcn.18001e110
mov edi, eax
mov ecx, edi
call fcn.180019d80
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 0x180018e56
cmp dword [rbx + 0x78], 0
jne 0x180018e56
test al, 8
jne 0x180018e56
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 0x18001b740
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, 0x40040003
mov dword [rax - 0x28], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x18001b7f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x18001b7ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18001b7b9
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 0x18001b7e5
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 0x18001b8d9
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
jmp 0x18001b8d9
mov r8, rax
mov dword [rsp + 0x20], ebp
mov rdx, rsi
mov rcx, rdi
call fcn.18001af40
test eax, eax
je 0x18001b82c
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 0x18001b7ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18001b7b9
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 0x18001b8d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18001b8d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x18001b875
mov qword [rbx + 0x40], rbp
jmp 0x18001b8ad
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 0x18001b899
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18001b8a7
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 0x18001b8cc
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x18001b8d0
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 0x18001bb90
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 0x18001bc0c
mov r8d, reloc.WS2_32.dll_recv
lea rcx, [0x18001b900]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x18001bd39
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x18001bbf3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cdqe
mov qword [rbx + 0x40], rax
jmp 0x18001bd08
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
jmp 0x18001bd08
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 0x18001bc36
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x118]
lea rdx, [0x180092b79]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001bc7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18001bc7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x18001bcf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18001bd03
test dword [rdi + 0x58], 0x100000
je 0x18001bd39
cmp qword [rbx + 0x70], 0
jne 0x18001bcb0
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 0x18001bd77
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x18001bd39
mov rdx, qword [rbx + 0x58]
lea r8, [0x180018000]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x18001bd39
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x18001bcf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18001bd03
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 0x18001bd2f
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 0x18001bd58
mov qword [rbx + 0x68], rbx
mov qword [rbp + 0x48], rbx
jmp 0x18001bd58
mov rcx, qword [rdi + 0x128]
test rcx, rcx
je 0x18001bd58
xor r9d, r9d
lea rdx, [0x18001c840]
lea r8d, [r9 + 0x32]
call fcn.180019770
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.180019cd0
int3
Function at 0x18001de70
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x180084088]
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 0x18001e06e
xor eax, eax
mov qword [rsp + 0x480], rbx
mov qword [0x180093120], rax
mov ebx, 2
xor ecx, ecx
mov word [0x180093120], bx
mov qword [0x180093128], rax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [0x180093124]
mov word [0x180093122], ax
lea rcx, str.0.0.0.0
call fcn.18001aba0
test eax, eax
jne 0x18001e07d
call fcn.18000dfb0
test eax, eax
jne 0x18001e083
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 0x18001df81
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 0x18001e089
mov ecx, dword [0x180093160]
mov eax, dword [rsp + 0x40]
and eax, 0x20000
cmove ecx, edi
mov dword [0x180093160], ecx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x18001dfa8
jmp 0x18001e09e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x18001e0f2
cmp eax, 0x273a
jbe 0x18001e0f2
cmp eax, 0x2740
jae 0x18001e0f2
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 0x18001e01f
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 0x18001e0b3
mov ecx, dword [0x18009315c]
mov eax, dword [rsp + 0x40]
and eax, 0x20000
cmove ecx, edi
mov dword [0x18009315c], ecx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x18001e046
jmp 0x18001e0c8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x18001e0dd
cmp eax, 0x273a
jbe 0x18001e0dd
cmp eax, 0x2740
jae 0x18001e0dd
mov rdi, qword [rsp + 0x470]
mov rbx, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18002b180
add rsp, 0x478
ret
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.180019cd0
int3
call fcn.180035304
int3
call fcn.180035304
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.180019cd0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.180019cd0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.180019cd0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.180019cd0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.180019cd0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.180019cd0
int3
Function at 0x180020230
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 0x18002026f
mov rcx, qword [0x180092bb0]
lea r9, str.Cannot_resume_connections_without_enabling_MHD_ALLOW_SUSPEND_RESUME__n
mov r8d, 0xa7b
lea rdx, [0x180086e40]
call qword [0x180092bc8]
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 0x1800202e6
mov rcx, qword [rdi + 0x170]
lea rdx, [0x1800850fc]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1800202e6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1800202e6
lea rdx, str.Failed_to_signal_resume_via_inter_thread_communication_channel.
mov rcx, rdi
call fcn.180029dd0
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret