joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007150
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
mov rbx, rcx
cmp rax, qword [rcx + 0x18]
jae 0x140007170
inc rax
mov qword [rcx + 0x20], rax
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0x38], 0
jne 0x1400071bc
mov rax, qword [rcx + 0x28]
mov edx, 1
add qword [rcx + 0x30], rax
mov r9, qword [rcx]
mov r8, qword [rcx + 0x10]
mov rcx, qword [rcx + 8]
call fcn.1400253e8
mov rdx, qword [rbx + 8]
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x20], rdx
lea rcx, [rdx - 1]
add rcx, rax
mov qword [rbx + 0x18], rcx
cmp rax, qword [rbx + 0x10]
jae 0x1400071bc
mov byte [rdx + rax], 0
inc qword [rbx + 0x18]
mov byte [rbx + 0x38], 1
add rsp, 0x20
pop rbx
ret
Function at 0x140007960
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
movabs rdi, 0x100002600
nop word [rax + rax]
mov rcx, qword [rbx + 0x20]
movzx eax, byte [rcx]
cmp al, 0x20
ja 0x1400079f3
movsx rax, al
bt rdi, rax
jae 0x1400079f3
cmp rcx, qword [rbx + 0x18]
jae 0x1400079a5
lea rax, [rcx + 1]
mov qword [rbx + 0x20], rax
jmp 0x140007980
cmp byte [rbx + 0x38], 0
jne 0x140007980
mov rax, qword [rbx + 0x28]
mov edx, 1
mov r9, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
add qword [rbx + 0x30], rax
call fcn.1400253e8
mov rdx, qword [rbx + 8]
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x20], rdx
lea rcx, [rdx - 1]
add rcx, rax
mov qword [rbx + 0x18], rcx
cmp rax, qword [rbx + 0x10]
jae 0x140007980
mov byte [rdx + rax], 0
inc qword [rbx + 0x18]
mov byte [rbx + 0x38], 1
jmp 0x140007980
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140008e80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov r14, r8
mov esi, ebx
mov rdi, rdx
mov rbp, rcx
nop word [rax + rax]
mov rax, qword [rdi + 0x20]
shl ebx, 4
movsx ecx, byte [rax]
add ebx, ecx
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140008ec8
add ebx, 0xffffffd0
jmp 0x140008ef2
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x140008ed4
add ebx, 0xffffffc9
jmp 0x140008ef2
sub cl, 0x61
cmp cl, 5
ja 0x140008ee1
add ebx, 0xffffffa9
jmp 0x140008ef2
mov dword [rbp + 0x30], 8
mov qword [rbp + 0x38], r14
cmp dword [rbp + 0x30], 0
jne 0x140008f60
mov rax, qword [rdi + 0x20]
cmp rax, qword [rdi + 0x18]
jae 0x140008f05
inc rax
mov qword [rdi + 0x20], rax
jmp 0x140008f51
cmp byte [rdi + 0x38], 0
jne 0x140008f51
mov rax, qword [rdi + 0x28]
mov edx, 1
mov r9, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, qword [rdi + 8]
add qword [rdi + 0x30], rax
call fcn.1400253e8
mov rdx, qword [rdi + 8]
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x20], rdx
lea rcx, [rdx - 1]
add rcx, rax
mov qword [rdi + 0x18], rcx
cmp rax, qword [rdi + 0x10]
jae 0x140008f51
mov byte [rdx + rax], 0
inc qword [rdi + 0x18]
mov byte [rdi + 0x38], 1
inc esi
cmp esi, 4
jl 0x140008eb0
mov eax, ebx
jmp 0x140008f62
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000a3e0
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.1400207e4]
mov r14, rax
test rax, rax
jne 0x14000a41b
mov eax, 0xfffff027
jmp 0x14000a4a4
mov qword [rax + 8], rdi
lea r8, [0x14000a2f0]
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.140025940
test rax, rax
jne 0x14000a492
call fcn.140025ad8
mov esi, dword [rax]
call fcn.140025ad8
mov rcx, r14
mov ebx, dword [rax]
call qword [fcn.140020504]
call fcn.140025ad8
mov dword [rax], ebx
test esi, esi
je 0x14000a4a2
cmp esi, 0xb
je 0x14000a48b
cmp esi, 0xd
je 0x14000a484
cmp esi, 0x16
setne dil
lea eax, [rdi - 0xfe7]
jmp 0x14000a4a4
mov eax, 0xfffff004
jmp 0x14000a4a4
mov eax, 0xfffff008
jmp 0x14000a4a4
mov qword [rbx], rax
mov rcx, rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x14000e840
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140067020]
xor rax, rsp
mov qword [rsp + 0x40], rax
and dword [rcx + 0x58], 0xfffffeff
mov rbx, rcx
sub dword [rcx + 0x7c], 1
mov eax, dword [rcx + 0x58]
jne 0x14000e881
test al, 1
jne 0x14000e881
test al, 0x40
je 0x14000e881
and eax, 0xffffffbf
mov dword [rcx + 0x58], eax
test al, 0x20
je 0x14000e881
mov rax, qword [rcx + 8]
dec dword [rax + 8]
mov eax, dword [rcx + 0x58]
bt eax, 0x11
jae 0x14000e8ee
bt eax, 0x19
jae 0x14000e8d8
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x20]
xor eax, eax
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
lea r8d, [rax + 1]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x14000e8ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001bfd0
add rsp, 0x50
pop rbx
ret
bt eax, 0x16
jb 0x14000e8ee
call fcn.14000e910
test eax, eax
jne 0x14000e8f0
or dword [rbx + 0x58], 0x400000
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001bfd0
add rsp, 0x50
pop rbx
ret

Function at 0x14000e910
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rbp
push rdi
sub rsp, 0x78
mov rax, qword [0x140067020]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, rcx
or edx, 0xffffffff
mov rcx, qword [0x14006a838]
xor edi, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000ea73
mov eax, 2
mov qword [rsp + 0xa0], rsi
xchg dword [0x14006a550], eax
cmp eax, 1
je 0x14000e97d
mov rcx, qword [0x14006a838]
lea edx, [rdi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x14000ea79
xor eax, eax
jmp 0x14000ea57
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x98], rbx
lea rcx, str.conout_
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov qword [rsp + 0x70], r14
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000e9dd
lea rdx, [0x14006a820]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14000e9dd
lock or dword [0x14006a81c], 1
mov esi, 1
mov dword [rsp + 0x50], 0xd0001
mov r14d, select
mov word [rsp + 0x48], si
mov ecx, r14d
mov dword [rsp + 0x4c], esi
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rbp + 0x110]
lea r9, [rsp + 0x40]
mov r8d, esi
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], r14w
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov r14, qword [rsp + 0x70]
test eax, eax
jne 0x14000ea3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x14000ea4d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x98]
mov eax, edi
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001bfd0
add rsp, 0x78
pop rdi
pop rbp
ret
call fcn.14002579c
int3
call fcn.14002579c
int3
Function at 0x14000ead0
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140067020]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xb8]
mov esi, r9d
movzx ebp, r8b
mov edi, edx
mov rbx, rcx
cmp dword [r14], 0
je 0x14000eb0c
or eax, 0xffffffff
jmp 0x14000ec33
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov qword [rsp + 0x50], r15
movzx r15d, byte [rsp + 0xb0]
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14000eb41
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
movsx eax, word [rsp + 0x34]
mov edx, edi
movsx r8d, word [rsp + 0x38]
movsx r11d, word [rsp + 0x28]
sub r8d, eax
mov eax, dword [0x140067c30]
inc r8d
movsx r9d, word [rsp + 0x2e]
mov dword [0x140067c20], r11d
mov dword [0x140067c2c], r8d
cmp eax, 0xffffffff
jne 0x14000eb7e
mov eax, r9d
jmp 0x14000eb8b
mov ecx, r9d
sub ecx, r8d
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx r10d, word [rsp + 0x2a]
lea ecx, [r8 + rax]
cmp ecx, r10d
jle 0x14000eba0
mov eax, r10d
sub eax, r8d
test eax, eax
lea ecx, [r9 + rsi]
cmovs eax, r12d
mov dword [0x140067c30], eax
test r15b, r15b
jne 0x14000ebb8
lea ecx, [rax + rsi]
cmp ecx, eax
jge 0x14000ebc0
mov ecx, eax
jmp 0x14000ebcd
lea r9d, [r8 + rax]
cmp ecx, r9d
jl 0x14000ebcd
lea ecx, [r9 - 1]
test bpl, bpl
je 0x14000ebd9
movsx edx, word [rsp + 0x2c]
add edx, edi
test edx, edx
jns 0x14000ebe2
mov edx, r12d
jmp 0x14000ebeb
cmp edx, r11d
jl 0x14000ebeb
lea edx, [r11 - 1]
mov word [rsp + 0x22], cx
mov rcx, qword [rbx + 0x110]
mov word [rsp + 0x20], dx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x14000ec27
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x14000eb22
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
or eax, 0xffffffff
jmp 0x14000ec29
xor eax, eax
mov r12, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001bfd0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000ec50
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140067020]
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 0x14000eca2
mov rcx, qword [rcx + 0x110]
movzx edx, bp
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x14000ecaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
or eax, 0xffffffff
jmp 0x14000ed5c
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 0x14000ed49
nop dword [rax]
mov rcx, qword [rdi + 0x110]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14000ed49
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 0x14000ed3e
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 0x14000ed7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x14000ecd0
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.14001bfd0
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 [0x140067c20], eax
movsx eax, word [rsp + 0x44]
sub edx, eax
movsx eax, word [rsp + 0x3e]
inc edx
sub eax, edx
mov dword [0x140067c2c], edx
inc eax
test eax, eax
cmovg ecx, eax
lea eax, [rdx + rcx]
cmp eax, r8d
jle 0x14000edbd
mov ecx, r8d
sub ecx, edx
test ecx, ecx
cmovs ecx, r14d
xor eax, eax
mov dword [0x140067c30], ecx
jmp 0x14000ed54
Function at 0x1400114f0
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 0x14001150f
mov eax, 0xfffff00d
add rsp, 0x40
pop rbx
ret
bt eax, 0x10
jb 0x140011520
mov eax, 0xfffff031
add rsp, 0x40
pop rbx
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x1400115be
cmp eax, 0xc
je 0x14001156e
cmp eax, 0xe
je 0x140011541
mov eax, 0xfffff02a
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x1400115be
lea r9, [rsp + 0x60]
call fcn.14000f670
test eax, eax
je 0x140011566
mov ecx, dword [rsp + 0x60]
add rsp, 0x40
pop rbx
jmp fcn.140016b80
mov eax, dword [rbx]
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x1400115be
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 0x1400115b4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
add rsp, 0x40
pop rbx
jmp fcn.140016b80
mov eax, dword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov eax, 0xfffff008
add rsp, 0x40
pop rbx
ret
Function at 0x1400148a0
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 0x1400148db
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret

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

Function at 0x140014970
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 0x1400149ac
mov eax, 0xfffff00e
jmp 0x140014a8e
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1400149cf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140014a8e
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1400149ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140014a8e
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 0x1400149e3
mov eax, dword [0x14006aa40]
cmp esi, 0x17
mov r8, qword [0x14006aac0]
cmove eax, dword [0x14006aa3c]
test r8, r8
je 0x140014a4f
test dword [rbx + 0x58], 0x100000
jne 0x140014a4f
test eax, eax
jne 0x140014a4f
mov dl, 3
mov rcx, rdi
call r8
test eax, eax
je 0x140014a44
or dword [rbx + 0x58], 0x40000
jmp 0x140014a4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
jne 0x1400149e3
test dword [rbx + 0x58], 0x2000000
je 0x140014a64
mov rdx, rdi
call fcn.1400148a0
test eax, eax
jne 0x140014a8e
test dword [rbx + 0x58], 0x4000000
je 0x140014a79
mov rdx, rdi
call fcn.1400148f0
test eax, eax
jne 0x140014a8e
mov qword [rbx + 0x110], rdi
cmp esi, 0x17
jne 0x140014a8c
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 0x140014d40
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 0x140014db4
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 0x140014d8e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140014e19
movzx r9d, word [rdi]
mov r8, rsi
mov rcx, qword [rbx + 8]
mov rdx, rbx
call fcn.140014970
mov ebp, eax
test eax, eax
je 0x140014db4
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x140014e19
cmp word [rdi], 0x17
jne 0x140014de5
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 0x140014e10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x140014e19
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 0x140015160
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, [0x14006a517]
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 0x1400151d4
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 0x14001525f
mov eax, dword [rdi + 0x58]
bt eax, 0x12
jae 0x1400152c7
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 0x140015252
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 0x14001533d
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14001533d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400152c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x14001527e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14001528c
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 0x1400152ba
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 0x14001533d
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x14001533d
or dword [rdi + 0x58], 0x20000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x100000
je 0x14001533d
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x14001533d
mov rdx, qword [rbx + 0x70]
lea r8, [0x140014e30]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x14001533d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14001531f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001532d
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.140014870
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 0x140015a50
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 0x140015acf
mov eax, dword [rdx + 0x58]
bt eax, 0xb
jae 0x140015b4a
btr eax, 0xb
sub dword [rdx + 0x7c], 1
mov dword [rdx + 0x58], eax
jne 0x140015aa5
test al, 1
jne 0x140015aa5
test al, 0x40
je 0x140015aa5
and eax, 0xffffffbf
mov dword [rdx + 0x58], eax
test al, 0x20
je 0x140015aa5
mov rax, qword [rdx + 8]
dec dword [rax + 8]
mov r9, qword [rdx + 0x100]
test r9, r9
je 0x140015b4a
mov ecx, dword [r8 + 0x40]
call fcn.14001abc0
mov ecx, eax
call fcn.140016b80
mov edx, eax
mov rcx, rbx
call r9
jmp 0x140015b4a
cmp dword [r8 + 0x40], 0
jl 0x140015b24
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 0x140015b24
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x140015b4a
xor edx, edx
mov rcx, rbx
call rax
jmp 0x140015b4a
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
test dword [rbx + 0x58], 0x800
je 0x140015b4a
mov rdx, rdi
mov rcx, rbx
call fcn.140014e70
dec dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
test al, 1
je 0x140015b70
cmp dword [rbx + 0x78], 0
jne 0x140015b70
test al, 8
jne 0x140015b70
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 0x140015b80
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 0x140015bbf
mov eax, dword [rdx + 0x58]
test al, 1
jne 0x140015bbf
test al, 0x40
je 0x140015bbf
and eax, 0xffffffbf
mov dword [rdx + 0x58], eax
test al, 0x20
je 0x140015bbf
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 0x140015c51
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 0x140015c49
or dword [rbx + 0x58], 0x19000
mov dword [rbx + 0x100], edi
mov dword [rbx + 0x88], select
mov qword [rbx + 0xc0], rdi
mov qword [rbx + 0xf0], rdi
mov qword [rbx + 0xf8], 0xffffffffffffffff
mov qword [rbx + 0x80], rbx
mov qword [rbx + 0x108], rdi
inc dword [rsi + 0xa8]
jmp 0x140015c58
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140015c56
call fcn.14001abc0
mov edi, eax
mov ecx, edi
call fcn.140016b80
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 0x140015c8d
cmp dword [rbx + 0x78], 0
jne 0x140015c8d
test al, 8
jne 0x140015c8d
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