joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003bed0
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x24]
mov rbx, rcx
cmp eax, 0xca
jne 0x14003be08
mov rax, qword [rcx + 8]
mov edx, 1
lea r8d, [rdx + 0x2f]
call qword [rax]
mov qword [rbx + 0x220], rax
lea rcx, [0x1400462b0]
mov qword [rax], rcx
lea rcx, [0x140046410]
mov qword [rax + 8], rcx
mov rcx, rbx
mov byte [rax + 0x10], 0
call fcn.140045d10
cmp byte [rbx + 0x58], 0
je 0x14003bdff
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], 0xcb
jmp 0x14003be13
cmp eax, 0xcb
jne 0x14003be96
mov rax, qword [rbx + 0x240]
cmp byte [rax + 0x20], 0
je 0x14003be7d
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14003be2e
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x240]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x14003be75
cmp eax, 2
je 0x14003be7d
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14003be20
cmp eax, 3
je 0x14003be56
cmp eax, 1
jne 0x14003be20
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x14003be20
mov ecx, dword [rbx + 0x190]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x14003be20
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x9c]
mov rcx, rbx
mov dword [rbx + 0xa4], eax
add rsp, 0x20
pop rbx
jmp 0x14003bed0
cmp eax, 0xcc
je 0x14003beb8
mov rax, qword [rcx]
mov dword [rax + 0x28], reloc.WS2_32.dll_setsockopt
mov rcx, qword [rcx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x14003bed0
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
cmp dword [rcx + 0x24], 0xcc
je 0x14003befe
mov rax, qword [rcx + 0x220]
call qword [rax]
mov dword [rbx + 0x98], ebp
mov dword [rbx + 0x24], 0xcc
mov rax, qword [rbx + 0x220]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
cmp byte [rax + 0x10], bpl
je 0x14003bfa5
mov ecx, dword [rbx + 0x98]
nop
cmp ecx, dword [rbx + 0x78]
jae 0x14003bf74
mov rax, qword [rbx + 0x10]
mov edi, ecx
test rax, rax
je 0x14003bf4c
mov dword [rax + 8], ecx
mov rcx, qword [rbx + 0x10]
mov eax, dword [rbx + 0x78]
mov dword [rcx + 0xc], eax
mov rcx, rbx
mov rax, qword [rbx + 0x10]
call qword [rax]
mov edi, dword [rbx + 0x98]
mov rax, qword [rbx + 0x228]
lea r8, [rbx + 0x98]
xor r9d, r9d
xor edx, edx
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov ecx, dword [rbx + 0x98]
cmp ecx, edi
je 0x14003bfcd
cmp ecx, dword [rbx + 0x78]
jb 0x14003bf25
mov rax, qword [rbx + 0x220]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rbx + 0x220]
mov rcx, rbx
call qword [rax]
mov dword [rbx + 0x98], ebp
mov ecx, ebp
mov rax, qword [rbx + 0x220]
cmp byte [rax + 0x10], cl
jne 0x14003bf20
cmp byte [rbx + 0x59], bpl
mov al, 1
setne bpl
add ebp, 0xcd
mov dword [rbx + 0x24], ebp
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
xor al, al
jmp 0x14003bfb8
Function at 0x1400624d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r13
push r15
sub rsp, 0x30
mov r13d, dword [rcx + 0x64]
mov rdi, rcx
mov rbx, qword [rcx + 0x270]
cmp r13d, 1
mov r8d, 0x2fe
mov qword [rsp + 0x68], rbx
sete al
mov edx, 1
mov byte [rbx + 0x38], al
mov rax, qword [rcx + 8]
mov ecx, 0x100
mov r9d, dword [rdi + 0x7c]
cmovne r8d, ecx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x28]
xor r15d, r15d
mov qword [rbx + 0x30], rax
cmp dword [rdi + 0x7c], r15d
jle 0x140062651
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x28], r12
lea r12, [rbx + 0x3c]
mov qword [rsp + 0x20], r14
xor r14d, r14d
nop dword [rax]
mov esi, dword [r12]
mov eax, ebp
cdq
idiv esi
mov ebp, eax
cmp r13d, 1
jne 0x14006256d
mov rax, qword [rbx + 0x30]
add qword [r14 + rax], 0xff
mov rax, qword [rbx + 0x30]
lea r11d, [rsi*2 - 2]
xor r8d, r8d
xor r10d, r10d
mov rdi, qword [r14 + rax]
lea eax, [rsi + 0xfe]
cdq
idiv r11d
xor ebx, ebx
mov r9d, eax
cmp r10d, r9d
jle 0x1400625c7
imul eax, r8d, 0x1fe
lea ecx, [rsi + 0xfe]
add ecx, eax
nop word [rax + rax]
add ecx, 0x1fe
inc r8d
mov eax, ecx
cdq
idiv r11d
mov r9d, eax
cmp r10d, eax
jg 0x1400625b0
movzx eax, bpl
inc r10d
movzx ecx, r8b
imul ecx, eax
mov byte [rbx + rdi], cl
inc rbx
cmp rbx, 0xff
jle 0x140062592
cmp r13d, 1
jne 0x140062623
mov ecx, r13d
lea rdx, [rdi - 1]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi]
mov byte [rdx], al
lea rdx, [rdx - 1]
movzx eax, byte [rdi + 0xff]
mov byte [rdi + rcx + 0xff], al
inc rcx
cmp rcx, 0xff
jle 0x140062600
mov rax, qword [rsp + 0x60]
inc r15d
mov rbx, qword [rsp + 0x68]
add r12, 4
add r14, 8
cmp r15d, dword [rax + 0x7c]
jl 0x140062550
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret
Function at 0x140062660
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 8]
mov ebx, edx
mov edx, 1
mov r8d, 0x400
call qword [rax]
shl ebx, 9
lea r11, [0x1402c8ba0]
add ebx, 0xfffffe00
mov r10, rax
xor ecx, ecx
lea r9, [rax + 8]
movzx edx, byte [rcx + r11]
mov eax, 0xfe01
imul r8d, edx, 0x1fe
sub eax, r8d
cdq
idiv ebx
mov dword [r9 - 8], eax
movzx eax, byte [rcx + r11 + 1]
imul edx, eax, 0x1fe
mov eax, 0xfe01
sub eax, edx
cdq
idiv ebx
mov dword [r9 - 4], eax
movzx eax, byte [rcx + r11 + 2]
imul edx, eax, 0x1fe
mov eax, 0xfe01
sub eax, edx
cdq
idiv ebx
mov dword [r9], eax
movzx eax, byte [rcx + r11 + 3]
imul edx, eax, 0x1fe
mov eax, 0xfe01
sub eax, edx
cdq
idiv ebx
mov dword [r9 + 4], eax
movzx eax, byte [rcx + r11 + 4]
imul edx, eax, 0x1fe
mov eax, 0xfe01
sub eax, edx
cdq
idiv ebx
mov dword [r9 + 8], eax
movzx eax, byte [rcx + r11 + 5]
imul edx, eax, 0x1fe
mov eax, 0xfe01
sub eax, edx
cdq
idiv ebx
mov dword [r9 + 0xc], eax
movzx eax, byte [rcx + r11 + 6]
imul edx, eax, 0x1fe
mov eax, 0xfe01
sub eax, edx
cdq
idiv ebx
mov dword [r9 + 0x10], eax
movzx eax, byte [rcx + r11 + 7]
imul edx, eax, 0x1fe
mov eax, 0xfe01
sub eax, edx
cdq
idiv ebx
mov dword [r9 + 0x14], eax
movzx eax, byte [rcx + r11 + 8]
imul edx, eax, 0x1fe
mov eax, 0xfe01
sub eax, edx
cdq
idiv ebx
mov dword [r9 + 0x18], eax
movzx eax, byte [rcx + r11 + 9]
imul edx, eax, 0x1fe
mov eax, 0xfe01
sub eax, edx
cdq
idiv ebx
mov dword [r9 + 0x1c], eax
movzx eax, byte [rcx + r11 + 0xa]
imul edx, eax, 0x1fe
mov eax, 0xfe01
sub eax, edx
cdq
idiv ebx
mov dword [r9 + 0x20], eax
movzx eax, byte [rcx + r11 + 0xb]
imul edx, eax, 0x1fe
mov eax, 0xfe01
sub eax, edx
cdq
lea r9, [r9 + 0x40]
idiv ebx
mov dword [r9 - 0x1c], eax
movzx eax, byte [rcx + r11 + 0xc]
imul edx, eax, 0x1fe
mov eax, 0xfe01
sub eax, edx
cdq
idiv ebx
mov dword [r9 - 0x18], eax
movzx eax, byte [rcx + r11 + 0xd]
imul edx, eax, 0x1fe
mov eax, 0xfe01
sub eax, edx
cdq
idiv ebx
mov dword [r9 - 0x14], eax
movzx eax, byte [rcx + r11 + 0xe]
imul edx, eax, 0x1fe
mov eax, 0xfe01
sub eax, edx
cdq
idiv ebx
mov dword [r9 - 0x10], eax
movzx eax, byte [rcx + r11 + 0xf]
add rcx, 0x10
imul edx, eax, 0x1fe
mov eax, 0xfe01
sub eax, edx
cdq
idiv ebx
mov dword [r9 - 0xc], eax
cmp rcx, 0x100
jl 0x140062692
mov rax, r10
add rsp, 0x20
pop rbx
ret
Function at 0x140064f90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x10]
mov r14, rdx
mov rsi, qword [rcx]
mov rbx, rcx
mov r10d, dword [rcx + 0xc]
sub r10d, eax
cmp dword [rcx + 8], 0
lea rdi, [rsi + rax]
jl 0x140065169
mov r9d, dword [rcx + 0x18]
xor r15d, r15d
test r9d, r9d
jne 0x14006502b
cmp r10d, 0x1b
jl 0x140065169
mov eax, dword [rdi]
cmp eax, dword [str.OggS]
jne 0x1400650f3
movzx eax, byte [rdi + 0x1a]
lea r9d, [rax + 0x1b]
cmp r10d, r9d
jl 0x140065169
mov ecx, r15d
test eax, eax
je 0x140065027
mov edx, dword [rbx + 0x1c]
lea r8, [rdi + 0x1b]
nop dword [rax + rax]
movzx eax, byte [r8]
lea r8, [r8 + 1]
add edx, eax
inc ecx
mov dword [rbx + 0x1c], edx
movzx eax, byte [rdi + 0x1a]
cmp ecx, eax
jl 0x140065010
mov dword [rbx + 0x18], r9d
mov ecx, dword [rbx + 0x1c]
add ecx, r9d
cmp ecx, r10d
jg 0x140065169
mov eax, dword [rdi + 0x16]
xor ecx, ecx
mov dword [rdi + 0x16], ecx
mov r8d, r15d
mov ecx, dword [rbx + 0x18]
movsxd r9, ecx
add r9, rdi
mov qword [rsp + 0x40], r12
lea r12, [0x1402c9240]
test ecx, ecx
jle 0x140065095
mov r11, rdi
mov esi, ecx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r11]
lea r11, [r11 + 1]
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
mov ecx, r8d
shl ecx, 8
mov r8d, dword [r12 + rdx*4]
xor r8d, ecx
sub rsi, 1
jne 0x140065070
cmp dword [rbx + 0x1c], r15d
jle 0x1400650c5
mov r11d, dword [rbx + 0x1c]
nop
movzx ecx, byte [r9]
lea r9, [r9 + 1]
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
mov ecx, r8d
shl ecx, 8
mov r8d, dword [r12 + rdx*4]
xor r8d, ecx
sub r11, 1
jne 0x1400650a0
mov r12, qword [rsp + 0x40]
mov ecx, r8d
mov byte [rdi + 0x16], r8b
shr ecx, 8
mov byte [rdi + 0x17], cl
mov ecx, r8d
shr ecx, 0x10
shr r8d, 0x18
mov byte [rdi + 0x18], cl
mov byte [rdi + 0x19], r8b
cmp eax, dword [rdi + 0x16]
je 0x140065125
mov dword [rdi + 0x16], eax
mov rsi, qword [rbx]
lea eax, [r10 - 1]
mov qword [rbx + 0x18], r15
movsxd r8, eax
lea rcx, [rdi + 1]
mov edx, 0x4f
call fcn.14025e600
test rax, rax
jne 0x140065118
movsxd rax, dword [rbx + 0xc]
add rax, rsi
mov ecx, eax
sub ecx, esi
sub edi, eax
mov dword [rbx + 0x10], ecx
mov eax, edi
jmp 0x14006516b
movsxd rdx, dword [rbx + 0x10]
mov rcx, rdx
add rcx, qword [rbx]
test r14, r14
je 0x140065153
mov qword [r14], rcx
mov eax, dword [rbx + 0x18]
mov dword [r14 + 8], eax
movsxd rax, dword [rbx + 0x18]
add rax, rcx
mov qword [r14 + 0x10], rax
mov eax, dword [rbx + 0x1c]
mov dword [r14 + 0x18], eax
mov edx, dword [rbx + 0x10]
mov eax, dword [rbx + 0x1c]
add eax, dword [rbx + 0x18]
mov dword [rbx + 0x14], r15d
mov qword [rbx + 0x18], r15
lea ecx, [rdx + rax]
mov dword [rbx + 0x10], ecx
jmp 0x14006516b
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14009c330
Capabilities:
Resolve dns

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
lea rax, [r11 + 8]
mov qword [r11 - 0x38], rax
lea r9, [r11 + 0x20]
lea rax, [r11 - 0x24]
mov dword [r11 + 0x18], ebx
mov qword [r11 - 0x40], rax
lea r8, [r11 + 0x18]
lea rax, [r11 - 0x28]
mov dword [r11 + 0x20], ebx
mov rsi, rdx
mov qword [r11 - 0x48], rax
lea rdx, str._u._u._u._u_n
mov dword [rsp + 0x40], ebx
mov rdi, rcx
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x70], ebx
call fcn.140061200
test eax, eax
je 0x14009c3f9
movsxd rax, dword [rsp + 0x70]
test eax, eax
je 0x14009c3f9
cmp byte [rax + rdi], bl
jne 0x14009c3f9
mov ecx, dword [rsp + 0x80]
cmp ecx, 0xff
ja 0x14009c3f9
mov eax, dword [rsp + 0x88]
cmp eax, 0xff
ja 0x14009c3f9
mov edx, dword [rsp + 0x40]
cmp edx, 0xff
ja 0x14009c3f9
mov r8d, dword [rsp + 0x44]
cmp r8d, 0xff
ja 0x14009c3f9
shl ecx, 8
add ecx, eax
shl ecx, 8
add ecx, edx
shl ecx, 8
add ecx, r8d
call qword [sym.imp.WS2_32.dll_htonl]
lea edx, [rbx + 4]
mov dword [rsp + 0x48], eax
lea r8d, [rbx + 2]
lea rcx, [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_gethostbyaddr]
jmp 0x14009c402
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsi], rax
test rax, rax
jne 0x14009c412
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14009cc80
Capabilities:
Connect socket
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x140479080]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
mov rsi, rcx
mov qword [rsp + 0x38], rax
movzx ecx, r8w
mov qword [rsp + 0x40], rax
mov rbp, r9
mov eax, 2
mov rdi, rdx
mov word [rsp + 0x38], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
xor ebx, ebx
movzx eax, byte [rdi]
cmp al, byte [0x1402c7978]
jne 0x14009cce6
movzx eax, byte [rdi + 1]
cmp al, byte [0x1402c7979]
jne 0x14009cce6
mov word [rsp + 0x38], bx
jmp 0x14009cd2b
lea rdx, [rsp + 0x3c]
mov rcx, rdi
call fcn.14009cf50
test eax, eax
jne 0x14009cd2b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rdi, rax
test rax, rax
jne 0x14009cd1e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x14009cd1e
mov ecx, eax
call fcn.1400a15f0
jmp 0x14009cde6
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
jne 0x14009cd3c
lea ebx, [rcx - 1]
jmp 0x14009cddf
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x14009cddf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [rsp + 0x30], eax
add eax, 0xffffd8cd
cmp eax, 1
ja 0x14009cddf
movsd xmm1, qword [rbp]
xorps xmm0, xmm0
ucomisd xmm1, xmm0
jp 0x14009cd82
jne 0x14009cd82
mov ebx, 0xffffffff
jmp 0x14009cddf
mov r8, rbp
mov edx, 6
mov rcx, rsi
call fcn.1400a12c0
mov dword [rsp + 0x30], eax
mov ebx, eax
cmp eax, 0xfffffffe
jne 0x14009cddf
lea ecx, [rax + 0xc]
mov dword [rsp + 0x34], 4
call qword [case.0x14024b920.42]
mov rcx, qword [rsi]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
mov eax, dword [rsp + 0x30]
mov ebx, 0xfffffffd
test eax, eax
cmovg ebx, eax
mov ecx, ebx
call fcn.1400a1640
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14023ed20
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14009ce00
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140479080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
mov qword [rsp + 0x30], 0
xor ecx, ecx
movzx ebx, r8w
mov rsi, rdx
call qword [sym.imp.WS2_32.dll_htonl]
movzx ecx, bx
mov dword [rsp + 0x2c], eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x2a], ax
mov eax, 2
mov word [rsp + 0x28], ax
movzx eax, byte [rsi]
cmp al, byte [0x1402c7978]
jne 0x14009ce65
movzx eax, byte [rsi + 1]
cmp al, byte [0x1402c7979]
je 0x14009ceaa
lea rdx, [rsp + 0x2c]
mov rcx, rsi
call fcn.14009cf50
test eax, eax
jne 0x14009ceaa
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
test rax, rax
jne 0x14009ce9d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x14009ce9d
mov ecx, eax
call fcn.1400a15f0
jmp 0x14009cf38
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rsp + 0x2c], eax
mov rcx, qword [rdi]
lea r8, [rsp + 0x24]
xor ebx, ebx
mov edx, 0x8004667e
mov dword [rsp + 0x24], ebx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rdi]
lea r8d, [rbx + 0x10]
lea rdx, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x14009cee1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, qword [rdi]
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov dword [rsp + 0x20], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test ebx, ebx
je 0x14009cf31
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x14009cf31
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi], 0xffffffffffffffff
mov ecx, ebx
call fcn.1400a1640
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14023ed20
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x14009d090
Capabilities:
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x1d0
mov rax, qword [0x140479080]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14009d0e1
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14009d169
shr ax, 8
test al, al
je 0x14009d17d
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov r8d, 0x1c
lea rdx, str.unable_to_initialize_library
mov rcx, rdi
call fcn.1401b1d50
mov rcx, rdi
call fcn.1401bc850
cmp qword [str.auxiliar], 0
je 0x14009d14b
mov qword [rsp + 0x1e8], rbx
xor ebx, ebx
mov qword [rsp + 0x1f0], rsi
mov eax, ebx
lea rsi, str.auxiliar
mov rcx, rdi
call qword [rax + rsi + reloc.WS2_32.dll_htonl]
inc rbx
mov rax, rbx
shl rax, 4
cmp qword [rax + rsi], 0
jne 0x14009d123
mov rsi, qword [rsp + 0x1f0]
mov rbx, qword [rsp + 0x1e8]
mov eax, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14023ed20
add rsp, 0x1d0
pop rdi
ret
cmp al, 1
jne 0x14009d0db
shr ax, 8
cmp al, 1
jne 0x14009d0db
lea r8, str.Tz7_
mov rcx, rdi
lea rdx, str.socket
call fcn.1401b3430
mov r8d, 8
lea rdx, str._VERSION
mov rcx, rdi
call fcn.1401b1d50
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.LuaSocket_2.0.2
mov rcx, rdi
call fcn.1401b1d50
mov edx, 0xfffffffd
mov rcx, rdi
call fcn.1401b2110
jmp 0x14009d0fe

Function at 0x1400a12c0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x690
movaps xmmword [rsp + 0x680], xmm6
mov rax, qword [0x140479080]
xor rax, rsp
mov qword [rsp + 0x670], rax
movsd xmm0, qword [r8]
xor esi, esi
xorps xmm6, xmm6
mov ebx, edx
ucomisd xmm0, xmm6
mov rdi, rcx
mov ebp, esi
mov r14d, esi
mov r15d, esi
jp 0x1400a1310
je 0x1400a13ee
test bl, 1
je 0x1400a1333
mov rax, qword [rcx]
lea rsi, [rsp + 0x250]
mov qword [rsp + 0x258], rax
mov dword [rsp + 0x250], 1
test bl, 2
je 0x1400a1356
mov rax, qword [rcx]
lea rbp, [rsp + 0x460]
mov qword [rsp + 0x468], rax
mov dword [rsp + 0x460], 1
test bl, 6
je 0x1400a1370
mov rax, qword [rcx]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 1
mov rcx, r8
call fcn.14009fae0
comisd xmm0, xmm6
jb 0x1400a13a7
cvttsd2si eax, xmm0
lea r15, [rsp + 0x30]
mov dword [rsp + 0x30], eax
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm0, xmm1
mulsd xmm0, qword [0x140410658]
cvttsd2si eax, xmm0
mov dword [rsp + 0x34], eax
mov r9, r14
mov qword [rsp + 0x20], r15
mov r8, rbp
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1400a13ca
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400a13f3
test eax, eax
je 0x1400a13ee
cmp ebx, 6
jne 0x1400a13ea
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400a13ea
lea eax, [rbx - 8]
jmp 0x1400a13f3
xor eax, eax
jmp 0x1400a13f3
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.14023ed20
mov rbx, qword [rsp + 0x6c8]
movaps xmm6, xmmword [rsp + 0x680]
add rsp, 0x690
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a1430
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov dword [rsp + 0x40], 0
mov rdi, rcx
lea r8, [rsp + 0x40]
mov rcx, qword [rcx]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rdi]
mov edx, ebx
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rdi]
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbx, rcx
mov qword [r9], 0
mov rcx, qword [rcx]
mov r14, r9
mov rsi, r8
mov rbp, rdx
cmp rcx, 0xffffffffffffffff
jne 0x1400a14c6
lea eax, [rcx - 1]
jmp 0x1400a1523
xor r9d, r9d
mov qword [rsp + 0x30], rdi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1400a1517
mov rdi, qword [rsp + 0x50]
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400a151e
mov r8, rdi
mov edx, 2
mov rcx, rbx
call fcn.1400a12c0
test eax, eax
jne 0x1400a151e
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1400a14e0
cdqe
mov qword [r14], rax
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400a85f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov ebp, r8d
mov rdi, rdx
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], al
mov dword [rsp + 0x20], 1
mov rdx, qword [rdx + 0x10]
call fcn.14000aee0
cmp qword [rdi + 0x18], 0x10
jb 0x1400a864a
mov rdi, qword [rdi]
movzx ecx, byte [rdi]
test cl, cl
je 0x1400a877e
test ebp, ebp
jne 0x1400a8672
movzx eax, cl
xor eax, 0x20
sub eax, 0xa1
cmp eax, 0x3c
jae 0x1400a8731
lea eax, [rbp + 1]
jmp 0x1400a86bd
cmp ebp, 1
jne 0x1400a868e
lea eax, [rcx + 0x5f]
cmp al, 0x53
jbe 0x1400a8687
cmp cl, 0x8e
jne 0x1400a8731
mov eax, 1
jmp 0x1400a86bd
cmp ebp, 2
jne 0x1400a8731
test cl, cl
jns 0x1400a8731
mov eax, 0xffffffff
mov edx, 0x80
movsx r8d, cl
nop dword [rax]
inc eax
sar edx, 1
test edx, r8d
jne 0x1400a86b0
test eax, eax
jle 0x1400a8701
mov esi, eax
nop
movzx r9d, byte [rdi]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400a86f0
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400a86e5
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400a86f8
mov rcx, rbx
call fcn.14001c700
inc rdi
sub rsi, 1
jne 0x1400a86c0
movzx r9d, byte [rdi]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400a8768
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400a8726
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400a8770
movsx ecx, byte [rdi]
call fcn.140274b6c
mov rdx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
cmp rdx, r8
jae 0x1400a8764
lea rcx, [rdx + 1]
mov qword [rbx + 0x10], rcx
mov rcx, rbx
cmp r8, 0x10
jb 0x1400a875a
mov rcx, qword [rbx]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x1400a8770
movzx r9d, al
mov rcx, rbx
call fcn.14001c700
inc rdi
movzx ecx, byte [rdi]
test cl, cl
jne 0x1400a8655
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret