joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180013cb8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
mov ecx, 0x2d
call fcn.1800335c0
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x78], eax
jbe 0x180013cf7
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x34], eax
mov ecx, 0x2b
call fcn.180033630
movzx eax, ax
mov ecx, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
mov r9d, 0x3000
mov r8d, ecx
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180013d4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x34]
mov ecx, 0x1f
call fcn.18000dc3c
xor eax, eax
jmp 0x180013e95
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x30], eax
jge 0x180013e0a
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x78]
sub ecx, eax
mov eax, ecx
cdqe
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x70]
add rdx, rcx
mov rcx, rdx
movsxd rdx, dword [rsp + 0x30]
mov r8, qword [rsp + 0x48]
add r8, rdx
mov rdx, r8
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], r8
mov r9, rax
mov r8, rcx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x180013dd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, reloc.WS2_32.dll_recv
call fcn.18000dc18
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x180013e95
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x38], 0
jne 0x180013e05
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x180013e95
jmp 0x180013d4d
mov ecx, 0x2b
call fcn.180033630
movzx eax, ax
mov dword [rsp + 0x3c], eax
mov ecx, 0x2c
call fcn.180033630
movzx eax, ax
mov ecx, dword [rsp + 0x3c]
cmp ecx, eax
jne 0x180013e32
jmp 0x180013e90
mov ecx, 0x2c
call fcn.180033630
movzx eax, ax
mov ecx, dword [rsp + 0x34]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rdx
mov r9d, eax
mov r8d, ecx
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x180013e90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, send
call fcn.18000dc18
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x180013e95
mov rax, qword [rsp + 0x48]
add rsp, 0x58
ret
Function at 0x180013fd4
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x508
mov dword [rsp + 0x60], 0x100002
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x510]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x18001400d
xor eax, eax
jmp 0x180014071
mov rax, qword [rsp + 0x518]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x520]
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x510]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x180014048
xor eax, eax
jmp 0x180014071
mov rcx, qword [rsp + 0x510]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x180014065
mov dword [rsp + 0x20], 1
jmp 0x18001406d
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x508
ret

