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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor eax, eax
lea r9, [rsp + 0x40]
mov rbx, rcx
mov dword [rsp + 0x40], eax
mov rcx, qword [rcx + 0x18]
mov edi, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002927f
cmp dword [rsp + 0x40], edi
jb 0x1400292ab
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov r9, qword [sym.imp.TD_Root_23.8_16.dll_class_OdString_const_OdString::kEmpty]
lea r8, [rbx + 0x20]
mov edx, gethostname
lea rcx, [rsp + 0x58]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
lea rdx, [0x1400c1538]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov r9, qword [sym.imp.TD_Root_23.8_16.dll_class_OdString_const_OdString::kEmpty]
lea r8, [rbx + 0x20]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea rcx, [rsp + 0x58]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
lea rdx, [0x1400c1538]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1400292e0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov r9, rdx
mov rcx, qword [rcx + 0x40]
test rcx, rcx
jne 0x140029302
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp method.OdBaseFileBuf.virtual_152
mov rdx, qword [rbx + 0x50]
mov qword [rsp + 0x38], rdi
mov edi, r8d
lea rax, [rdx + rdi]
cmp rax, qword [rbx + 0x48]
ja 0x140029335
add rdx, rcx
mov r8d, edi
mov rcx, r9
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x50], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov r9, qword [sym.imp.TD_Root_23.8_16.dll_class_OdString_const_OdString::kEmpty]
lea r8, [rbx + 0x20]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea rcx, [rsp + 0x30]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
lea rdx, [0x1400c1538]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140029370
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov r8d, dword [rcx + 0x203c]
mov rbx, rcx
test r8d, r8d
je 0x1400293a7
lea rdx, [rcx + 0x38]
call fcn.140029b30
mov dword [rbx + 0x203c], 0
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp method.OdBaseFileBuf.virtual_152

Function at 0x1400293e0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov r9d, 1
mov rcx, qword [rcx + 0x18]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rdi + 0x18]
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov rbx, qword [rsp + 0x30]
setbe al
add rsp, 0x20
pop rdi
ret
Function at 0x140029420
Capabilities:
Get file size

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x40], 0
mov rdi, rcx
jne 0x140029468
mov rcx, qword [rcx + 0x18]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x30], rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rdi + 0x18]
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov rbx, qword [rsp + 0x30]
setbe al
add rsp, 0x20
pop rdi
ret
mov rax, qword [rcx + 0x48]
cmp qword [rcx + 0x50], rax
setae al
add rsp, 0x20
pop rdi
ret

Function at 0x140029480
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x18]
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x1400294b0
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x40], 0
je 0x1400294c4
mov rax, qword [rcx + 0x48]
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x18]
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x1400294f0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov qword [rsp + 0x38], 0
mov rcx, qword [rcx + 0x18]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rbx + 0x18]
lea r8, [rsp + 0x34]
mov r9d, 1
mov dword [rsp + 0x38], eax
xor edx, edx
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [rbx + 0x203c]
mov dword [rsp + 0x30], eax
add rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
cmp rdx, rax
cmova rax, rdx
add rsp, 0x20
pop rbx
ret
Function at 0x140029860
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
bt r9d, 0x1e
jb 0x14002992e
mov qword [rsp + 0x50], rbx
mov ebx, dword [rsp + 0x70]
mov dword [rsp + 0x20], ebx
call fcn.140029570
lea eax, [rbx - 3]
cmp eax, 1
ja 0x14002991e
mov rcx, qword [rdi]
cmp qword [rcx + 0x10], 0
jne 0x1400298b5
cmp qword [rcx + 0x18], 0
je 0x1400298b5
mov rcx, rdi
call sub.TD_Root_23.8_16.dll_protected:_void___cdecl_OdString::syncUnicode_void_const___ptr64
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002991e
test eax, 0x5e10
jne 0x14002991e
mov rcx, qword [rsi + 0x18]
lea rdx, [rsi + 0x4c]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rsi + 0x18]
xor ebx, ebx
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsi + 0x48], eax
mov dword [rsp + 0x20], ebx
lea r8d, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsi + 0x38], rax
test rax, rax
je 0x14002991e
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea edx, [rbx + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x40], rax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov r9, qword [sym.imp.TD_Root_23.8_16.dll_class_OdString_const_OdString::kEmpty]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, Ordinal_50
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
lea rdx, [0x1400c1538]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140029960
Capabilities:
Check if file exists
Inspect section memory permissions

Disassembly:
sub rsp, 0x48
cmp r9d, 0x80000000
je 0x140029976
add rsp, 0x48
jmp fcn.140029570
mov r9, qword [sym.imp.TD_Root_23.8_16.dll_class_OdString_const_OdString::kEmpty]
lea rcx, [rsp + 0x30]
mov r8, rdx
mov edx, Ordinal_50
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
lea rdx, [0x1400c1538]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400299b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x40], eax
mov byte [rsp + 0x48], dl
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8d, [rax + 1]
lea rdx, [rsp + 0x48]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400299f5
cmp dword [rsp + 0x40], 1
jne 0x1400299f5
mov byte [rbx + 0x2c], 1
add rsp, 0x30
pop rbx
ret
lea r8, [rbx + 0x20]
mov r9, qword [sym.imp.TD_Root_23.8_16.dll_class_OdString_const_OdString::kEmpty]
mov edx, reloc.WLDAP32.dll_Ordinal_50
lea rcx, [rsp + 0x50]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
nop
mov rdx, rax
mov rcx, rbx
call fcn.140029fb0
int3

Function at 0x140029a20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x40]
test rcx, rcx
jne 0x140029a6e
xor eax, eax
mov dword [rsp + 0x50], eax
mov byte [rsp + 0x40], dl
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8d, [rcx + 1]
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140029ab1
cmp dword [rsp + 0x50], 1
jne 0x140029ab1
mov byte [rbx + 0x2c], 1
add rsp, 0x30
pop rbx
ret
mov rax, qword [rbx + 0x50]
cmp rax, qword [rbx + 0x48]
ja 0x140029a85
mov byte [rax + rcx], dl
inc qword [rbx + 0x50]
add rsp, 0x30
pop rbx
ret
lea r8, [rbx + 0x20]
mov r9, qword [sym.imp.TD_Root_23.8_16.dll_class_OdString_const_OdString::kEmpty]
mov edx, reloc.WLDAP32.dll_Ordinal_50
lea rcx, [rsp + 0x40]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
lea rdx, [0x1400c1538]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r8, [rbx + 0x20]
mov r9, qword [sym.imp.TD_Root_23.8_16.dll_class_OdString_const_OdString::kEmpty]
mov edx, reloc.WLDAP32.dll_Ordinal_50
lea rcx, [rsp + 0x58]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
nop
mov rdx, rax
mov rcx, rbx
call fcn.140029fb0
int3

Function at 0x140029b30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov edi, r8d
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140029b73
cmp dword [rsp + 0x40], edi
jne 0x140029b73
mov byte [rbx + 0x2c], 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea r8, [rbx + 0x20]
mov r9, qword [sym.imp.TD_Root_23.8_16.dll_class_OdString_const_OdString::kEmpty]
mov edx, reloc.WLDAP32.dll_Ordinal_50
lea rcx, [rsp + 0x58]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
nop
mov rdx, rax
mov rcx, rbx
call fcn.140029fb0
int3
Function at 0x140029ba0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x40]
test rcx, rcx
jne 0x140029bbf
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140029b30
mov qword [rsp + 0x38], rdi
mov edi, r8d
mov r8, qword [rbx + 0x50]
lea rax, [r8 + rdi]
cmp rax, qword [rbx + 0x48]
ja 0x140029bef
add rcx, r8
mov r8d, edi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x50], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov r9, qword [sym.imp.TD_Root_23.8_16.dll_class_OdString_const_OdString::kEmpty]
lea r8, [rbx + 0x20]
mov edx, reloc.WLDAP32.dll_Ordinal_50
lea rcx, [rsp + 0x30]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
lea rdx, [0x1400c1538]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140029c20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov r8d, dword [rcx + 0x203c]
mov rbx, rcx
cmp edi, 0x2000
jbe 0x140029c7a
test r8d, r8d
je 0x140029c5d
lea rdx, [rcx + 0x38]
call fcn.140029b30
xor ecx, ecx
mov dword [rbx + 0x203c], ecx
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140029b30
lea eax, [r8 + rdi]
mov ecx, r8d
cmp eax, 0x2000
jbe 0x140029ca1
test r8d, r8d
je 0x140029ca1
lea rdx, [rbx + 0x38]
mov rcx, rbx
call fcn.140029b30
xor ecx, ecx
mov dword [rbx + 0x203c], ecx
mov eax, ecx
mov r8, rdi
lea rcx, [rbx + 0x38]
mov rdx, rsi
add rcx, rax
call sub.VCRUNTIME140.dll_memcpy
add dword [rbx + 0x203c], edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140029fe0
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140029ffd
add rsp, 0x20
pop rbx
ret
mov r9, qword [sym.imp.TD_Root_23.8_16.dll_class_OdString_const_OdString::kEmpty]
lea r8, [rbx + 0x20]
mov edx, gethostname
lea rcx, [rsp + 0x30]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
lea rdx, [0x1400c1538]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14002a030
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x40], 0
mov rbx, rcx
jne 0x14002a080
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14002a054
add rsp, 0x20
pop rbx
ret
mov r9, qword [sym.imp.TD_Root_23.8_16.dll_class_OdString_const_OdString::kEmpty]
lea r8, [rbx + 0x20]
mov edx, gethostname
lea rcx, [rsp + 0x30]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
lea rdx, [0x1400c1538]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov r9, qword [sym.imp.TD_Root_23.8_16.dll_class_OdString_const_OdString::kEmpty]
lea r8, [rcx + 0x20]
lea rcx, [rsp + 0x30]
mov edx, reloc.WLDAP32.dll_Ordinal_50
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
lea rdx, [0x1400c1538]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140041910
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0xae5], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x1400419c6
cmp qword [rcx + 0x270], 0
je 0x14004197b
mov dl, 1
call fcn.14002f260
mov rax, qword [rdi + 0x1d8]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x270]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14002f260
mov eax, ebx
jmp 0x1400419c8
mov edx, ebx
test ebx, ebx
je 0x14004198b
sub edx, 1
je 0x14004198b
cmp edx, 1
jne 0x1400419c6
mov r9, qword [rdi + 0x1d0]
lea rax, [0x1400a36f0]
mov edx, 2
lea rcx, [rbx + rbx*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400419e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x160
mov rax, qword [0x1400d6038]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xae5], 0
mov rbx, rcx
jne 0x140041a23
cmp qword [rcx + 0x1e0], 0
je 0x140041af0
mov r8, rdx
mov qword [rsp + 0x158], rdi
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1400552e0
mov rdx, qword [rbx + 0x1e0]
movsxd rdi, eax
test rdx, rdx
je 0x140041a88
cmp byte [rbx + 0x12e3], 0
jne 0x140041a88
lea rcx, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140041a70
mov byte [rbx + 0x12e3], 1
mov byte [rsp + rdi + 0x30], 0xa
inc rdi
cmp rdi, 0x102
jae 0x140041b41
cmp byte [rbx + 0xae5], 0
mov byte [rsp + rdi + 0x30], 0
je 0x140041ae8
cmp qword [rbx + 0x270], 0
je 0x140041b09
mov dl, 1
mov rcx, rbx
call fcn.14002f260
mov rax, qword [rbx + 0x1d8]
lea r8, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [rbx + 0x270]
xor edx, edx
mov rcx, rbx
call fcn.14002f260
mov rdi, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140086700
add rsp, 0x160
pop rbx
ret
mov r9, qword [rbx + 0x1d0]
lea rcx, [0x1400a36f0]
mov edx, 2
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rbx + 0x1d0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
jmp 0x140041ae8
call fcn.140087328
int3

Function at 0x140041c70
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 0x140041cb2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
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 0x140041e50
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x1400d6038]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x238]
mov r14, qword [rcx + r8*8 + 0x1f0]
add rbx, rax
mov rax, qword [rcx + 0x410]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x140041f5c
lea rax, [0x140041d00]
cmp qword [rcx + r8*8 + 0x218], rax
jne 0x140041f5c
cmp qword [rbx], 0
je 0x140041ee1
test rdi, rdi
je 0x140041f5c
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.140052890
cmp eax, 0xffffffff
je 0x140041f5c
test al, 1
je 0x140041f5c
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140041f3b
mov eax, dword [rbp + 0x6f4]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x140041f96
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140041f5c
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x140041fd5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x140041fa5
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x140041fd5
mov dword [rsi], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x140041fd8
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.140056df0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.1400419e0
mov dword [rbp + 0xda4], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140086700
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x288], 0
je 0x1400425cd
call fcn.14003a9f0
test eax, eax
jne 0x1400425f3
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x1f0]
cmp rcx, 0xffffffffffffffff
je 0x1400425c6
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1400425c6
mov al, 1
add rsp, 0x28
ret
Function at 0x140042840
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1400d6038]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400428f3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140056df0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400419e0
jmp 0x1400429c3
movzx ecx, word [rsp + 0x30]
sub ecx, 1
je 0x140042998
sub ecx, 1
je 0x14004293d
cmp ecx, 0x15
jne 0x140042949
lea rdx, [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_socket
mov r8, rbx
mov r9d, reloc.WLDAP32.dll_Ordinal_46
call fcn.140074840
test rax, rax
je 0x140042949
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x1400429c3
lea rdx, [rsp + 0x34]
mov ecx, 2
jmp 0x140042915
mov byte [rbx], 0
mov dword [rdi], 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0x273f
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ebx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140056df0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1400419e0
jmp 0x1400429c3
cmp dword [rsp + 0x20], 2
jle 0x1400429ba
lea r9, [rsp + 0x32]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea r8, [0x1400a2020]
mov rcx, rbx
call fcn.140055120
jmp 0x1400429bd
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140086700
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400432c0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1400d752c]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140043324
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.140074c30
test al, al
je 0x140043318
mov dword [0x1400d752c], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1400d752c], 1
jmp 0x140043329
cmp eax, 2
je 0x14004337b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14004335a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14004337b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret