joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011598
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r14, r9
mov r15, r8
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea r8d, [rdx + 0x5c]
call fcn.14007f9f0
mov dword [rdi], 0x67452301
mov dword [rdi + 4], 0xefcdab89
mov dword [rdi + 8], 0x98badcfe
mov dword [rdi + 0xc], 0x10325476
mov r8, r14
mov rdx, r15
mov rcx, rdi
call fcn.1400117d4
mov rbx, qword [rbp + 0x40]
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x140011615
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001160d
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.1400117d4
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.1400113c8
nop
xor edx, edx
lea r8d, [rdx + 0x5c]
mov rcx, rdi
call fcn.14007f9f0
mov dword [rdi], 0x67452301
mov dword [rdi + 4], 0xefcdab89
mov dword [rdi + 8], 0x98badcfe
mov dword [rdi + 0xc], 0x10325476
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rdx, qword [rbp - 0x40]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.1400117d4
mov r8, r14
mov rdx, r15
mov rcx, rdi
call fcn.1400117d4
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x140011693
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001168b
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.1400117d4
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.1400113c8
nop
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae r8, qword [rbp - 0x40]
mov r9, qword [rbp - 0x30]
xor edx, edx
mov rcx, rax
call fcn.140011a48
and qword [rsi], 0
and qword [rsi + 0x10], 0
and qword [rsi + 0x18], 0
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsi + 0x10], xmm1
and qword [rax + 0x10], 0
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rax + 0x18], r14
mov byte [rax], 0
mov edi, 0x1000
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140011726
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, rdi
jb 0x140011721
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400117ce
call fcn.14007d370
and qword [rbp - 0x10], 0
mov qword [rbp - 8], r14
mov byte [rbp - 0x20], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140011767
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, rdi
jb 0x140011761
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400117c2
call fcn.14007d370
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140011799
inc rdx
mov rcx, qword [rbx]
cmp rdx, rdi
jb 0x140011794
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400117c8
mov rcx, r8
call fcn.14007d370
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], r14
mov byte [rbx], 0
mov rax, rsi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140083c6c
nop
call fcn.140083c6c
nop
call fcn.140083c6c
int3
Function at 0x140038840
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x1400388ea
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0x2733
jne 0x14003889d
mov dword [rsp + 0x24], 1
jmp 0x1400388a5
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 0
jne 0x1400388b6
mov dword [rsp + 0x28], 0
jmp 0x1400388be
mov dword [rsp + 0x28], 1
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1400388e3
mov eax, 0x51
jmp 0x1400388f9
mov eax, 0x38
jmp 0x1400388f9
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x48
ret

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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov rax, qword [0x1400e2cd8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
test eax, eax
jne 0x140038abc
xor eax, eax
test eax, eax
jne 0x140038ac2
mov rax, qword [rsp + 0x160]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + rax*8 + 0x1d0]
mov qword [rsp + 0x38], rax
mov r8d, dword [rsp + 0x168]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
call fcn.140039040
test eax, eax
je 0x140038b2b
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x140038be3
xor r9d, r9d
mov r8d, dword [rsp + 0x178]
mov rdx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x180]
mov dword [rax], 0
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x140038bde
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x2733
jne 0x140038b93
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x51
jmp 0x140038bde
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
call fcn.140067250
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, qword [rsp + 0x160]
call fcn.1400385d0
mov rax, qword [rsp + 0x160]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0xd24], ecx
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x37
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14007dc00
add rsp, 0x158
ret
Function at 0x140038f20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0xa6f]
test eax, eax
je 0x140039029
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x270], 0
je 0x140038fb4
mov rcx, qword [rsp + 0x50]
call fcn.140020780
mov byte [rsp + 0x30], al
mov dl, 1
mov rcx, qword [rsp + 0x50]
call fcn.140020710
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x1d8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x270]
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.140020710
jmp 0x140039029
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140038fd3
cmp dword [rsp + 0x34], 1
je 0x140038fd3
cmp dword [rsp + 0x34], 2
je 0x140038fd3
jmp 0x140039029
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 3
lea rcx, [0x1400c5d00]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov r9, qword [rcx + 0x1d0]
mov r8d, 1
mov edx, 2
mov rcx, rax
call fcn.1400890ac
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x1d0]
mov r8d, 1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1400890ac
add rsp, 0x48
ret
Function at 0x140039040
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax*8 + 0x1d0]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0x218]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 8]
sub rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x3e0]
mov eax, dword [rax + 0x84]
and eax, 3
test eax, eax
je 0x14003920f
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea rdx, [0x140038910]
cmp qword [rcx + rax*8 + 0x1f8], rdx
jne 0x14003920f
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x1400390f2
cmp qword [rsp + 0x30], 0
je 0x14003920f
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
call fcn.140053070
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x14003920f
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14003920f
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x1400391a2
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x6dc]
shl eax, 1
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 8]
call qword [fcn.1400873f0]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x14003917a
mov eax, 0x1b
jmp 0x140039211
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x140039202
xor eax, eax
test eax, eax
jne 0x1400391ad
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx + 0x10]
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jle 0x140039200
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
add rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
jmp 0x14003920f
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
xor eax, eax
add rsp, 0x58
ret
Function at 0x14003aa10
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
cmp dword [0x1400e3ef0], 0
jne 0x14003aa74
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.14006a6d0
movzx eax, al
test eax, eax
je 0x14003aa6a
mov dword [0x1400e3ef0], 2
jmp 0x14003aa74
mov dword [0x1400e3ef0], 1
cmp dword [0x1400e3ef0], 2
jne 0x14003aa7f
jmp 0x14003aad7
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14003aab4
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jle 0x14003aab4
jmp 0x14003aad7
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x48
ret

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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1400e2cd8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov dword [rsp + 0x24], 0x80
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x80
rep stosb byte [rdi], al
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x1d8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14003ada2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, dword [rsp + 0x20]
call fcn.140067250
mov r9, rax
mov r8d, dword [rsp + 0x20]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x1d0]
call fcn.1400385d0
jmp 0x14003ae0a
mov r9, qword [rsp + 0x1e8]
mov r8, qword [rsp + 0x1e0]
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x30]
call fcn.14003a840
movzx eax, al
test eax, eax
jne 0x14003ae0a
call fcn.140083d9c
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, dword [rax]
call fcn.140067250
mov qword [rsp + 0x28], rax
call fcn.140083d9c
mov rcx, qword [rsp + 0x28]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x1d0]
call fcn.1400385d0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14007dc00
add rsp, 0x1c0
pop rdi
ret
Function at 0x14003b4a0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1400e2cd8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0xa7b]
test eax, eax
je 0x14003b4dd
mov dword [rsp + 0x54], 1
jmp 0x14003b4e5
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x14003b522
xor eax, eax
test eax, eax
jne 0x14003b517
jmp 0x14003b5d5
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xa00]
call fcn.14003c7a0
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xa04]
call fcn.14003c7a0
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, recv
lea r8, [rsp + 0x60]
mov edx, 0x98000004
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14003b5d5
xor eax, eax
test eax, eax
jne 0x14003b5cf
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14007dc00
add rsp, 0x88
ret
Function at 0x14003c600
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 1
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x14003c64a
xor eax, eax
test eax, eax
jne 0x14003c644
add rsp, 0x48
ret

Function at 0x14003cdd0
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x208
mov rax, qword [0x1400e2cd8]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov eax, dword [rsp + 0x210]
and eax, 2
test eax, eax
je 0x14003ce88
mov eax, 0x202
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14003ce2e
mov eax, 2
jmp 0x14003cf2e
movzx eax, word [rsp + 0x50]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x14003ce78
movzx eax, word [rsp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x14003ce88
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x14003cf2e
call fcn.14006c030
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14003cea1
mov eax, dword [rsp + 0x34]
jmp 0x14003cf2e
lea rcx, str.iphlpapi.dll
call fcn.14003cfb0
mov qword [0x1400e3f00], rax
cmp qword [0x1400e3f00], 0
je 0x14003ceeb
lea rdx, str.if_nametoindex
mov rcx, qword [0x1400e3f00]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14003ceeb
mov rax, qword [rsp + 0x40]
mov qword [0x1400e3ef8], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.14006a6d0
movzx eax, al
test eax, eax
je 0x14003cf18
mov byte [0x1400e5678], 1
jmp 0x14003cf1f
mov byte [0x1400e5678], 0
lea rcx, [0x1400e5680]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14007dc00
add rsp, 0x208
ret
Function at 0x140045e70
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747b
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140045eeb
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x68
ret
Function at 0x14004ba00
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
add rax, 0xe8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x70]
mov dword [rax + 0x1298], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x12a0], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10f1]
test eax, eax
je 0x14004ba74
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10f1]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x717]
cmp eax, ecx
jle 0x14004ba8b
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x717]
mov byte [rax + 0x10f1], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1100], 0
je 0x14004bac4
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1168]
test eax, eax
jne 0x14004bac4
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x1a0
jne 0x14004bac4
mov rax, qword [rsp + 0x30]
mov byte [rax + 0xdc], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
cmp eax, 0xa
jne 0x14004baec
xor eax, eax
test eax, eax
jne 0x14004bad5
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.14003b270
jmp 0x14004bb57
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
cmp eax, 0x14
je 0x14004bb16
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x8c], 2
jne 0x14004bb30
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x65
jne 0x14004bb30
xor eax, eax
test eax, eax
jne 0x14004bb16
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x6d8]
mov dword [rax], 2
jmp 0x14004bb57
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
cmp eax, 0xb
jl 0x14004bb57
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x3aa]
test eax, eax
jne 0x14004bb57
xor eax, eax
test eax, eax
jne 0x14004bb51
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x64
jl 0x14004bb7a
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0xc8
jge 0x14004bb7a
mov dword [rsp + 0x20], 1
jmp 0x14004bb82
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jne 0x14004bb93
mov dword [rsp + 0x24], 0
jmp 0x14004bb9b
mov dword [rsp + 0x24], 1
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x24]
mov byte [rax + 0xdd], cl
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x70]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xcc
je 0x14004bbe9
cmp dword [rsp + 0x28], 0x130
je 0x14004bbcd
jmp 0x14004bc0e
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x558]
test eax, eax
je 0x14004bbe9
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x137c], 1
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
mov rax, qword [rsp + 0x30]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x30]
mov byte [rax + 0xdd], 1
xor eax, eax
add rsp, 0x48
ret
Function at 0x140053a70
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x78], 0
je 0x140053a9a
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
jne 0x140053adc
cmp qword [rsp + 0x80], 0
je 0x140053ab2
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
jne 0x140053adc
cmp qword [rsp + 0x88], 0
je 0x140053aca
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x140053adc
mov rcx, qword [rsp + 0x90]
call fcn.1400539f0
jmp 0x140053ba1
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.140075000
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x88], 0
je 0x140053b1a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x140053b1a
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
jmp 0x140053b23
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x80], 0
je 0x140053b4a
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
je 0x140053b4a
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
jmp 0x140053b53
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x78], 0
je 0x140053b71
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
je 0x140053b71
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
jmp 0x140053b7a
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x70]
inc eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
add rsp, 0x68
ret
Function at 0x1400597f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call fcn.140090678
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140059847
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x30], rax
jne 0x14005984b
xor eax, eax
jmp 0x140059850
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x14005a050
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x38]
rep stosb byte [rdi], al
mov r9d, 2
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x14005a08f
mov eax, 2
jmp 0x14005a091
xor eax, eax
add rsp, 0x20
pop rdi
ret