joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400172a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x140067020]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r9d, dword [rdx + 0x58]
mov rdi, r8
btr r9d, 0x11
mov rbx, rdx
mov dword [rdx + 0x58], r9d
mov rsi, rcx
mov r10d, dword [r8 + 0x40]
test r10d, r10d
jns 0x140017355
mov ecx, r10d
call fcn.14001abc0
mov r11d, eax
cmp eax, 0x2738
je 0x140017355
lea ecx, [rax - 0x2744]
test ecx, 0xfffffffd
je 0x14001734a
bt r9d, 8
jae 0x14001749c
mov rcx, rbx
call fcn.14000afc0
xor edi, edi
test dword [rbx + 0x58], 0x80000
je 0x14001732c
mov qword [rbp - 0x61], rdi
lea rax, [rbp - 0x69]
mov dword [rbp - 0x69], edi
jmp 0x140017333
lea rax, [rbx + 0xf0]
movups xmm0, xmmword [rax]
mov ecx, r11d
movaps xmmword [rbp - 0x69], xmm0
call fcn.140016b80
movsxd rdx, eax
jmp 0x140017488
bt r9d, 0x13
jae 0x14001749c
bt r9d, 0x13
jb 0x140017380
mov rdx, qword [rdi + 0x48]
lea r9, [rbx + 0x100]
sar r10d, 0x1f
lea r8, [rbx + 0xf0]
and r10d, 2
mov dword [rsp + 0x20], r10d
jmp 0x140017493
bt r9d, 8
jae 0x14001749c
xor edi, edi
lea r8, [rbp - 0x69]
mov qword [rbp - 0x61], rdi
mov edx, 0x10000
mov dword [rbp - 0x69], edi
mov rcx, rbx
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
call qword [rbx + 0x190]
cmp qword [rbp - 0x61], rdi
je 0x140017481
cmp dword [rbp - 0x69], edi
je 0x140017481
xor edx, edx
lea rcx, [rbp - 0x49]
mov r8d, 0x80
call fcn.14001fd50
mov rcx, qword [rbx + 0x70]
lea rax, [rbp - 0x55]
mov qword [rsp + 0x40], rdi
lea r9, [rbp - 0x59]
mov qword [rsp + 0x38], rdi
lea r8d, [rdi + 1]
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x69]
lea rax, [rbp - 0x49]
mov dword [rbp - 0x55], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x51], edi
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
je 0x140017426
mov edx, dword [rbp - 0x59]
lea r9, [rbp - 0x49]
jmp 0x14001748b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
cmp eax, 0x2738
jne 0x140017446
mov edx, dword [rbp - 0x59]
lea r9, [rbp - 0x49]
mov dword [rsp + 0x20], 2
jmp 0x14001748f
cmp edx, 0x2733
jne 0x140017452
xor edx, edx
jmp 0x140017488
add eax, 0xffffd8bc
mov rcx, rbx
test eax, 0xfffffffd
je 0x140017472
call fcn.14000afc0
mov ecx, edx
call fcn.140016b80
movsxd rdx, eax
jmp 0x140017488
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor edx, edx
lea r8, [rbp - 0x69]
jmp 0x140017496
mov rdx, 0xfffffffffffff024
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea r8, [rbp - 0x69]
mov rcx, rbx
call qword [rbx + 0x188]
mov eax, dword [rbx + 0x58]
and eax, 0x20100
cmp eax, 0x100
jne 0x1400174b6
mov rdx, rbx
mov rcx, rsi
call fcn.140017150
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x1400174df
test ecx, ecx
jne 0x1400174df
test al, 8
jne 0x1400174df
or eax, 8
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14001bfd0
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400181f0
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
xor ebp, ebp
mov qword [rax - 0x10], rbp
mov rbx, r8
mov dword [rax - 0x18], ebp
mov rdi, rcx
mov dword [rax - 0x20], 0x10000
mov r9d, 0xff
mov rcx, qword [rsi + 0x120]
xor r8d, r8d
mov edx, 0x40000003
mov dword [rax - 0x28], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x1400182a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14001825b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140018269
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 0x140018295
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 0x140018389
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
jmp 0x140018389
mov r8, rax
mov dword [rsp + 0x20], ebp
mov rdx, rsi
mov rcx, rdi
call fcn.1400179f0
test eax, eax
je 0x1400182dc
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 0x14001825b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140018269
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 0x140018384
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140018384
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x140018325
mov qword [rbx + 0x40], rbp
jmp 0x14001835d
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 0x140018349
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140018357
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 0x14001837c
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x140018380
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 0x140018640
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 0x1400186bc
mov r8d, select
lea rcx, [0x1400183b0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x1400187e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400186a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cdqe
mov qword [rbx + 0x40], rax
jmp 0x1400187b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
jmp 0x1400187b8
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 0x1400186e6
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x118]
lea rdx, [0x14006a559]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001872f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14001872f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400187a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400187b3
test dword [rdi + 0x58], 0x100000
je 0x1400187e9
cmp qword [rbx + 0x70], 0
jne 0x140018760
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 0x140018827
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x1400187e9
mov rdx, qword [rbx + 0x58]
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 0x1400187e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400187a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400187b3
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 0x1400187df
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 0x140018808
mov qword [rbx + 0x68], rbx
mov qword [rbp + 0x48], rbx
jmp 0x140018808
mov rcx, qword [rdi + 0x128]
test rcx, rcx
je 0x140018808
xor r9d, r9d
lea rdx, [0x1400192f0]
lea r8d, [r9 + 0x32]
call fcn.140016590
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.140016ad0
int3
Function at 0x14001a920
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x140067020]
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 0x14001ab1c
xor eax, eax
mov qword [rsp + 0x480], rbx
mov qword [0x14006aa00], rax
mov ebx, 2
xor ecx, ecx
mov word [0x14006aa00], bx
mov qword [0x14006aa08], rax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [0x14006aa04]
mov word [0x14006aa02], ax
lea rcx, [0x14005f2e8]
call fcn.140017650
test eax, eax
jne 0x14001ab2b
call fcn.14000ae80
test eax, eax
jne 0x14001ab31
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 0x14001aa30
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 0x14001ab37
mov eax, dword [0x14006aa40]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x14006aa40], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x14001aa57
jmp 0x14001ab4c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x14001aba0
cmp eax, 0x273a
jbe 0x14001aba0
cmp eax, 0x2740
jae 0x14001aba0
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 0x14001aacd
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 0x14001ab61
mov eax, dword [0x14006aa3c]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x14006aa3c], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x14001aaf4
jmp 0x14001ab76
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x14001ab8b
cmp eax, 0x273a
jbe 0x14001ab8b
cmp eax, 0x2740
jae 0x14001ab8b
mov rdi, qword [rsp + 0x470]
mov rbx, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14001bfd0
add rsp, 0x478
ret
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.140016ad0
int3
call fcn.14002579c
int3
call fcn.14002579c
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.140016ad0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.140016ad0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.140016ad0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.140016ad0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.140016ad0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.140016ad0
int3
Function at 0x14001f884
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x14004f0e8]
xor ecx, ecx
lea r8, [0x14004f0e0]
lea rdx, str.FlsAlloc
call fcn.14001f6ac
mov rbx, rax
test rax, rax
je 0x14001f8c4
mov rcx, rax
call fcn.14001ca30
mov rcx, rdi
call rbx
jmp 0x14001f8ca
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001f92c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x14004f0f8]
mov ecx, 2
lea r8, [0x14004f0f0]
lea rdx, str.FlsGetValue
call fcn.14001f6ac
mov rdi, rax
test rax, rax
je 0x14001f96d
mov rcx, rax
call fcn.14001ca30
mov ecx, ebx
call rdi
jmp 0x14001f975
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001f980
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14004f100]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x14004f0f8]
call fcn.14001f6ac
mov rsi, rax
test rax, rax
je 0x14001f9cc
mov rcx, rax
call fcn.14001ca30
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x14001f9d7
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140026308
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140026328
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140025a68
or eax, 0xffffffff
jmp 0x14002632a
xor eax, eax
add rsp, 0x28
ret
Function at 0x140028a0c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400287e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400287e0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400287e0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400287e0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400287e0
cmp dword [rcx + 0x84], 0xe
jbe 0x1400287e0
cmp dword [rcx + 0xf8], esi
je 0x1400287e0
mov ecx, r14d
call fcn.140028928
mov ecx, 2
call fcn.1400284e8
nop
cmp byte [0x140069888], 0
jne 0x1400288aa
mov r15d, 1
mov eax, r15d
xchg dword [0x140069878], eax
test ebx, ebx
jne 0x140028853
mov rdi, qword [0x140067020]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140069880]
cmp rcx, rax
je 0x14002884a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140001170]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400699b8]
jmp 0x14002885f
cmp ebx, r15d
jne 0x140028865
lea rcx, [0x1400699d0]
call fcn.1400294e4
nop
test ebx, ebx
jne 0x14002887c
lea rdx, [0x14004e708]
lea rcx, [0x14004e6e0]
call fcn.1400297b0
lea rdx, [0x14004e718]
lea rcx, [0x14004e710]
call fcn.1400297b0
movzx eax, byte [0x140069888]
test esi, esi
cmove eax, r15d
mov byte [0x140069888], al
jmp 0x1400288aa
mov ecx, 2
call fcn.14002853c
test esi, esi
jne 0x1400288c1
mov ecx, r14d
call fcn.1400288dc
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140028770
Function at 0x14002dd3c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14002dbdc
call fcn.140025ad8
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140020718
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002dbc4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14002dbc4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14002dc0e
lock or dword [rax + 0x14], 0x10
jmp 0x14002dbc4
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14002dc2b
mov rcx, qword [rbp + 0x10]
call fcn.140032ed0
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14002bf24
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140026860
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14002dc82
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14002dbc4
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14002dcee
mov rcx, qword [rbp + 0x10]
call fcn.14002bf24
cmp eax, 0xffffffff
je 0x14002dcd5
mov rcx, qword [rbp + 0x10]
call fcn.14002bf24
cmp eax, 0xfffffffe
je 0x14002dcd5
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14002bf24
movsxd rdi, eax
lea rsi, [0x140069a30]
mov rcx, rbx
sar rdi, 6
call fcn.14002bf24
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14002dcdc
lea rax, [0x1400674a0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002dcee
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14002dd24
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14002dd20
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14002dd20
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14002dbc7
jmp 0x14002db94
Function at 0x140037250
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp dword [rcx + 0xc78], 2
mov rsi, rdx
mov rbx, rcx
je 0x14003727e
mov dword [rcx + 0xc78], 2
movzx ecx, word [rcx + 0xcb8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 2], ax
mov edx, 0x140
mov rcx, qword [rbx + 0xdb0]
call fcn.14001c030
mov ecx, 0x80
call fcn.14001bff4
mov ecx, 0x140
mov r14, rax
mov qword [rax], rbx
call fcn.14001bff4
mov r8, qword [0x14006a5e8]
xor edi, edi
mov qword [rbx + 0xdb0], rax
mov qword [rax], rbx
test r8, r8
jne 0x1400372ee
call fcn.14000c600
test eax, eax
je 0x1400372e0
mov r8d, edi
jmp 0x1400372ee
lea r8, [0x14006a5f0]
mov qword [0x14006a5e8], r8
mov rdx, qword [rbx + 0xdb0]
lea rax, [r8 + 0x10]
mov qword [rdx + 8], r8
lea rcx, [rdx + 0x20]
mov dword [rdx + 0x10], select
mov dword [rdx + 0x58], 0x20
mov qword [rcx], rax
mov rax, qword [r8 + 0x18]
mov qword [rdx + 0x28], rax
mov qword [rax], rcx
mov qword [r8 + 0x18], rcx
mov dword [rdx + 0x30], 0xffffffff
mov qword [rdx + 0x60], rdi
mov qword [rdx + 0x78], rdi
mov qword [rdx + 0x120], rdi
mov qword [rdx + 0x110], 0xffffffffffffffff
mov qword [rdx + 0x138], rdi
mov qword [rdx + 0x130], rdi
mov dword [rdx + 0x128], edi
mov dword [rdx + 0x118], edi
mov rdi, qword [rbx + 0xdb0]
mov rcx, qword [rdi + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x1400373a3
mov edx, 6
mov dword [rsp + 0x40], 1
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400373a3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x1400373aa
or dword [rdi + 0x58], 0x2000000
mov rdx, qword [rbx + 0xdb0]
cmp dword [rdx + 0x10], 0xc
jne 0x1400373df
movzx eax, word [rsi]
cmp ax, 2
jne 0x1400373c8
mov r9d, select
jmp 0x1400373d4
cmp ax, 0x17
jne 0x1400373df
mov r9d, 0x1c
mov r8, rsi
mov rcx, r14
call fcn.140015410
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14003ad40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2150]
mov eax, 0x2250
call fcn.140034ab0
sub rsp, rax
mov rax, qword [0x140067020]
xor rax, rsp
mov qword [rbp + 0x2140], rax
mov rcx, qword [0x14006a5e8]
lea r12, [0x14006a5f0]
xor r15d, r15d
mov rdi, r8
mov r14, rdx
test rcx, rcx
jne 0x14003ada7
call fcn.14000c600
test eax, eax
je 0x14003ad9d
mov ecx, r15d
jmp 0x14003ada7
mov qword [0x14006a5e8], r12
mov rcx, r12
xor r9d, r9d
mov qword [rsp + 0x2280], rbx
mov r8, r14
lea rdx, [rsp + 0x70]
call fcn.1400140f0
mov esi, eax
test eax, eax
jns 0x14003adf5
mov ecx, eax
call fcn.14000aa80
mov ecx, 2
mov rbx, rax
call fcn.140024ed8
mov rcx, rax
lea rdx, str.unable_to_open__s:__s_n
mov r9, rbx
mov r8, r14
call fcn.1400070a0
xor al, al
jmp 0x14003af51
lea rcx, [rsp + 0x70]
call fcn.140014000
lea rdx, [0x14005874c]
mov ecx, esi
call fcn.140029db8
lea rcx, [rbp + 0x140]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
mov r9, rax
lea rcx, [rbp + 0x140]
mov qword [rsp + 0x40], 0x2000
mov qword [rsp + 0x50], rcx
mov edx, 1
lea rcx, [rbp + 0x140]
mov qword [rsp + 0x48], r15
mov r8d, 0x2000
mov qword [rsp + 0x58], r15
mov byte [rsp + 0x68], r15b
mov qword [rsp + 0x60], r15
call fcn.1400253e8
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rdx
lea rcx, [rdx - 1]
add rcx, rax
mov qword [rsp + 0x48], rcx
cmp rax, qword [rsp + 0x40]
jae 0x14003ae91
mov byte [rax + rdx], r15b
inc qword [rsp + 0x48]
mov byte [rsp + 0x68], 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140007400
mov rbx, qword [0x14006a5e8]
test rbx, rbx
jne 0x14003aec2
call fcn.14000c600
test eax, eax
je 0x14003aeb8
mov rbx, r15
jmp 0x14003aec2
mov qword [0x14006a5e8], r12
mov rbx, r12
call fcn.14000c840
xor edx, edx
mov dword [rsp + 0x78], 6
xorps xmm0, xmm0
mov qword [rbp - 0x50], r15
lea rcx, [rbp + 0xc8]
mov qword [rbp - 0x18], rbx
mov dword [rbp + 0xb8], r15d
lea r8d, [rdx + 0x70]
mov dword [rbp - 0x20], 2
mov qword [rbp - 8], r15
movdqa xmmword [rbp], xmm0
mov qword [rbp - 0x10], r15
call fcn.14001fd50
lea rcx, [rbp + 0x90]
mov dword [rbp + 0xc0], esi
call fcn.140013bb0
lea rcx, [rsp + 0x70]
call fcn.140014000
mov ecx, dword [rdi + 0x50]
test ecx, ecx
je 0x14003af49
call fcn.140003c40
mov r8d, dword [rdi + 0x58]
lea rcx, str._s:_d:__s_n
mov r9, rax
mov rdx, r14
call fcn.1400070f0
xor al, al
jmp 0x14003af51
cmp word [rdi + 0xe], 3
sete al
mov rbx, qword [rsp + 0x2280]
mov rcx, qword [rbp + 0x2140]
xor rcx, rsp
call fcn.14001bfd0
mov rsi, qword [rsp + 0x2298]
add rsp, 0x2250
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret