joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140192f90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x150]
mov rbp, rcx
mov rcx, rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x140192fd3
mov rax, 0xfffffffffffff02c
mov r8d, 0x10b
jmp 0x1401930d6
mov ecx, 0x290
call qword [fcn.140369f54]
mov rsi, rax
test rax, rax
je 0x1401930c9
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140192ff1
test rbx, rbx
jne 0x140193009
lea r14, [0x1404d5390]
jmp 0x140193028
movzx eax, word [rdi + rbx*2 - 2]
cmp ax, 0x5c
je 0x140193021
lea r14, str._s
cmp ax, 0x2f
jne 0x140193028
lea r14, [0x1404d52f8]
lea rcx, [rbx*2 + 8]
test rcx, rcx
je 0x1401930c9
call qword [fcn.140369f54]
mov r15, rax
test rax, rax
je 0x1401930c9
lea rdx, [rbx + 3]
mov r9, rdi
mov r8, r14
mov rcx, rax
call fcn.140190eb0
lea rdx, [rsi + 0x38]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsi + 0x30], rax
call fcn.140369a80
mov rcx, r15
mov ebx, dword [rax]
call qword [fcn.140369ab4]
call fcn.140369a80
mov dword [rax], ebx
cmp qword [rsi + 0x30], 0xffffffffffffffff
jne 0x1401930ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1401930ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov r8d, eax
call fcn.14019e610
cdqe
jmp 0x1401930d6
mov dword [rsi + 0x288], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], rsi
jmp 0x14019311c
mov r8d, recv
mov rax, 0xfffffffffffff027
mov dword [rbp + 0x14c], r8d
mov qword [rbp + 0x88], rax
call fcn.140369a80
mov rcx, rsi
mov ebx, dword [rax]
call qword [fcn.140369ab4]
call fcn.140369a80
mov dword [rax], ebx
call fcn.140369a80
xor ecx, ecx
mov ebx, dword [rax]
call qword [fcn.140369ab4]
call fcn.140369a80
mov dword [rax], ebx
mov qword [rbp + 0x90], 0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140195110
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rbx, rcx
mov rdi, r8
mov ecx, 0x18
mov rsi, rdx
call qword [fcn.140369f54]
mov r14, rax
test rax, rax
jne 0x14019514b
mov eax, 0xfffff027
jmp 0x1401951d4
mov qword [rax + 8], rdi
lea r8, [0x140195020]
xor edi, edi
mov qword [rax], rsi
mov qword [rsp + 0x28], rdi
mov r9, r14
xor edx, edx
mov dword [rsp + 0x20], 4
xor ecx, ecx
call fcn.140377798
test rax, rax
jne 0x1401951c2
call fcn.140369a80
mov esi, dword [rax]
call fcn.140369a80
mov rcx, r14
mov ebx, dword [rax]
call qword [fcn.140369ab4]
call fcn.140369a80
mov dword [rax], ebx
test esi, esi
je 0x1401951d2
cmp esi, 0xb
je 0x1401951bb
cmp esi, 0xd
je 0x1401951b4
cmp esi, 0x16
setne dil
lea eax, [rdi - 0xfe7]
jmp 0x1401951d4
mov eax, 0xfffff004
jmp 0x1401951d4
mov eax, 0xfffff008
jmp 0x1401951d4
mov qword [rbx], rax
mov rcx, rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x140195c90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, r8
mov r15, rdx
mov r14, rcx
test rcx, rcx
jne 0x140195ccc
xor esi, esi
test rdx, rdx
je 0x140195cb7
mov qword [rdx], rsi
mov qword [r8], rsi
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rdi
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x140195ce0
mov rbx, rdi
nop dword [rax]
test rbx, rbx
je 0x140195d09
movzx eax, word [rcx + rbx*2 - 2]
dec rbx
cmp ax, 0x5c
je 0x140195d09
cmp ax, 0x2f
jne 0x140195cf0
mov qword [rsp + 0x48], rbp
test rbx, rbx
jne 0x140195d64
test r15, r15
je 0x140195d56
mov ecx, 0x20a
call qword [fcn.140369f54]
mov qword [r15], rax
test rax, rax
je 0x140195e03
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x140195d56
mov rcx, qword [r15]
call fcn.14018c1f0
xor esi, esi
lea eax, [rbx - 1]
mov qword [r15], rsi
jmp 0x140195de4
mov rcx, r14
call fcn.140379d74
mov qword [r12], rax
jmp 0x140195de2
xor esi, esi
test r15, r15
je 0x140195da2
lea rcx, [rbx*2 + 4]
test rcx, rcx
je 0x140195d80
call qword [fcn.140369f54]
jmp 0x140195d83
mov rax, rsi
mov qword [r15], rax
test rax, rax
je 0x140195e03
lea r8, [rbx + 1]
mov rdx, r14
mov rcx, rax
call fcn.1403762f4
mov rax, qword [r15]
mov word [rax + rbx*2 + 2], si
sub rdi, rbx
lea rbp, [rdi + rdi]
test rbp, rbp
je 0x140195db9
mov rcx, rbp
call qword [fcn.140369f54]
jmp 0x140195dbc
mov rax, rsi
mov qword [r12], rax
test rax, rax
je 0x140195e03
lea rdx, [r14 + 2]
mov rcx, rax
lea rdx, [rdx + rbx*2]
lea r8, [rdi - 1]
call fcn.1403762f4
mov rax, qword [r12]
mov word [rax + rbp - 2], si
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
lea rdx, str.uv__malloc
mov ecx, recv
call fcn.14019e560
int3
Function at 0x1401968d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140526598]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140196904
mov eax, 0xfffff019
jmp 0x1401969d3
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test eax, eax
jne 0x14019692c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14019e610
jmp 0x1401969d3
cmp edx, 0x104
jbe 0x14019693e
mov eax, 0xfffff01a
jmp 0x1401969d3
mov rax, rdx
mov qword [rsp + 0x280], rsi
add rax, rax
cmp rax, 0x208
jae 0x140196a49
xor esi, esi
lea ecx, [rdx - 1]
add rcx, rcx
mov word [rsp + rax + 0x40], si
cmp word [rsp + rcx + 0x40], 0x5c
jne 0x14019698c
cmp edx, 3
jne 0x14019697a
cmp word [rsp + 0x42], 0x3a
je 0x14019698c
cmp rcx, 0x208
jae 0x140196a49
mov word [rsp + rcx + 0x40], si
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov r9d, 0xffffffff
mov dword [rsp + 0x28], esi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140196a2e
mov ecx, dword [rbx]
cmp eax, ecx
jle 0x1401969f4
cdqe
mov qword [rbx], rax
mov eax, 0xfffff024
mov rsi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140343400
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop rdi
ret
mov eax, 0x7fffffff
mov qword [rsp + 0x38], rsi
cmp qword [rbx], rax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov r9d, 0xffffffff
cmova ecx, eax
xor edx, edx
mov dword [rsp + 0x28], ecx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140196a3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14019e610
jmp 0x1401969cb
dec eax
movsxd rcx, eax
xor eax, eax
mov qword [rbx], rcx
jmp 0x1401969cb
call fcn.140343ba0
int3

Function at 0x140196a50
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140526598]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x28]
mov rdx, 0xffffffffffffffff
test eax, eax
cmove rcx, rdx
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140343400
add rsp, 0x78
ret
Function at 0x1401973a0
Capabilities:
Get common file path
Get session user name

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x140526598]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x28]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1401973ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14019e610
jmp 0x1401974f0
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x240]
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x140197435
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x28]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x7a
je 0x14019746b
mov ecx, ebx
call fcn.14019e610
jmp 0x1401974f0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x101
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x140197472
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1401973e1
mov eax, 0xfffff027
jmp 0x1401974f0
lea r8, [rbx + 0x18]
mov qword [rsp + 0x480], rdi
mov edx, 0xffffffff
mov qword [rbx + 0x18], 0
lea rcx, [rsp + 0x240]
call fcn.1401971d0
test eax, eax
jne 0x1401974e8
mov r8, rbx
mov qword [rsp + 0x478], rsi
lea edx, [rax - 1]
mov qword [rbx], 0
lea rcx, [rsp + 0x30]
call fcn.1401971d0
mov esi, eax
test eax, eax
je 0x1401974ce
mov rcx, qword [rbx + 0x18]
call fcn.14018c1f0
mov eax, esi
jmp 0x1401974e0
mov qword [rbx + 0x10], 0
xor eax, eax
mov qword [rbx + 8], 0xffffffffffffffff
mov rsi, qword [rsp + 0x478]
mov rdi, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140343400
add rsp, 0x460
pop rbx
ret
Function at 0x140197510
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10060
call fcn.140344150
sub rsp, rax
mov rax, qword [0x140526598]
xor rax, rsp
mov qword [rsp + 0x10050], rax
mov rsi, r8
test r8, r8
je 0x14019765a
cmp qword [r8], 0
je 0x14019765a
lea rdx, [rsp + 0x40]
lea rcx, [0x1404d53d0]
call fcn.1401972d0
test eax, eax
jne 0x1401975a9
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x7fff
mov qword [rsp + 0x10070], rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call fcn.14018c1f0
test rbx, rbx
jne 0x1401975c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x140197641
mov eax, 0xfffff026
mov rbx, qword [rsp + 0x10070]
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.140343400
add rsp, 0x10060
pop rsi
ret
xor ebx, ebx
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
lea r9d, [rbx - 1]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14019763b
mov rcx, qword [rsi]
mov eax, eax
cmp rax, rcx
jbe 0x140197605
mov qword [rsi], rax
mov eax, 0xfffff024
jmp 0x1401975a1
mov qword [rsp + 0x38], rbx
lea rax, [0x14053bdd0]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], ecx
mov r9d, 0xffffffff
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x14019764d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14019e610
jmp 0x1401975a1
lea ecx, [rax - 1]
xor eax, eax
mov qword [rsi], rcx
jmp 0x1401975a1
mov eax, 0xfffff019
jmp 0x1401975a9

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

