joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c230
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140001180]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
lea rsi, [rcx + 8]
mov rdi, qword [rsi + 0x10]
mov rcx, rsi
mov r14, qword [rsi + 0x18]
cmp r14, 0xf
jbe 0x14001c274
mov rcx, qword [rsi]
cmp rdi, 2
jne 0x14001c28d
mov r8, rdi
lea rdx, [0x14001788c]
call fcn.1400975c0
test eax, eax
je 0x14001c2b2
cmp r14, 0xf
jbe 0x14001c296
mov rsi, qword [rsi]
cmp rdi, 1
jne 0x14001c2f5
mov r8, rdi
lea rdx, [0x140017890]
mov rcx, rsi
call fcn.1400975c0
test eax, eax
jne 0x14001c2f5
lea rcx, [rbx + 0x28]
cmp qword [rcx + 0x18], 0xf
jbe 0x14001c2c0
mov rcx, qword [rcx]
call fcn.140070614
imul ecx, dword [rbx], 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400692b0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
lea rcx, [rbx + 8]
cmp r14, 0xf
jbe 0x14001c302
mov rcx, qword [rcx]
cmp rdi, 2
jne 0x14001c31b
mov r8, rdi
lea rdx, [0x140017894]
call fcn.1400975c0
test eax, eax
je 0x14001c341
lea rcx, [rbx + 8]
cmp r14, 0xf
jbe 0x14001c328
mov rcx, qword [rcx]
cmp rdi, 1
jne 0x14001c393
mov r8, rdi
lea rdx, [0x140017898]
call fcn.1400975c0
test eax, eax
jne 0x14001c393
lea rdx, [rbx + 0x28]
lea rcx, [0x140001e00]
cmp rcx, rdx
je 0x14001c364
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x14001c35f
mov rdx, qword [rdx]
call fcn.14001e130
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8, [0x14001c720]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
jmp 0x14001c2c5
lea rcx, [rbx + 8]
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rcx + 0x18]
cmp rsi, 0xf
jbe 0x14001c3a8
mov rcx, qword [rcx]
cmp rdi, 2
jne 0x14001c3c1
mov r8, rdi
lea rdx, [0x14001789c]
call fcn.1400975c0
test eax, eax
je 0x14001c3ef
lea rcx, [rbx + 8]
cmp rsi, 0xf
jbe 0x14001c3ce
mov rcx, qword [rcx]
cmp rdi, 1
jne 0x14001c2c5
mov r8, rdi
lea rdx, [0x1400178a0]
call fcn.1400975c0
test eax, eax
jne 0x14001c2c5
xor ecx, ecx
call fcn.14006f380
int3
Function at 0x14002aec0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + rdx]
mov rbx, rcx
mov edi, 0x1505
cmp rcx, rsi
jae 0x14002aa7b
movzx ecx, byte [rbx]
call fcn.14003a9a0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14002aa60
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
movzx eax, dil
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14002aef6
call fcn.14003bae0
test al, al
jne 0x14002aef6
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14002b190
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x14002aa40
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140034d42
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x140001180]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [rsp + 0x180]
mov rdi, r8
movsxd r8, edx
mov rsi, r9
mov rdx, qword [rcx + 0x18]
mov rbp, rcx
mov r14, qword [rdx + r8*8 + 0x1f0]
call fcn.140035330
test eax, eax
je 0x140034ec8
mov dword [rbx], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x140034f35
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [rbx], 0
cmp rdi, 0xffffffffffffffff
jne 0x140034f32
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x2733
jne 0x140034f02
xor edi, edi
mov dword [rbx], 0x51
jmp 0x140034f32
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, esi
call fcn.140021f30
mov r8, rax
lea rdx, [0x140006028]
mov rcx, rbp
call fcn.140034b00
mov dword [rbp + 0xddc], esi
mov dword [rbx], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400692b0
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140035330
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd r9, r8d
lea rbx, [rdx + 0x238]
mov rax, r9
mov rbp, rcx
shl rax, 5
add rbx, rax
mov rax, qword [rdx + 0x3f8]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x14003541d
lea rax, [0x140034d90]
cmp qword [rdx + r9*8 + 0x218], rax
jne 0x14003541d
cmp qword [rbx], 0
je 0x14003539b
test rdi, rdi
je 0x14003541d
mov rsi, qword [rdx + r9*8 + 0x1f0]
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor r9d, r9d
mov rcx, rsi
call fcn.140045230
cmp eax, 0xffffffff
je 0x14003541d
test al, 1
je 0x14003541d
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400353fc
mov eax, dword [rbp + 0x71c]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [fcn.140001110]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
jne 0x1400353ee
lea eax, [rcx + 0x1b]
jmp 0x14003541f
mov rdi, qword [rbx + 8]
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14003541d
add qword [rbx + 0x10], rcx
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x280], 0
jne 0x14003565a
mov rcx, qword [rcx + 0x1f0]
cmp rcx, 0xffffffffffffffff
je 0x14003565a
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x14003565a
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x140001180]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], Ordinal_133
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140035925
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140021f30
mov r8d, ebx
lea rdx, [0x1400061d8]
jmp 0x14003596b
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140035440
test al, al
jne 0x140035976
call fcn.140070830
mov ebx, dword [rax]
call fcn.140070830
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140021f30
mov r8d, dword [rdi]
lea rdx, [0x1400062b8]
mov r9, rax
mov rcx, rsi
call fcn.140034b00
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400692b0
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140036170
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14009f6e8]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1400361d4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.14005fdf0
test al, al
je 0x1400361c8
mov dword [0x14009f6e8], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x14009f6e8], 1
jmp 0x1400361d9
cmp eax, 2
je 0x14003622b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14003620a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14003622b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x140036fc0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140001180]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0xb2b], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14003702f
mov r8, rdi
lea rdx, [0x1400060e0]
mov rcx, rbx
call fcn.140034be0
jmp 0x1400370be
mov ecx, dword [rbx + 0xa8c]
mov dword [rsp + 0x58], 1
call fcn.1400372f0
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xa90]
call fcn.1400372f0
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, recvfrom
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1400370be
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, [0x140006108]
mov r9d, eax
mov rcx, rbx
call fcn.140034be0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400692b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400370e0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140001180]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rbx, rcx
lea r9, [rsp + 0x30]
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140037156
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140021f30
mov r8, rax
lea rdx, [0x1400063b0]
mov rcx, rbx
call fcn.140034be0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400692b0
add rsp, 0x150
pop rbx
ret
Function at 0x1400377a0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140001180]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x140037806
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400377e9
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1400377e3
shr ax, 8
cmp al, 2
je 0x140037806
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400692b0
add rsp, 0x1e8
ret
lea rcx, [0x140006490]
call fcn.140037600
mov qword [0x14009f6f8], rax
test rax, rax
je 0x140037843
lea rdx, [0x1400064b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14009f6f0]
test rax, rax
cmovne rcx, rax
mov qword [0x14009f6f0], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14005fdf0
test al, al
lea rcx, [0x1400a09c8]
setne byte [0x1400a09c0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400692b0
add rsp, 0x1e8
ret
Function at 0x1400453f0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14004541a
cmp dword [rdx], 0
jne 0x140045430
test rbx, rbx
je 0x140045425
cmp dword [r8], 0
jne 0x140045430
test rdi, rdi
je 0x14004547c
cmp dword [r9], 0
je 0x14004547c
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140064ce0
test rdi, rdi
je 0x140045449
cmp dword [rdi], 0
jne 0x14004544b
xor edi, edi
test rbx, rbx
je 0x140045455
cmp dword [rbx], 0
jne 0x140045457
xor ebx, ebx
test rsi, rsi
je 0x140045461
cmp dword [rsi], 0
jne 0x140045463
xor esi, esi
lea ecx, [rbp + 1]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_select]
jmp 0x140045486
mov rcx, qword [rsp + 0x60]
call fcn.1400453a0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140048610
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.14003b130
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.1400477a0
mov rcx, rdi
mov rsi, rax
call fcn.1400477a0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400486c0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14003b130
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14003b1c0
cmp rax, 0x3e8
ja 0x1400486f1
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140048670
test rsi, rsi
je 0x1400486cd
mov rcx, rsi
call fcn.140070850
test rbx, rbx
je 0x1400486da
mov rcx, rbx
call fcn.140070850
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1400486fe
mov rcx, rsi
call fcn.140070850
test rbx, rbx
je 0x14004870b
mov rcx, rbx
call fcn.140070850
mov eax, 1
jmp 0x1400486dc
Function at 0x140048720
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140001180]
xor rax, rsp
mov qword [rbp - 8], rax
mov edx, 1
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
mov esi, 2
mov dword [rbp - 0x3c], 1
mov ecx, esi
mov rdi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140048772
jmp 0x14004893b
mov qword [rsp + 0x90], r14
mov ecx, 0x7f000001
xor r14d, r14d
mov word [rbp - 0x38], si
mov qword [rbp - 0x30], r14
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x3c]
mov word [rbp - 0x36], r14w
mov edx, 0xffff
mov dword [rbp - 0x34], eax
lea r8d, [r14 + 4]
mov qword [rdi + 8], 0xffffffffffffffff
mov rcx, rbx
mov qword [rdi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140048912
lea r8d, [r14 + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140048912
lea r8, [rbp - 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140048912
cmp dword [rbp - 0x40], 0x10
jl 0x140048912
lea edx, [r14 + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x140048912
xor r8d, r8d
lea edx, [r14 + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x140048912
lea r8d, [r14 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140048912
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.14005f6b0
test eax, eax
js 0x140048912
lea edx, [r14 + 1]
mov qword [rbp - 0x18], rbx
mov r8d, 0x2710
mov dword [rbp - 0x10], 0x300
lea rcx, [rbp - 0x18]
call fcn.140044f00
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x140048912
mov rcx, qword [rdi]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140048912
cmp dword [rbp - 0x40], 0x10
jl 0x140048912
mov rcx, qword [rdi + 8]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x140048912
cmp dword [rbp - 0x40], 0x10
jl 0x140048912
movzx eax, word [rbp - 0x28]
cmp word [rbp - 0x38], ax
jne 0x140048912
mov eax, dword [rbp - 0x24]
cmp dword [rbp - 0x34], eax
jne 0x140048912
movzx eax, word [rbp - 0x26]
cmp word [rbp - 0x36], ax
jne 0x140048912
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x140048933
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x90]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400692b0
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140048990
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor ebp, ebp
mov qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x140048b19
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140048afe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1400489fe
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400489f0
inc rbx
jmp 0x140048a00
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x140048a0e
lea r14d, [rax + 0xe]
jmp 0x140048a1b
cmp eax, 0x17
jne 0x140048ab4
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x140048ab4
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140048ab4
cmp rax, r14
jb 0x140048ab4
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [fcn.140001110]
mov rsi, rax
test rax, rax
je 0x140048ac3
mov ecx, dword [rdi]
mov r8, r14
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], r14d
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call fcn.140096ae0
test rbx, rbx
je 0x140048aa1
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.140096ae0
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x140048ab1
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400489e0
jmp 0x140048ac9
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x140048ae8
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140048af9
mov rcx, rbp
call fcn.140048960
xor ebp, ebp
jmp 0x140048b0d
test rbp, rbp
jne 0x140048b0d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r12d
mov qword [r13], rbp
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
Function at 0x14004eff0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140001180]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov rbp, qword [rsi + 0x1f8]
mov rcx, rbp
mov dword [rsp + 0x20], Ordinal_133
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14004f06b
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.140035520
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x14004f093
lea rdx, [0x140009e30]
call fcn.140034b00
lea eax, [rbx + 0x1f]
jmp 0x14004f10f
lea rdx, [0x140009e58]
call fcn.140034be0
mov edx, 1
mov byte [rsi + 0x3b9], 0
mov rcx, rbx
mov qword [rsi + 0x1f8], rbx
call fcn.14005f6b0
mov byte [rsi + 0x3cc], 1
cmp qword [rdi + 0x288], 0
je 0x14004f10d
mov dl, 1
mov rcx, rdi
call fcn.140026400
mov rcx, qword [rdi + 0x290]
mov r8d, 1
mov rdx, rbx
call qword [rdi + 0x288]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140026400
test ebx, ebx
je 0x14004f10d
mov rdx, rsi
mov rcx, rdi
call fcn.14004f5c0
mov eax, Ordinal_46
jmp 0x14004f10f
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400692b0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
add rdx, 0x4b0
cmp byte [rdx + 0xa6], 0
jne 0x14005021a
xor r8d, r8d
mov dword [rdx + 0xc8], r8d
cmp byte [rax + 0x3b3], r8b
je 0x1400501d3
mov r9, qword [rdx + 0x88]
test r9, r9
je 0x1400501d3
cmp dword [rdx + 0xa0], r8d
je 0x1400501c7
mov rax, qword [rdx + 0x98]
mov rcx, qword [rax]
cmp byte [rcx], 0x2f
je 0x1400501d3
mov dword [rdx + 0xa8], r8d
mov rcx, rbx
jmp 0x1400501f3
mov rcx, rbx
cmp dword [rdx + 0xa0], r8d
je 0x14005021a
mov r9, qword [rdx + 0x98]
mov dword [rdx + 0xa8], 1
mov r9, qword [r9]
lea r8, [0x140009ff0]
call fcn.1400651a0
mov r8d, eax
test eax, eax
jne 0x140050224
lea edx, [rax + 0x10]
mov rcx, rbx
call fcn.14004f5b0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140050600
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x18]
mov rbx, rcx
add rdx, 0x4b0
cmp byte [rcx + 0xb09], 0
jne 0x140050626
cmp dword [rcx + 0x568], 0
je 0x140050659
mov r9, qword [rdx + 0x90]
test r9, r9
je 0x140050659
lea r8, [0x14000a1a8]
call fcn.1400651a0
mov r8d, eax
test eax, eax
jne 0x140050663
lea edx, [rax + 0x12]
mov rcx, rbx
call fcn.14004f5b0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400517c0
add rsp, 0x20
pop rbx
ret
Function at 0x140050e20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
lea eax, [rdx - 0xc8]
mov rbx, rcx
cmp eax, 0x64
jb 0x140050e9f
mov qword [rsp + 0x30], rsi
mov rsi, qword [rcx + 0x18]
mov qword [rsp + 0x38], rdi
mov eax, dword [rsi + 0x574]
lea edi, [rax + 1]
test eax, eax
jne 0x140050e7b
lea rdx, [0x14000a370]
call fcn.140034be0
mov byte [rsi + 0x3bf], 0
mov edx, edi
mov rcx, rbx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp 0x140051ba0
cmp edi, 2
jne 0x140050e62
lea rdx, [0x14000a388]
call fcn.140034b00
mov rsi, qword [rsp + 0x30]
lea eax, [rdi + 0x1c]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
lea rdx, [0x14000a3a0]
call fcn.140034be0
xor edx, edx
mov rcx, rbx
call fcn.14004f5b0
add rsp, 0x20
pop rbx
jmp fcn.14004f760