joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ec60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, word [rcx]
cmp ax, word [rdx]
jne 0x14001ed07
cmp eax, 0x17
je 0x14001ed13
cmp eax, 2
je 0x14001ed0b
cmp eax, 1
jne 0x14001ed71
movzx r9d, byte [rcx + 2]
cmp r9b, byte [rdx + 2]
jne 0x14001ed07
xor esi, esi
xor r8d, r8d
nop dword [rax + rax]
mov al, 1
test r9b, r9b
je 0x14001ed67
movzx r9d, byte [rcx + r8 + 3]
cmp r9b, byte [rdx + r8 + 3]
jne 0x14001ed57
test r9b, r9b
je 0x14001ed60
movzx r9d, byte [rcx + r8 + 4]
cmp r9b, byte [rdx + r8 + 4]
jne 0x14001ed57
test r9b, r9b
je 0x14001ed60
cmp r8, 0x69
setae sil
je 0x14001ed6c
movzx r9d, byte [rcx + r8 + 5]
lea rax, [r8 + 3]
cmp r9b, byte [rdx + r8 + 5]
mov r8, rax
je 0x14001ecb0
jmp 0x14001ed59
xor esi, esi
jmp 0x14001ed3e
mov eax, dword [rcx + 4]
cmp eax, dword [rdx + 4]
jmp 0x14001ed3a
movdqu xmm0, xmmword [rcx + 8]
movdqu xmm1, xmmword [rdx + 8]
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
xor r8d, r8d
cmp eax, 0xffff
setne r8b
mov eax, dword [rcx + 0x18]
xor eax, dword [rdx + 0x18]
or eax, r8d
sete sil
and sil, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140265f90
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor esi, esi
xor eax, eax
or sil, al
jmp 0x14001ed3e
xor esi, esi
or sil, al
jmp 0x14001ed3e
or sil, al
jmp 0x14001ed3e
or sil, al
jmp 0x14001ed3e
lea rax, str..._.._runtime_bin_socket_base.cc
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0x64
lea rdx, str.unreachable_code
lea rcx, [rsp + 0x28]
call fcn.140023be0
int3

Function at 0x14001f500
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rbx
sub rsp, 0x1c8
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rsi, qword [0x1403aaa20]
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov bl, 1
cmp byte [0x1403aaa28], 0
jne 0x14001f568
lea rdx, [rsp + 0x28]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete bl
je 0x14001f561
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.Unable_to_initialize_Winsock:__d_n
mov edx, eax
call fcn.140001240
jmp 0x14001f568
mov byte [0x1403aaa28], 1
mov rcx, rsi
call fcn.14009cff0
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140265f90
mov eax, ebx
add rsp, 0x1c8
pop rbx
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x24], 0x80
mov rcx, qword [rcx + 0xa0]
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14001f6bd
lea rcx, [rsp + 0x28]
call fcn.14001ef30
mov rsi, rax
jmp 0x14001f6bf
xor esi, esi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140265f90
mov rax, rsi
add rsp, 0xb0
pop rsi
ret
Function at 0x14001f8b0
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 [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
mov r14, qword [0x1403aaa20]
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
cmp byte [0x1403aaa28], 0
jne 0x14001f924
lea rdx, [rsp + 0x30]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14001f91d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.Unable_to_initialize_Winsock:__d_n
mov edx, eax
call fcn.140001240
jmp 0x14001f924
mov byte [0x1403aaa28], 1
mov rcx, r14
call fcn.14009cff0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
mov ecx, ebx
call fcn.14001ee90
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 0x14001f9cc
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 0x14001f9cc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x18
call fcn.140266210
mov rdi, rax
mov rcx, rax
call fcn.1400ef230
mov qword [rsi], rdi
xor esi, esi
jmp 0x14001fab9
mov r12, qword [rsp + 0x28]
xor edi, edi
test r12, r12
je 0x14001f9fb
mov rax, r12
jmp 0x14001f9ec
inc rdi
mov rax, qword [rax + 0x28]
test rax, rax
je 0x14001f9fb
mov ecx, dword [rax + 4]
cmp ecx, 0x17
je 0x14001f9e0
cmp ecx, 2
je 0x14001f9e0
jmp 0x14001f9e3
mov ecx, reloc.WS2_32.dll_recv
call fcn.140266210
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.140265fb8
mov qword [rsi + 8], rax
test r12, r12
je 0x14001fab0
mov rdi, rax
xor r13d, r13d
jmp 0x14001fa70
mov r15, rbx
add r15, 0x48
mov rcx, r14
xor edx, edx
call fcn.14001ebc0
mov rcx, r15
mov rdx, r14
mov r8, rax
call fcn.140269600
mov qword [rdi + r13*8], rbx
inc r13
mov r12, qword [r12 + 0x28]
test r12, r12
je 0x14001faab
mov eax, dword [r12 + 4]
cmp eax, 0x17
je 0x14001fa7f
cmp eax, 2
jne 0x14001fa66
mov ecx, 0xc8
call fcn.140266210
mov rbx, rax
mov r14, qword [r12 + 0x20]
mov rcx, r14
mov rdx, rax
mov r8d, 0x41
call fcn.14001f440
test al, al
je 0x14001fa40
mov byte [rbx], 0
jmp 0x14001fa40
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.140265f90
mov rax, rsi
add rsp, 0x1d0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14001fae0
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.14001ebc0
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 0x14001fb52
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x18
call fcn.140266210
mov rbx, rax
mov rcx, rax
call fcn.1400ef230
mov qword [rsi], rbx
test edi, edi
sete al
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140020020
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1403a8f38]
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.140265f90
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x140020100
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1403a8f38]
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, listen
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140265f90
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x1400201f0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1403a8f38]
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.140265f90
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x1400202c0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1403a8f38]
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.140265f90
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x140020320
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 0x1400203b0
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 [0x1403a8f38]
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.14001ebc0
mov rcx, r14
mov rdx, rsi
mov r8, rax
call fcn.140269600
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.140265f90
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140020450
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 [0x1403a8f38]
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.14001ebc0
mov rcx, r14
mov rdx, rsi
mov r8, rax
call fcn.140269600
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.140265f90
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140020650
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x1403a8f38]
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 0x14002073e
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 0x14002075c
mov ecx, 0xe8
call fcn.140266210
mov rsi, rax
mov rcx, rax
mov rdx, rdi
call fcn.14000de60
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, [0x1402a7d60]
mov qword [rsi], rax
lea rax, [0x1402a7dc0]
mov qword [rsi + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rsi + 0xc8], xmm0
mov word [rsi + 0xd8], 0
mov qword [rsi + 0xe0], 0
mov rcx, rsi
call fcn.14000f6d0
mov dword [rsi + 0x50], 3
jmp 0x140020745
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140265f90
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.140023be0
int3
Function at 0x1400209d0
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 rbx, rcx
mov rax, qword [0x1403a8f38]
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 rdi, 0xffffffffffffffff
cmp rax, 0xffffffffffffffff
je 0x140020b78
mov rsi, rax
test r15b, r15b
je 0x140020a56
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 0x140020b5f
test r14b, r14b
je 0x140020a74
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 [rbx], 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 0x140020acb
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
jmp 0x140020b78
mov rcx, rbx
xor edx, edx
call fcn.14001ebc0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140020aa6
mov ecx, 0xc8
call fcn.140266210
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14000de60
mov qword [rdi + 0xa0], rsi
mov qword [rdi + 0xa8], 0
mov dword [rdi + 0xb0], reloc.WS2_32.dll_recv
mov qword [rdi + 0xb8], 0
mov byte [rdi + 0xc0], 1
lea rax, [0x1402a9340]
mov qword [rdi], rax
lea rax, [0x1402a93a0]
mov qword [rdi + 0x10], rax
mov dword [rdi + 0x50], 5
call fcn.14000dcd0
mov r8, qword [rdi]
mov rcx, rdi
mov rdx, rax
call qword [r8 + gethostname]
jmp 0x140020b78
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140265f90
mov rax, rdi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140020ba0
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 [0x1403a8f38]
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 0x140020d87
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 0x140020d6e
cmp word [r14], 0x17
jne 0x140020c45
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.14001ebc0
mov rcx, rsi
mov rdx, r14
mov r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140020d6e
mov ecx, 0x100
call fcn.140266210
mov r15, rax
mov rcx, rax
mov rdx, rsi
call fcn.14000de60
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.140023dc0
mov byte [r15 + 0xc8], 1
lea rax, [0x1402a93f0]
mov qword [r15], rax
lea rax, [0x1402a9450]
mov qword [r15 + 0x10], rax
xorps xmm0, xmm0
movups xmmword [r15 + 0xd0], xmm0
mov dword [r15 + 0xe0], 0
movups xmmword [r15 + 0xe8], xmm0
mov dword [r15 + 0xf8], 0
mov dword [r15 + 0x50], 4
mov rcx, r14
call fcn.14001ef30
test rax, rax
jne 0x140020daa
mov rcx, r15
call fcn.14001f670
cmp rax, 0xffff
jne 0x140020daa
mov rcx, r14
mov rdx, rdi
mov r8d, ebx
call fcn.140020ba0
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 0x140020d64
mov rax, qword [r15]
mov rcx, r15
mov edx, 1
call qword [rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140020d8e
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.140265f90
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 0x140020dc8
mov rdi, r15
jmp 0x140020d8e
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 0x140020d7f
mov rax, qword [r15]
mov rcx, r15
mov edx, 1
call qword [rax]
jmp 0x140020d7f
Function at 0x140021d50
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rdx
mov rax, qword [0x1403a8f38]
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 0x140021dab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140021dd7
cmp dword [rsp + 0x30], 1
movzx eax, byte [rsp + 0x37]
mov ecx, 0xffffffff
cmove ecx, eax
mov dword [rsi], ecx
mov sil, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140265f90
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor esi, esi
jmp 0x140021dc2

Function at 0x1400231f0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, 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 rsi, rax
test rax, rax
js 0x14002324c
mov rcx, rdi
xor edx, edx
call fcn.14001ebc0
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
mov rax, 0xffffffffffffffff
cmove rsi, rax
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140023260
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x1403a8f38]
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.140265f90
mov rax, rsi
add rsp, 0x30
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, qword [0x1403a8f38]
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 0x1400232f6
lea rcx, [rsp + 0x28]
call fcn.14001ef30
mov rsi, rax
jmp 0x1400232f8
xor esi, esi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140265f90
mov rax, rsi
add rsp, 0xb0
pop rsi
ret

Function at 0x1400233b0
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 0x1400233d0
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 0x140024d10
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 0x140024f2c
test r9, r9
jle 0x140024f2c
lea rax, [r9 - 1]
mov qword [rsp + 0x10], rax
xor esi, esi
lea r11, [0x1402ab8c0]
lea rdi, [0x1402ab9c0]
lea r14, [0x1402ab9e0]
xor r10d, r10d
mov qword [rsp + 8], r9
mov qword [rsp], r8
nop word cs:[rax + rax]
movzx r13d, byte [rcx + rsi]
test r13b, r13b
js 0x140024d90
mov r12d, 1
mov ebp, r13d
jmp 0x140024f10
movsx r12, byte [r13 + r11]
mov rax, r13
add rax, 0xffffffffffffff40
cmp rax, 0x3d
ja 0x140024e5e
mov rax, rdx
sub rax, rsi
cmp rax, 2
mov r11d, 1
cmovl rax, r11
dec rax
cmp r12, 3
mov ebx, 2
cmovge rbx, r12
lea r11, [rbx - 2]
cmp rax, r11
jbe 0x140024f47
lea rax, [rcx + rsi]
lea r14, [rbx - 1]
test r11, r11
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x20], r14
je 0x140024e6b
lea r11, [rax + 1]
and r14, 0xfffffffffffffffe
neg r14
mov edi, 1
xor r15d, r15d
mov ebp, r13d
nop word [rax + rax]
movzx eax, byte [r11 + rdi - 1]
mov r8d, eax
and r8b, 0xc0
cmp r8b, 0x80
setne r8b
or r8b, r15b
movzx r9d, byte [r11 + rdi]
mov r15d, r9d
and r15b, 0xc0
cmp r15b, 0x80
setne r15b
or r15b, r8b
shl ebp, 0xc
shl eax, 6
add ebp, r9d
add ebp, eax
lea rax, [r14 + rdi]
add rax, 2
add rdi, 2
cmp rax, 1
jne 0x140024e10
jmp 0x140024e76
mov ebx, 1
xor r15d, r15d
mov ebp, r13d
jmp 0x140024ebb
mov edi, 1
xor r15d, r15d
mov ebp, r13d
test byte [rsp + 0x20], 1
lea r14, [0x1402ab9e0]
je 0x140024ea4
mov rax, qword [rsp + 0x18]
movzx eax, byte [rax + rdi]
mov r8d, eax
and r8b, 0xc0
cmp r8b, 0x80
setne r8b
or r15b, r8b
shl ebp, 6
add ebp, eax
mov r9, qword [rsp + 8]
mov r8, qword [rsp]
lea r11, [0x1402ab8c0]
lea rdi, [0x1402ab9c0]
xor eax, eax
cmp rbx, r12
jne 0x140024f36
test r15b, 1
jne 0x140024f36
sub ebp, dword [rdi + r12*4]
cmp ebp, 0x10ffff
ja 0x140024f36
cmp dword [r14 + r12*4], ebp
ja 0x140024f47
cmp r13b, 0xf0
jb 0x140024f10
cmp r10, qword [rsp + 0x10]
je 0x140024f47
mov eax, ebp
shr eax, 0xa
add eax, 0xffffd7c0
mov word [r8 + r10*2], ax
and ebp, 0x3ff
or ebp, 0xdc00
mov word [r8 + r10*2 + 2], bp
inc r10
jmp 0x140024f15
mov word [r8 + r10*2], bp
add rsi, r12
inc r10
cmp rsi, rdx
setl al
jge 0x140024f2c
cmp r10, r9
jl 0x140024d70
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 0x140024f36

Function at 0x140025660
Capabilities:
Read file on windows

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

Function at 0x140026630
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x1403a8f38]
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.140265f90
mov rax, rsi
add rsp, 0x60
pop rsi
ret
Function at 0x140026670
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 0x1400266ba
mov rbx, rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.140266210
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