Function at 0x140197dd0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x40
mov rbx, rdx
mov dword [rsp + 0x30], 0x3c
mov rcx, rbx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x60]
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140197e17
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x40
pop rbx
ret
cmp dword [rsp + 0x60], 0
je 0x140197e42
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov rcx, rbx
lea r8d, [rdx - 3]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140197e0b
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x140197e50
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov rdi, r8
mov dword [rsp + 0x38], 1
mov rbx, rdx
mov rbp, rcx
je 0x140197e8c
mov eax, 0xfffff00e
jmp 0x140197f6b
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x140197eaf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140197f6b
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140197ece
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140197f6b
mov rdx, qword [rbp + 0x38]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x140197ef3
cmp dword [rsp + 0x50], eax
je 0x140197ec3
or dword [rbx + 0x58], 0x80000
mov ecx, dword [0x1407d1ffc]
cmp esi, 0x17
mov eax, dword [rbx + 0x58]
cmove ecx, dword [0x1407d1fc0]
bt eax, 0x13
jb 0x140197f29
test ecx, ecx
jne 0x140197f29
mov dl, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x140197ec3
or dword [rbx + 0x58], 0x20000
mov eax, dword [rbx + 0x58]
bt eax, 0x18
jae 0x140197f3b
mov rdx, rdi
call fcn.140197d80
test eax, eax
jne 0x140197f6b
test dword [rbx + 0x58], 0x2000000
je 0x140197f56
mov r8d, 1
mov rdx, rdi
call fcn.140197dd0
test eax, eax
jne 0x140197f6b
mov qword [rbx + 0x110], rdi
cmp esi, 0x17
jne 0x140197f69
or dword [rbx + 0x58], 0x400000
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1401981f0
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 0x14019826c
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 0x14019823e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1401982d1
movzx r9d, word [rdi]
mov r8, rsi
mov rcx, qword [rbx + 8]
mov rdx, rbx
mov dword [rsp + 0x20], 0
call fcn.140197e50
mov ebp, eax
test eax, eax
je 0x14019826c
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x1401982d1
cmp word [rdi], 0x17
jne 0x14019829d
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 0x1401982c8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x1401982d1
mov dword [rbx + 0x118], eax
or dword [rbx + 0x58], 0x2000
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 0x140198630
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], 0x40000
lea rax, [0x14053c33f]
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], 0x80000
mov dword [rsp + 0x40], ebp
je 0x1401986a4
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 0x14019872f
mov eax, dword [rdi + 0x58]
bt eax, 0x11
jae 0x140198797
bts eax, 0x10
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 0x140198722
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 0x14019880d
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14019880d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140198797
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x14019874e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14019875c
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 0x14019878a
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 0x14019880d
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x14019880d
or dword [rdi + 0x58], 0x10000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x80000
je 0x14019880d
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x14019880d
mov rdx, qword [rbx + 0x70]
lea r8, [0x1401982f0]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x14019880d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1401987ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1401987fd
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.140197d50
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 0x140199470
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 0x1401994ef
mov eax, dword [rdx + 0x58]
test al, 0x40
je 0x140199567
mov edx, eax
and edx, 0xffffffbf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x1401994c5
test dl, 1
jne 0x1401994c5
test al, 4
je 0x1401994c5
and eax, 0xffffffbb
mov dword [rbx + 0x58], eax
test al, 8
je 0x1401994c5
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov r9, qword [rbx + 0x100]
test r9, r9
je 0x140199567
mov ecx, dword [r8 + 0x40]
call fcn.14019fd30
mov ecx, eax
call fcn.14019e610
mov edx, eax
mov rcx, rbx
call r9
jmp 0x140199567
cmp dword [r8 + 0x40], 0
jl 0x140199544
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 0x140199544
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x140199567
xor edx, edx
mov rcx, rbx
call rax
jmp 0x140199567
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
test byte [rbx + 0x58], 0x40
je 0x140199567
mov rdx, rdi
mov rcx, rbx
call fcn.140198380
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x140199590
test ecx, ecx
jne 0x140199590
test al, 0x20
jne 0x140199590
or eax, 0x20
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 0x1401995a0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x1401995ec
mov edx, 6
mov dword [rsp + 0x48], 1
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1401995ec
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x1401995f5
or dword [rbx + 0x58], 0x1000000
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14019c670
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
xor ebp, ebp
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test r9d, r9d
jne 0x14019c765
mov rcx, qword [rdi + 0x120]
mov r9d, 0xff
mov qword [rax - 0x10], rbp
xor r8d, r8d
mov dword [rax - 0x18], ebp
mov edx, 0x40040003
mov dword [rax - 0x20], 0x10000
mov dword [rax - 0x28], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x14019c72b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14019c6e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14019c6f2
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 0x14019c71e
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 0x14019c811
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14019c811
mov r8, rax
mov dword [rsp + 0x20], ebp
mov rdx, rdi
mov rcx, rsi
call fcn.14019be70
test eax, eax
je 0x14019c765
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 0x14019c6e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14019c6f2
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 0x14019c80c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14019c80c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x14019c7ad
mov rax, rbp
jmp 0x14019c7e1
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 0x14019c7d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14019c7df
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 0x14019c804
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x14019c808
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