Function at 0x18001407c
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x308
cmp qword [rsp + 0x320], 0
je 0x1800140a1
xor eax, eax
jmp 0x180014116
mov dword [rsp + 0x30], 0x100002
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
jne 0x1800140c4
xor eax, eax
jmp 0x180014116
mov eax, dword [rsp + 0x318]
mov dword [rsp + 0xe0], eax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
jne 0x1800140ed
xor eax, eax
jmp 0x180014116
mov rcx, qword [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x18001410a
mov dword [rsp + 0x20], 1
jmp 0x180014112
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x308
ret

Function at 0x180014cbc
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x180014d13
mov eax, 0xffffffff
jmp 0x180014db7
cmp dword [rsp + 0x38], 0
jbe 0x180014db3
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jae 0x180014db3
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x180014dae
mov eax, 0xffffffff
jmp 0x180014db7
jmp 0x180014d13
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x180015bc4
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jge 0x180015c57
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x180015c3e
cmp dword [rsp + 0x34], 0
jne 0x180015c45
mov eax, 0xffffffff
jmp 0x180015c6c
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x180015be7
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
je 0x180015c68
mov eax, 0xffffffff
jmp 0x180015c6c
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x180015c74
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jge 0x180015d31
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
cmp eax, 0x2000
jle 0x180015cca
mov dword [rsp + 0x38], 0x2000
jmp 0x180015cda
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x38]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x180015d1c
mov eax, dword [rsp + 0x34]
jmp 0x180015d35
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x180015c9f
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret
Function at 0x180015e48
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 1
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x180015e9a
xor eax, eax
jmp 0x180015f42
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rsp + 0x30]
jae 0x180015f12
mov r9d, 2
mov r8d, 1
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x180015ed9
mov dword [rsp + 0x28], 0
jmp 0x180015f12
cmp dword [rsp + 0x24], 0
jle 0x180015eec
mov dword [rsp + 0x28], 1
jmp 0x180015f12
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180015f06
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180015f10
mov dword [rsp + 0x28], 0
jmp 0x180015f12
jmp 0x180015e9a
mov dword [rsp + 0x2c], 0
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x180015f3e
xor eax, eax
jmp 0x180015f42
mov eax, dword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x180015f48
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
lea rax, [0x180016030]
mov qword [rsp + 0x40], rax
lea rax, [0x180016110]
mov qword [rsp + 0x48], rax
lea rax, [0x180015ff4]
mov qword [rsp + 0x50], rax
lea rax, [0x1800158e4]
mov qword [rsp + 0x58], rax
lea rax, [0x1800160e0]
mov qword [rsp + 0x60], rax
lea rax, [0x1800158e4]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x30]
mov rdi, qword [rsp + 0x90]
mov rsi, rax
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x180016184
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, 0x38
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
jge 0x180016210
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x1800161f5
mov eax, 0xffffffff
jmp 0x180016225
cmp dword [rsp + 0x24], 0
jne 0x1800161fe
jmp 0x180016210
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x1800161a7
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
je 0x180016221
mov eax, 0xffffffff
jmp 0x180016225
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x50], 0
jne 0x18001624d
mov eax, 1
jmp 0x180016279
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x180016274
xor eax, eax
jmp 0x180016279
mov eax, 1
add rsp, 0x38
ret
Function at 0x1800164b4
Capabilities:
Get hostname
Get session user name

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov ecx, 0x494
call fcn.180016738
mov qword [rsp + 0x40], rax
mov edx, __WSAFDIsSet
mov rcx, qword [rsp + 0x40]
call fcn.1800169ac
mov qword [rsp + 0x48], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x40]
call fcn.1800169ac
mov qword [rsp + 0x58], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x40]
call fcn.1800169ac
mov qword [rsp + 0x70], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x40]
call fcn.1800169ac
mov qword [rsp + 0x68], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x40]
call fcn.1800169ac
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0x100
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0x100
lea rdx, [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [rsp + 0x34], 0x100
lea rdx, [rsp + 0x34]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.18000ddb0
mov dword [rsp + 0x60], eax
mov r8d, 0x100
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1800165c9
mov edx, 0x5c
mov rcx, qword [rsp + 0x78]
call fcn.180036e60
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1800165c9
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1800165dd
lea rax, [0x180062050]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x48]
mov dword [rax], __WSAFDIsSet
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 4]
mov dword [0x1800696f0], eax
mov rax, qword [rsp + 0x48]
mov dl, byte [rax + 4]
mov rcx, qword [rsp + 0xa0]
call fcn.18000d8bc
mov rax, qword [rsp + 0x48]
mov dl, byte [rax + 8]
mov rcx, qword [rsp + 0xa0]
call fcn.18000d8bc
mov rax, qword [rsp + 0x48]
movzx edx, word [rax + 0xc]
mov rcx, qword [rsp + 0xa0]
call fcn.18000d9b0
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
sar rax, 0x20
mov ecx, 0xffffffff
and rax, rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
call fcn.18000d97c
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [rsp + 0xa0]
call fcn.18000d97c
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0xa0]
call fcn.18000d97c
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xa0]
call fcn.18000d97c
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
lea r8, str._s_t_s_t_s
mov edx, 0x100
mov rcx, qword [rsp + 0x58]
call fcn.180035818
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
cmp byte [rax + rcx], 0
jne 0x1800166df
mov rax, qword [rsp + 0x50]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x3a
jle 0x18001670f
mov dword [rsp + 0x30], 0x3a
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xa0]
call fcn.18000d8e4
mov rcx, qword [rsp + 0x40]
call fcn.1800168a8
add rsp, 0x98
ret
Function at 0x180017474
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 1
call fcn.18000dee8
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1800174cf
mov rax, 0xffffffffffffffff
jmp 0x18001758d
mov eax, 2
mov word [rsp + 0x30], ax
movzx ecx, word [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x32], ax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x34], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x180017525
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x18001758d
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x18001755a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x18001758d
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_listen]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x180017588
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x18001758d
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x180017be0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x2c], 0
mov rax, qword [0x180062058]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
cmp qword [0x180062060], 0
jne 0x180017c38
mov ecx, 0x100000
call fcn.180035368
mov qword [0x180062060], rax
cmp qword [rsp + 0x38], 0
je 0x180017d73
mov rax, qword [rsp + 0x38]
cmp dword [rax + 4], 1
je 0x180017c5f
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x38], rax
jmp 0x180017c38
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x2c], eax
mov rax, qword [0x180062060]
mov ecx, dword [rsp + 0x2c]
mov dword [rax], ecx
lea r8, [rsp + 0x20]
mov edx, 0x4004667f
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x20], 0xffffc
jbe 0x180017cac
mov dword [rsp + 0x20], 0xffffc
cmp dword [rsp + 0x30], 0xffffffff
jne 0x180017cda
mov rax, qword [rsp + 0x38]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x180062060]
call qword [rsp + 0x50]
jmp 0x180017d60
cmp dword [rsp + 0x20], 0
jbe 0x180017d60
mov rax, qword [0x180062060]
add rax, 4
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x20]
call fcn.180017ef4
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x180017d31
mov rax, qword [rsp + 0x38]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x180062060]
call qword [rsp + 0x50]
jmp 0x180017d60
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
jne 0x180017d60
mov eax, dword [rsp + 0x20]
add rax, 4
mov r8d, 5
mov edx, eax
mov rcx, qword [0x180062060]
call qword [rsp + 0x50]
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x38], rax
jmp 0x180017c38
mov eax, dword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x180017d7c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x180062058]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
cmp qword [rsp + 0x28], 0
je 0x180017eef
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0
jne 0x180017df7
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
jne 0x180017df7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x180017eea
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0
jne 0x180017ed2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x28]
sub eax, dword [rcx + 0xc]
cmp eax, 0x3e8
jbe 0x180017ed2
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 0
jne 0x180017e3e
mov edx, 2
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180017e79
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 2
jne 0x180017e79
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x180017daa
cmp qword [rsp + 0x30], 0
jne 0x180017ea6
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [0x180062058], rax
mov rcx, qword [rsp + 0x28]
call fcn.180035328
mov qword [rsp + 0x28], 0
jmp 0x180017ed0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x28]
mov qword [rax + 0x28], rcx
mov rcx, qword [rsp + 0x28]
call fcn.180035328
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x180017eea
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x180017daa
add rsp, 0x48
ret

Function at 0x180017ef4
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, 0x38
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
jge 0x180017fa1
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x180017f9f
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
jmp 0x180017fa5
jmp 0x180017f21
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret