joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f2a0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1d0
mov rsi, r8
mov ebx, edx
mov rdi, rcx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
mov r14, qword [0x1403a1780]
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
cmp byte [0x1403a1788], 0
jne 0x14001f314
lea rdx, [rsp + 0x30]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14001f30d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.Unable_to_initialize_Winsock:__d_n
mov edx, eax
call fcn.140001240
jmp 0x14001f314
mov byte [0x1403a1788], 1
mov rcx, r14
call fcn.1400a1310
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
mov ecx, ebx
call fcn.14001e950
cwde
mov dword [rsp + 0x34], eax
movabs rax, 0x600000001
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x400
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14001f3bc
mov dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14001f3bc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x18
call fcn.140266260
mov rdi, rax
mov rcx, rax
call fcn.1400f5a40
mov qword [rsi], rdi
xor esi, esi
jmp 0x14001f4a9
mov r12, qword [rsp + 0x28]
xor edi, edi
test r12, r12
je 0x14001f3eb
mov rax, r12
jmp 0x14001f3dc
inc rdi
mov rax, qword [rax + 0x28]
test rax, rax
je 0x14001f3eb
mov ecx, dword [rax + 4]
cmp ecx, 0x17
je 0x14001f3d0
cmp ecx, 2
je 0x14001f3d0
jmp 0x14001f3d3
mov ecx, reloc.WS2_32.dll_recv
call fcn.140266260
mov rsi, rax
mov qword [rax], rdi
mov rax, rdi
shr rax, 0x3d
shl rdi, 3
xor ebx, ebx
neg rax
mov ecx, 0
sbb rcx, rcx
or rcx, rdi
call fcn.140266008
mov qword [rsi + 8], rax
test r12, r12
je 0x14001f4a0
mov rdi, rax
xor r13d, r13d
jmp 0x14001f460
mov r15, rbx
add r15, 0x48
mov rcx, r14
xor edx, edx
call fcn.14001e6f0
mov rcx, r15
mov rdx, r14
mov r8, rax
call fcn.1402689f0
mov qword [rdi + r13*8], rbx
inc r13
mov r12, qword [r12 + 0x28]
test r12, r12
je 0x14001f49b
mov eax, dword [r12 + 4]
cmp eax, 0x17
je 0x14001f46f
cmp eax, 2
jne 0x14001f456
mov ecx, 0xc8
call fcn.140266260
mov rbx, rax
mov r14, qword [r12 + 0x20]
mov rcx, r14
mov rdx, rax
mov r8d, 0x41
call fcn.14001ee60
test al, al
je 0x14001f430
mov byte [rbx], 0
jmp 0x14001f430
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.140265fe0
mov rax, rsi
add rsp, 0x1d0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14001f4d0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
xor edx, edx
call fcn.14001e6f0
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, r14
mov edx, eax
mov r8, rbx
mov r9d, edi
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov edi, eax
test eax, eax
je 0x14001f542
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x18
call fcn.140266260
mov rbx, rax
mov rcx, rax
call fcn.1400f5a40
mov qword [rsi], rbx
test edi, edi
sete al
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14001fa00
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, dl
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx + 0xa0]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140265fe0
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x14001fae0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, r8b
mov dword [rsp + 0x34], eax
xor eax, eax
test rdx, rdx
mov edx, 0x29
cmove edx, eax
mov rcx, qword [rcx + 0xa0]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, ntohs
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140265fe0
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x14001fbd0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], r8d
xor eax, eax
test rdx, rdx
mov edx, 0x29
cmove edx, eax
mov rcx, qword [rcx + 0xa0]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0xa
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140265fe0
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x14001fca0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, dl
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx + 0xa0]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x20
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140265fe0
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x14001fd00
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
mov eax, dword [rsp + 0x50]
mov rcx, qword [rcx + 0xa0]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete al
add rsp, 0x28
ret

Function at 0x14001fd90
Capabilities:
Set socket configuration

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor eax, eax
cmp word [rdx], 2
mov ebx, 0x29
cmove ebx, eax
mov dword [rsp + 0x28], r9d
lea r14, [rsp + 0x30]
mov rcx, rdx
xor edx, edx
call fcn.14001e6f0
mov rcx, r14
mov rdx, rsi
mov r8, rax
call fcn.1402689f0
mov rcx, qword [rdi + 0xa0]
mov dword [rsp + 0x20], 0x88
lea r9, [rsp + 0x28]
mov edx, ebx
mov r8d, 0x29
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140265fe0
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14001fe30
Capabilities:
Set socket configuration

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor eax, eax
cmp word [rdx], 2
mov ebx, 0x29
cmove ebx, eax
mov dword [rsp + 0x28], r9d
lea r14, [rsp + 0x30]
mov rcx, rdx
xor edx, edx
call fcn.14001e6f0
mov rcx, r14
mov rdx, rsi
mov r8, rax
call fcn.1402689f0
mov rcx, qword [rdi + 0xa0]
mov dword [rsp + 0x20], 0x88
lea r9, [rsp + 0x28]
mov edx, ebx
mov r8d, 0x2a
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140265fe0
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140020030
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx ecx, word [rcx]
mov edx, 1
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x140020113
mov rdi, rax
mov dword [rsp + 0x3c], 0xa0001
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140020131
mov ecx, 0xe0
call fcn.140266260
mov rsi, rax
mov rcx, rax
mov rdx, rdi
call fcn.14000ddf0
mov qword [rsi + 0xa0], rdi
mov qword [rsi + 0xa8], 0
mov dword [rsi + 0xb0], reloc.WS2_32.dll_recv
mov qword [rsi + 0xb8], 0
mov byte [rsi + 0xc0], 1
lea rax, [0x14029fc40]
mov qword [rsi], rax
lea rax, [0x14029fca0]
mov qword [rsi + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rsi + 0xc8], xmm0
mov word [rsi + 0xd8], 0
mov rcx, rsi
call fcn.14000f520
mov dword [rsi + 0x50], 3
jmp 0x14002011a
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140265fe0
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rax, str..._.._runtime_bin_socket_win.cc
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], reloc.WS2_32.dll_gethostname
lea rdx, str.Failed_setting_SO_LINGER_on_socket
lea rcx, [rsp + 0x28]
call fcn.1400235e0
int3
Function at 0x1400203a0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebp, r9d
mov r14d, r8d
mov r15d, edx
mov rdi, rcx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x30], rax
movzx ecx, word [rcx]
mov edx, 2
mov r8d, send
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, 0xffffffffffffffff
cmp rax, 0xffffffffffffffff
je 0x140020548
mov rsi, rax
test r15b, r15b
je 0x140020426
mov dword [rsp + 0x2c], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14002052f
test r14b, r14b
je 0x140020444
lea rcx, str.Dart_Socket_ERROR:__s:_d:__reusePort__not_supported_for_Windows.
lea rdx, str..._.._runtime_bin_socket_win.cc
mov r8d, 0xc2
call fcn.140001240
mov dword [rsp + 0x2c], ebp
xor eax, eax
cmp word [rdi], 2
mov edx, 0x29
cmove edx, eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rsi
mov r8d, 0xa
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14002049b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, 0xffffffffffffffff
jmp 0x140020548
mov rcx, rdi
xor edx, edx
call fcn.14001e6f0
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140020476
mov ecx, 0xc8
call fcn.140266260
mov rbx, rax
mov rcx, rax
mov rdx, rsi
call fcn.14000ddf0
mov qword [rbx + 0xa0], rsi
mov qword [rbx + 0xa8], 0
mov dword [rbx + 0xb0], reloc.WS2_32.dll_recv
mov qword [rbx + 0xb8], 0
mov byte [rbx + 0xc0], 1
lea rax, [0x1402a1230]
mov qword [rbx], rax
lea rax, [0x1402a1290]
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x50], 5
call fcn.14000dc60
mov r8, qword [rbx]
mov rcx, rbx
mov rdx, rax
call qword [r8 + gethostname]
jmp 0x140020548
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140265fe0
mov rax, rbx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140020570
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx ecx, word [rcx]
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x14002075a
mov rsi, rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140020741
cmp word [r14], 0x17
jne 0x140020615
movzx eax, bl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov rcx, rsi
mov edx, 0x29
mov r8d, 0x1b
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, r14
xor edx, edx
call fcn.14001e6f0
mov rcx, rsi
mov rdx, r14
mov r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140020741
mov ecx, 0xf8
call fcn.140266260
mov r15, rax
mov rcx, rax
mov rdx, rsi
call fcn.14000ddf0
mov qword [r15 + 0xa0], rsi
lea rax, method.icu_68::LanguageBreakEngine.virtual_0
mov qword [r15], rax
lea rax, method.icu_68::LanguageBreakEngine.virtual_0
mov qword [r15 + 0x10], rax
mov qword [r15 + 0xa8], 0
lea rcx, [r15 + 0xb0]
lea rdx, [method.icu_68::SimpleFilteredSentenceBreakIterator.virtual_16]
mov r8d, 4
call fcn.1400237e0
mov byte [r15 + 0xc8], 1
lea rax, [0x1402a12e0]
mov qword [r15], rax
lea rax, [0x1402a1340]
mov qword [r15 + 0x10], rax
mov qword [r15 + 0xd0], 0
mov dword [r15 + 0xd8], 0
xorps xmm0, xmm0
movups xmmword [r15 + 0xe0], xmm0
mov dword [r15 + 0xf0], 0
mov dword [r15 + 0x50], 4
mov rcx, r14
call fcn.14001e9f0
test rax, rax
jne 0x14002077d
mov rcx, r15
call fcn.14001f080
cmp rax, 0xffff
jne 0x14002077d
mov rcx, r14
mov rdx, rdi
mov r8d, ebx
call fcn.140020570
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
lock dec qword [r15 + 8]
jne 0x140020737
mov rax, qword [r15]
mov rcx, r15
mov edx, 1
call qword [rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140020761
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140265fe0
mov rax, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
test rdi, rdi
mov edx, 0x7fffffff
cmovg edx, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14002079b
mov rdi, r15
jmp 0x140020761
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
lock dec qword [r15 + 8]
jne 0x140020752
mov rax, qword [r15]
mov rcx, r15
mov edx, 1
call qword [rax]
jmp 0x140020752
Function at 0x140021750
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rdx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x37]
lea r9, [rsp + 0x30]
mov rcx, rax
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400217ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400217c4
cmp dword [rsp + 0x30], 1
movzx eax, byte [rsp + 0x37]
mov ecx, 0xffffffff
cmove ecx, eax
mov dword [rsi], ecx
mov sil, 1
jmp 0x1400217c6
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140265fe0
mov eax, esi
add rsp, 0x40
pop rsi
ret

Function at 0x140022bf0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
movzx ecx, word [rcx]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
test rax, rax
js 0x140022c4c
mov rcx, rsi
xor edx, edx
call fcn.14001e6f0
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
mov rax, 0xffffffffffffffff
cmove rdi, rax
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140022c60
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x24]
mov edx, 0x4004667f
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
mov eax, dword [rsp + 0x24]
mov rsi, 0xffffffffffffffff
cmovne rsi, rax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140265fe0
mov rax, rsi
add rsp, 0x30
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x24], 0x80
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140022cf6
lea rcx, [rsp + 0x28]
call fcn.14001e9f0
mov rsi, rax
jmp 0x140022cf8
xor esi, esi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140265fe0
mov rax, rsi
add rsp, 0xb0
pop rsi
ret

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

Disassembly:
sub rsp, 0x28
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cdqe
add rsp, 0x28
ret

Function at 0x140022dd0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cdqe
add rsp, 0x28
ret
Function at 0x140024540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x18
xor r10d, r10d
test rdx, rdx
setg al
jle 0x140024713
test r9, r9
jle 0x140024713
lea rax, [rcx + 1]
mov qword [rsp + 8], rax
xor r10d, r10d
lea r11, [0x1402d7bd0]
lea rsi, [0x1402d7cd0]
lea rbx, [0x1402d7cf0]
xor r15d, r15d
mov qword [rsp], r8
movzx ebp, byte [rcx + r15]
test bpl, bpl
js 0x1400245b0
mov r12d, 1
jmp 0x1400246e1
mov eax, ebp
movsx r12, byte [rax + r11]
add rax, 0xffffffffffffff40
cmp rax, 0x3d
ja 0x1400246ba
mov r11, rdx
sub r11, r15
cmp r11, 2
mov eax, 1
cmovl r11, rax
dec r11
cmp r12, 3
mov r13d, 2
cmovge r13, r12
lea rax, [r13 - 2]
cmp r11, rax
jbe 0x14002472e
lea r8, [r13 - 1]
test rax, rax
mov qword [rsp + 0x10], r8
je 0x1400246fe
mov rax, qword [rsp + 8]
lea r14, [rax + r15]
mov rax, r8
and rax, 0xfffffffffffffffe
neg rax
mov r11d, 1
xor edi, edi
nop word cs:[rax + rax]
movzx esi, byte [r14 + r11 - 1]
mov ebx, esi
and bl, 0xc0
cmp bl, 0x80
setne bl
or bl, dil
movzx r8d, byte [r14 + r11]
mov edi, r8d
and dil, 0xc0
cmp dil, 0x80
setne dil
or dil, bl
shl ebp, 0xc
shl esi, 6
add ebp, r8d
add ebp, esi
lea r8, [rax + r11]
add r8, 2
add r11, 2
cmp r8, 1
jne 0x140024630
test byte [rsp + 0x10], 1
je 0x14002469f
lea rax, [rcx + r15]
movzx eax, byte [rax + r11]
mov r8d, eax
and r8b, 0xc0
cmp r8b, 0x80
setne r8b
or dil, r8b
shl ebp, 6
add ebp, eax
mov r8, qword [rsp]
lea r11, [0x1402d7bd0]
lea rsi, [0x1402d7cd0]
lea rbx, [0x1402d7cf0]
jmp 0x1400246c2
mov r13d, 1
xor edi, edi
xor eax, eax
cmp r13, r12
jne 0x14002471d
test dil, 1
jne 0x14002471d
sub ebp, dword [rsi + r12*4]
cmp ebp, 0x10ffff
ja 0x14002471d
cmp dword [rbx + r12*4], ebp
ja 0x14002472e
mov byte [r8 + r10], bpl
add r15, r12
inc r10
cmp r15, rdx
setl al
jge 0x140024713
cmp r10, r9
jl 0x140024590
jmp 0x140024713
mov r11d, 1
xor edi, edi
test byte [rsp + 0x10], 1
jne 0x14002467f
jmp 0x14002469f
cmp r10, r9
setne cl
xor al, 1
or al, cl
add rsp, 0x18
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x14002471d
Function at 0x140024740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
xor r10d, r10d
test rdx, rdx
setg al
jle 0x14002498a
test r9, r9
jle 0x14002498a
lea rax, [r9 - 1]
mov qword [rsp + 0x18], rax
lea rax, [rcx + 1]
mov qword [rsp + 0x10], rax
xor edi, edi
lea r11, [0x1402d7bd0]
lea rbx, [0x1402d7cd0]
lea r15, [0x1402d7cf0]
xor r10d, r10d
mov qword [rsp + 8], r9
mov qword [rsp], r8
nop dword [rax]
movzx ebp, byte [rcx + rdi]
test bpl, bpl
js 0x1400247c0
mov r13d, 1
jmp 0x140024950
movsx r13, byte [rbp + r11]
mov rax, rbp
add rax, 0xffffffffffffff40
cmp rax, 0x3d
ja 0x1400248d8
mov r11, rdx
sub r11, rdi
cmp r11, 2
mov eax, 1
cmovl r11, rax
dec r11
cmp r13, 3
mov esi, 2
cmovge rsi, r13
lea rax, [rsi - 2]
cmp r11, rax
jbe 0x1400249a5
lea r8, [rsi - 1]
test rax, rax
mov qword [rsp + 0x20], r8
je 0x14002496e
mov rax, qword [rsp + 0x10]
lea rbx, [rax + rdi]
mov rax, r8
and rax, 0xfffffffffffffffe
neg rax
mov r15d, 1
xor r12d, r12d
mov r14d, ebp
nop word [rax + rax]
movzx r11d, byte [rbx + r15 - 1]
mov r8d, r11d
and r8b, 0xc0
cmp r8b, 0x80
setne r8b
or r8b, r12b
movzx r9d, byte [rbx + r15]
mov r12d, r9d
and r12b, 0xc0
cmp r12b, 0x80
setne r12b
or r12b, r8b
shl r14d, 0xc
shl r11d, 6
add r14d, r9d
add r14d, r11d
lea r8, [rax + r15]
add r8, 2
add r15, 2
cmp r8, 1
jne 0x140024840
test byte [rsp + 0x20], 1
je 0x1400248b8
lea rax, [rcx + rdi]
movzx eax, byte [rax + r15]
mov r8d, eax
and r8b, 0xc0
cmp r8b, 0x80
setne r8b
or r12b, r8b
shl r14d, 6
add r14d, eax
mov r9, qword [rsp + 8]
mov r8, qword [rsp]
lea r11, [0x1402d7bd0]
lea rbx, [0x1402d7cd0]
lea r15, [0x1402d7cf0]
jmp 0x1400248e3
mov esi, 1
xor r12d, r12d
mov r14d, ebp
xor eax, eax
cmp rsi, r13
jne 0x140024994
test r12b, 1
jne 0x140024994
sub r14d, dword [rbx + r13*4]
cmp r14d, 0x10ffff
ja 0x140024994
cmp dword [r15 + r13*4], r14d
ja 0x1400249a5
cmp bpl, 0xf0
jb 0x14002494d
cmp r10, qword [rsp + 0x18]
je 0x1400249a5
mov eax, r14d
shr eax, 0xa
add eax, 0xffffd7c0
mov word [r8 + r10*2], ax
and r14d, 0x3ff
or r14d, 0xdc00
mov word [r8 + r10*2 + 2], r14w
inc r10
jmp 0x140024955
mov ebp, r14d
mov word [r8 + r10*2], bp
add rdi, r13
inc r10
cmp rdi, rdx
setl al
jge 0x14002498a
cmp r10, r9
jl 0x1400247a0
jmp 0x14002498a
mov r15d, 1
xor r12d, r12d
mov r14d, ebp
test byte [rsp + 0x20], 1
jne 0x140024896
jmp 0x1400248b8
cmp r10, r9
setne cl
xor al, 1
or al, cl
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x140024994

Function at 0x140024f50
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.14027b01c
cdqe
add rsp, 0x28
ret
mov rax, qword [rcx + 0x10]
mov ecx, dword [rax]
jmp 0x140024f50

Function at 0x140025db0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140265fe0
mov rax, rsi
add rsp, 0x60
pop rsi
ret
Function at 0x140025df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
test dl, dl
mov eax, 0x40
mov r9d, 4
cmovne r9d, eax
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140025e3a
mov rbx, rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.140266260
mov rdi, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret