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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x14015a138]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, r9
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rdx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rdx], rbp
mov qword [rdx + 8], rbp
mov qword [rdx + 0x10], rbp
mov dword [rsp + 0x30], 1
cmp qword [rcx + 0x18], 8
jb 0x14001ee89
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001ee9c
test al, 0x10
je 0x14001ee9c
mov al, 1
jmp 0x14001ee9e
xor al, al
test rsi, rsi
jns 0x14001eeb5
test al, al
jne 0x14001eeb2
mov rcx, rbx
call fcn.14001e5d0
mov rsi, rax
test rsi, rsi
jle 0x14001ef85
mov qword [rsp + 0x48], rbp
cmp qword [rbx + 0x18], 8
jb 0x14001eeca
mov rbx, qword [rbx]
lea r8, [0x140124098]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400d5214
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001ef85
xor r8d, r8d
xor edx, edx
call fcn.1400d24cc
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140009b30
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8d, 1
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call fcn.1400d5520
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14001ff70
mov rcx, qword [rsp + 0x48]
call fcn.1400d21ec
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001ef85
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ef80
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001efa5
call fcn.1400ccd64
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400ccd40
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call fcn.1400d1a34
int3
Function at 0x14001f130
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x50
mov rax, qword [0x14015a138]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov rsi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x28], ebx
jb 0x14001f161
mov rcx, qword [rcx]
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x68], rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test eax, eax
je 0x14001f23b
xor eax, eax
lea rcx, [rsp + 0x30]
mov edx, ebp
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call fcn.140009b30
cmp qword [rsi + 0x18], 8
jb 0x14001f1a2
mov rsi, qword [rsi]
mov rdi, qword [rsp + 0x30]
mov r8d, ebp
mov edx, dword [rsp + 0x28]
mov r9, rdi
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14001f205
lea r9, [rsp + 0x2c]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x20]
mov dword [rsp + 0x2c], ebx
lea rdx, str.._
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14001f205
cmp dword [rsp + 0x2c], ebx
je 0x14001f205
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0xfeef04bd
jne 0x14001f205
mov ebx, dword [rax + 8]
mov eax, dword [rax + 0xc]
shl rbx, 0x20
or rbx, rax
test rdi, rdi
je 0x14001f23b
mov rdx, qword [rsp + 0x40]
mov rax, rdi
sub rdx, rdi
cmp rdx, 0x1000
jb 0x14001f233
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001f260
mov rcx, rdi
call fcn.1400ccd64
mov rdi, qword [rsp + 0x68]
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400ccd40
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret
call fcn.1400d1a34
int3
Function at 0x140027d10
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x140027d42
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rbx + 0x28]
mov byte [rbx + 0x20], 0
test rcx, rcx
je 0x140027d42
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov rax, rbx
mov qword [rbx + 0x28], rcx
cmp qword [rbx + 0x18], 8
mov qword [rbx + 0x10], rcx
jb 0x140027d59
mov rax, qword [rbx]
mov word [rax], cx
cmp rbx, rdi
je 0x140027d7a
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x140027d6e
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rbx
call fcn.1400149d0
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x140027d87
mov r8, qword [rdi]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140027e11
cmp eax, 5
je 0x140027dc1
cmp eax, 0xb7
je 0x140027ddf
cmp qword [rbx + 0x28], 0
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [rdi + 0x18], 8
jb 0x140027dcb
mov rdi, qword [rdi]
mov r8, rdi
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [rbx + 0x28], rax
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140027e1c
cmp byte [rbx + 0x20], 0
jne 0x140027e1c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
cmp qword [rbx + 0x28], 0
mov byte [rbx + 0x20], al
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [rbx + 0x28], 0
je 0x140027e21
mov byte [rbx + 0x20], 1
cmp qword [rbx + 0x28], 0
mov rbx, qword [rsp + 0x30]
setne al
add rsp, 0x20
pop rdi
ret
Function at 0x1400283f0
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x14015a138]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rdx
mov rdi, qword [rcx + 8]
cmp qword [rdx], 0
je 0x140028547
test rdi, rdi
jne 0x140028547
mov qword [rcx + 8], 0xffffffffffffffff
lea ecx, [rdi + 0x30]
call fcn.1400ccd6c
mov qword [rsp + 0x40], rax
xor ebp, ebp
mov qword [rax + 8], rbp
mov dword [rax + 0x10], 1
mov qword [rax], rbp
mov qword [rax + 0x18], rbp
mov qword [rax + 0x28], rbp
mov qword [rsi + 0x10], rax
mov qword [rax + 0x20], rsi
mov rdx, rbx
mov rcx, qword [rsi + 0x10]
call fcn.140017ec0
mov rax, qword [rsi + 0x10]
mov qword [rax + 0x18], rbp
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rbp
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [rsi + 0x10]
lea rcx, [rsp + 0x50]
mov qword [rax + 0x28], rcx
mov dword [rsp + 0x48], ebp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, qword [rsi + 0x10]
lea r8, [0x140028580]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x18], rax
mov edi, dword [rsp + 0x48]
mov qword [rsi + 8], rdi
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14002853f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x80], rbp
mov rcx, rbx
call fcn.140017f90
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400ccd40
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004a410
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14015a138]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rdx + 0x18], 0x10
mov rdi, rdx
mov rsi, qword [rdx + 0x10]
mov rbx, rcx
jb 0x14004a442
mov rdi, qword [rdx]
lea rdx, [rsp + 0x20]
call fcn.14001c1b0
mov rcx, rax
call fcn.14001c3c0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14004a496
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a491
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a529
call fcn.1400ccd64
movdqa xmm0, xmmword [0x14012bfc0]
xor eax, eax
cmp qword [rbx + 0x18], 8
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], ax
mov qword [rsp + 0x40], rax
jb 0x14004a4ba
mov rbx, qword [rbx]
lea r8, [0x1401240a0]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400d5214
mov rcx, qword [rsp + 0x40]
xor bl, bl
test rcx, rcx
je 0x14004a509
xor r8d, r8d
xor edx, edx
call fcn.1400d24cc
mov r9, qword [rsp + 0x40]
mov r8, rsi
mov edx, 1
mov rcx, rdi
call fcn.1400dbcb0
mov rcx, qword [rsp + 0x40]
test rax, rax
setne bl
call fcn.1400d21ec
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400ccd40
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call fcn.1400d1a34
int3
Function at 0x140056e00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x90
mov qword [rax - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14015a138]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, rdx
mov rdi, rcx
cmp qword [rdx + 0x10], 0
jne 0x140056e41
xor al, al
jmp 0x140056f34
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.14001dbc0
nop
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140056e96
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140056e91
test al, 0x10
jne 0x140056e96
xor dil, dil
jmp 0x140056eef
lea rsi, [rdi + 0x60]
mov qword [rsp + 0x40], rsi
mov edx, 0xffffffff
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov qword [rsp + 0x48], rbx
test eax, eax
setne byte [rsp + 0x50]
lea rcx, [rdi + 0x50]
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x68]
lea rdx, [rsp + 0x58]
call fcn.140059240
mov dil, 1
test rbx, rbx
je 0x140056eef
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x140056f30
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056f2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140056f59
call fcn.1400ccd64
movzx eax, dil
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400ccd40
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400d1a34
int3
Function at 0x1400688d0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov rsi, rcx
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x14006890f
cmp eax, 0x80010106
je 0x140068915
jmp 0x140068a27
mov dword [rsi], 1
lea rdi, [rsi + 8]
mov qword [rsp + 0x20], rdi
lea r9, [0x1401175a0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140117590]
call qword [sym.imp.ole32.dll_CoCreateInstance]
xor r12d, r12d
test eax, eax
js 0x140068a1e
mov r15, qword [rdi]
lea ecx, [r12 + 0x18]
call fcn.1400ccd6c
mov rbx, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x140068985
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r12
mov dword [rbx + 0x10], 1
lea rcx, str.ROOTCIMV2
call fcn.1400ce140
mov qword [rbx], rax
jmp 0x140068988
mov rbx, r12
mov qword [rsp + 0x98], rbx
test rbx, rbx
je 0x140068a95
lea r14, [rsi + 0x10]
mov rax, qword [r15]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, r15
call qword [rax + Ordinal_26]
mov ebp, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x140068a09
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400689ea
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400689fc
call fcn.1400ccd64
mov qword [rbx + 8], r12
mov edx, Ordinal_27
mov rcx, rbx
call fcn.1400ccd64
test ebp, ebp
jns 0x140068a42
mov rcx, qword [rdi]
test rcx, rcx
je 0x140068a1e
mov qword [rdi], r12
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsi], r12d
xor al, al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r14]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140068a91
mov rcx, qword [rdi]
test rcx, rcx
je 0x140068a84
mov qword [rdi], r12
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [r14]
test rcx, rcx
je 0x140068a1e
mov qword [r14], r12
jmp 0x140068a18
mov al, 1
jmp 0x140068a29
mov ecx, 0x8007000e
call fcn.1400ce130
int3
Function at 0x14008aec0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14015a138]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14008af21
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14008af1b
shr ax, 8
cmp al, 2
jne 0x14008af1b
call fcn.140090310
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400ccd40
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400ccd40
add rsp, 0x1d8
ret

Function at 0x1400923e0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x1400a9c60
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov qword [rsp + 0x50], 0
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400a9cbc
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1400a9ccc
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14009aa10
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x14015a138]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [rcx + 0x500], 0
mov r14, r9
mov rax, qword [rsp + 0x130]
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x14009ab3f
test rax, rax
je 0x14009ab3f
mov rdx, qword [rax + 0xc0]
test rdx, rdx
je 0x14009ab3f
mov ecx, esi
lea r9, str.Data
sub ecx, 1
je 0x14009aa9b
sub ecx, 1
je 0x14009aa8b
sub ecx, 1
je 0x14009aaa2
cmp ecx, 1
je 0x14009aa92
jmp 0x14009ab3f
lea r9, str.Header
lea rax, [0x140107e00]
jmp 0x14009aaa9
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
mov edx, 0xa0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.14009d3d0
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14009aad2
mov r10, qword [rdi + 0x258]
test r10, r10
je 0x14009ab09
mov rax, qword [rdi + 0x1a8]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call r10
test eax, eax
je 0x14009ab3f
jmp 0x14009ab4f
mov r9, qword [rdi + 0x1a0]
lea rcx, [0x140107d28]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.1400dbcb0
mov r9, qword [rdi + 0x1a0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.1400dbcb0
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.14009b4e0
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400ccd40
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14009ae50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14009ae8b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14009b1f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor eax, eax
mov rdi, r9
cmp rdx, qword [rcx + 0x218]
mov rsi, r8
mov r14, rcx
sete al
mov edx, eax
mov rbx, qword [rcx + rdx*8 + 0x210]
call fcn.14009b3e0
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x14009b290
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14009b264
mov rcx, qword [rsp + 0x50]
lea eax, [rdi + 0x52]
mov qword [rcx], 0
jmp 0x14009b29a
mov edx, ebx
mov rcx, r14
call fcn.1400a8e50
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.14009ab70
mov rax, qword [r14]
mov dword [rax + 0x499c], ebx
mov eax, gethostname
jmp 0x14009b292
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14009b3e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r8, edx
lea rbx, [rcx + 0x258]
mov rax, r8
shl rax, 5
add rbx, rax
mov rax, qword [rcx + 0x520]
mov rsi, qword [rcx + r8*8 + 0x210]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x74], 3
je 0x14009b4c3
lea rax, [0x14009aee0]
cmp qword [rcx + r8*8 + 0x238], rax
jne 0x14009b4c3
cmp qword [rbx], 0
je 0x14009b444
test rdi, rdi
je 0x14009b4c3
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rsi
call fcn.14009a440
cmp eax, 0xffffffff
je 0x14009b4c3
test al, 1
je 0x14009b4c3
cmp qword [rbx], 0
jne 0x14009b4a2
mov ecx, 0x8000
mov qword [rbx + 8], 0x8000
call qword [section..data]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
test rax, rax
jne 0x14009b4a2
mov qword [rbx + 8], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx]
xor r9d, r9d
add rdx, qword [rbx + 0x10]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14009b4c3
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14009b4e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x14009b523
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x14009b566
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x140107d28]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.1400dbcb0
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.1400dbcb0
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14009b670
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x298], 0
je 0x14009b68d
call fcn.140091b60
test eax, eax
jne 0x14009b6b8
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x210]
cmp rcx, 0xffffffffffffffff
je 0x14009b686
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x14009b6b8
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret
Function at 0x14009c070
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
lea r9, [rsp + 0x40]
mov rax, rdx
mov dword [rsp + 0x40], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rdi, rcx
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14009c0db
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.1400a8e50
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.14009ac40
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.14009ac40
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14009c1f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14015a138]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rbx, rdx
mov rsi, qword [rcx]
mov rdi, rcx
je 0x14009c3bd
cmp byte [rcx + 0x4ea], 0
jne 0x14009c3b5
cmp byte [rcx + 0x506], 0
jne 0x14009c3b5
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x14009c292
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400a8e50
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14009ab70
jmp 0x14009c3bd
xor edx, edx
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call fcn.1400cef80
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14009c2ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400a8e50
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14009ab70
jmp 0x14009c3bd
lea rbx, [rdi + 0x16e]
mov rdx, rbx
lea r8, [rdi + 0x19c]
lea rcx, [rsp + 0xb0]
call fcn.14009c900
test al, al
jne 0x14009c33d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400a8e50
mov r9, rax
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14009ab70
jmp 0x14009c3bd
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rdi + 0x1d0]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rdi + 0x1a0]
movups xmmword [rdi + 0x70], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rdi + 0x80], xmm1
movsd qword [rdi + 0x90], xmm0
mov dword [rdi + 0x98], eax
movzx eax, word [rbx + 0x2c]
mov word [rdi + 0x9c], ax
call fcn.14009c900
test al, al
jne 0x14009c3b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400a8e50
mov r9, rax
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14009ab70
jmp 0x14009c3bd
mov rcx, rdi
call fcn.14009bde0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400ccd40
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret