joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009aa30
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401f4040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ebx, ebx
cmp dword [0x1401fce7c], ebx
jne 0x14009aae6
mov qword [rsp + 0x70], rdi
lea rcx, [rsp + 0x48]
mov edi, 1
mov dword [0x1401fce7c], edi
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
mov dword [0x1401fce80], eax
test eax, eax
je 0x14009aa99
lea rcx, [0x1401fd218]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x48]
divsd xmm0, qword [0x1401d20f8]
jmp 0x14009aad9
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], 0x107b2
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x26], rdi
mov word [rsp + 0x2e], bx
call qword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x30]
movsd xmm0, qword [0x1401d20a8]
shl rcx, 0x20
or rcx, rax
mov qword [0x1401fd218], rcx
mov rdi, qword [rsp + 0x70]
movsd qword [0x1401fd238], xmm0
cmp dword [0x1401fce80], ebx
je 0x14009ab00
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
jmp 0x14009ab1f
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
shl rax, 0x20
or rax, rcx
mov qword [rsp + 0x40], rax
sub rax, qword [0x1401fd218]
xorps xmm0, xmm0
movabs r9, 0x431bde82d7b634db
cvtsi2sd xmm0, rax
mov rax, r9
divsd xmm0, qword [0x1401fd238]
cvttsd2si rcx, xmm0
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0xf4240
sub ecx, eax
imul eax, ecx, 0x3e8
movsxd r8, eax
movsxd rax, edx
imul rcx, rax, 0x3b9aca00
add r8, rcx
lock xadd qword [0x1401fce88], rbx
test rbx, rbx
jne 0x14009ab9e
lea rcx, [r8 - 0xf4240]
xor eax, eax
lock cmpxchg qword [0x1401fce88], rcx
mov rbx, rax
cmove rbx, rcx
sub r8, rbx
mov rax, r9
mul r8
shr rdx, 0x12
mov eax, edx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14012ada0
add rsp, 0x60
pop rbx
ret
Function at 0x14009abc0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1401f4040]
xor rax, rsp
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
lea r9, [rsp + 0x20]
mov rax, rdx
lea r8, [rsp + 0x28]
mov rbx, rcx
xor edi, edi
mov rcx, rax
mov qword [rsp + 0x20], rdi
xor edx, edx
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14009ac1d
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14009ac6a
jmp 0x14009ac64
mov r9, qword [rsp + 0x20]
mov rax, r9
test r9, r9
je 0x14009ac6a
nop word [rax + rax]
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x14009ac58
mov ecx, dword [rax + 4]
cmp ecx, 2
je 0x14009acac
test ecx, ecx
jne 0x14009ac53
cmp qword [rax + 0x10], 0x10
je 0x14009acac
cmp qword [rax + 0x10], 0x1c
jmp 0x14009ac56
cmp ecx, 0x17
je 0x14009ac8a
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14009ac30
mov rcx, r9
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012ada0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
movups xmm0, xmmword [rdx + 8]
mov rcx, r9
movups xmmword [rbx], xmm0
mov rdx, qword [rax + 0x20]
movzx r8d, word [rdx + 0x18]
mov word [rbx + 0x12], r8w
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
jmp 0x14009ac6f
mov eax, dword [rdx + 4]
test eax, eax
jne 0x14009acce
movups xmm0, xmmword [0x14015af18]
mov rcx, r9
movups xmmword [rbx], xmm0
mov word [rbx + 0x12], di
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
jmp 0x14009ac6f
cmp eax, 0xffffffff
jne 0x14009acee
movups xmm0, xmmword [0x14015ae70]
mov rcx, r9
movups xmmword [rbx], xmm0
mov word [rbx + 0x12], di
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
jmp 0x14009ac6f
movups xmm0, xmmword [0x14015ae60]
mov ecx, eax
shr ecx, 8
movups xmmword [rbx], xmm0
mov byte [rbx + 0xd], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rbx + 0xc], al
mov byte [rbx + 0xe], cl
mov rcx, r9
shr eax, 0x18
mov word [rbx + 0xa], 0xffff
mov byte [rbx + 0xf], al
mov word [rbx + 0x12], di
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
jmp 0x14009ac6f
Function at 0x14009f020
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1401f4040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
xor ebp, ebp
test rcx, rcx
je 0x14009f05e
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov qword [rbx + 0x18], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14009f071
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 8], rbp
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14009f087
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov qword [rbx + 0x10], rbp
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov rcx, rbp
mov qword [rsp + 0x40], rcx
mov edx, 7
mov qword [rsp + 0x48], rdx
mov word [rsp + 0x30], bp
mov rsi, rbp
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], sil
jne 0x14009f0b4
test rax, rax
je 0x14009f11e
movsx r9d, byte [rdi + rsi]
cmp rcx, rdx
jae 0x14009f0f0
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 7
cmova rax, qword [rsp + 0x30]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], bp
jmp 0x14009f0fa
lea rcx, [rsp + 0x30]
call fcn.140082f20
inc rsi
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x14009f104
mov rdx, qword [rsp + 0x48]
cmp rsi, rax
jae 0x14009f11e
mov rcx, qword [rsp + 0x40]
jmp 0x14009f0c2
lea rcx, [rsp + 0x30]
cmp rdx, 7
cmova rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbp
mov edx, 0x80000000
mov r9d, 3
mov r8d, 1
call qword [sym.imp.KERNEL32.DLL_CreateFile2]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14009f1d1
mov qword [rsp + 0x50], rbp
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x14009f1d1
mov r9, qword [rsp + 0x50]
mov qword [rbx + 0x10], r9
mov qword [rsp + 0x20], rbp
xor edx, edx
mov r8d, 2
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_CreateFileMappingFromApp]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14009f203
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14009f1a4
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov qword [rbx + 0x18], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14009f1b7
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 8], rbp
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14009f1cd
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov qword [rbx + 0x10], rbp
xor bl, bl
lea rcx, [rsp + 0x30]
call fcn.140082eb0
movzx eax, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012ada0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_MapViewOfFileFromApp]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14009f1a4
mov bl, 1
jmp 0x14009f1d3
Function at 0x14009f230
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
nop word [rax + rax]
mov r9d, edi
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x14009f284
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14009f260
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rdi, qword [rcx + 0x50]
mov eax, 0x7fffffff
cmp r8, rax
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmova rsi, rax
mov rax, qword [rcx + 0x48]
cmp rax, rdi
jae 0x1400a3901
mov rcx, qword [rcx + 0x30]
sub rdi, rax
lea rdx, [rax + rcx]
mov rcx, r14
cmp rsi, rdi
ja 0x1400a38e8
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 8]
call fcn.14009f2b0
test rax, rax
jg 0x1400a3928
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x68], rbp
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rsi, 0x1000
jae 0x1400a39ca
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
test eax, eax
jns 0x1400a3978
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400a3951
mov r15, qword [rsp + 0x20]
test rdi, rdi
jle 0x1400a3996
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rdi, rsi
jg 0x1400a39a8
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8, rsi
mov rdx, r14
mov rcx, rbp
mov rbp, qword [rsp + 0x68]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
jmp 0x14009f230
Function at 0x14009f2b0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1401f4040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x48], rcx
lea edi, [rcx + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14009f31f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14009f2f0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14012ada0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x14009f350
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x1401f4040]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x14009f388
cmp ax, 0x17
jne 0x14009f3fd
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14009f3fd
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14009f3e2
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400069b0
mov al, 1
jmp 0x14009f3ff
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14012ada0
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a3740
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1401f4040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rdi, rcx
mov r8, qword [rcx + 0x28]
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
nop dword [rax]
lea rax, [rsp + 0x38]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x1400a37bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400a3790
test ebx, ebx
jle 0x1400a3861
mov rdi, qword [rdi + 8]
xor eax, eax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 1
nop dword [rax]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
lea ecx, [rdi + 1]
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x1400a380f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400a37e0
test ebx, ebx
je 0x1400a385d
jns 0x1400a3820
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
je 0x1400a3861
lea rsi, [rsp + 0x30]
nop word [rax + rax]
mov r9d, 2
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x1400a3859
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400a3830
test ebx, ebx
jle 0x1400a3861
mov al, 1
jmp 0x1400a3863
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14012ada0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400a3890
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
nop word [rax + rax]
mov r9d, edi
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x14009f284
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14009f260
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rdi, qword [rcx + 0x50]
mov eax, 0x7fffffff
cmp r8, rax
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmova rsi, rax
mov rax, qword [rcx + 0x48]
cmp rax, rdi
jae 0x1400a3901
mov rcx, qword [rcx + 0x30]
sub rdi, rax
lea rdx, [rax + rcx]
mov rcx, r14
cmp rsi, rdi
ja 0x1400a38e8
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 8]
call fcn.14009f2b0
test rax, rax
jg 0x1400a3928
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x68], rbp
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rsi, 0x1000
jae 0x1400a39ca
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
test eax, eax
jns 0x1400a3978
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400a3951
mov r15, qword [rsp + 0x20]
test rdi, rdi
jle 0x1400a3996
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rdi, rsi
jg 0x1400a39a8
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8, rsi
mov rdx, r14
mov rcx, rbp
mov rbp, qword [rsp + 0x68]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
jmp 0x14009f230
Function at 0x1400a39f0
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x1401f4040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov r14, r8
mov r10, qword [rcx + 0x28]
mov r15, rdx
mov r9, qword [rcx + 0x20]
mov rbp, rcx
mov qword [rsp + 0x48], rax
lea edi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x3c], r10d
nop word [rax + rax]
lea rax, [rsp + 0x38]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x1400a3a7d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400a3a50
mov qword [rsp + 0x280], rsi
test ebx, ebx
jle 0x1400a3b5a
mov rdi, qword [rbp + 8]
xor eax, eax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 1
nop word [rax + rax]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
lea ecx, [rdi + 1]
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x1400a3adf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400a3ab0
test ebx, ebx
je 0x1400a3b2d
jns 0x1400a3af0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
je 0x1400a3b5a
lea rsi, [rsp + 0x30]
nop word [rax + rax]
mov r9d, 2
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x1400a3b29
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400a3b00
test ebx, ebx
jle 0x1400a3b5a
mov rdi, qword [rbp + 8]
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x1400a3b55
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400a3b31
mov rax, rbx
jmp 0x1400a3b61
mov rax, 0xffffffffffffffff
mov rsi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14012ada0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1401f4040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400a3c79
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.14009f350
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14012ada0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x1400aada0
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
push rbp
push rsi
push r12
push r13
push r14
push r15
lea rbp, [r11 - 0x248]
sub rsp, 0x318
mov rax, qword [0x1401f4040]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rax, qword [rcx + 0x78]
mov rsi, rdx
mov r15, qword [rcx + 0x58]
mov r13, rcx
mov r14, qword [rcx + 0x50]
xor r12b, r12b
mov qword [rbp - 0x20], rax
mov rax, qword [rcx + 0x70]
mov qword [rbp - 0x28], rax
mov rax, qword [rcx + 0x68]
mov qword [rbp - 0x30], rax
mov rax, qword [rcx + 0x60]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x30]
movups xmm0, xmmword [rsp + 0x48]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x20]
movups xmm1, xmmword [rsp + 0x58]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x70], rax
mov rax, qword [rcx + 0x48]
movaps xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [rsp + 0x68]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x40], rdx
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x70], xmm1
cmp rax, 0xffffffffffffffff
je 0x1400aaf7a
mov qword [r11 + 0x18], rbx
mov qword [r11 - 0x38], rdi
nop dword [rax]
test r14, r14
je 0x1400aaf6a
lea rcx, [rsp + 0x30]
call fcn.1400048a0
mov rbx, qword [rsp + 0x30]
nop dword [rax + rax]
mov qword [rbp - 8], rsi
mov dword [rbp - 0x10], 1
mov dword [rbp - 0x48], 0
mov dword [rbp - 0x44], 0x2710
nop dword [rax]
lea rax, [rbp - 0x48]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x10]
lea ecx, [rsi + 1]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x1400aaee0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400aaeb0
jmp 0x1400aaf6a
jne 0x1400aaf33
lea rcx, [rsp + 0x38]
call fcn.1400048a0
mov rcx, qword [rsp + 0x38]
movabs rax, 0x431bde82d7b634db
sub rcx, rbx
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, r15, 0x3e8
cmp rdx, rax
jg 0x1400aaf6a
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 1
call fcn.1400e4630
jmp 0x1400aae90
cmp r14, 1
mov byte [rbp - 0x50], 0
lea r8, [rbp - 0x50]
sete dl
lea rcx, [rbp - 0x80]
call fcn.1400e6990
movzx r12d, al
test al, al
je 0x1400aaf6a
cmp byte [rbp - 0x50], 0
jne 0x1400aaf6a
mov rdx, qword [r13 + 0x48]
dec r14
cmp rdx, 0xffffffffffffffff
jne 0x1400aae70
mov rbx, qword [rsp + 0x360]
mov rdi, qword [rsp + 0x310]
mov edx, 2
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
movzx eax, r12b
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14012ada0
add rsp, 0x318
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x1400e2f10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400e2f71
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400e2f30
mov ecx, dword [r9]
jmp 0x1400e305b
cmp ecx, 0x4e0
jb 0x1400e305b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400e2f90
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400e2fe0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret