joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001594
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
call fcn.1400012d0
xor r10d, r10d
test eax, eax
js 0x1400017bd
mov eax, dword [rbx + 0xf0]
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x140001616
lea rdx, [rbx + 8]
lea rdx, [rdx + r9*4]
lea r8, [rbx + 8]
mov ecx, dword [r8 - 8]
add r10, 4
mov eax, dword [rdx - 8]
sub r9, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
lea r8, [r8 + 0x10]
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
lea rdx, [rdx - 0x10]
mov ecx, dword [r8 - 0xc]
mov dword [r8 - 0xc], eax
mov dword [rdx + 0x14], ecx
cmp r10, r9
jl 0x1400015cd
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x1400017bb
lea r10, [rbx + 2]
lea rdi, [0x140000000]
lea r10, [r10 + 0x10]
inc r11d
mov r9d, dword [r10 - 2]
mov eax, r9d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x9db90]
movzx eax, byte [r10 - 1]
mov r8d, dword [rdi + rdx*4 + 0x9d790]
movzx ecx, byte [rdi + rax*4 + 0x9db90]
movzx eax, byte [r10]
xor r8d, dword [rdi + rcx*4 + 0x9cf90]
movzx ecx, byte [rdi + rax*4 + 0x9db90]
movzx eax, r9b
mov r9d, dword [r10 + 2]
xor r8d, dword [rdi + rcx*4 + 0x9d390]
movzx ecx, byte [rdi + rax*4 + 0x9db90]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0x9cb90]
movzx edx, byte [rdi + rax*4 + 0x9db90]
movzx eax, byte [r10 + 3]
mov dword [r10 - 2], r8d
mov r8d, dword [rdi + rdx*4 + 0x9d790]
movzx ecx, byte [rdi + rax*4 + 0x9db90]
movzx eax, byte [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x9cf90]
movzx ecx, byte [rdi + rax*4 + 0x9db90]
movzx eax, r9b
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0x9d390]
movzx ecx, byte [rdi + rax*4 + 0x9db90]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0x9cb90]
movzx edx, byte [rdi + rax*4 + 0x9db90]
movzx eax, byte [r10 + 7]
mov dword [r10 + 2], r8d
mov r8d, dword [rdi + rdx*4 + 0x9d790]
movzx ecx, byte [rdi + rax*4 + 0x9db90]
movzx eax, byte [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x9cf90]
movzx ecx, byte [rdi + rax*4 + 0x9db90]
movzx eax, r9b
mov r9d, dword [r10 + 0xa]
xor r8d, dword [rdi + rcx*4 + 0x9d390]
movzx ecx, byte [rdi + rax*4 + 0x9db90]
movzx eax, byte [r10 + 0xb]
xor r8d, dword [rdi + rcx*4 + 0x9cb90]
movzx edx, byte [rdi + rax*4 + 0x9db90]
movzx eax, byte [r10 + 0xc]
mov dword [r10 + 6], r8d
mov r8d, dword [rdi + rdx*4 + 0x9cf90]
movzx ecx, byte [rdi + rax*4 + 0x9db90]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0x9d390]
movzx ecx, byte [rdi + rax*4 + 0x9db90]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x9d790]
movzx ecx, byte [rdi + rax*4 + 0x9db90]
xor r8d, dword [rdi + rcx*4 + 0x9cb90]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x140001634
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000205c
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x5c]
call fcn.14005c790
mov eax, 1
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
add rsp, 0x20
pop rbx
ret
Function at 0x140006b98
Capabilities:
Check if file exists
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400c0078]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rsi, rcx
mov word [rbp - 6], 0x6957
mov word [rbp + 0x14], 0x736e
mov dword [rbp + 0x19], 0x6f475c6c
mov dword [rbp + 0xd], 0x5c6e6f69
mov dword [rbp + 0x22], 0x6f726843
mov word [rbp], 0x5c73
mov dword [rbp + 7], 0x6556746e
mov dword [rbp - 0xd], 0x6f736f72
mov dword [rbp - 0x15], 0x45524157
mov dword [rbp + 3], 0x65727275
mov dword [rbp + 0x1e], 0x20656c67
mov dword [rbp - 0x11], 0x63694d5c
mov word [rbp + 0x11], 0x6e55
mov byte [rbp + 0x13], 0x69
mov word [rbp - 9], 0x7466
mov byte [rbp + 2], 0x43
mov word [rbp + 0x17], 0x6c61
mov word [rbp + 0x26], 0x656d
mov dword [rbp - 0x19], 0x54464f53
mov word [rbp + 0xb], 0x7372
mov word [rbp - 3], 0x6f64
mov byte [rbp + 0x28], 0
mov byte [rbp + 0x1d], reloc.WS2_32.dll_WSAGetLastError
mov byte [rbp - 7], 0x5c
mov byte [rbp - 1], 0x77
mov byte [rbp - 4], WSASetLastError
mov byte [rbp + 0x16], reloc.WS2_32.dll_WSACleanup
mov word [rbp - 0x1b], WSASetLastError
mov dword [rbp - 0x29], 0x74736e49
mov word [rbp - 0x22], 0x6f4c
mov word [rbp - 0x25], 0x6c61
mov dword [rbp - 0x20], 0x69746163
mov byte [rbp - 0x1c], reloc.WS2_32.dll_WSAGetLastError
mov byte [rbp - 0x23], WSAGetLastError
mov word [rbp - 0x33], 0x652e
mov word [rbp - 0x36], 0x6d6f
mov word [rbp - 0x39], 0x6863
mov byte [rbp - 0x34], 0x65
mov byte [rbp - 0x37], WSACleanup
mov word [rbp - 0x31], 0x6578
mov byte [rbp - 0x2f], 0
lea rax, [rbp - 0x51]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x51]
call fcn.14000c518
mov rbx, rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x59]
call fcn.14000c518
nop
mov r9, rdi
mov r8, rbx
mov rdx, rax
call fcn.1400872e4
test al, al
jne 0x140006d2a
lea rax, [rbp - 0x59]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x59]
call fcn.14000c518
mov rbx, rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x51]
call fcn.14000c518
nop
mov r9, rdi
mov r8, rbx
mov rdx, rax
call fcn.1400874e8
test al, al
je 0x140006d52
lea rdx, [0x14009e22c]
jmp 0x140006d31
lea rdx, [0x14009e234]
lea r9, [rbp - 0x39]
mov r8, qword [rdi]
mov rcx, rdi
call fcn.14000be60
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
test al, al
jne 0x140006d5e
mov rcx, rdi
call fcn.140087798
test al, al
je 0x140006d63
mov byte [rsi], 1
mov al, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140059ac0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400083a4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1400c0078]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
xor r14d, r14d
mov rsi, rdx
lea ecx, [r14 + 3]
call fcn.140012940
call fcn.140012b60
mov r8, qword [rsi]
mov edx, 0x2712
mov rcx, rax
mov rdi, rax
call fcn.140013600
lea r8, [0x140008338]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.140013600
mov r8, rbx
mov edx, 0x2711
mov rcx, rdi
call fcn.140013600
lea r8, [rbp - 0x20]
mov dword [rbp - 0x12], 0x302e31
mov edx, 0x2722
mov dword [rbp - 0x1c], 0x2d6c7275
mov rcx, rdi
mov dword [rbp - 0x20], 0x6362696c
mov dword [rbp - 0x18], 0x6e656761
mov word [rbp - 0x14], 0x2f74
call fcn.140013600
mov rcx, rdi
call fcn.140012bb0
test eax, eax
movzx ebx, r14b
lea ecx, [r14 + 1]
cmove ebx, ecx
mov rcx, rdi
call fcn.140012bc0
mov rdx, qword [rsi]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140008483
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov al, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140059ac0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x14000a96c
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400c0078]
xor rax, rsp
mov qword [rsp + 0x50], rax
and qword [rsp + 0x30], 0
call qword [0x1400c3010]
lea r8, [rsp + 0x30]
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000aa03
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x14000a9f8
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
and qword [rsp + 0x28], 0
mov r9d, reloc.WS2_32.dll_recv
and qword [rsp + 0x20], 0
xor edx, edx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140059ac0
add rsp, 0x68
ret

Function at 0x14000e200
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
xor r9d, r9d
cmp byte [rcx + 8], r9b
je 0x14000e233
cmp dword [rcx + 0x3d0], r9d
jle 0x14000e22e
sub r8, rdx
mov al, byte [r8 + rdx]
inc r9d
xor byte [rdx], al
inc rdx
cmp r9d, dword [rcx + 0x3d0]
jl 0x14000e219
add rsp, 0x58
ret
lea rax, vtable.std::exception.0
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x38]
xor eax, eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rax, str.Object_not_Initialized
mov qword [rsp + 0x20], rax
call fcn.14005c6a4
lea rdx, [0x1400b1bf0]
lea rcx, [rsp + 0x30]
call fcn.14005cdc8
int3
Function at 0x140011794
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x1400c0078]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
and dword [rsp + 0x40], 0
call fcn.14000cb58
mov rcx, rax
test rax, rax
jne 0x1400117e9
mov ecx, 0x80004005
call fcn.14000c8e8
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x40], 1
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x60]
call fcn.14005c790
mov dword [rsp + 0x30], 0x200
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1400a5550]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400118ee
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, [0x1400a5538]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400118d6
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftCryptography
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400118ee
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.MachineGuid
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400118ee
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140012280
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140059ac0
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rbp
ret
Function at 0x140011cf0
Capabilities:
Get common file path
Get disk information

Disassembly:
push rbp
sub rsp, 0x6b0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rbp + 0x688], rbx
mov qword [rbp + 0x690], rsi
mov qword [rbp + 0x698], rdi
mov rax, qword [0x1400c0078]
xor rax, rbp
mov qword [rbp + 0x660], rax
mov rdi, rcx
xor esi, esi
mov dword [rbp + 0x18], esi
lea rdx, [0x14009dfb7]
lea rcx, [rbp + 0x10]
call fcn.14000c518
nop
mov ebx, 0x20a
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x450]
call fcn.14005c790
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x240]
call fcn.14005c790
mov dword [rbp], esi
mov dword [rbp + 8], esi
mov dword [rbp + 4], esi
xor edx, edx
lea r8d, [rbx - 2]
lea rcx, [rbp + 0x30]
call fcn.14005c790
xor r9d, r9d
lea r8d, [rsi + 0x25]
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov word [rbp + 0x36], si
mov r8d, 0x105
mov dword [rsp + 0x38], r8d
lea rax, [rbp + 0x240]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
lea rdx, [rbp + 0x450]
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x140011df1
mov r8d, dword [rbp]
lea rdx, [0x1400a1ccc]
lea rcx, [rbp + 0x10]
call fcn.14000be60
mov r8, qword [rbp + 0x10]
test r8, r8
je 0x140011e68
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [r8 + rcx], sil
jne 0x140011dfe
inc ecx
cmp ecx, 0x3fffffff
jg 0x140011e68
movsxd rax, ecx
add rax, rax
lea rdx, [rax + 0xf]
cmp rdx, rax
ja 0x140011e2a
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.14005a6b0
sub rsp, rdx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x140011e68
mov word [rbx], si
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb rdx, rdx
and rdx, rbx
jmp 0x140011e6b
mov rdx, rsi
mov rcx, rdi
call fcn.140012420
nop
mov rdx, qword [rbp + 0x10]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140011e93
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov rax, rdi
mov rcx, qword [rbp + 0x660]
xor rcx, rbp
call fcn.140059ac0
mov rbx, qword [rbp + 0x688]
mov rsi, qword [rbp + 0x690]
mov rdi, qword [rbp + 0x698]
lea rsp, [rbp + 0x670]
pop rbp
ret

Function at 0x140013040
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400c0078]
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 0x1400130a1
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14001309b
shr ax, 8
cmp al, 2
jne 0x14001309b
call fcn.14001c080
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140059ac0
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.140059ac0
add rsp, 0x1d8
ret
Function at 0x14001b980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x14001b98c
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
add rdx, 4
mov r8, rax
mov ecx, 2
jmp fcn.140037630
Function at 0x140024c20
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 0x140024c5b
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 0x140024d40
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.140025110
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 0x140024dd8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140024dad
mov dword [rsi], 0x51
xor eax, eax
jmp 0x140024ddb
mov edx, ebx
mov rcx, r14
call fcn.140036740
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140024900
mov rcx, qword [r14]
mov dword [rcx + 0x4c7c], 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 0x140025110
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 + 0x3e8]
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 0x1400251ec
lea rax, [0x140024c70]
cmp qword [rsi + rcx*8 + 0x260], rax
jne 0x1400251ec
cmp qword [rbx], 0
je 0x140025176
test rdi, rdi
je 0x1400251ec
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rbp
call fcn.140023f40
cmp eax, 0xffffffff
je 0x1400251ec
test al, 1
je 0x1400251ec
cmp qword [rbx], 0
jne 0x1400251cb
mov rax, qword [rsi]
mov ecx, dword [rax + 0x6f0]
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 0x1400251cb
mov qword [rbx + 8], rcx
jmp 0x1400251ec
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 0x1400251ec
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 0x1400253e0
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 + 0x2b8]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x140025423
mov rax, qword [rcx + 0x208]
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 0x140025466
mov r9, qword [rbx + 0x200]
movsxd rcx, edx
lea rdx, [0x14008abc8]
lea rcx, [rcx + rcx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.140062c00
mov r9, qword [rbx + 0x200]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.140062c00
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x2c0], 0
je 0x140025bdd
call fcn.14001cc10
test eax, eax
jne 0x140025c08
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x238]
cmp rcx, 0xffffffffffffffff
je 0x140025bd6
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x140025c08
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret
Function at 0x140025ce0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x140
mov rax, qword [0x1400c0078]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xbc], 2
mov rbx, rdx
mov rbp, qword [rcx]
mov rsi, rcx
je 0x140025ec9
cmp byte [rcx + 0x3a2], 0
mov qword [rsp + 0x170], rdi
jne 0x140025eb9
cmp byte [rcx + 0x3be], 0
jne 0x140025eb9
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 0x140025d83
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.140036740
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.140024900
jmp 0x140025ec1
xor edx, edx
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call fcn.14005c790
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140025de0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.140036740
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.140024900
jmp 0x140025ec1
lea rbx, [rsi + 0x186]
mov rdx, rbx
lea r8, [rsi + 0x1b4]
lea rcx, [rsp + 0xb0]
call fcn.140026c80
test al, al
jne 0x140025e36
call fcn.1400629a0
mov rbx, rax
call fcn.1400629a0
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.140036740
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.140024900
jmp 0x140025ec1
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.140026c80
test al, al
jne 0x140025eb9
call fcn.1400629a0
mov rbx, rax
call fcn.1400629a0
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.140036740
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.140024900
jmp 0x140025ec1
mov rcx, rsi
call fcn.140025ef0
mov rdi, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140059ac0
add rsp, 0x140
pop rsi
pop rbp
pop rbx
ret

Function at 0x140026130
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 0x14002619b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.140036740
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.140024850
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.140024850
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140026330
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400c0078]
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 + 0x994], 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 0x14002639f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.140024850
jmp 0x14002642e
mov ecx, dword [rbx + 0x998]
mov dword [rsp + 0x58], 1
call fcn.140026db0
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x99c]
call fcn.140026db0
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, recvfrom
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 0x14002642e
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.140024850
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140059ac0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140026e80
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.140026da0
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call fcn.140075720
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret