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

Disassembly:
mov eax, 0x1505
xor edx, edx
mov r8d, dword [rcx + 8]
test r8d, r8d
jle 0x180123dbd
mov r9d, eax
shl r9d, 5
add eax, r9d
mov r9d, edx
movzx r9d, word [rcx + r9*2 + 0xc]
xor eax, r9d
inc edx
cmp r8d, edx
jg 0x180123da0
ret

Function at 0x180163770
Capabilities:
Delete file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
xor eax, eax
mov qword [rbp - 0x40], rax
test rcx, rcx
je 0x18016379c
add rcx, 0xc
mov rsi, rcx
jmp 0x18016379e
xor esi, esi
mov qword [rbp - 0x40], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rsi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x70]
call fcn.180006be0
mov rcx, qword [rbp - 0x48]
call sub.KERNEL32.dll_DeleteFileW
mov esi, eax
lea rcx, [rbp - 0x70]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
test esi, esi
setne sil
movzx esi, sil
call fcn.18000395b
mov dword [rax + 8], edi
movzx eax, sil
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x180164310
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.18013f760
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, rbx
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.180006be0
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_ReadFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp byte [rbp - 0x40], 0
je 0x1801643c0
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.18013f7f0
call fcn.18000395b
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x180164410
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rdi, rdx
mov ebx, r8d
mov rsi, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.18013f760
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
mov qword [rbp - 0x48], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x54], rcx
mov rdx, rdi
mov qword [rbp - 0x5c], rdx
mov r8d, ebx
mov dword [rbp - 0x4c], r8d
mov r9, rsi
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.180006be0
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.KERNEL32.dll_ReadFile
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x1801644d3
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.18013f7f0
call fcn.18000395b
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1801646c0
Capabilities:
Create thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov rsi, rcx
mov rdi, rdx
mov rbx, r8
mov r14, r9
mov r15, qword [rbp + 0x38]
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
mov qword [rbp - 0x48], rcx
lea rcx, [0x1802f4bf8]
call fcn.180005aa0
xor ecx, ecx
mov qword [rax + 8], rcx
mov dword [rax + 0x10], 4
mov byte [rax + 0x14], 1
mov byte [rax + 0x15], 1
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], r15
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9, r14
mov esi, dword [rbp + 0x30]
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x70], r8
mov qword [rbp - 0x78], r9
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x28], r15
lea rcx, [rbp - 0xa0]
call fcn.180006be0
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x70]
mov r9, qword [rbp - 0x78]
call sub.KERNEL32.dll_CreateThread
mov rsi, rax
lea rcx, [rbp - 0xa0]
call fcn.180006c30
mov qword [rbp - 0x48], rsi
xor eax, eax
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x3c], 1
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x58]
mov qword [rdx + 8], rax
mov rax, rdx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x180164810
Capabilities:
Resume thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
mov qword [rbp + 0x10], rcx
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.18013f760
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx + 8]
mov rcx, rax
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x70]
call fcn.180006be0
mov rcx, qword [rbp - 0x48]
call sub.KERNEL32.dll_ResumeThread
mov esi, eax
lea rcx, [rbp - 0x70]
call fcn.180006c30
nop
cmp byte [rbp - 0x40], 0
je 0x18016487a
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.18013f7f0
mov eax, esi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x180164cc0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rcx
mov rdi, rdx
mov ebx, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov qword [rbp - 0x4c], rcx
mov rdx, rdi
mov qword [rbp - 0x54], rdx
mov r8d, ebx
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.180006be0
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.18000395b
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x180164d80
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.18013f760
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, rbx
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.180006be0
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp byte [rbp - 0x40], 0
je 0x180164e30
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.18013f7f0
call fcn.18000395b
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x180164e80
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rdi, rdx
mov ebx, r8d
mov rsi, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.18013f760
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
mov qword [rbp - 0x48], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x54], rcx
mov rdx, rdi
mov qword [rbp - 0x5c], rdx
mov r8d, ebx
mov dword [rbp - 0x4c], r8d
mov r9, rsi
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.180006be0
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.KERNEL32.dll_WriteFile
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x180164f43
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.18013f7f0
call fcn.18000395b
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x180165370
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rax
mov esi, r8d
test rcx, rcx
je 0x1801653a3
add rcx, 0xc
mov rdi, rcx
jmp 0x1801653a5
xor edi, edi
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x48], rdx
mov rbx, rdx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov qword [rbp - 0x54], rcx
mov rdx, rbx
mov qword [rbp - 0x5c], rdx
mov r8d, esi
mov dword [rbp - 0x4c], r8d
lea rcx, [rbp - 0x88]
call fcn.180006be0
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
call fcn.18000395b
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1801658e0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x100]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x70], xmm4
movaps xmmword [rbp - 0x60], xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp + 0x10], rcx
mov ebx, edx
mov rdi, r8
mov rsi, r9
mov r14, qword [rbp + 0x30]
mov r15, qword [rbp + 0x38]
mov r12, qword [rbp + 0x40]
mov r13, qword [rbp + 0x48]
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.18013f760
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
test rdi, rdi
jne 0x180165948
xor r8d, r8d
jmp 0x18016594c
lea r8, [rdi + 0x10]
mov qword [rbp - 0x48], r8
mov qword [rbp - 0x50], rsi
mov r9, rsi
test r14, r14
jne 0x180165960
xor eax, eax
jmp 0x180165964
lea rax, [r14 + 0x10]
mov qword [rbp - 0x58], rax
test r15, r15
jne 0x180165972
xor r10d, r10d
jmp 0x180165976
lea r10, [r15 + 0x10]
mov qword [rbp - 0x60], r10
test r12, r12
jne 0x180165984
xor r11d, r11d
jmp 0x180165989
lea r11, [r12 + 0x10]
mov qword [rbp - 0x68], r11
test r13, r13
jne 0x180165996
xor esi, esi
jmp 0x18016599a
lea rsi, [r13 + 0x10]
mov qword [rbp - 0x70], rsi
mov rcx, rdx
mov qword [rbp - 0x7c], rcx
mov edx, ebx
mov dword [rbp - 0x74], edx
mov qword [rbp - 0x84], r8
mov qword [rbp - 0x8c], r9
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x38], rsi
lea rcx, [rbp - 0xb8]
call fcn.180006be0
mov rcx, qword [rbp - 0x7c]
mov edx, dword [rbp - 0x74]
mov r8, qword [rbp - 0x84]
mov r9, qword [rbp - 0x8c]
call sub.ADVAPI32.dll_RegEnumKeyExW
mov esi, eax
lea rcx, [rbp - 0xb8]
call fcn.180006c30
nop
xor ecx, ecx
mov qword [rbp - 0x70], rcx
xor ecx, ecx
mov qword [rbp - 0x68], rcx
xor ecx, ecx
mov qword [rbp - 0x60], rcx
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x180165a36
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.18013f7f0
mov eax, esi
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x180165d20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov rdi, r8
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.18013f760
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
test rsi, rsi
je 0x180165d71
add rsi, 0xc
jmp 0x180165d73
xor esi, esi
mov qword [rbp - 0x48], rsi
mov r14, qword [rbp + 0x30]
mov qword [rsp + 0x20], r14
mov r14, qword [rbp + 0x38]
mov qword [rsp + 0x28], r14
mov rcx, rdx
mov qword [rbp - 0x50], rcx
mov rdx, rsi
mov qword [rbp - 0x58], rdx
mov r8, rdi
mov qword [rbp - 0x60], r8
mov r9, rbx
mov qword [rbp - 0x68], r9
lea rcx, [rbp - 0x90]
call fcn.180006be0
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x60]
mov r9, qword [rbp - 0x68]
call sub.ADVAPI32.dll_RegQueryValueExW
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.180006c30
nop
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x180165dec
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.18013f7f0
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov rdi, r8
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.18013f760
mov rcx, qword [rbp + 0x10]
mov rbx, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbx
mov qword [rbp - 0x48], rcx
mov rdx, rsi
mov qword [rbp - 0x50], rdx
mov r8, rdi
mov qword [rbp - 0x58], r8
lea rcx, [rbp - 0x80]
call fcn.180006be0
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x58]
call sub.WS2_32.dll_getsockname
mov esi, eax
lea rcx, [rbp - 0x80]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp byte [rbp - 0x40], 0
je 0x18017c1a3
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.18013f7f0
call fcn.18000395b
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x18017c7e0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rcx
mov edi, edx
mov qword [rbp - 0x40], r8
mov rbx, r8
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rsi
mov qword [rbp - 0x4c], rcx
mov edx, edi
mov dword [rbp - 0x44], edx
mov r8, rbx
mov qword [rbp - 0x54], r8
lea rcx, [rbp - 0x80]
call fcn.180006be0
mov rcx, qword [rbp - 0x4c]
mov edx, dword [rbp - 0x44]
mov r8, qword [rbp - 0x54]
call sub.WS2_32.dll_ioctlsocket
mov esi, eax
lea rcx, [rbp - 0x80]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.18000395b
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x18017c870
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov edi, edx
mov rsi, r8
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.18013f760
mov rcx, qword [rbp + 0x10]
mov rbx, qword [rcx + 8]
mov qword [rbp - 0x48], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbx
mov qword [rbp - 0x54], rcx
mov edx, edi
mov dword [rbp - 0x4c], edx
mov r8, rsi
mov qword [rbp - 0x5c], r8
lea rcx, [rbp - 0x88]
call fcn.180006be0
mov rcx, qword [rbp - 0x54]
mov edx, dword [rbp - 0x4c]
mov r8, qword [rbp - 0x5c]
call sub.WS2_32.dll_ioctlsocket
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x18017c915
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.18013f7f0
call fcn.18000395b
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x18017c990
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov edi, r8d
mov ebx, r9d
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.18013f760
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r14
mov qword [rbp - 0x50], rcx
mov rdx, rsi
mov qword [rbp - 0x58], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9d, ebx
mov dword [rbp - 0x48], r9d
lea rcx, [rbp - 0x80]
call fcn.180006be0
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8d, dword [rbp - 0x44]
mov r9d, dword [rbp - 0x48]
call sub.WS2_32.dll_recv
mov esi, eax
lea rcx, [rbp - 0x80]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp byte [rbp - 0x40], 0
je 0x18017ca31
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.18013f7f0
call fcn.18000395b
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x18017ca90
Capabilities:
Get socket status

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov esi, ecx
mov rdi, rdx
mov rbx, r8
mov r14, r9
mov r15, qword [rbp + 0x30]
mov qword [rbp - 0x40], r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov qword [rsp + 0x20], r15
mov ecx, esi
mov dword [rbp - 0x44], ecx
mov rdx, rdi
mov qword [rbp - 0x4c], rdx
mov r8, rbx
mov qword [rbp - 0x54], r8
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.180006be0
mov ecx, dword [rbp - 0x44]
mov rdx, qword [rbp - 0x4c]
mov r8, qword [rbp - 0x54]
mov r9, qword [rbp - 0x5c]
call sub.WS2_32.dll_select
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.18000395b
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x18017cb40
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov edi, r8d
mov ebx, r9d
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.18013f760
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r14
mov qword [rbp - 0x50], rcx
mov rdx, rsi
mov qword [rbp - 0x58], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9d, ebx
mov dword [rbp - 0x48], r9d
lea rcx, [rbp - 0x80]
call fcn.180006be0
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8d, dword [rbp - 0x44]
mov r9d, dword [rbp - 0x48]
call sub.WS2_32.dll_send
mov esi, eax
lea rcx, [rbp - 0x80]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp byte [rbp - 0x40], 0
je 0x18017cbe1
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.18013f7f0
call fcn.18000395b
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x18017cc40
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rcx
mov edi, edx
mov ebx, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15d, dword [rbp + 0x30]
mov dword [rsp + 0x20], r15d
mov rcx, rsi
mov qword [rbp - 0x50], rcx
mov edx, edi
mov dword [rbp - 0x44], edx
mov r8d, ebx
mov dword [rbp - 0x48], r8d
mov r9, r14
mov qword [rbp - 0x58], r9
lea rcx, [rbp - 0x80]
call fcn.180006be0
mov rcx, qword [rbp - 0x50]
mov edx, dword [rbp - 0x44]
mov r8d, dword [rbp - 0x48]
mov r9, qword [rbp - 0x58]
call sub.WS2_32.dll_setsockopt
mov esi, eax
lea rcx, [rbp - 0x80]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.18000395b
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x18017ccf0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov edi, edx
mov ebx, r8d
mov rsi, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.18013f760
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
mov qword [rbp - 0x48], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15d, dword [rbp + 0x30]
mov dword [rsp + 0x20], r15d
mov rcx, r14
mov qword [rbp - 0x58], rcx
mov edx, edi
mov dword [rbp - 0x4c], edx
mov r8d, ebx
mov dword [rbp - 0x50], r8d
mov r9, rsi
mov qword [rbp - 0x60], r9
lea rcx, [rbp - 0x88]
call fcn.180006be0
mov rcx, qword [rbp - 0x58]
mov edx, dword [rbp - 0x4c]
mov r8d, dword [rbp - 0x50]
mov r9, qword [rbp - 0x60]
call sub.WS2_32.dll_setsockopt
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x18017cdac
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.18013f7f0
call fcn.18000395b
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x18017d150
Capabilities:
Connect socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.18013f760
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
test rsi, rsi
jne 0x18017d1a0
xor r15d, r15d
jmp 0x18017d1a4
lea r15, [rsi + 0x10]
mov qword [rbp - 0x48], r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rsi, qword [rbp + 0x30]
mov qword [rsp + 0x20], rsi
mov rsi, qword [rbp + 0x38]
mov qword [rsp + 0x28], rsi
mov rsi, qword [rbp + 0x40]
mov qword [rsp + 0x30], rsi
mov rcx, r14
mov qword [rbp - 0x54], rcx
mov rdx, r15
mov qword [rbp - 0x5c], rdx
mov r8d, edi
mov dword [rbp - 0x4c], r8d
mov r9, rbx
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.180006be0
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.WS2_32.dll_WSAConnect
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.180006c30
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x18017d233
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.18013f7f0
call fcn.18000395b
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret