joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf290
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rdi, r9
mov r9, qword [rcx]
mov rbx, rcx
mov rbp, rdx
lea rcx, [0x00813296]
mov rsi, r8
mov edx, 1
mov r8d, 2
call sub.msvcrt.dll_fwrite
mov r9, qword [rbx]
mov r8d, 0xa
mov edx, 1
lea rcx, str.Path:
call sub.msvcrt.dll_fwrite
mov rdx, rbp
mov rcx, rbx
call fcn.00479d50
mov rcx, rax
call fcn.00479d10
test rdi, rdi
je 0x4cf363
lea rbp, [rsp + 0x30]
mov rcx, rbp
call fcn.00476780
mov rdx, qword [rdi]
mov rcx, rbp
call fcn.004cf150
mov r9, qword [rbx]
mov r8d, 2
mov edx, 1
lea rcx, [0x00813296]
mov rdi, qword [rsp + 0x30]
call sub.msvcrt.dll_fwrite
mov r9, qword [rbx]
mov r8d, 0xa
mov edx, 1
lea rcx, str.Size:
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbx]
mov rcx, rdi
call sub.msvcrt.dll_fputs
mov rcx, rbx
call fcn.00479d10
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x4cf363
call fcn.007da030
test rsi, rsi
je 0x4cf37d
lea rdi, [rsp + 0x20]
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
jne 0x4cf390
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rsi, [rsp + 0x30]
mov r9d, 1
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.004d43d0
test al, al
je 0x4cf37d
mov r9, qword [rbx]
mov r8d, 2
mov edx, 1
lea rcx, [0x00813296]
call sub.msvcrt.dll_fwrite
mov r9, qword [rbx]
mov r8d, 0xa
mov edx, 1
lea rcx, str.Modified:
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbx]
mov rcx, rsi
call sub.msvcrt.dll_fputs
mov rcx, rbx
call fcn.00479d10
jmp 0x4cf37d
Function at 0x4d3d40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
test rcx, rcx
mov rbx, rcx
je 0x4d3e10
mov r9, qword [rcx]
mov r8d, 2
mov edx, 1
lea rcx, [0x00813780]
call sub.msvcrt.dll_fwrite
mov rdi, qword [0x00828b80]
lea rsi, [rsp + 0x20]
lea rbp, [0x008137cc]
mov r9, qword [rbx]
mov r8d, 0x43
mov edx, 1
lea rcx, str._Y_es____N_o____A_lways____S_kip_all___A_u_to_rename_all____Q_uit_
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call fcn.00479ce0
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.004d4120
mov rcx, rsi
call fcn.00477310
mov rcx, rsi
call fcn.004772a0
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x4d3df3
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx]
lea r8d, [rax - 0x41]
lea edx, [rax + 0x20]
cmp r8b, 0x19
cmovbe eax, edx
sub eax, 0x61
cmp al, 0x18
ja case.0x4d3df1.1
movzx eax, al
movsxd rax, dword [rbp + rax*4]
add rax, rbp
jmp rax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x4d3d81
call fcn.007da030
jmp 0x4d3d81
mov rsi, qword [0x00828b80]
lea rbx, [rsp + 0x20]
lea rdi, [0x00813830]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call fcn.004d4120
mov rcx, rbx
call fcn.00477310
mov rcx, rbx
call fcn.004772a0
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
test edx, edx
jne 0x4d3e60
test rcx, rcx
je 0x4d3e23
call fcn.007da030
jmp 0x4d3e23
movzx eax, byte [rcx]
lea r8d, [rax - 0x41]
lea edx, [rax + 0x20]
cmp r8b, 0x19
cmovbe eax, edx
sub eax, 0x61
cmp al, 0x18
ja case.0x4d3e82.1
movzx eax, al
movsxd rax, dword [rdi + rax*4]
add rax, rdi
jmp rax
call fcn.007da030
xor ebx, ebx
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.007da030
mov ebx, 1
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.007da030
mov ebx, 2
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.007da030
mov ebx, 5
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.007da030
mov ebx, 3
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.007da030
mov ebx, 4
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x4fc550
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1c0
mov rbx, rcx
mov ecx, edx
shl r8d, 8
lea rdx, [rsp + 0x20]
movzx ecx, cl
or r8d, ecx
movzx ecx, r8w
call qword [sym.imp.WSOCK32.dll_WSAStartup]
xchg dword [rbx + 4], eax
add rsp, 0x1c0
pop rbx
ret
Function at 0x4fc690
Capabilities:
Get socket status

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x240
cmp rcx, 0xffffffffffffffff
mov rbx, rcx
mov rsi, rdx
je 0x4fc71f
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov dword [rsp + 0x30], 1
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
lea ecx, [rbx + 1]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
call qword [sym.imp.WSOCK32.dll_select]
mov ebx, eax
call fcn.004d6fb0
mov rdi, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp ebx, 0
mov qword [rsi + 8], rdi
mov dword [rsi], eax
jne 0x4fc710
call fcn.004d6fb0
mov dword [rsi], 0
mov qword [rsi + 8], rax
mov eax, ebx
add rsp, 0x240
pop rbx
pop rsi
pop rdi
ret
jg 0x4fc6f2
mov eax, ebx
add rsp, 0x240
pop rbx
pop rsi
pop rdi
ret
call fcn.004d6fb0
mov dword [rsi], 0x2719
mov qword [rsi + 8], rax
jmp 0x4fc701

Function at 0x4fc730
Capabilities:
Get socket status

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x240
cmp rcx, 0xffffffffffffffff
mov rbx, rcx
mov rsi, rdx
je 0x4fc7bf
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov dword [rsp + 0x30], 1
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
lea ecx, [rbx + 1]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.WSOCK32.dll_select]
mov ebx, eax
call fcn.004d6fb0
mov rdi, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp ebx, 0
mov qword [rsi + 8], rdi
mov dword [rsi], eax
jne 0x4fc7b0
call fcn.004d6fb0
mov dword [rsi], 0
mov qword [rsi + 8], rax
mov eax, ebx
add rsp, 0x240
pop rbx
pop rsi
pop rdi
ret
jg 0x4fc793
mov eax, ebx
add rsp, 0x240
pop rbx
pop rsi
pop rdi
ret
call fcn.004d6fb0
mov dword [rsi], 0x2719
mov qword [rsi + 8], rax
jmp 0x4fc7a2

Function at 0x4fc980
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov qword [rsp + 0x38], rdx
mov ecx, dword [0x007f4530]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4fc9d9
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x4fc9d9
mov rax, qword [rdx]
test rax, rax
je 0x4fc9d9
mov qword [rdx], 0
movzx ecx, byte [rax]
cmp rbx, rcx
ja 0x4fc9d1
mov byte [rax + rbx], cl
add rsp, 0x20
pop rbx
ret
mov rcx, rax
call fcn.007da050
lea rcx, [rbx + 1]
call fcn.007da0a0
cmp rbx, 0x100
mov ecx, 0
lea rdx, [rax + rbx]
cmovae rbx, rcx
mov byte [rdx], bl
add rsp, 0x20
pop rbx
ret

Function at 0x4fca00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
mov qword [rsp + 0x50], r8
mov ecx, dword [0x007f4530]
mov qword [rsp + 0x58], r9
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4fca3f
mov rax, qword [rax + 8]
test rax, rax
je 0x4fca3f
cmp rsi, 0xff
ja 0x4fca3f
cmp qword [rax], 0
je 0x4fca50
mov rcx, rbx
call fcn.007da050
nop
add rsp, 0x28
pop rbx
pop rsi
ret
movzx edx, byte [rbx + rsi]
mov byte [rbx], dl
mov qword [rax], rbx
jmp 0x4fca48
Function at 0x4fdfe0
Capabilities:
Set socket configuration

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp rcx, 0xffffffffffffffff
mov rdi, rcx
mov rbp, rdx
mov ebx, r8d
mov rsi, r9
je 0x4fe100
test r8b, r8b
jne 0x4fe070
test byte [rdx], 1
jne 0x4fe0e0
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
mov rcx, rdi
mov edx, 0x8004667e
mov dword [rsp + 0x2c], 0
lea r8, [rsp + 0x2c]
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
mov ebx, eax
call fcn.004d6fb0
mov rdi, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
test ebx, ebx
mov qword [rsi + 8], rdi
mov dword [rsi], eax
js 0x4fe0ad
call fcn.004d6fb0
mov dword [rsi], 0
mov qword [rsi + 8], rax
mov eax, 1
and byte [rbp], 0xfd
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
mov rcx, rdi
mov edx, 0x8004667e
mov dword [rsp + 0x2c], 1
lea r8, [rsp + 0x2c]
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
mov edi, eax
call fcn.004d6fb0
mov r12, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
test edi, edi
mov qword [rsi + 8], r12
mov dword [rsi], eax
jns 0x4fe0c0
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.004d6fb0
mov dword [rsi], 0
mov qword [rsi + 8], rax
mov eax, ebx
or byte [rbp], 2
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.004d6fb0
mov dword [rsi], 0x2726
mov qword [rsi + 8], rax
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.004d6fb0
mov dword [rsi], 0x2719
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x4fe063

Function at 0x4fe1a0
Capabilities:
Connect socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp rcx, 0xffffffffffffffff
mov rbx, rcx
mov rdi, rdx
mov rbp, r8
mov rsi, r9
je 0x4fe205
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
mov rdx, rdi
mov rcx, rbx
mov r8d, ebp
call qword [sym.imp.WSOCK32.dll_connect]
mov ebx, eax
call fcn.004d6fb0
mov rdi, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
test ebx, ebx
mov qword [rsi + 8], rdi
mov dword [rsi], eax
jne 0x4fe1fa
call fcn.004d6fb0
mov dword [rsi], 0
mov qword [rsi + 8], rax
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.004d6fb0
mov dword [rsi], 0x2719
mov qword [rsi + 8], rax
jmp 0x4fe1fa
Function at 0x4fe310
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp rcx, 0xffffffffffffffff
mov rbx, rdx
je 0x4fe3b0
lea r8, [rsp + 0x2c]
mov edx, 0x4004667f
mov dword [rsp + 0x2c], 0
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
mov esi, eax
call fcn.004d6fb0
mov rdi, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
test esi, esi
mov qword [rbx + 8], rdi
mov dword [rbx], eax
je 0x4fe370
cmp eax, 0x19
je 0x4fe390
test eax, eax
je 0x4fe37f
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.004d6fb0
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, dword [rsp + 0x2c]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.004d6fb0
mov dword [rbx], 0x2736
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.004d6fb0
mov dword [rbx], 0x2719
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, qword [rsp + 0xa0]
mov rsi, rcx
mov rdi, rdx
mov r12d, r9d
xor ecx, ecx
mov rbp, r8
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
lea rax, [rsp + 0x4c]
mov rdx, rdi
mov rcx, rsi
lea r9, [rsp + 0x48]
mov r8d, ebp
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call fcn.004d6fb0
mov rdi, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov qword [rbx + 8], rdi
cmp eax, 0x40
mov dword [rbx], eax
je 0x4fe520
cmp eax, 0x4d2
je 0x4fe531
test esi, esi
mov eax, 0xffffffff
jne 0x4fe511
call fcn.004d6fb0
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, dword [rsp + 0x48]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.004d6fb0
mov dword [rbx], 0x2746
mov qword [rbx + 8], rax
jmp 0x4fe4f5
call fcn.004d6fb0
mov dword [rbx], 0x274d
mov qword [rbx + 8], rax
jmp 0x4fe4f5
Function at 0x4fe860
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rdi, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xf8]
cmp rcx, 0xffffffffffffffff
mov rsi, rcx
mov qword [rsp + 0xd0], r8
je 0x4fea07
lea rax, [rsp + 0x64]
mov r12d, edx
mov dword [rsp + 0x54], r9d
mov qword [rsp + 0x58], rax
lea r14, [rsp + 0x6c]
and r12d, 1
lea r13, [rsp + 0x68]
jmp 0x4fe935
cmp eax, 0x4d2
je 0x4fe9e0
test ebp, ebp
jne 0x4fe8eb
call fcn.004d6fb0
mov dword [rbx], 0
mov qword [rbx + 8], rax
movsxd rax, dword [rsp + 0x64]
test eax, eax
jns 0x4fe9f6
test r12b, r12b
jne 0x4fe9f4
call fcn.004d6fb0
cmp dword [rbx], 0x2733
jne 0x4fe907
cmp qword [rbx + 8], rax
je 0x4fe922
call fcn.004d6fb0
cmp qword [rbx + 8], rax
jne 0x4fe9f4
cmp dword [rbx], 0x4d5
jne 0x4fe9f4
mov rdx, rbx
mov rcx, rsi
call fcn.004fc730
test eax, eax
js 0x4fe9f4
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
mov eax, dword [rsp + 0xe0]
mov rcx, rsi
mov dword [rsp + 0x64], 0
mov r9, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0xd0]
mov dword [rsp + 0x68], eax
mov rax, qword [rdi]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], rax
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
mov ebp, eax
call fcn.004d6fb0
mov r15, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov qword [rbx + 8], r15
mov dword [rbx], eax
movsxd rax, dword [rsp + 0x6c]
mov qword [rdi], rax
mov eax, dword [rbx]
cmp eax, 0x40
jne 0x4fe8c0
call fcn.004d6fb0
mov dword [rbx], 0x2746
mov qword [rbx + 8], rax
jmp 0x4fe8cb
call fcn.004d6fb0
mov dword [rbx], 0x274d
mov qword [rbx + 8], rax
jmp 0x4fe8cb
xor eax, eax
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call fcn.004d6fb0
mov dword [rbx], 0x2719
mov qword [rbx + 8], rax
xor eax, eax
jmp 0x4fe9f6

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, qword [rsp + 0xa0]
mov rsi, rcx
mov rdi, rdx
mov r12d, r9d
mov rbp, r8
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
mov rdx, rdi
mov rcx, rsi
mov r8d, ebp
lea r9, [rsp + 0x4c]
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
call qword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call fcn.004d6fb0
mov rdi, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov qword [rbx + 8], rdi
cmp eax, 0x40
mov dword [rbx], eax
je 0x4fed32
cmp eax, 0x4d2
je 0x4fed43
test esi, esi
mov eax, 0xffffffff
jne 0x4fed27
call fcn.004d6fb0
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, dword [rsp + 0x4c]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.004d6fb0
mov dword [rbx], 0x2746
mov qword [rbx + 8], rax
jmp 0x4fed0b
call fcn.004d6fb0
mov dword [rbx], 0x274d
mov qword [rbx + 8], rax
jmp 0x4fed0b
Function at 0x4ff0f0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rbx, qword [rsp + 0xf8]
cmp rcx, 0xffffffffffffffff
mov rsi, rcx
mov qword [rsp + 0xd0], r8
je 0x4ff277
mov ebp, edx
mov dword [rsp + 0x54], r9d
mov r15d, dword [rsp + 0xf0]
lea rax, [rsp + 0x6c]
and ebp, 1
mov r14, qword [sym.imp.WSOCK32.dll_WSASetLastError]
mov qword [rsp + 0x58], rax
mov r13, qword [sym.imp.WS2_32.dll_WSASendTo]
jmp 0x4ff1c5
cmp eax, 0x4d2
je 0x4ff250
test edi, edi
jne 0x4ff17b
call fcn.004d6fb0
mov dword [rbx], 0
mov qword [rbx + 8], rax
movsxd rax, dword [rsp + 0x6c]
test eax, eax
jns 0x4ff266
test bpl, bpl
jne 0x4ff264
call fcn.004d6fb0
cmp dword [rbx], 0x2733
jne 0x4ff197
cmp qword [rbx + 8], rax
je 0x4ff1b2
call fcn.004d6fb0
cmp qword [rbx + 8], rax
jne 0x4ff264
cmp dword [rbx], 0x4d5
jne 0x4ff264
mov rdx, rbx
mov rcx, rsi
call fcn.004fc690
test eax, eax
js 0x4ff264
xor ecx, ecx
call r14
mov r9, qword [rsp + 0x58]
mov rcx, rsi
mov dword [rsp + 0x30], r15d
mov rax, qword [rsp + 0xe8]
mov dword [rsp + 0x6c], 0
mov qword [rsp + 0x40], 0
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0xd0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x20], eax
call r13
mov edi, eax
call fcn.004d6fb0
mov r12, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov qword [rbx + 8], r12
cmp eax, 0x40
mov dword [rbx], eax
jne 0x4ff150
call fcn.004d6fb0
mov dword [rbx], 0x2746
mov qword [rbx + 8], rax
jmp 0x4ff15b
call fcn.004d6fb0
mov dword [rbx], 0x274d
mov qword [rbx + 8], rax
jmp 0x4ff15b
xor eax, eax
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call fcn.004d6fb0
mov dword [rbx], 0x2719
mov qword [rbx + 8], rax
xor eax, eax
jmp 0x4ff266

Function at 0x4ff290
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov esi, edx
mov edi, ecx
mov rbx, r9
mov dword [rsp + 0x3c], r8d
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
xor r9d, r9d
mov edx, esi
mov r8d, dword [rsp + 0x3c]
mov ecx, edi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
call fcn.004d6fb0
mov rbp, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp rsi, 0xffffffffffffffff
mov qword [rbx + 8], rbp
mov dword [rbx], eax
je 0x4ff2ff
cmp edi, 0x17
je 0x4ff310
call fcn.004d6fb0
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov rax, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov dword [rsp + 0x4c], 0
lea r9, [rsp + 0x4c]
mov r8d, 0x1b
mov rcx, rsi
mov dword [rsp + 0x20], 4
mov edx, 0x29
call qword [sym.imp.WSOCK32.dll_setsockopt]
jmp 0x4ff2f0
Function at 0x4ff340
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, qword [rsp + 0x90]
cmp rcx, 0xffffffffffffffff
mov rbx, rcx
mov ebp, r8d
mov esi, r9d
je 0x4ff469
cmp r8d, 0xa5100000
sete al
cmp r9d, 2
jne 0x4ff37b
test al, al
jne 0x4ff450
cmp esi, 1
jne 0x4ff3d0
test al, al
je 0x4ff3d0
cmp qword [rsp + 0x88], 4
jne 0x4ff450
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
test eax, eax
movzx eax, byte [rdx]
je 0x4ff440
or eax, 4
mov byte [rdx], al
xor ebx, ebx
call fcn.004d6fb0
mov dword [rdi], 0
mov qword [rdi + 8], rax
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp ebp, 0xffff
jne 0x4ff3e3
cmp esi, 0x80
jne 0x4ff3e3
or byte [rdx], 8
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
mov r8d, esi
mov rcx, rbx
mov edx, ebp
mov eax, dword [rsp + 0x88]
mov r9, qword [rsp + 0x80]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WSOCK32.dll_setsockopt]
mov ebx, eax
call fcn.004d6fb0
mov rsi, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
test ebx, ebx
mov qword [rdi + 8], rsi
mov dword [rdi], eax
jne 0x4ff3be
call fcn.004d6fb0
mov dword [rdi], 0
mov qword [rdi + 8], rax
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
and eax, 0xfffffffb
jmp 0x4ff3ab
call fcn.004d6fb0
mov ebx, 0xffffffff
mov dword [rdi], 0x2726
mov qword [rdi + 8], rax
jmp 0x4ff3be
call fcn.004d6fb0
mov dword [rdi], 0x2719
mov qword [rdi + 8], rax
jmp 0x4ff3be

Function at 0x4ff5d0
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
cmp rcx, 0xffffffffffffffff
mov rdi, rcx
mov rbp, rdx
mov rbx, r9
je 0x4ff62f
test r8b, r8b
jne 0x4ff653
xor ecx, ecx
mov r13, qword [sym.imp.WSOCK32.dll_WSASetLastError]
call r13
mov rcx, rdi
mov r14, qword [sym.imp.WSOCK32.dll_closesocket]
call r14
mov esi, eax
call fcn.004d6fb0
mov r12, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov r15, rax
call r12
test esi, esi
mov qword [rbx + 8], r15
mov dword [rbx], eax
jne 0x4ff6b1
call fcn.004d6fb0
xor esi, esi
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, esi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test byte [rdx], 8
je 0x4ff5f4
xor edx, edx
xor eax, eax
mov dword [rsp + 0x50], 0
mov word [rsp + 0x42], dx
mov word [rsp + 0x40], ax
call fcn.004d6fb0
mov r9d, pe_nt_image_headers64
mov rdx, rbp
mov rcx, rdi
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov r8d, 0xffff
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call fcn.004ff340
jmp 0x4ff5f4
call fcn.004d6fb0
cmp dword [rbx], 0x2733
jne 0x4ff6c4
cmp qword [rbx + 8], rax
je 0x4ff6df
call fcn.004d6fb0
cmp qword [rbx + 8], rax
jne 0x4ff640
cmp dword [rbx], 0x4d5
jne 0x4ff640
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov rcx, rdi
mov dword [rsp + 0x50], 0
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
xor ecx, ecx
and byte [rbp], 0xfc
call r13
mov rcx, rdi
call r14
mov esi, eax
call fcn.004d6fb0
mov rdi, rax
call r12
test esi, esi
mov qword [rbx + 8], rdi
mov dword [rbx], eax
jne 0x4ff640
jmp 0x4ff62f
Function at 0x4ffba0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
mov rsi, r9
je 0x4ffc20
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
mov rax, qword [rdi]
mov rcx, rbx
mov rdx, rbp
lea r8, [rsp + 0x2c]
mov dword [rsp + 0x2c], eax
call qword [sym.imp.WSOCK32.dll_getsockname]
mov ebx, eax
movsxd rax, dword [rsp + 0x2c]
mov qword [rdi], rax
call fcn.004d6fb0
mov rdi, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
test ebx, ebx
mov qword [rsi + 8], rdi
mov dword [rsi], eax
jne 0x4ffc0b
call fcn.004d6fb0
mov dword [rsi], 0
mov qword [rsi + 8], rax
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.004d6fb0
mov dword [rsi], 0x2719
mov qword [rsi + 8], rax
jmp 0x4ffc0b

Function at 0x4ffc40
Capabilities:
Set socket configuration

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [rsp + 0x80]
cmp rcx, 0xffffffffffffffff
mov rbx, rcx
mov r13, rdx
mov edi, r8d
mov rbp, r9
je 0x4ffcf0
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
mov rcx, rbx
mov r8, rbp
mov edx, edi
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
mov ebx, eax
call fcn.004d6fb0
mov r12, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
test ebx, ebx
mov qword [rsi + 8], r12
mov dword [rsi], eax
js 0x4ffcb1
call fcn.004d6fb0
cmp edi, 0x8004667e
mov dword [rsi], 0
mov qword [rsi + 8], rax
je 0x4ffcc0
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, dword [rbp]
test eax, eax
jne 0x4ffce0
and byte [r13], 0xfc
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
or byte [r13], 1
jmp 0x4ffcb1
call fcn.004d6fb0
mov dword [rsi], 0x2719
mov qword [rsi + 8], rax
jmp 0x4ffcb1
Function at 0x4ffd10
Capabilities:
Get socket status

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
mov rdi, rdx
mov r13d, ecx
mov rbp, r8
xor ecx, ecx
mov r12, r9
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
test rdi, rdi
jne 0x4ffda2
test rbp, rbp
jne 0x4ffda2
test r12, r12
jne 0x4ffda2
test rbx, rbx
je 0x4ffda2
mov r8d, dword [rbx + 4]
mov edx, 0x10624dd3
imul ecx, dword [rbx], 0x3e8
mov eax, r8d
sar r8d, 0x1f
imul edx
mov eax, 1
sar edx, 6
sub edx, r8d
add ecx, edx
cmove ecx, eax
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004d6fb0
mov dword [rsi], 0
mov qword [rsi + 8], rax
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test rbx, rbx
je 0x4ffdc1
mov eax, dword [rbx]
test eax, eax
jne 0x4ffdc1
mov eax, dword [rbx + 4]
sub eax, 1
cmp eax, 0x3e6
ja 0x4ffdc1
mov dword [rbx + 4], 0x3e8
mov rdx, rdi
mov r9, r12
mov r8, rbp
mov qword [rsp + 0x20], rbx
mov ecx, r13d
call qword [sym.imp.WSOCK32.dll_select]
mov ebx, eax
call fcn.004d6fb0
mov rdi, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
test ebx, ebx
mov qword [rsi + 8], rdi
mov dword [rsi], eax
js 0x4ffd93
call fcn.004d6fb0
mov dword [rsi], 0
mov qword [rsi + 8], rax
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x500030
Capabilities:
Get socket status

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x450
cmp rcx, 0xffffffffffffffff
mov rbx, rcx
mov rsi, rdx
je 0x5000c5
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x248], rcx
xor ecx, ecx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x240], 1
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
lea ecx, [rbx + 1]
xor edx, edx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x240]
lea r8, [rsp + 0x30]
call qword [sym.imp.WSOCK32.dll_select]
mov ebx, eax
call fcn.004d6fb0
mov rdi, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
test ebx, ebx
mov qword [rsi + 8], rdi
mov dword [rsi], eax
js 0x5000b8
call fcn.004d6fb0
mov dword [rsi], 0
mov qword [rsi + 8], rax
mov eax, ebx
add rsp, 0x450
pop rbx
pop rsi
pop rdi
ret
call fcn.004d6fb0
mov dword [rsi], 0x2719
mov qword [rsi + 8], rax
jmp 0x5000b8