joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ab2a4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1403c86e8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x38], 0
call fcn.1400eef44
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140045dc4
nop
mov byte [rsp + 0x70], 0
lea rax, [rsp + 0x71]
mov rdi, rax
xor eax, eax
mov ecx, 0x1ff
rep stosb byte [rdi], al
mov dword [rsp + 0x34], 0x200
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x14036af90]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400ab3f7
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [0x14036b010]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400ab372
mov byte [rsp + 0x30], 1
jmp 0x1400ab3d4
lea rax, [rsp + 0x40]
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 0x1400ab3d4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.MachineGuid
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400ab3d4
mov byte [rsp + 0x30], 1
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1400ab3f7
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14004fa6c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x290]
call fcn.14004f558
mov eax, dword [rsp + 0x38]
or eax, 1
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x50]
sub rax, 0x18
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.140045ed4
mov rax, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140286010
add rsp, 0x280
pop rdi
ret
Function at 0x1400ac3d8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1403c86e8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
mov rcx, rax
call fcn.140010b30
nop
mov rax, qword [rsp + 0x60]
mov byte [rax + 0x20], 0
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x30], 0
mov eax, 1
imul rax, rax, 0x11
mov byte [rsp + rax + 0x30], WSASetLastError
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x30], Ordinal_79
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x30], 0x53
mov eax, 1
imul rax, rax, 0xc
mov byte [rsp + rax + 0x30], Ordinal_79
mov eax, 1
imul rax, rax, 0x10
mov byte [rsp + rax + 0x30], WSASetLastError
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x30], 0x49
mov eax, 1
imul rax, rax, 0x14
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x15
jae 0x1400ac496
jmp 0x1400ac49b
call fcn.14028613c
mov rax, qword [rsp + 0x20]
mov byte [rsp + rax + 0x30], 0
mov eax, 1
imul rax, rax, 0x13
mov byte [rsp + rax + 0x30], reloc.WLDAP32.dll_Ordinal_41
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x30], Ordinal_41
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x30], reloc.WLDAP32.dll_Ordinal_32
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x30], reloc.WS2_32.dll_WSACleanup
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x30], 0x5f
mov eax, 1
imul rax, rax, 0xd
mov byte [rsp + rax + 0x30], reloc.WS2_32.dll_WSAGetLastError
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x30], 0x53
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x30], 0x49
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x30], WSASetLastError
mov eax, 1
imul rax, rax, 0xf
mov byte [rsp + rax + 0x30], 0x69
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x30], 0x63
mov eax, 1
imul rax, rax, 0xe
mov byte [rsp + rax + 0x30], 0x7a
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x30], 0x65
mov eax, 1
imul rax, rax, 0x12
mov byte [rsp + rax + 0x30], 0x61
mov rax, qword [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140010a44
nop
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140286010
add rsp, 0x58
ret
Function at 0x1400ac5ec
Capabilities:
Connect to http server
Create http request

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x18], 0x10
jb 0x1400ac652
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
jmp 0x1400ac65c
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x18], 0x10
jb 0x1400ac6d1
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
jmp 0x1400ac6db
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
movzx r8d, word [rsp + 0xc0]
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x30], 0
jne 0x1400ac769
mov byte [rsp + 0x40], 0
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0xb8]
call fcn.14001196c
nop
mov al, byte [rsp + 0x40]
jmp 0x1400ac791
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x20], 1
mov byte [rsp + 0x41], 1
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0xb8]
call fcn.14001196c
nop
mov al, byte [rsp + 0x41]
add rsp, 0xa8
ret
Function at 0x1400aea34
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x18], 0x10
jb 0x1400aea9d
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
jmp 0x1400aeaa7
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400aeb6a
mov dword [rsp + 0x34], 4
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x18], 0x10
jb 0x1400aeb26
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
jmp 0x1400aeb30
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0xb8]
call fcn.14001196c
nop
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0xc0]
call fcn.14001196c
nop
mov eax, dword [rsp + 0x38]
add rsp, 0xa8
ret
Function at 0x1400b00f0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1403c86e8]
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 0x1400b0151
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400b014b
shr ax, 8
cmp al, 2
jne 0x1400b014b
call fcn.1400b5030
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140286010
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.140286010
add rsp, 0x1d8
ret

Function at 0x1400b5fc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x1400b5fcc
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
add rdx, 4
mov r8, rax
mov ecx, 2
jmp fcn.1400cd3e0

Function at 0x1400b7090
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x1400cd5a0
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 0x1400cd5fc
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 0x1400cd60c
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 0x1400bee50
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x1403c86e8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [rcx + 0x560], 0
mov r14, r9
mov rax, qword [rsp + 0x130]
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x1400bef7f
test rax, rax
je 0x1400bef7f
mov rdx, qword [rax + 0xd8]
test rdx, rdx
je 0x1400bef7f
mov ecx, esi
lea r9, str.Data
sub ecx, 1
je 0x1400beedb
sub ecx, 1
je 0x1400beecb
sub ecx, 1
je 0x1400beee2
cmp ecx, 1
je 0x1400beed2
jmp 0x1400bef7f
lea r9, str.Header
lea rax, [0x1402f35f0]
jmp 0x1400beee9
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
mov edx, LoadRegTypeLib
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.1400ca620
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400bef12
mov r10, qword [rdi + 0x2a0]
test r10, r10
je 0x1400bef49
mov rax, qword [rdi + 0x1f0]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call r10
test eax, eax
je 0x1400bef7f
jmp 0x1400bef8f
mov r9, qword [rdi + 0x1e8]
lea rcx, [0x1402f3518]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.14029a098
mov r9, qword [rdi + 0x1e8]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.14029a098
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.1400bf990
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140286010
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400bf290
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 0x1400bf2cb
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 0x1400bf630
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 + 0x230]
mov rsi, r8
mov r14, rcx
sete al
mov edx, eax
mov rbx, qword [rcx + rdx*8 + 0x228]
call fcn.1400bf890
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 0x1400bf6d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400bf6a4
mov rcx, qword [rsp + 0x50]
lea eax, [rdi + 0x52]
mov qword [rcx], 0
jmp 0x1400bf6da
mov edx, ebx
mov rcx, r14
call fcn.1400cca00
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1400befb0
mov rax, qword [r14]
mov dword [rax + 0x4a34], ebx
mov eax, gethostname
jmp 0x1400bf6d2
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 0x1400bf890
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 + 0x270]
mov rax, r8
shl rax, 5
add rbx, rax
mov rax, qword [rcx + 0x578]
mov rsi, qword [rcx + r8*8 + 0x228]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x74], 3
je 0x1400bf973
lea rax, [0x1400bf320]
cmp qword [rcx + r8*8 + 0x250], rax
jne 0x1400bf973
cmp qword [rbx], 0
je 0x1400bf8f4
test rdi, rdi
je 0x1400bf973
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rsi
call fcn.1400be8e0
cmp eax, 0xffffffff
je 0x1400bf973
test al, 1
je 0x1400bf973
cmp qword [rbx], 0
jne 0x1400bf952
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 0x1400bf952
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 0x1400bf973
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400bf990
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 + 0x2a0]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x1400bf9d3
mov rax, qword [rcx + 0x1f0]
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 0x1400bfa16
mov r9, qword [rbx + 0x1e8]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1402f3518]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.14029a098
mov r9, qword [rbx + 0x1e8]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.14029a098
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x2b0], 0
je 0x1400bfb3d
call fcn.140140260
test eax, eax
jne 0x1400bfb68
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x228]
cmp rcx, 0xffffffffffffffff
je 0x1400bfb36
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1400bfb68
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret
Function at 0x1400c0470
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 0x1400c04db
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.1400cca00
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.1400bf080
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.1400bf080
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400c05f0
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 [0x1403c86e8]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xbc], 2
mov rbx, rdx
mov rsi, qword [rcx]
mov rdi, rcx
je 0x1400c07c0
cmp byte [rcx + 0x542], 0
jne 0x1400c07b8
cmp byte [rcx + 0x55e], 0
jne 0x1400c07b8
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 0x1400c0692
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400cca00
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400befb0
jmp 0x1400c07c0
xor edx, edx
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call fcn.14028bc50
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400c06ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400cca00
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400befb0
jmp 0x1400c07c0
lea rbx, [rdi + 0x186]
mov rdx, rbx
lea r8, [rdi + 0x1b4]
lea rcx, [rsp + 0xb0]
call fcn.1400c0c30
test al, al
jne 0x1400c073d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400cca00
mov r9, rax
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400befb0
jmp 0x1400c07c0
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rdi + 0x1e8]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rdi + 0x1b8]
movups xmmword [rdi + 0x88], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rdi + 0x98], xmm1
movsd qword [rdi + 0xa8], xmm0
mov dword [rdi + 0xb0], eax
movzx eax, word [rbx + 0x2c]
mov word [rdi + 0xb4], ax
call fcn.1400c0c30
test al, al
jne 0x1400c07b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400cca00
mov r9, rax
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400befb0
jmp 0x1400c07c0
mov rcx, rdi
call fcn.1400c01f0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140286010
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400c0fe0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1403c86e8]
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 + 0x7bc], 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 0x1400c104f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.1400bf080
jmp 0x1400c10de
mov ecx, dword [rbx + 0x7c0]
mov dword [rsp + 0x58], 1
call fcn.1400c9270
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x7c4]
call fcn.1400c9270
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
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 0x1400c10de
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.1400bf080
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140286010
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400c9260
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.1402b2ed0
cdqe
add rsp, 0x28
ret

Function at 0x1400cba10
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x1402f5550]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1400cba3a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1402f5570]
mov rcx, rbx
mov r14, rax
call fcn.1402a9984
test rax, rax
je 0x1400cba9d
mov rcx, rbx
test r14, r14
je 0x1400cba87
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1400cbad5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400cbad5
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1400cbb98
mov qword [rsp + 0x40], rsi
or rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1400cbb00
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1400cbb8a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400cbb8a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1400cbb30
mov ecx, 0x5c
mov word [rax + rdi], cx
cmp byte [rdi + rsi + 1], bpl
lea rsi, [rsi + 1]
jne 0x1400cbb44
lea rcx, [rsi + rdi]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400cbb60
mov rcx, rdi
test r14, r14
je 0x1400cbb81
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400cbb87
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.1402996a8]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret