joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009100
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x140009291
cmp byte [rcx + 0x71], 0
je 0x140009291
call fcn.140003970
mov ebx, eax
mov edx, eax
call fcn.140008360
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x88], ebx
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x88]
call fcn.140003960
test al, al
je 0x140009165
xor al, al
jmp 0x140009293
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rsp + 0x40]
call fcn.140015440
nop
nop word [rax + rax]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.140007720
mov rcx, rax
call fcn.140007290
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.140003780
add rbx, rax
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.140007720
mov rcx, rax
call fcn.140007290
mov r8, rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea rdx, [rdi + 0x74]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400091f4
sub eax, 1
jne 0x140009277
jmp 0x1400091f8
mov byte [rdi + 0x71], 0
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x40]
call fcn.140007720
mov rcx, rax
call fcn.140007290
mov rbx, qword [rsp + 0x90]
sub rbx, rax
je 0x140009253
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140007720
mov rcx, rax
call fcn.140007290
mov rcx, rax
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14000927c
cmp byte [rdi + 0x71], 0
je 0x140009280
test rbx, rbx
jne 0x140009180
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rsp + 0x40]
call fcn.140015570
jmp 0x140009180
sub eax, 2
je 0x140009280
xor bl, bl
jmp 0x140009282
mov bl, 1
lea rcx, [rsp + 0x40]
call fcn.140001fe0
movzx eax, bl
jmp 0x140009293
mov al, 1
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x140019590
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x330
mov rax, qword [0x1400a30d8]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov r12, rcx
mov r14, r9
lea rcx, [rsp + 0x1a0]
mov rbp, r8
mov r15, rdx
call fcn.14001ab40
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140019790
lea rcx, [rsp + 0x1f0]
call fcn.14001ae30
mov rcx, rax
lea rdx, [rsp + 0x70]
call fcn.140019820
mov edx, Ordinal_79
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rdx - 0xc]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x140019763
xor ecx, ecx
mov qword [rsp + 0x360], rsi
mov edx, 0x149
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x14001975b
movaps xmm0, xmmword [rsp + 0x20]
mov rdx, rsi
movaps xmm1, xmmword [rsp + 0x30]
mov ecx, 2
mov eax, dword [rsp + 0x68]
movups xmmword [rbx], xmm0
mov qword [rsp + 0x368], rdi
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x10], xmm1
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x20], xmm0
movsd xmm0, qword [rsp + 0x60]
movups xmmword [rbx + 0x30], xmm1
movsd qword [rbx + 0x40], xmm0
mov dword [rbx + 0x48], eax
lea rax, [rsp + 0x70]
nop word [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x140019690
mov rcx, qword [rax + 0x20]
lea rdi, [rsi + 0x129]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
mov qword [rdx + 0x20], rcx
movzx ecx, byte [rax + 0x28]
mov byte [rdx + 0x28], cl
mov edx, edi
mov rcx, rsi
mov qword [rdi], r12
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 0
call rbx
test eax, eax
je 0x140019753
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140019753
xor edx, edx
mov qword [r14], rax
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, qword [rsp + 0x368]
mov rsi, qword [rsp + 0x360]
xor eax, eax
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.140070190
add rsp, 0x330
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret

Function at 0x140019950
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
cmp byte [rcx], 0
mov rax, rdx
mov rcx, rdx
je 0x14001997a
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
add rsp, 0x38
ret
call fcn.14002cae0
add rsp, 0x38
ret
Function at 0x140019aa0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400a30d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x30]
mov edx, Ordinal_41
or rcx, 0xffffffffffffffff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r8, [rsp + 0x40]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x140019afe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140070190
add rsp, 0x68
ret
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x4c], rax
mov r9d, reloc.WS2_32.dll_recv
lea rax, [rsp + 0x38]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rsp + 0x48]
mov dword [rsp + 0x54], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x140019ae4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140070190
add rsp, 0x68
ret

Function at 0x140019c50
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1400a30d8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ebx, ecx
mov edx, ecx
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x140019cb8
nop dword [rax + rax]
cmp dword [rsp + 0x28], ebx
je 0x140019ce4
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
je 0x140019ca0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140070190
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
mov rax, qword [rsp + 0x38]
jmp 0x140019cc3
Function at 0x140019cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x88
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1400a30d8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbp, r8
mov ebx, edx
mov rdi, rcx
mov dword [rsp + 0x44], 0
mov rdx, r9
lea rcx, [rsp + 0x58]
call fcn.140019b70
nop
mov ecx, ebx
call fcn.140019c50
mov rsi, rax
test rax, rax
jne 0x140019d51
mov r8d, ebx
mov rcx, rdi
call fcn.14001bba0
jmp 0x140019e79
lea rcx, [rsp + 0x58]
call fcn.140003780
add rax, rax
mov ecx, 0xffd
sub rcx, rax
add rsi, rcx
lea rcx, [rsp + 0x58]
call fcn.140003780
lea r8, [rax + rax]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 4
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rcx, [rsp + 0x58]
test eax, eax
jne 0x140019dbe
call fcn.140003780
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8, rbp
mov edx, 0x66
mov rcx, rdi
call fcn.14001bc00
jmp 0x140019e79
call fcn.140003780
mov rbx, rax
add rbx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400040e0
mov r8, rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, [rsp + 0x58]
test eax, eax
jne 0x140019e17
call fcn.140003780
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8, rbp
mov edx, 0x67
mov rcx, rdi
call fcn.14001bc00
jmp 0x140019e79
call fcn.140003780
lea r8, [rax + rax]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x40]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x140019e70
lea rcx, [rsp + 0x58]
call fcn.140003780
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8, rbp
mov rcx, rdi
call fcn.14001bca0
jmp 0x140019e79
mov rcx, rdi
call fcn.1400194c0
nop
lea rcx, [rsp + 0x58]
call fcn.1400040d0
mov rax, rdi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140070190
add rsp, 0x88
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14001a130
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
xor eax, eax
mov rbx, rcx
lea rcx, [r11 - 0x38]
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsp + 0x20], 0
jne 0x14001a16f
mov al, 1
add rsp, 0x50
pop rbx
ret
mov rcx, rbx
call fcn.14001a0d0
add rsp, 0x50
pop rbx
ret
Function at 0x1400219f0
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400a30d8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0
mov rcx, qword [0x1400a68b0]
lea rdx, [rsp + 0x28]
mov r8d, Ordinal_41
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140002920
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140070190
add rsp, 0x60
pop rbx
ret

Function at 0x140021b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rsi
push rdi
sub rsp, 0x20
lea r8, [0x14008c14c]
mov edx, 0x3e8
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rsi, rax
test rax, rax
jne 0x140021bc3
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov rdx, rsi
mov qword [rsp + 0x40], rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
jne 0x140021be9
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov rdx, rsi
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140021ca5
mov rdx, rbp
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x140021ca2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140021c99
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], rbx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x140021c90
mov rcx, qword [rsp + 0x50]
call fcn.140020d00
mov rcx, qword [rsp + 0x50]
mov rbx, rax
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
test rbx, rbx
je 0x140021c90
mov rcx, rbx
call fcn.140020c70
test eax, eax
je 0x140021c90
mov r8, qword [rbx]
mov edx, 1
call qword [r8]
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, rbx
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x14002d230
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400a30d8]
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 0x14002d291
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14002d28b
shr ax, 8
cmp al, 2
jne 0x14002d28b
call fcn.140037ea0
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140070190
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.140070190
add rsp, 0x1d8
ret
Function at 0x140033db0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
lea rax, [rcx + rdx]
mov rbp, rax
mov rbx, rcx
sub rbp, rcx
mov esi, 0x1505
cmp rcx, rax
cmova rbp, rdi
test rbp, rbp
je 0x140033a73
movzx ecx, byte [rbx]
call fcn.1400428f0
imul rsi, rsi, 0x21
movsx rcx, al
lea rbx, [rbx + 1]
xor rsi, rcx
inc rdi
cmp rdi, rbp
jb 0x140033a54
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movzx eax, sil
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140033de6
call fcn.1400341b0
test al, al
jne 0x140033de6
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140034100
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x140033a20
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140035620
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x14003562c
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
add rdx, 4
mov r8, rax
mov ecx, 2
jmp fcn.14004f6c0
Function at 0x140040290
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 0x1400402cb
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 0x1400403d0
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
movsxd rax, edx
mov rdi, r9
mov rsi, r8
mov r14, rcx
mov rbx, qword [rcx + rax*8 + 0x238]
call fcn.140040a00
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
movsxd rdi, eax
mov dword [rsi], 0
cmp rdi, 0xffffffffffffffff
jne 0x140040468
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14004043d
mov dword [rsi], 0x51
xor eax, eax
jmp 0x14004046b
mov edx, ebx
mov rcx, r14
call fcn.1400660f0
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.14003ffa0
mov rcx, qword [r14]
mov dword [rcx + 0x4c9c], ebx
mov dword [rsi], gethostname
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
movsxd rcx, edx
mov rax, qword [rsi + 0x3f0]
lea rbx, [rcx + 0x14]
mov rbp, qword [rsi + rcx*8 + 0x238]
shl rbx, 5
add rbx, rsi
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x140040adc
lea rax, [0x140040310]
cmp qword [rsi + rcx*8 + 0x260], rax
jne 0x140040adc
cmp qword [rbx], 0
je 0x140040a66
test rdi, rdi
je 0x140040adc
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rbp
call fcn.14003fad0
cmp eax, 0xffffffff
je 0x140040adc
test al, 1
je 0x140040adc
cmp qword [rbx], 0
jne 0x140040abb
mov rax, qword [rsi]
mov ecx, dword [rax + 0x6f8]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
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 0x140040abb
mov qword [rbx + 8], rcx
jmp 0x140040adc
mov rdx, qword [rbx]
xor r9d, r9d
add rdx, qword [rbx + 0x10]
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140040adc
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140040b00
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 qword [rcx + 0x2b8], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x140040b5e
mov dl, 1
call fcn.14002fd60
mov rax, qword [rdi + 0x208]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x2b8]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14002fd60
mov eax, ebx
jmp 0x140040ba2
cmp ebx, 2
ja 0x140040ba0
mov r9, qword [rdi + 0x200]
lea rdx, [0x14007cbe8]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x200]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.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 0x140040cd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x2c0], 0
je 0x140040ced
call fcn.140038990
test eax, eax
jne 0x140040d18
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x238]
cmp rcx, 0xffffffffffffffff
je 0x140040ce6
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x140040d18
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret

Function at 0x1400416d0
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 0x14004173b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.1400660f0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.1400400a0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.1400400a0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140041870
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x140
mov rax, qword [0x1400a30d8]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xbc], 2
mov rbx, rdx
mov rbp, qword [rcx]
mov rsi, rcx
je 0x140041a5d
cmp byte [rcx + 0x3aa], 0
mov qword [rsp + 0x170], rdi
jne 0x140041a4d
cmp byte [rcx + 0x3c6], 0
jne 0x140041a4d
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 0x140041913
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.1400660f0
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.14003ffa0
jmp 0x140041a55
xor edx, edx
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140041970
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.1400660f0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.14003ffa0
jmp 0x140041a55
lea rbx, [rsi + 0x186]
mov rdx, rbx
lea r8, [rsi + 0x1b4]
lea rcx, [rsp + 0xb0]
call fcn.140040ec0
test al, al
jne 0x1400419c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.1400660f0
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.14003ffa0
jmp 0x140041a55
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rsi + 0x1e8]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rsi + 0x1b8]
movups xmmword [rsi + 0x88], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rsi + 0x98], xmm1
movsd qword [rsi + 0xa8], xmm0
mov dword [rsi + 0xb0], eax
movzx eax, word [rbx + 0x2c]
mov word [rsi + 0xb4], ax
call fcn.140040ec0
test al, al
jne 0x140041a4d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.1400660f0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.14003ffa0
jmp 0x140041a55
mov rcx, rsi
call fcn.140041430
mov rdi, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140070190
add rsp, 0x140
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400421d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a30d8]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0x99c], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14004223f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.1400400a0
jmp 0x1400422ce
mov ecx, dword [rbx + 0x9a0]
mov dword [rsp + 0x58], 1
call fcn.1400424d0
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x9a4]
call fcn.1400424d0
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, ntohs
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1400422ce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r9d, eax
mov rcx, rbx
call fcn.1400400a0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140070190
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140042470
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbx, rdx
mov rcx, r8
call fcn.1400194b0
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret