joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400518a0
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x208
mov rax, qword [0x1400cd048]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov eax, dword [rsp + 0x210]
and eax, 2
test eax, eax
je 0x140051958
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 0x1400518fe
mov eax, 2
jmp 0x1400519fe
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 0x140051948
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 0x140051958
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x1400519fe
call fcn.140071790
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140051971
mov eax, dword [rsp + 0x34]
jmp 0x1400519fe
lea rcx, str.iphlpapi.dll
call fcn.1400515d0
mov qword [0x1400d5068], rax
cmp qword [0x1400d5068], 0
je 0x1400519bb
lea rdx, str.if_nametoindex
mov rcx, qword [0x1400d5068]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400519bb
mov rax, qword [rsp + 0x40]
mov qword [0x1400d5030], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140071850
movzx eax, al
test eax, eax
je 0x1400519e8
mov byte [0x1400d51d8], 1
jmp 0x1400519ef
mov byte [0x1400d51d8], 0
lea rcx, [0x1400d51d0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1400197a0
add rsp, 0x208
ret
Function at 0x14005ac60
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 dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0xa76]
test eax, eax
je 0x14005ad64
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x270], 0
je 0x14005acef
mov dl, 1
mov rcx, qword [rsp + 0x50]
call fcn.140054970
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]
mov dword [rsp + 0x34], eax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140054970
jmp 0x14005ad64
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14005ad0e
cmp dword [rsp + 0x30], 1
je 0x14005ad0e
cmp dword [rsp + 0x30], 2
je 0x14005ad0e
jmp 0x14005ad64
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 3
lea rcx, [0x1400c2f48]
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.140024964
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.140024964
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x14005ad80
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 0x14005ae2a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0x2733
jne 0x14005addd
mov dword [rsp + 0x24], 1
jmp 0x14005ade5
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 0
jne 0x14005adf6
mov dword [rsp + 0x28], 0
jmp 0x14005adfe
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 0x14005ae23
mov eax, 0x51
jmp 0x14005ae39
mov eax, 0x38
jmp 0x14005ae39
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x48
ret
Function at 0x14005b5c0
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 + 0x1f0]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0x238]
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 + 0x408]
mov eax, dword [rax + 0x84]
and eax, 3
test eax, eax
je 0x14005b78f
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea rdx, [0x14005b9b0]
cmp qword [rcx + rax*8 + 0x218], rdx
jne 0x14005b78f
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x14005b672
cmp qword [rsp + 0x30], 0
je 0x14005b78f
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
call fcn.140084fe0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x14005b78f
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14005b78f
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x14005b722
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x6e4]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 8]
call qword [fcn.140023000]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x14005b6fa
mov eax, 0x1b
jmp 0x14005b791
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 0x14005b782
xor eax, eax
test eax, eax
jne 0x14005b72d
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 0x14005b780
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 0x14005b78f
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
xor eax, eax
add rsp, 0x58
ret
Function at 0x14005b830
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 [0x1400cd048]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
test eax, eax
jne 0x14005b85c
xor eax, eax
test eax, eax
jne 0x14005b862
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 + 0x1f0]
mov qword [rsp + 0x38], rax
mov r8d, dword [rsp + 0x168]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
call fcn.14005b5c0
test eax, eax
je 0x14005b8cb
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x14005b983
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 0x14005b97e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x2733
jne 0x14005b933
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x51
jmp 0x14005b97e
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
call fcn.14008e3e0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, qword [rsp + 0x160]
call fcn.14005bda0
mov rax, qword [rsp + 0x160]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0xd2c], 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.1400197a0
add rsp, 0x158
ret
Function at 0x14005ccf0
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 [0x1400d5148], 0
jne 0x14005cd54
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140071850
movzx eax, al
test eax, eax
je 0x14005cd4a
mov dword [0x1400d5148], 2
jmp 0x14005cd54
mov dword [0x1400d5148], 1
cmp dword [0x1400d5148], 2
jne 0x14005cd5f
jmp 0x14005cdb7
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 0x14005cd94
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jle 0x14005cd94
jmp 0x14005cdb7
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 0x14005cdd0
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 0x14005ce1a
xor eax, eax
test eax, eax
jne 0x14005ce14
add rsp, 0x48
ret

Function at 0x14005d240
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 [0x1400cd048]
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 0x14005d2e2
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.14008e3e0
mov r9, rax
mov r8d, dword [rsp + 0x20]
lea rdx, [0x1400ce9d0]
mov rcx, qword [rsp + 0x1d0]
call fcn.14005bda0
jmp 0x14005d34a
mov r9, qword [rsp + 0x1e8]
mov r8, qword [rsp + 0x1e0]
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x30]
call fcn.14005d4a0
movzx eax, al
test eax, eax
jne 0x14005d34a
call fcn.14001f9ac
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, dword [rax]
call fcn.14008e3e0
mov qword [rsp + 0x28], rax
call fcn.14001f9ac
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.14005bda0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400197a0
add rsp, 0x1c0
pop rdi
ret
Function at 0x14005dfa0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1400cd048]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0xa83]
test eax, eax
je 0x14005dfdd
mov dword [rsp + 0x54], 1
jmp 0x14005dfe5
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 0x14005e022
xor eax, eax
test eax, eax
jne 0x14005e017
jmp 0x14005e0d5
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xa08]
call fcn.14005c0b0
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 + 0xa0c]
call fcn.14005c0b0
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, listen
lea r8, [rsp + 0x60]
mov edx, 0x98000004
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14005e0d5
xor eax, eax
test eax, eax
jne 0x14005e0cf
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400197a0
add rsp, 0x88
ret
Function at 0x140071c20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x28], 0x8000
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call qword [fcn.140023008]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140071c6f
mov rcx, qword [rsp + 0x30]
call qword [fcn.140022fec]
xor eax, eax
jmp 0x140071cda
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140071cb5
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
je 0x140071cb5
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x20], eax
jbe 0x140071cc4
mov rcx, qword [rsp + 0x30]
call qword [fcn.140022fec]
xor eax, eax
jmp 0x140071cda
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x140071cd5
mov rax, qword [rsp + 0x30]
jmp 0x140071cda
jmp 0x140071c42
add rsp, 0x48
ret

Function at 0x140071da0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

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, 0x50
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 4
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x38], eax
mov rdi, qword [rsp + 0x70]
xor eax, eax
mov rcx, qword [rsp + 0x78]
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0xf0000040
mov r9d, dword [rsp + 0x80]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140071e1a
jmp 0x140071ef2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140071e45
jmp 0x140071eca
xor r9d, r9d
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140071e63
jmp 0x140071eca
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
mov edx, 4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x140071e8b
jmp 0x140071eca
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x78], rax
jae 0x140071e98
jmp 0x140071eca
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8, qword [rsp + 0x70]
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140071ec0
jmp 0x140071eca
xor eax, eax
test eax, eax
jne 0x140071e1a
cmp qword [rsp + 0x40], 0
je 0x140071edd
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x48], 0
je 0x140071ef2
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add rsp, 0x50
pop rdi
ret
Function at 0x14007c600
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 0x14007c67b
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 0x140084ea0
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 0x140084eca
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
jne 0x140084f0c
cmp qword [rsp + 0x80], 0
je 0x140084ee2
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
jne 0x140084f0c
cmp qword [rsp + 0x88], 0
je 0x140084efa
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x140084f0c
mov rcx, qword [rsp + 0x90]
call fcn.140085270
jmp 0x140084fd1
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.1400a1be0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x88], 0
je 0x140084f4a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x140084f4a
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
jmp 0x140084f53
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x80], 0
je 0x140084f7a
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
je 0x140084f7a
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
jmp 0x140084f83
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x78], 0
je 0x140084fa1
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
je 0x140084fa1
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
jmp 0x140084faa
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 0x140085bd0
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 + 0x1268], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x1b8]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x1270], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10c1]
test eax, eax
je 0x140085c44
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10c1]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x1b8]
cmp eax, ecx
jle 0x140085c5b
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x1b8]
mov byte [rax + 0x10c1], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x10d0], 0
je 0x140085c92
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x1138], 0
jne 0x140085c92
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x1a0
jne 0x140085c92
mov rax, qword [rsp + 0x30]
mov byte [rax + 0xdc], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x1b8]
cmp eax, 0xa
jne 0x140085cba
xor eax, eax
test eax, eax
jne 0x140085ca3
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.14005e940
jmp 0x140085d25
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x1b8]
cmp eax, 0x14
je 0x140085ce4
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x8c], 1
jne 0x140085cfe
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x65
jne 0x140085cfe
xor eax, eax
test eax, eax
jne 0x140085ce4
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x700]
mov dword [rax], 2
jmp 0x140085d25
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x1b8]
cmp eax, 0xb
jl 0x140085d25
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x3ca]
test eax, eax
jne 0x140085d25
xor eax, eax
test eax, eax
jne 0x140085d1f
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x64
jl 0x140085d48
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0xc8
jge 0x140085d48
mov dword [rsp + 0x20], 1
jmp 0x140085d50
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jne 0x140085d61
mov dword [rsp + 0x24], 0
jmp 0x140085d69
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 0x140085db5
cmp dword [rsp + 0x28], 0x130
je 0x140085d9b
jmp 0x140085dda
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x550], 0
je 0x140085db5
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x134c], 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 0x14008f040
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x48], 0
je 0x14008f05e
mov dword [rsp + 0x20], 1
jmp 0x14008f066
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x38
ret
Function at 0x140097a40
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xa8
mov rax, qword [0x1400cd048]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x30], 0x3e8
lea rcx, [rsp + 0x60]
call fcn.14008dd30
lea rcx, [rsp + 0x80]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xc0]
call fcn.1400359f8
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0xc8]
call fcn.1400359f8
mov qword [rsp + 0x28], rax
mov r8d, 1
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x140097b11
cmp qword [rsp + 0x20], 0
je 0x140097ae5
mov rcx, qword [rsp + 0x20]
call fcn.140022fec
mov qword [rsp + 0x20], 0
xor eax, eax
test eax, eax
jne 0x140097aca
cmp qword [rsp + 0x28], 0
je 0x140097b06
mov rcx, qword [rsp + 0x28]
call fcn.140022fec
mov qword [rsp + 0x28], 0
xor eax, eax
test eax, eax
jne 0x140097aeb
jmp 0x140097bc8
lea rax, [rsp + 0x40]
lea rcx, [rsp + 0x80]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x70]
call fcn.14008dd30
lea rcx, [rsp + 0x50]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14008de10
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jl 0x140097b6f
movsxd rax, dword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jle 0x140097bb8
cmp qword [rsp + 0x20], 0
je 0x140097b8a
mov rcx, qword [rsp + 0x20]
call fcn.140022fec
mov qword [rsp + 0x20], 0
xor eax, eax
test eax, eax
jne 0x140097b6f
cmp qword [rsp + 0x28], 0
je 0x140097bab
mov rcx, qword [rsp + 0x28]
call fcn.140022fec
mov qword [rsp + 0x28], 0
xor eax, eax
test eax, eax
jne 0x140097b90
mov eax, 1
jmp 0x140097bca
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140097ab0
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400197a0
add rsp, 0xa8
pop rdi
pop rsi
ret

Function at 0x1400987c0
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.14002def4
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14009881a
mov ecx, 0xffffffff
call fcn.14000f480
cmp qword [rsp + 0x30], rax
jne 0x14009881e
xor eax, eax
jmp 0x140098823
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret