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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
xor ebp, ebp
mov rbx, rcx
test rcx, rcx
je 0x1800113ca
lea rdx, [0x180002348]
call fcn.18000c674
lea rdi, [0x18000175a]
mov sil, 4
test rax, rax
je 0x1800111df
cmp byte [rax], sil
jne 0x1800111df
mov rcx, qword [rax + 0x10]
jmp 0x1800111e2
mov rcx, rdi
lea rdx, [0x180002350]
call fcn.180025cc8
test eax, eax
je 0x1800111fa
or eax, 0xffffffff
jmp 0x1800113cc
lea rdx, [0x18000235c]
mov rcx, rbx
call fcn.18000c674
test rax, rax
je 0x180011217
cmp byte [rax], sil
jne 0x180011217
mov rdi, qword [rax + 0x10]
cmp byte [rdi], bpl
jne 0x18001124a
lea rcx, [0x180002380]
call fcn.180004a90
test rax, rax
je 0x180011236
call fcn.180004a90
lea rcx, [rax + 1]
lea r8, [0x180002360]
mov edx, 0x4c
call qword [0x180029278]
jmp 0x1800111f2
lea rdx, [0x180001674]
mov rcx, rbx
call fcn.18000c674
test rax, rax
je 0x180011269
cmp byte [rax], sil
jne 0x180011269
mov rbx, qword [rax + 0x10]
jmp 0x180011270
lea rbx, [0x1800023b4]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.180025ca4
xor r9d, r9d
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x19]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test eax, eax
jns 0x1800112da
lea rcx, [0x180002380]
call fcn.180004a90
test rax, rax
je 0x1800112be
call fcn.180004a90
lea rcx, [rax + 1]
mov r9d, esi
lea r8, [0x1800023c0]
mov edx, 0x56
call qword [0x180029278]
mov eax, esi
jmp 0x1800113cc
cmp bp, word [rsp + 0x30]
jne 0x18001130c
lea rcx, [0x180002380]
call fcn.180004a90
test rax, rax
je 0x1800112fb
call fcn.180004a90
lea rcx, [rax + 1]
lea r8, [0x1800023e8]
mov edx, 0x5c
jmp 0x180011242
mov rcx, rbx
call fcn.180004e54
mov r11, rax
test rax, rax
jne 0x180011347
lea rcx, [0x180002380]
call fcn.180004a90
test rax, rax
je 0x180011336
call fcn.180004a90
lea rcx, [rax + 1]
lea r8, [0x180002410]
mov edx, 0x63
jmp 0x180011242
lea r8, [rsp + 0x30]
lea rdx, [0x180002428]
lea rcx, [rsp + 0x30]
call fcn.180004a3c
lea r8, [rsp + 0x30]
mov rdx, r11
lea rcx, [rsp + 0x30]
call fcn.180004a3c
lea r8, [rsp + 0x30]
lea rdx, [0x180002430]
lea rcx, [rsp + 0x30]
call fcn.180004a3c
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800113e5
lea rcx, [0x180002380]
call fcn.180004a90
test rax, rax
je 0x1800113b8
call fcn.180004a90
lea rcx, [rax + 1]
lea r8, [0x180002440]
mov edx, WSAGetLastError
call qword [0x180029278]
xor eax, eax
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.180011074
jmp 0x1800113cc
Function at 0x18001144c
Capabilities:
Enumerate process modules
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov r15, r8
mov r12, rdx
mov r13, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
mov dword [rsp + 0x40], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x44]
mov r14, rax
call fcn.180025ca4
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Module32First]
jmp 0x180011611
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180011603
lea rcx, [rbp + 0x70]
call fcn.180012684
test al, al
jne 0x180011603
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0x30], r15
test rdi, rdi
je 0x180011603
mov eax, 0x5a4d
cmp ax, word [rdi]
jne 0x180011603
movsxd rax, dword [rdi + 0x3c]
cmp dword [rax + rdi], 0x4550
jne 0x180011603
mov ecx, dword [rax + rdi + 0x90]
test ecx, ecx
je 0x180011603
cmp dword [rax + rdi + 0x94], 0
je 0x180011603
mov esi, ecx
add rsi, rdi
je 0x180011603
add rsi, 0xc
mov eax, dword [rsi]
test eax, eax
je 0x180011603
mov ecx, eax
mov rdx, r13
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x180011575
mov ebx, dword [rsi + 4]
add rbx, rdi
jmp 0x18001156d
cmp rax, r12
je 0x18001157b
add rbx, 8
mov rax, qword [rbx]
test rax, rax
jne 0x180011564
add rsi, 0x14
jmp 0x180011540
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov edi, 8
mov rcx, rax
mov r9d, edi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x180011603
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e6
jne 0x180011603
lea r9, [rbp + 0x1c8]
mov r8d, edi
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180011603
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov rcx, rax
mov r9d, edi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r8d, dword [rbp + 0x1c8]
lea r9, [rbp + 0x1c8]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x1800114be
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1800116ec
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd rax, dword [rcx + 0x3c]
mov rsi, rdx
mov r9, rcx
cmp dword [rax + rcx], 0x4550
je 0x180011713
xor r8d, r8d
jmp 0x180011728
cmp dword [rax + rcx + 0x84], 0
jbe 0x18001170e
mov r8d, dword [rax + rcx + 0x88]
add r8, r9
mov ebx, dword [r8 + 0x20]
xor r11d, r11d
mov r10d, dword [r8 + 0x18]
add rbx, r9
dec r10d
lea ecx, [r10 + r11]
mov rdi, rsi
shr ecx, 1
mov eax, ecx
mov edx, dword [rbx + rcx*4]
add rdx, r9
sub rdi, rdx
mov al, byte [rdx]
cmp al, byte [rdx + rdi]
jne 0x18001175f
inc rdx
test al, al
jne 0x18001174d
xor eax, eax
jmp 0x180011764
sbb eax, eax
or eax, 1
test eax, eax
jns 0x18001176e
lea r11d, [rcx + 1]
jmp 0x180011774
jle 0x18001177b
lea r10d, [rcx - 1]
cmp r11d, r10d
jbe 0x180011739
xor ecx, ecx
test ecx, ecx
jne 0x180011783
xor eax, eax
jmp 0x180011792
mov eax, dword [r8 + 0x24]
add rax, r9
movzx eax, word [rax + rcx*2]
add eax, dword [r8 + 0x10]
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x180011cd8
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x50
mov edi, 0xc0
lea rcx, [0x180028780]
mov r8d, edi
xor edx, edx
call fcn.180025ca4
mov esi, 0x20
mov dword [0x180028780], 0x4346534e
mov edx, esi
mov word [0x180028784], 0x101
lea rcx, [rsp + 0x30]
mov dword [0x180028788], edi
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
movups xmm0, xmmword [rsp + 0x30]
xor eax, eax
mov ecx, esi
movups xmm1, xmmword [rsp + 0x40]
lea rdi, [rsp + 0x30]
lea rdx, [0x1800287c0]
movaps xmmword [0x1800287c0], xmm0
rep stosb byte [rdi], al
mov rax, qword [0x180027080]
lea rcx, [0x1800287a0]
movaps xmmword [0x1800287d0], xmm1
call qword [rax + 0xf8]
movaps xmm0, xmmword [0x1800287a0]
lea edi, [rsi + 0x60]
movaps xmm1, xmmword [0x1800287b0]
lea r9, [0x180028780]
mov rax, qword [0x180027080]
lea r8, [0x1800287a0]
lea rdx, [0x1800287c0]
movaps xmmword [0x1800287e0], xmm0
lea rcx, [0x180028800]
movaps xmmword [0x1800287f0], xmm1
mov qword [rsp + 0x20], rdi
call qword [rax + 0x100]
mov rax, qword [0x180027080]
lea r8, [0x180028780]
mov r9d, edi
lea rdx, [0x1800287a0]
lea rcx, [0x180028800]
call qword [rax + 0x108]
lea rcx, [0x180028780]
call fcn.18001212c
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rax
mov edx, esi
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
movups xmm0, xmmword [rdi]
mov rcx, rdi
movaps xmmword [0x180028600], xmm0
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [0x180028610], xmm1
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [0x180027080]
lea rdx, [0x180028600]
lea rcx, [0x1800285e0]
call qword [rax + 0x110]
mov rax, qword [0x180027080]
lea r8, [0x180028760]
lea rdx, [0x180028600]
lea rcx, [0x180028680]
call qword [rax + 0x118]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x1800122dc
Capabilities:
Connect socket
Create raw socket
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], r8d
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0xb88]
sub rsp, 0xc60
xor ebx, ebx
mov dword [rbp + 0xba0], 0x40
cmp byte [0x180028a00], bl
lea r13, [0x180028a00]
mov r14, rcx
jne 0x180012343
lea rax, [rbp + 0xba0]
mov qword [rsp + 0x28], rax
lea r8, [0x180002210]
lea rdx, [0x180002218]
mov qword [rsp + 0x20], r13
call fcn.180004b30
or edi, 0xffffffff
xor r8d, r8d
lea r15d, [rdi + 3]
mov ecx, r15d
lea edx, [rdi + 2]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180012369
or edi, eax
jmp 0x18001244c
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x820
call fcn.180025ca4
mov rcx, qword [0x180027008]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov word [rsp + 0x30], r15w
mov r15d, 0x1e64
mov ecx, r15d
mov dword [rsp + 0x34], eax
call qword [sym.imp.WS2_32.dll_htons]
mov r8, qword [0x180027008]
lea rdx, [0x180002568]
mov r9d, r15d
mov word [rsp + 0x32], ax
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfA]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r15d, eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x180012443
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov r8d, r15d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x820
call fcn.180025ca4
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov r8d, 0x81f
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
lea eax, [rcx - 1]
cmp eax, 0xfffffffd
ja 0x180012443
mov byte [rsp + rcx + 0x40], bl
lea rdx, [0x1800025a0]
lea rcx, [rsp + 0x40]
call fcn.180005170
test rax, rax
mov edi, ebx
setne dil
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov r9d, edi
lea rdx, [0x1800025a8]
lea rdi, [0x180028900]
mov r8, r13
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], bl
jne 0x18001246d
mov r9, rdi
lea rdx, [0x180002490]
lea rcx, [rbp + 0x760]
call qword [sym.imp.USER32.dll_wsprintfA]
xor r9d, r9d
lea rdx, [rbp + 0x760]
mov r8d, eax
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
lea r11, [rsp + 0xc60]
mov rsi, qword [r11 + 0x38]
setne bl
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x180012684
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
mov rax, qword [0x180027080]
lea rdx, [0x180001b9c]
mov r13, rcx
mov rcx, qword [0x180029070]
call qword [rax + 0x60]
mov rdx, qword [0x180027080]
mov rcx, rax
mov r12, rax
call qword [rdx + 0x80]
xor esi, esi
mov r14d, eax
test eax, eax
je 0x180012816
mov r8, qword [0x180027080]
mov edx, esi
mov rcx, r12
call qword [r8 + 0x88]
mov r9, qword [0x180027080]
lea rdx, [0x180001dc0]
xor r8d, r8d
mov rcx, rax
mov rdi, rax
call qword [r9 + reloc.WS2_32.dll_WSASetLastError]
mov r9, qword [0x180027080]
lea rdx, [0x180001ba8]
xor r8d, r8d
mov rcx, rdi
mov r15d, eax
call qword [r9 + reloc.WS2_32.dll_WSASetLastError]
mov r9, qword [0x180027080]
lea rdx, [0x180001dc8]
mov r8d, 1
mov rcx, rdi
mov ebx, eax
call qword [r9 + reloc.WS2_32.dll_WSASetLastError]
mov r9, qword [0x180027080]
lea r8, [0x18000175a]
lea rdx, [0x18000196c]
mov dword [rbp + 0x178], eax
mov rcx, rdi
call qword [r9 + 0x78]
mov rdi, rax
test ebx, ebx
jne 0x18001280b
cmp r15d, 1
jbe 0x18001278b
cmp dword [rbp + 0x178], 2
jne 0x18001280b
lea r8, [rbp + 0x30]
mov edx, r15d
lea rcx, [rbp + 0x30]
call fcn.180004fd8
lea rdx, [0x1800016f8]
mov rcx, rdi
call fcn.180025cc8
test eax, eax
jne 0x1800127fa
lea edx, [rax + 0x5c]
lea rcx, [rbp + 0x30]
call fcn.18000513c
mov edi, 0x104
mov byte [rsp + 0x20], 0
mov edx, edi
lea rcx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
lea r9, [rsp + 0x20]
mov r8d, edi
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1800049fc
mov r8d, edi
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x30]
call fcn.1800049c4
mov rdx, r13
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x180012839
inc esi
cmp esi, r14d
jb 0x1800126e5
xor al, al
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov al, 1
jmp 0x180012818

Function at 0x180014d0c
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x40
mov rbx, rdx
mov dword [rax - 0x10], 0x3c
mov rcx, rbx
mov dword [rax - 0x18], 1
lea r9, [rax - 0x18]
mov dword [rax - 0x28], 4
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x180014d51
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180014d7e
cmp dword [rsp + 0x30], 0
je 0x180014d7c
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 0x180014d49
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x180014d84
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov ebp, r9d
mov rdi, r8
mov dword [rax + 0x28], 1
mov rbx, rdx
mov rsi, rcx
je 0x180014dbf
mov eax, 0xfffff00e
jmp 0x180014ecb
lea r8, [rsp + 0x60]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x180014de2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180014ecb
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x180014e01
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180014ecb
mov rdx, qword [rsi + 0x38]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x180014df6
mov eax, dword [0x1800290c0]
cmp ebp, 0x17
mov r8, qword [0x1800290f0]
cmove eax, dword [0x1800290bc]
test r8, r8
je 0x180014e60
test dword [rbx + 0x58], 0x100000
jne 0x180014e60
test eax, eax
jne 0x180014e60
mov dl, 3
mov rcx, rdi
call r8
test eax, eax
je 0x180014e55
bts dword [rbx + 0x58], 0x12
jmp 0x180014e60
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
jne 0x180014df6
test dword [rbx + 0x58], 0x2000000
je 0x180014ea3
mov edx, 6
mov dword [rsp + 0x48], 1
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov rcx, rdi
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x180014e9d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180014e9f
xor eax, eax
test eax, eax
jne 0x180014ecb
test dword [rbx + 0x58], 0x4000000
je 0x180014eb8
mov rdx, rdi
call fcn.180014d0c
test eax, eax
jne 0x180014ecb
mov qword [rbx + 0x110], rdi
cmp ebp, 0x17
jne 0x180014ec9
bts dword [rbx + 0x58], 0x18
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180015168
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 0x1800151dc
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 0x1800151b6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18001523e
movzx r9d, word [rdi]
mov r8, rsi
mov rcx, qword [rbx + 8]
mov rdx, rbx
call fcn.180014d84
mov ebp, eax
test eax, eax
je 0x1800151dc
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x18001523e
cmp word [rdi], 0x17
jne 0x18001520a
and dword [rsp + 0x68], 0
lea r9, [rsp + 0x68]
mov rcx, qword [rbx + 0x110]
mov edx, 0x29
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 0x180015237
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2740
cmp eax, ecx
jne 0x18001523e
mov dword [rbx + 0x118], ecx
bts dword [rbx + 0x58], 9
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 0x180015584
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
lea rbx, [rdx + 0x80]
mov rdi, rdx
xor edx, edx
lea r14, [rbx + 0x40]
mov rsi, rcx
mov rcx, r14
lea r8d, [rdx + 0x20]
call fcn.180025ca4
bts dword [rdi + 0x58], 0x13
lea rax, [0x1800271cf]
and dword [rsp + 0x40], 0
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x48], rax
lea r8d, [rdx + 0x20]
call fcn.180025ca4
test dword [rdi + 0x58], 0x100000
je 0x1800155e9
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rdi + 0x110]
lea r9, [rsp + 0x78]
and dword [rsp + 0x70], 0
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], r14
mov r8d, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x18001566a
mov eax, dword [rdi + 0x58]
bt eax, 0x12
jae 0x1800156c9
bts eax, 0x11
mov dword [rdi + 0x58], eax
mov eax, dword [rsp + 0x78]
mov qword [rbx + 0x48], rax
inc dword [rdi + 0x78]
and qword [rbx + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x180015733
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x180015737
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1800156c9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x180015689
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180015697
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, ax
or eax, 0x80070000
and qword [rbx + 0x68], 0
cdqe
mov qword [r14], rax
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x1800156bc
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x1800156c0
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x18001573b
bts dword [rdi + 0x58], 0x11
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x100000
je 0x18001573b
lea rcx, [rbx + 0x78]
cmp qword [rcx], 0xffffffffffffffff
jne 0x18001573b
mov rdx, qword [rbx + 0x70]
lea r8, [0x180015254]
mov dword [rsp + 0x28], 4
mov r9, rbx
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x18001573b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x18001571b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180015729
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
jmp 0x180015643
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x180016c00
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x2c0
cmp qword [rdx + 0x70], 0xffffffffffffffff
mov esi, r9d
mov rdi, r8
mov dword [rax + 0x10], 1
mov rbx, rdx
mov rbp, rcx
je 0x180016c3b
mov eax, 0xfffff00e
jmp 0x180016d2a
lea r8, [rsp + 0x2d8]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x180016c61
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180016d2a
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x180016c80
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180016d2a
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 0x180016c75
cmp qword [0x1800290f0], 0
je 0x180016d1a
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, rdi
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x180016c75
cmp dword [rsp + 0x68], 1
jne 0x180016d1a
mov dl, 3
mov rcx, rdi
call qword [0x1800290f0]
test eax, eax
je 0x180016d0b
bts dword [rbx + 0x58], 0x12
lea rax, [0x1800179a8]
mov qword [rbx + 0x198], rax
lea rax, [0x180017af4]
mov qword [rbx + 0x1a0], rax
jmp 0x180016d1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
jne 0x180016c75
mov qword [rbx + 0x70], rdi
cmp esi, 0x17
jne 0x180016d28
bts dword [rbx + 0x58], 0x18
xor eax, eax
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180016d44
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov dword [rax + 0x20], r9d
push rsi
push rdi
push r14
sub rsp, 0x30
and dword [rax + 0x20], 0
mov r14d, r8d
test dword [rcx + 0x58], 0x200
mov rdi, rdx
mov rbx, rcx
jne 0x180016e14
cmp qword [rcx + 0x70], 0xffffffffffffffff
jne 0x180016dc3
movzx ecx, word [rdx]
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180016d9d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180016e16
movzx r9d, word [rdi]
mov r8, rsi
mov rcx, qword [rbx + 8]
mov rdx, rbx
call fcn.180016c00
mov ebp, eax
test eax, eax
je 0x180016dc3
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x180016e16
movzx eax, word [rdi]
cmp ax, 0x17
jne 0x180016dfa
bts dword [rbx + 0x58], 0x18
movzx eax, word [rdi]
cmp ax, 0x17
jne 0x180016dfa
mov rcx, qword [rbx + 0x70]
lea r9, [rsp + 0x68]
mov edx, 0x29
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x70]
mov r8d, r14d
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x180016d95
bts dword [rbx + 0x58], 9
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret