joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009c460
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x68
movdqa xmm4, xmmword [0x140225c80]
lea r9, [rdx + r8]
movdqa xmm5, xmmword [0x140225c90]
movdqa xmm0, xmmword [rcx]
movdqa xmm1, xmmword [rcx + 0x10]
movdqa xmm2, xmmword [rcx + 0x20]
movdqa xmm3, xmmword [rcx + 0x30]
movaps xmmword [rsp + 0x50], xmm6
movdqa xmm6, xmmword [0x140225ca0]
movaps xmmword [rsp + 0x40], xmm7
movdqa xmm7, xmmword [0x140225cb0]
movaps xmmword [rsp + 0x30], xmm8
movdqa xmm8, xmmword [0x140225cc0]
movaps xmmword [rsp + 0x20], xmm9
movdqa xmm9, xmmword [0x140225cd0]
movaps xmmword [rsp + 0x10], xmm10
movdqa xmm10, xmmword [0x140225ce0]
movaps xmmword [rsp], xmm11
movdqa xmm11, xmmword [0x140225cf0]
cmp r8, r9
jae 0x14009c569
lea rcx, [r8 + 0x20]
nop dword [rax]
aesdec xmm0, xmm4
aesenc xmm1, xmm4
aesdec xmm2, xmm8
aesenc xmm3, xmm8
aesdec xmm0, xmm5
aesenc xmm1, xmm5
aesdec xmm2, xmm9
aesenc xmm3, xmm9
aesdec xmm0, xmm6
aesenc xmm1, xmm6
aesdec xmm0, xmm7
movdqa xmmword [rcx - 0x20], xmm0
lea rcx, [rcx + 0x40]
aesdec xmm2, xmm10
aesenc xmm1, xmm7
movdqa xmmword [rcx - 0x50], xmm1
lea rax, [rcx - 0x20]
aesenc xmm3, xmm10
aesdec xmm2, xmm11
movdqa xmmword [rcx - 0x40], xmm2
aesenc xmm3, xmm11
movdqa xmmword [rcx - 0x30], xmm3
cmp rax, r9
jb 0x14009c4f0
movaps xmm6, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x40]
movaps xmm8, xmmword [rsp + 0x30]
movaps xmm9, xmmword [rsp + 0x20]
movaps xmm10, xmmword [rsp + 0x10]
movaps xmm11, xmmword [rsp]
add rsp, 0x68
ret

Function at 0x14009dbc0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
mov r8, qword [rcx + 0x11f0]
mov rax, rdx
mov edx, dword [0x140225bf0]
mov rcx, rax
jmp fcn.14009afa0

Function at 0x14009e690
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x140225bf4]
lea r8, [rcx + 0x40]
mov r9, rdx
mov rbx, rcx
mov rcx, r9
lea edx, [rax*8 + 0x80]
call fcn.14009c460
mov rcx, rbx
call fcn.140186750
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x14009e1c0
Function at 0x1400a4ec0
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x1401e7270]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
xor edi, edi
lea rcx, [0x140229b08]
call fcn.1400b6e00
mov eax, 2
xchg dword [0x140229ac0], eax
cmp eax, 1
je 0x1400a4f0a
lea rcx, [0x140229b08]
call fcn.1400b6dd0
xor eax, eax
jmp 0x1400a4ff4
xor r9d, r9d
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x30], rdi
lea rcx, str.conout_
mov qword [rsp + 0xa0], rbp
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
lea r8d, [r9 + 3]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a4f72
lea rdx, [0x140229ac8]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1400a4f72
lock or dword [0x140229ac4], 1
mov r14d, 1
mov dword [rsp + 0x50], 0xd0001
mov ebp, reloc.WS2_32.dll_listen
mov word [rsp + 0x48], r14w
mov ecx, ebp
mov dword [rsp + 0x4c], r14d
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rsi + 0x110]
lea r9, [rsp + 0x40]
mov r8d, r14d
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], bp
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.DLL_WriteConsoleInputW]
mov r14, qword [rsp + 0x70]
mov rbp, qword [rsp + 0xa0]
test eax, eax
jne 0x1400a4fdb
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x1400a4fea
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x98]
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400d5050
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x1400a65a0
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1401e7270]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xb8]
mov esi, r9d
movzx ebp, r8b
mov edi, edx
mov rbx, rcx
cmp dword [r14], 0
je 0x1400a65dc
or eax, 0xffffffff
jmp 0x1400a6703
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov qword [rsp + 0x50], r15
movzx r15d, byte [rsp + 0xb0]
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1400a6611
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [r14], eax
movsx eax, word [rsp + 0x34]
mov edx, edi
movsx r8d, word [rsp + 0x38]
movsx r11d, word [rsp + 0x28]
sub r8d, eax
mov eax, dword [section..data]
inc r8d
movsx r9d, word [rsp + 0x2e]
mov dword [0x1401e7008], r11d
mov dword [0x1401e7004], r8d
cmp eax, 0xffffffff
jne 0x1400a664e
mov eax, r9d
jmp 0x1400a665b
mov ecx, r9d
sub ecx, r8d
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx r10d, word [rsp + 0x2a]
lea ecx, [r8 + rax]
cmp ecx, r10d
jle 0x1400a6670
mov eax, r10d
sub eax, r8d
test eax, eax
lea ecx, [r9 + rsi]
cmovs eax, r12d
mov dword [section..data], eax
test r15b, r15b
jne 0x1400a6688
lea ecx, [rax + rsi]
cmp ecx, eax
jge 0x1400a6690
mov ecx, eax
jmp 0x1400a669d
lea r9d, [r8 + rax]
cmp ecx, r9d
jl 0x1400a669d
lea ecx, [r9 - 1]
test bpl, bpl
je 0x1400a66a9
movsx edx, word [rsp + 0x2c]
add edx, edi
test edx, edx
jns 0x1400a66b2
mov edx, r12d
jmp 0x1400a66bb
cmp edx, r11d
jl 0x1400a66bb
lea edx, [r11 - 1]
mov word [rsp + 0x22], cx
mov rcx, qword [rbx + 0x110]
mov word [rsp + 0x20], dx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_SetConsoleCursorPosition]
test eax, eax
jne 0x1400a66f7
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
je 0x1400a65f2
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [r14], eax
or eax, 0xffffffff
jmp 0x1400a66f9
xor eax, eax
mov r12, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400d5050
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a6aa0
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401e7270]
xor rax, rsp
mov qword [rsp + 0x40], rax
and dword [rcx + 0x58], 0xffffefff
mov rbx, rcx
sub dword [rcx + 0x7c], 1
mov eax, dword [rcx + 0x58]
jne 0x1400a6ae1
test al, 1
jne 0x1400a6ae1
test al, 4
je 0x1400a6ae1
and eax, 0xfffffffb
mov dword [rcx + 0x58], eax
test al, 8
je 0x1400a6ae1
mov rax, qword [rcx + 8]
dec dword [rax + 8]
mov eax, dword [rcx + 0x58]
bt eax, 0x10
jae 0x1400a6b58
bt eax, 0x19
jae 0x1400a6b42
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x20]
xor eax, eax
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
mov eax, select
mov word [rsp + 0x28], ax
lea r8d, [rax - 0xf]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleInputW]
test eax, eax
jne 0x1400a6b58
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400d5050
add rsp, 0x50
pop rbx
ret
bt eax, 0x15
jb 0x1400a6b58
call fcn.1400a4ec0
test eax, eax
jne 0x1400a6b5a
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400d5050
add rsp, 0x50
pop rbx
ret
Function at 0x1400a6b70
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1401e7270]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx ebp, word [reloc.WS2_32.dll_getsockopt]
xor r14d, r14d
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x30], r14d
cmp dword [rdx], r14d
jne 0x1400a6bc2
mov rcx, qword [rcx + 0x110]
movzx edx, bp
call qword [sym.imp.KERNEL32.DLL_SetConsoleTextAttribute]
test eax, eax
jne 0x1400a6bca
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
or eax, 0xffffffff
jmp 0x1400a6c7c
mov rcx, qword [rdi + 0x110]
mov qword [rsp + 0x90], rbx
mov ebx, dword [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.DLL_SetConsoleCursorPosition]
test eax, eax
je 0x1400a6c69
nop dword [rax]
mov rcx, qword [rdi + 0x110]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1400a6c69
movsx eax, word [rsp + 0x38]
mov edx, 0x20
movsx r8d, word [rsp + 0x3a]
mov r9d, ebx
mov rcx, qword [rdi + 0x110]
imul r8d, eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_FillConsoleOutputCharacterW]
test eax, eax
je 0x1400a6c5e
mov r8d, dword [rsp + 0x34]
lea rax, [rsp + 0x34]
mov rcx, qword [rdi + 0x110]
mov r9d, ebx
movzx edx, bp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_FillConsoleOutputAttribute]
test eax, eax
jne 0x1400a6c9a
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
je 0x1400a6bf0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi], eax
or eax, 0xffffffff
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400d5050
mov rbp, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
movsx eax, word [rsp + 0x38]
mov ecx, r14d
movsx edx, word [rsp + 0x48]
movsx r8d, word [rsp + 0x3a]
mov dword [0x1401e7008], eax
movsx eax, word [rsp + 0x44]
sub edx, eax
movsx eax, word [rsp + 0x3e]
inc edx
sub eax, edx
mov dword [0x1401e7004], edx
inc eax
test eax, eax
cmovg ecx, eax
lea eax, [rdx + rcx]
cmp eax, r8d
jle 0x1400a6cdd
mov ecx, r8d
sub ecx, edx
test ecx, ecx
lea rdx, [0x140229b18]
cmovs ecx, r14d
mov dword [section..data], ecx
mov rcx, qword [rdi + 0x110]
call qword [sym.imp.KERNEL32.DLL_SetConsoleCursorInfo]
test eax, eax
je 0x1400a6c69
xor eax, eax
jmp 0x1400a6c74
Function at 0x1400a8650
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x100], 0
mov ebx, r8d
mov rdi, rdx
jbe 0x1400a52e9
mov eax, 0xfffff008
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r9, [rsp + 0x30]
call fcn.1400a74f0
test eax, eax
je 0x1400a530a
mov ecx, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400b6650
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400a86b0
mov eax, dword [rcx + 0x58]
test al, 1
je 0x1400a865d
mov eax, 0xfffff00d
ret
bt eax, 0xf
jb 0x1400a8669
mov eax, 0xfffff031
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x1400a868b
cmp eax, 0xc
je 0x1400a8686
cmp eax, 0xe
je 0x1400a8681
mov eax, 0xfffff02a
ret
jmp 0x1400a52c0
jmp 0x1400aff70
mov eax, 0xfffff008
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r9d, r9d
mov rdi, rcx
mov r10d, r9d
mov ebx, r9d
mov r11d, r9d
cmp edx, 2
jb 0x1400a86f7
lea eax, [rdx - 2]
mov r8, rcx
shr eax, 1
inc eax
mov ecx, eax
lea r11d, [rax + rax]
nop
mov eax, dword [r8]
lea r8, [r8 + 0x20]
add r9, rax
mov eax, dword [r8 - 0x10]
add r10, rax
sub rcx, 1
jne 0x1400a86e0
cmp r11d, edx
jae 0x1400a8705
mov eax, r11d
add rax, rax
mov ebx, dword [rdi + rax*8]
mov rdi, qword [rsp + 0x10]
lea rax, [r10 + r9]
add rax, rbx
mov rbx, qword [rsp + 8]
ret
sub rsp, 0x48
cmp dword [rcx + 0x100], 0
jbe 0x1400aff87
mov eax, 0xfffff008
add rsp, 0x48
ret
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x50]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1400affc0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b6650
add rsp, 0x48
ret
mov eax, dword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x1400aaf00
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r14, rdx
mov rdi, rcx
mov eax, dword [rcx + 0x150]
mov dword [rsp + 0xb0], eax
mov eax, dword [rdx]
and al, 3
cmp al, 1
jne 0x1400aaf57
mov dword [rcx + 0x14c], 5
mov ecx, 5
call fcn.1400b6650
movsxd rdx, eax
mov qword [rdi + 0x88], rdx
jmp 0x1400ab128
cmp byte [rdx + 4], 0
je 0x1400aaf80
mov dword [rcx + 0x14c], 1
mov ecx, 1
call fcn.1400b6650
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x1400ab128
mov rcx, qword [rcx + 0x180]
cmp rcx, 0xffffffffffffffff
jne 0x1400aaf91
mov rcx, qword [rdx + 0x18]
mov r9, qword [rdx + 0x10]
xor r13d, r13d
cmp rcx, r9
jl 0x1400aafa9
mov qword [rdi + 0x88], r13
jmp 0x1400ab128
mov rsi, r13
mov eax, dword [rdi + 0x170]
test eax, eax
je 0x1400aafcf
mov rdx, qword [rdi + 0x178]
mov r8d, eax
mov eax, dword [rdx]
add rsi, rax
lea rdx, [rdx + 0x10]
sub r8, 1
jne 0x1400aafc0
sub r9, rcx
cmp rsi, r9
cmovge rsi, r9
test rsi, rsi
je 0x1400aaf9d
lea rbx, [rsi + rcx]
mov r8d, dword [0x140229d38]
mov rax, rcx
cqo
idiv r8
mov rax, rdx
mov qword [rsp + 0x50], rdx
sub rcx, rdx
add rax, rsi
mov r8, rcx
shr r8, 0x20
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov edx, 4
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov rdx, rax
mov qword [rsp + 0xb8], rax
test rax, rax
jne 0x1400ab04f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
call fcn.1400b6650
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x1400ab128
mov r15, r13
mov r12d, r13d
nop word [rax + rax]
cmp r12d, dword [rdi + 0x170]
jae 0x1400ab0ee
cmp r15, rsi
jae 0x1400ab0ee
mov ecx, r12d
shl rcx, 4
add rcx, qword [rdi + 0x178]
mov eax, dword [rcx]
mov r14, rsi
sub r14, r15
cmp rax, r14
cmovb r14, rax
mov dword [rsp + 0x30], r13d
add rdx, r15
add rdx, qword [rsp + 0x50]
mov r8, r14
mov rcx, qword [rcx + 8]
call fcn.1400f5780
nop
add r15, r14
inc r12d
mov rdx, qword [rsp + 0xb8]
jmp 0x1400ab060
mov rcx, rdx
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
test eax, eax
je 0x1400ab02d
cmp qword [rdi + 0x180], 0xffffffffffffffff
jne 0x1400ab121
mov rdx, qword [rsp + 0xa8]
mov qword [rdx + 0x18], rbx
mov ecx, dword [rsp + 0xb0]
call fcn.1400ad020
mov qword [rdi + 0x88], rsi
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400ad730
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [rsp + 0x48]
lea rcx, [0x140229d10]
mov dword [0x140229d38], eax
call fcn.1400b6d30
test eax, eax
jne 0x1400ad78d
lea rax, [0x1404b1d48]
mov edx, 0x100
lea rcx, [0x140229d40]
xor r8d, r8d
nop
mov qword [rax], rcx
add rcx, 0x2880
mov qword [rax - 8], r8
lea rax, [rax + 0x10]
sub rdx, 1
jne 0x1400ad770
add rsp, 0x58
ret
lea rdx, str.uv_mutex_init
mov ecx, eax
call fcn.1400b65a0
int3
Function at 0x1400ae680
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rsi, rcx
test rcx, rcx
jne 0x1400ae6ba
xor ebp, ebp
test rdx, rdx
je 0x1400ae6a6
mov qword [rdx], rbp
mov qword [r8], rbp
xor eax, eax
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
or rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x1400ae6d0
mov rbx, rdi
nop dword [rax]
test rbx, rbx
je 0x1400ae6fe
movzx eax, word [rcx + rbx*2 - 2]
dec rbx
cmp ax, 0x5c
je 0x1400ae6f9
cmp ax, 0x2f
jne 0x1400ae6e0
test rbx, rbx
jne 0x1400ae757
test r14, r14
je 0x1400ae74a
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x1400ae745
mov ecx, ebx
add rcx, rcx
call fcn.1400a8930
mov qword [r14], rax
test rax, rax
je 0x1400ae7d9
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
test eax, eax
jne 0x1400ae74a
mov rcx, qword [r14]
call fcn.1400a8720
xor ebp, ebp
mov qword [r14], rbp
or eax, 0xffffffff
jmp 0x1400ae7c0
mov rcx, rsi
call fcn.14010a0a0
mov qword [r15], rax
jmp 0x1400ae7be
xor ebp, ebp
test r14, r14
je 0x1400ae78a
lea rcx, [rbx*2 + 4]
call fcn.1400a8930
mov qword [r14], rax
test rax, rax
je 0x1400ae7eb
lea r8, [rbx + 1]
mov rdx, rsi
mov rcx, rax
call fcn.140101744
mov rax, qword [r14]
mov word [rax + rbx*2 + 2], bp
sub rdi, rbx
lea r14, [rdi + rdi]
mov rcx, r14
call fcn.1400a8930
mov qword [r15], rax
test rax, rax
je 0x1400ae7fd
lea rdx, [rsi + 2]
mov rcx, rax
lea rdx, [rdx + rbx*2]
lea r8, [rdi - 1]
call fcn.140101744
mov rax, qword [r15]
mov word [r14 + rax - 2], bp
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
lea rdx, str.uv__malloc
mov ecx, select
call fcn.1400b65a0
int3
lea rdx, str.uv__malloc
mov ecx, select
call fcn.1400b65a0
int3
lea rdx, str.uv__malloc
mov ecx, select
call fcn.1400b65a0
int3

Function at 0x1400ae9b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x1400ae9c0
xor eax, eax
add rsp, 0x28
ret
call sub.ADVAPI32.dll_SystemFunction036
xor ecx, ecx
mov edx, 0xfffff01a
test al, al
cmove ecx, edx
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1400afb40
Capabilities:
Resolve dns

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x40]
lea r9, [rcx + 0x48]
mov r8, qword [r9]
mov rbx, rcx
mov rcx, qword [rcx + 0x38]
mov qword [r9], 0
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov ecx, eax
call fcn.1400afac0
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400aff70
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x100], 0
mov ebx, r8d
mov rdi, rdx
jbe 0x1400a52e9
mov eax, 0xfffff008
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r9, [rsp + 0x30]
call fcn.1400a74f0
test eax, eax
je 0x1400a530a
mov ecx, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400b6650
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400a86b0
mov eax, dword [rcx + 0x58]
test al, 1
je 0x1400a865d
mov eax, 0xfffff00d
ret
bt eax, 0xf
jb 0x1400a8669
mov eax, 0xfffff031
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x1400a868b
cmp eax, 0xc
je 0x1400a8686
cmp eax, 0xe
je 0x1400a8681
mov eax, 0xfffff02a
ret
jmp 0x1400a52c0
jmp 0x1400aff70
mov eax, 0xfffff008
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r9d, r9d
mov rdi, rcx
mov r10d, r9d
mov ebx, r9d
mov r11d, r9d
cmp edx, 2
jb 0x1400a86f7
lea eax, [rdx - 2]
mov r8, rcx
shr eax, 1
inc eax
mov ecx, eax
lea r11d, [rax + rax]
nop
mov eax, dword [r8]
lea r8, [r8 + 0x20]
add r9, rax
mov eax, dword [r8 - 0x10]
add r10, rax
sub rcx, 1
jne 0x1400a86e0
cmp r11d, edx
jae 0x1400a8705
mov eax, r11d
add rax, rax
mov ebx, dword [rdi + rax*8]
mov rdi, qword [rsp + 0x10]
lea rax, [r10 + r9]
add rax, rbx
mov rbx, qword [rsp + 8]
ret
sub rsp, 0x48
cmp dword [rcx + 0x100], 0
jbe 0x1400aff87
mov eax, 0xfffff008
add rsp, 0x48
ret
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x50]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1400affc0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b6650
add rsp, 0x48
ret
mov eax, dword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x1400b0000
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rdi, r8
mov rcx, qword [r8 + 0x70]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
jne 0x1400b007d
mov eax, dword [rdx + 0x58]
test al, 0x40
je 0x1400b00f5
and eax, 0xffffffbf
sub dword [rdx + 0x7c], 1
mov dword [rdx + 0x58], eax
jne 0x1400b0052
test al, 1
jne 0x1400b0052
test al, 4
je 0x1400b0052
and eax, 0xfffffffb
mov dword [rdx + 0x58], eax
test al, 8
je 0x1400b0052
mov rax, qword [rdx + 8]
dec dword [rax + 8]
cmp qword [rdx + 0x100], 0
je 0x1400b00f5
mov ecx, dword [r8 + 0x40]
call fcn.1400b8290
mov ecx, eax
call fcn.1400b6650
mov edx, eax
mov rcx, rbx
call qword [rbx + 0x100]
jmp 0x1400b00f5
cmp dword [r8 + 0x40], 0
jl 0x1400b00d2
lea r9, [rdx + 0x110]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400b00d2
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x1400b00f5
xor edx, edx
mov rcx, rbx
call rax
jmp 0x1400b00f5
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
test byte [rbx + 0x58], 0x40
je 0x1400b00f5
mov rdx, rdi
mov rcx, rbx
call fcn.1400b0c60
dec dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
test al, 1
je 0x1400b011b
cmp dword [rbx + 0x78], 0
jne 0x1400b011b
test al, 0x20
jne 0x1400b011b
or eax, 0x20
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400b0130
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
sub dword [rdx + 0x7c], 1
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
jne 0x1400b016f
mov eax, dword [rdx + 0x58]
test al, 1
jne 0x1400b016f
test al, 4
je 0x1400b016f
and eax, 0xfffffffb
mov dword [rdx + 0x58], eax
test al, 8
je 0x1400b016f
mov rax, qword [rdx + 8]
dec dword [rax + 8]
dec dword [rcx + 0x20]
xor esi, esi
mov ecx, dword [r8 + 0x40]
test ecx, ecx
js 0x1400b01c3
test byte [rdx + 0x58], 1
je 0x1400b0189
mov esi, 0x3e3
jmp 0x1400b01ca
mov rcx, qword [rbx + 0x110]
xor r9d, r9d
mov edx, 0xffff
mov dword [rsp + 0x20], esi
mov r8d, 0x7010
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400b01bb
or dword [rbx + 0x58], 0xc080
inc dword [rdi + 0xa8]
jmp 0x1400b01ca
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400b01c8
call fcn.1400b8290
mov esi, eax
mov ecx, esi
call fcn.1400b6650
mov edx, eax
mov rcx, rbp
call qword [rbp + reloc.WS2_32.dll_WSASetLastError]
dec dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
test al, 1
je 0x1400b01ff
cmp dword [rbx + 0x78], 0
jne 0x1400b01ff
test al, 0x20
jne 0x1400b01ff
or eax, 0x20
mov dword [rbx + 0x58], eax
mov rax, qword [rdi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rdi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400b0be0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov edi, edx
mov rcx, qword [rcx + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x1400b0c2b
mov dword [rsp + 0x40], edx
lea r9, [rsp + 0x40]
mov edx, 6
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400b0c2b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x1400b0c4c
test edi, edi
je 0x1400b0c43
or dword [rbx + 0x58], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
and dword [rbx + 0x58], 0xfeffffff
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret