joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007b5f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x28], WSASetLastError
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x28], reloc.WS2_32.dll_WSAGetLastError
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x28], 0x45
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x28], 0x49
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x28], 0x47
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x28], 0x62
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x28], 0x61
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x28], WSASetLastError
mov eax, 1
imul rax, rax, 0x14
mov byte [rsp + rax + 0x28], reloc.WS2_32.dll_WSACleanup
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x28], WSASetLastError
mov eax, 1
imul rax, rax, 0x17
mov byte [rsp + rax + 0x28], 0
mov eax, 1
imul rax, rax, 0xe
mov byte [rsp + rax + 0x28], WSASetLastError
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x28], 0x5c
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x28], 0x49
mov eax, 1
imul rax, rax, 0xf
mov byte [rsp + rax + 0x28], WSASetLastError
mov eax, 1
imul rax, rax, 0x12
mov byte [rsp + rax + 0x28], 0x4d
mov eax, 1
imul rax, rax, 0x10
mov byte [rsp + rax + 0x28], 0x65
mov eax, 1
imul rax, rax, 0x16
mov byte [rsp + rax + 0x28], 0x78
mov eax, 1
imul rax, rax, 0xc
mov byte [rsp + rax + 0x28], reloc.WS2_32.dll_WSACleanup
mov eax, 1
imul rax, rax, 0xd
mov byte [rsp + rax + 0x28], 0x61
mov eax, 1
imul rax, rax, 0x15
mov byte [rsp + rax + 0x28], 0x65
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x28], reloc.WS2_32.dll_WSAStartup
mov eax, 1
imul rax, rax, 0x13
mov byte [rsp + rax + 0x28], 0x75
mov eax, 1
imul rax, rax, 0x11
mov byte [rsp + rax + 0x28], WSACleanup
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.140029200
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x14007b8a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x78]
test eax, eax
je 0x14007b9f5
call fcn.14007b780
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140029040
nop
mov dl, reloc.WS2_32.dll_WSASetLastError
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov dl, WSAStartup
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov dl, reloc.WS2_32.dll_WSAGetLastError
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov dl, 0x67
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov dl, WSAStartup
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov dl, 0x61
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov dl, 0x6d
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov dl, 0x69
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov dl, WSAGetLastError
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov dl, 0x66
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov dl, reloc.WS2_32.dll_WSAGetLastError
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov dl, reloc.WS2_32.dll_WSAStartup
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov dl, 0x2e
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov dl, 0x63
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov dl, reloc.WS2_32.dll_WSAGetLastError
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov dl, 0x6d
lea rcx, [rsp + 0x28]
call fcn.14002c040
mov rax, qword [rsp + 0x28]
sub rax, 0x18
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14002c530
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rax, 0x18
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
sub rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.14007cf20
mov rax, qword [rsp + 0x70]
jmp 0x14007baae
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x48], reloc.WS2_32.dll_WSAStartup
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x48], 0x63
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x48], reloc.WS2_32.dll_WSAGetLastError
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x48], WSASetLastError
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x48], reloc.WS2_32.dll_WSAStartup
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x48], reloc.WS2_32.dll_WSASetLastError
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x48], WSASetLastError
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x48], 0x61
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x48], 0x2e
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x48], 0
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x48], reloc.WS2_32.dll_WSAGetLastError
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.140029200
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x14010d200
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov dword [rsp + 0x50], 0
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0xa0]
call fcn.14010d3f0
lea rcx, [rsp + 0x68]
call fcn.140006af0
nop
mov edx, 0x20
lea rcx, [rsp + 0x68]
call fcn.14010f5f0
mov dword [rsp + 0x30], 0
jmp 0x14010d259
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x10
jge 0x14010d3a8
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x38], 0x62
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x38], 0x30
mov eax, 1
imul rax, rax, 0x10
mov byte [rsp + rax + 0x38], 0
mov eax, 1
imul rax, rax, 0xd
mov byte [rsp + rax + 0x38], 0x64
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x38], 0x38
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x38], 0x32
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x38], 0x35
mov eax, 1
imul rax, rax, 0xc
mov byte [rsp + rax + 0x38], 0x63
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x38], 0x39
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x38], 0x37
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x38], 0x33
mov eax, 1
imul rax, rax, 0xf
mov byte [rsp + rax + 0x38], 0x66
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x38], 0x36
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x38], 0x61
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x38], 0x34
mov eax, 1
imul rax, rax, 0xe
mov byte [rsp + rax + 0x38], 0x65
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x38], 0x31
movsxd rax, dword [rsp + 0x30]
movzx eax, byte [rsp + rax + 0x58]
sar eax, 4
and eax, 0xf
cdqe
movzx eax, byte [rsp + rax + 0x38]
mov byte [rsp + 0x20], al
movzx edx, byte [rsp + 0x20]
lea rcx, [rsp + 0x68]
call fcn.14007ecf0
movsxd rax, dword [rsp + 0x30]
movzx eax, byte [rsp + rax + 0x58]
and eax, 0xf
cdqe
movzx eax, byte [rsp + rax + 0x38]
mov byte [rsp + 0x28], al
movzx edx, byte [rsp + 0x28]
lea rcx, [rsp + 0x68]
call fcn.14007ecf0
jmp 0x14010d24f
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xa8]
call fcn.1400067f0
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x68]
call fcn.140007dc0
mov rax, qword [rsp + 0xa8]
add rsp, 0x98
ret

Function at 0x14010d540
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov qword [rax], 0
mov rax, qword [rsp + 8]
mov qword [rax + 8], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x10325476
ret
Function at 0x140113640
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 8]
mov qword [rax + 0x28], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x6a09e667
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xbb67ae85
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x3c6ef372
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xa54ff53a
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x510e527f
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x9b05688c
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x1f83d9ab
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x5be0cd19
ret
Function at 0x140127938
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0x97f], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x1401279f9
cmp qword [rcx + 0x260], 0
je 0x1401279ae
call fcn.14011decc
mov dl, 1
mov rcx, rdi
mov bl, al
call fcn.14011e1d4
mov rcx, qword [rdi + 0x1d0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x260]
mov dl, bl
mov rcx, rdi
call fcn.14011e1d4
jmp 0x1401279f9
mov ecx, esi
test edx, edx
je 0x1401279be
sub ecx, 1
je 0x1401279be
cmp ecx, 1
jne 0x1401279f9
mov r9, qword [rdi + 0x1c8]
lea rax, [0x1401bb5a8]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.1401716d8
mov r9, qword [rdi + 0x1c8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.1401716d8
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140127bf8
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 0x140127c31
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
and qword [rbx], 0
mov ecx, 0x38
cmp eax, 0x2733
lea edx, [rcx + 0x19]
cmove ecx, edx
mov eax, ecx
jmp 0x140127c36
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1401dd0a8]
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 + 0x160]
call fcn.140128288
test eax, eax
je 0x140127d9d
mov dword [rbx], 0x1b
or rax, 0xffffffffffffffff
jmp 0x140127e07
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
and dword [rbx], 0
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
jne 0x140127e04
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x140127dd4
xor esi, esi
mov dword [rbx], 0x51
jmp 0x140127e04
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.14013a778
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.140127a14
mov dword [rbp + 0xc1c], edi
mov dword [rbx], 0x37
mov rax, rsi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140143b50
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140128288
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov r14, rcx
movsxd rdx, r8d
mov rdi, rdx
shl rdi, 5
mov rax, qword [rbx + 0x2c8]
mov rsi, qword [rdi + rbx + 0x1b0]
sub rsi, qword [rdi + rbx + 0x1b8]
test byte [rax + 0x84], 3
je 0x1401283a2
lea rax, [0x140127c70]
cmp qword [rbx + rdx*8 + 0x188], rax
jne 0x1401283a2
cmp qword [rdi + rbx + 0x1a8], 0
je 0x1401282fe
test rsi, rsi
je 0x1401283a2
mov rbp, qword [rbx + rdx*8 + 0x160]
or r8, 0xffffffffffffffff
or rdx, r8
mov rcx, rbp
xor r9d, r9d
call fcn.140132980
cmp eax, 0xffffffff
je 0x1401283a2
test al, 1
je 0x1401283a2
mov rcx, qword [rdi + rbx + 0x1a8]
test rcx, rcx
jne 0x140128379
mov eax, dword [r14 + 0x5f4]
lea ecx, [rax + rax]
mov qword [rdi + rbx + 0x1b0], rcx
call qword [fcn.140155470]
mov qword [rdi + rbx + 0x1a8], rax
mov rcx, rax
test rax, rax
jne 0x14012835f
lea eax, [rcx + 0x1b]
jmp 0x1401283a4
and qword [rdi + rbx + 0x1b8], 0
and qword [rdi + rbx + 0x1c0], 0
mov rsi, qword [rdi + rbx + 0x1b0]
mov rdx, qword [rdi + rbx + 0x1b8]
xor r9d, r9d
add rdx, rcx
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1401283a2
add qword [rdi + rbx + 0x1b8], rcx
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x1401dd0a8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, r8
mov rbx, rdx
mov r8d, 0x80
mov rsi, rcx
xor edx, edx
mov dword [rsp + 0x20], r8d
lea rcx, [rsp + 0x30]
mov rbp, r9
call fcn.140146460
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14012880d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14013a778
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x140128853
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rbp
mov r8, rdi
call fcn.1401283c0
test al, al
jne 0x14012885e
call fcn.1401542d8
mov ebx, dword [rax]
call fcn.1401542d8
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14013a778
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140127a14
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140143b50
add rsp, 0x1c8
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140128f34
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, rcx
mov eax, dword [0x1401de370]
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140128f90
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.14013c288
test al, al
je 0x140128f85
mov dword [0x1401de370], 2
jmp 0x140128fe7
mov eax, 1
mov dword [0x1401de370], eax
cmp eax, 2
je 0x140128fe7
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 0x140128fc6
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x140128fe7
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 0x140129ac8
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1401dd0a8]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x20], 4
cmp byte [rcx + 0x98b], al
lea r9, [rsp + 0x50]
mov rdi, rdx
mov rbx, rcx
setne al
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x50], eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x140129b8f
mov ecx, dword [rbx + 0x914]
mov dword [rsp + 0x58], 1
call fcn.140129d3c
mov ecx, dword [rbx + 0x918]
imul edx, eax, 0x3e8
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x5c], edx
call fcn.140129d3c
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9d, ntohs
imul edx, eax, 0x3e8
mov rcx, rdi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x60], edx
mov edx, 0x98000004
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140143b50
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x140129bac
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov r8d, 1
mov dword [rsp + 0x20], 4
mov rcx, rdx
mov dword [rsp + 0x50], r8d
lea r9, [rsp + 0x50]
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x140129fd8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
lea rcx, [0x1401bb878]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x14012a11d
lea rdx, str.LoadLibraryExA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1401bb898]
mov rcx, rdi
mov rbp, rax
call fcn.140174ab8
test rax, rax
je 0x14012a04d
mov rcx, rdi
test rbp, rbp
je 0x14012a045
mov r8d, 8
jmp 0x14012a070
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x14012a074
test rbp, rbp
je 0x14012a07c
lea rdx, str.AddDllDirectory
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14012a07c
mov r8d, 0x800
mov rcx, rdi
xor edx, edx
call rbp
mov rbx, rax
jmp 0x14012a11a
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x14012a11a
or r14, 0xffffffffffffffff
mov rdx, r14
inc rdx
cmp byte [rdi + rdx], bl
jne 0x14012a098
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.140155470]
mov rsi, rax
test rax, rax
je 0x14012a111
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14012a111
mov rax, r14
inc rax
cmp byte [rsi + rax], bl
jne 0x14012a0c7
mov ecx, 0x5c
mov word [rax + rsi], cx
inc r14
cmp byte [rsi + r14], bl
jne 0x14012a0d8
mov rcx, rsi
sub rcx, rdi
add rcx, r14
mov al, byte [rdi]
mov byte [rcx + rdi], al
inc rdi
test al, al
jne 0x14012a0ea
mov rcx, rsi
test rbp, rbp
je 0x14012a108
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x14012a10e
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rsi
call qword [fcn.140155468]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14012a178
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1401dd0a8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14012a1cd
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14012a1b4
mov eax, 2
jmp 0x14012a246
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14012a1c5
shr ax, 8
cmp al, 2
je 0x14012a1cd
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14012a1aa
call fcn.14013d1e4
test eax, eax
jne 0x14012a246
lea rcx, str.iphlpapi.dll
call fcn.140129fd8
mov qword [0x1401de380], rax
test rax, rax
je 0x14012a213
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401de378]
test rax, rax
cmovne rcx, rax
mov qword [0x1401de378], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14013c288
test al, al
lea rcx, [0x1401dff40]
setne byte [0x1401dff38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140143b50
add rsp, 0x1e8
ret
Function at 0x14012c9c4
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x18]
and qword [r11 - 0x20], 0
xor r9d, r9d
mov qword [r11 - 0x28], rax
xor r8d, r8d
lea rax, [r11 + 0x10]
mov dword [rsp + 0x28], 4
mov edx, 0x4004747b
mov qword [r11 - 0x38], rax
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x14012ca27
lea r9, [rsp + 0x68]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x50
pop rbx
ret
Function at 0x140132b30
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 0x140132b5a
cmp dword [rdx], 0
jne 0x140132b70
test rbx, rbx
je 0x140132b65
cmp dword [r8], 0
jne 0x140132b70
test rdi, rdi
je 0x140132bbc
cmp dword [r9], 0
je 0x140132bbc
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14013ef64
test rdi, rdi
je 0x140132b89
cmp dword [rdi], 0
jne 0x140132b8b
xor edi, edi
test rbx, rbx
je 0x140132b95
cmp dword [rbx], 0
jne 0x140132b97
xor ebx, ebx
test rsi, rsi
je 0x140132ba1
cmp dword [rsi], 0
jne 0x140132ba3
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 0x140132bc6
mov rcx, qword [rsp + 0x60]
call fcn.140132af0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1401341d8
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, r9
xor edi, edi
and qword [r9], rdi
xor r13d, r13d
lea r9, [rax + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x140134345
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14013432f
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14013423d
or rbp, 0xffffffffffffffff
inc rbp
cmp byte [rax + rbp], 0
jne 0x14013422f
inc rbp
jmp 0x14013423f
xor ebp, ebp
cmp dword [rbx + 4], 2
jne 0x14013424d
mov r15d, reloc.WS2_32.dll_recv
jmp 0x14013425d
cmp dword [rbx + 4], 0x17
jne 0x1401342f5
mov r15d, 0x1c
cmp qword [rbx + 0x20], 0
je 0x1401342f5
cmp qword [rbx + 0x10], 0
jbe 0x1401342f5
cmp qword [rbx + 0x10], r15
jb 0x1401342f5
lea rcx, [rbp + 0x30]
add rcx, r15
call qword [fcn.140155470]
mov rsi, rax
test rax, rax
je 0x140134303
mov ecx, dword [rbx]
mov r8, r15
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
and qword [rax + 0x18], 0
and qword [rax + 0x28], 0
mov dword [rax + 0xc], ecx
lea rcx, [rax + 0x30]
mov qword [rax + 0x20], rcx
mov dword [rax + 0x10], r15d
mov rdx, qword [rbx + 0x20]
call fcn.140145d30
test rbp, rbp
je 0x1401342e2
mov rcx, qword [rsi + 0x20]
mov r8, rbp
add rcx, r15
mov qword [rsi + 0x18], rcx
mov rdx, qword [rbx + 0x18]
call fcn.140145d30
test rdi, rdi
cmove rdi, rsi
test r13, r13
je 0x1401342f2
mov qword [r13 + 0x28], rsi
mov r13, rsi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x140134309
jmp 0x140134222
mov r14d, 8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140134319
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x14013432a
mov rcx, rdi
call fcn.1401341b4
xor edi, edi
jmp 0x14013433e
test rdi, rdi
jne 0x14013433e
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov qword [r12], rdi
mov eax, r14d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret