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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
lea rax, [fcn.180010d80]
mov rbp, rcx
lea r15, [0x180010d34]
sub eax, r15d
xor r12d, r12d
mov rsi, r8
lea rcx, [rax + 0x20]
mov qword [rsp + 0x70], r12
lea edi, [rax + 0x20]
mov ebx, eax
call fcn.1800182cc
mov rcx, qword [rsi]
mov qword [rax], rcx
mov rcx, qword [rsi + 8]
mov r8d, ebx
mov qword [rax + 8], rcx
mov rcx, qword [rsi + 0x10]
mov rdx, r15
mov qword [rax + 0x10], rcx
mov rcx, qword [rsi + 0x18]
mov r14, rax
mov qword [rax + 0x18], rcx
lea rcx, [rax + 0x20]
call fcn.1800188c0
mov r9d, 0x3000
mov r8d, edi
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x180010e40
lea rax, [rsp + 0x70]
mov r9d, edi
mov r8, r14
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180010e40
cmp qword [rsp + 0x70], rdi
cmovne rbx, r12
mov rcx, r14
call fcn.18001828c
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180010e64
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rbx, rdx
xor edx, edx
mov rdi, r8
mov rsi, rcx
lea rcx, [rbp - 0x3c]
lea r8d, [rdx + 0x18]
call fcn.180018580
xor eax, eax
lea rcx, str.ntdll
and qword [rbp + 0x28], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
and dword [rbp - 8], 0
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x40], 0x1c
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtQueueApcThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x180010fed
mov edx, dword [rsi + 0x10]
mov rcx, qword [rsi]
lea r8, [rbp - 0x20]
call fcn.180010d80
mov rbx, rax
test rax, rax
je 0x180010fed
xor edx, edx
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
test rax, rax
je 0x180010fed
lea rdx, [rbp - 0x40]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180010fed
mov eax, dword [rsi + 0x10]
cmp dword [rbp - 0x34], eax
jne 0x180010f75
mov r8d, dword [rbp - 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov r14, rax
test rax, rax
je 0x180010f75
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x20]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
call r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x40]
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180010f35
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsi]
lea rax, [rbp + 0x28]
mov edi, 0x20
lea r8, [rbp - 0x20]
mov rdx, rbx
mov r9d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180010fed
cmp qword [rbp + 0x28], rdi
jne 0x180010fed
cmp dword [rbp - 8], 0
jne 0x180011009
mov rcx, qword [rsi]
lea rax, [rbp + 0x28]
lea r8, [rbp - 0x20]
mov r9d, edi
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov dword [rbp - 8], 1
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov eax, 1
jmp 0x180010fef
Function at 0x180011010
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rcx, str.ntdll
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtQueueApcThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
test rax, rax
jne 0x180011055
xor eax, eax
jmp 0x18001107f
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rbx
call rax
test eax, eax
jne 0x180011051
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180011094
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
setne bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1800110c0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
mov r9, rdx
xor edx, edx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
setne bl
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x1800110f4
Capabilities:
Create thread
Resume thread

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, 0x510
mov edi, ecx
mov rcx, qword [rsp + 0x540]
mov rsi, r9
mov rbp, r8
mov r14, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rsp + 0x548]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov r8, rax
test rax, rax
jne 0x18001114b
xor eax, eax
jmp 0x1800111ee
mov eax, dword [rsp + 0x550]
add r8, rax
sub edi, 6
je 0x180011183
dec edi
jne 0x180011144
mov r9, r8
mov qword [rsp + 0x30], rbx
xor edx, edx
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
jmp 0x18001119d
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x180011144
lea rdx, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x70], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180011144
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov qword [rsp + 0xc0], rbp
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x180011144
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x18001120c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x2c
mov rdi, rdx
call fcn.180017044
mov ecx, 0x2b
movzx ebx, ax
call fcn.180017044
cmp ax, bx
je 0x180011276
mov ecx, 0x2c
call fcn.180017044
lea r9, [rsp + 0x40]
mov rdx, rdi
movzx r8d, ax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180011276
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, send
mov edx, eax
call fcn.18000d4a0
xor eax, eax
jmp 0x18001127b
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800114f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r14, rcx
xor ebx, ebx
mov edi, r9d
lea ecx, [rbx + 0x2d]
mov r12, r8
call fcn.180016fdc
lea ecx, [rbx + 0x2b]
mov ebp, eax
cmp edi, eax
cmova ebp, edi
mov r15d, ebp
call fcn.180017044
mov r9d, 0x3000
movzx eax, ax
mov r8d, ebp
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x180011568
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rbx + 0x1f]
mov edx, ebp
mov r8d, eax
call fcn.18000d4ac
xor eax, eax
jmp 0x180011612
test edi, edi
jle 0x1800115a9
movsxd rcx, ebx
mov eax, edi
sub eax, ebx
lea r8, [rcx + r12]
lea rdx, [rcx + rsi]
movsxd r9, eax
lea rax, [rsp + 0x88]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800115f8
mov eax, dword [rsp + 0x88]
add ebx, eax
test eax, eax
je 0x180011561
cmp ebx, edi
jl 0x18001156c
mov edi, 0x2c
mov ecx, edi
call fcn.180017044
lea ecx, [rdi - 1]
movzx ebx, ax
call fcn.180017044
cmp ax, bx
je 0x18001160f
mov ecx, edi
call fcn.180017044
mov r8, r15
mov rdx, rsi
movzx r9d, ax
lea rax, [rsp + 0x30]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x18001160f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rdi - 0x1b]
jmp 0x180011603
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, reloc.WS2_32.dll_recv
mov edx, eax
call fcn.18000d4a0
jmp 0x180011561
mov rax, rsi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1800116e0
Capabilities:
Resume thread

Disassembly:
cmp byte [rcx + 0x14], 0
mov rcx, qword [rcx + 8]
je 0x18001176c
jmp 0x1800116e0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4f0
mov rbp, rdx
lea rdx, [rsp + 0x20]
mov rsi, r8
mov rdi, rcx
mov dword [rsp + 0x50], 0x100002
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
xor ebx, ebx
test eax, eax
jne 0x18001171d
xor eax, eax
jmp 0x180011750
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0xa8], rsi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x180011719
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2f0
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test r8, r8
je 0x18001178f
xor eax, eax
jmp 0x1800117d0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100002
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x18001178b
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0xd0], esi
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x18001178b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x18001176c
Capabilities:
Resume thread

Disassembly:
cmp byte [rcx + 0x14], 0
mov rcx, qword [rcx + 8]
je 0x18001176c
jmp 0x1800116e0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4f0
mov rbp, rdx
lea rdx, [rsp + 0x20]
mov rsi, r8
mov rdi, rcx
mov dword [rsp + 0x50], 0x100002
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
xor ebx, ebx
test eax, eax
jne 0x18001171d
xor eax, eax
jmp 0x180011750
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0xa8], rsi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x180011719
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2f0
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test r8, r8
je 0x18001178f
xor eax, eax
jmp 0x1800117d0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100002
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x18001178b
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0xd0], esi
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x18001178b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180011fec
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
mov edi, r8d
mov rbp, rdx
xor ebx, ebx
xor r9d, r9d
and qword [rax - 8], rbx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x180012033
or eax, 0xffffffff
jmp 0x180012095
cmp dword [rsp + 0x30], ebx
jbe 0x180012091
cmp ebx, edi
jae 0x180012091
and qword [rsp + 0x20], 0
mov r8d, edi
lea r9, [rsp + 0x68]
sub r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x68]
and qword [rsp + 0x28], 0
add ebx, dword [rsp + 0x68]
add rbp, rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x18001202e
cmp dword [rsp + 0x30], 0
ja 0x180012039
mov eax, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180012984
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
and dword [rax + 0x18], 0
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x1800129de
and qword [rsp + 0x20], 0
mov r8d, edi
movsxd rdx, ebx
lea r9, [rsp + 0x50]
mov rcx, rbp
sub r8d, ebx
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800129fd
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1800129fd
add ebx, eax
cmp ebx, edi
jl 0x1800129ac
or eax, 0xffffffff
cmp ebx, edi
cmovne ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
or eax, 0xffffffff
jmp 0x1800129e8

Function at 0x180012a04
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
and dword [rsp + 0x60], ebx
mov rbp, rcx
lea eax, [rbx + 1]
test r8d, r8d
jle 0x180012a6a
mov r14d, 0x2000
mov r8d, edi
movsxd rdx, ebx
lea r9, [rsp + 0x60]
sub r8d, ebx
mov rcx, rbp
cmp r8d, r14d
cmovg r8d, r14d
and qword [rsp + 0x20], 0
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180012a68
add ebx, dword [rsp + 0x60]
cmp ebx, edi
jl 0x180012a33
jmp 0x180012a6a
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x180012c4c
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
and dword [rsp + 0x30], 0
mov rbx, rdx
mov rdi, rcx
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rax, [0x180012cec]
lea rcx, [0x180012700]
mov qword [rdi + 0x10], rax
lea rax, [0x180012d80]
mov qword [rdi + 8], rbx
mov rbx, qword [rsp + 0x38]
mov qword [rdi + 0x18], rax
lea rax, [0x180012cc4]
mov qword [rdi + 0x20], rax
lea rax, [0x180012d74]
mov qword [rdi + 0x28], rcx
mov qword [rdi + 0x30], rax
mov rax, rdi
mov qword [rdi + 0x38], rcx
add rsp, 0x20
pop rdi
ret

Function at 0x180012de0
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
xor edi, edi
or r14d, 0xffffffff
mov ebx, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x180012e34
mov r8d, ebx
movsxd rdx, edi
xor r9d, r9d
sub r8d, edi
add rdx, rsi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, r14d
je 0x180012e57
test eax, eax
je 0x180012e34
add edi, eax
cmp edi, ebx
jl 0x180012e0d
cmp edi, ebx
cmovne ebx, r14d
mov eax, ebx
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
mov eax, r14d
jmp 0x180012e3c
Function at 0x180012e5c
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test r8d, r8d
jne 0x180012e6e
lea eax, [rbx + 1]
jmp 0x180012e7f
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180013050
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
mov ecx, 0x494
call fcn.180013218
mov edx, __WSAFDIsSet
mov rcx, rax
mov rbp, rax
call fcn.180013368
mov r13d, 0x100
mov rcx, rbp
mov edx, r13d
mov r14, rax
call fcn.180013368
mov edx, r13d
mov rcx, rbp
mov rsi, rax
call fcn.180013368
mov edx, r13d
mov rcx, rbp
mov r15, rax
call fcn.180013368
mov edx, r13d
mov rcx, rbp
mov r12, rax
call fcn.180013368
lea rdx, [rsp + 0x70]
mov rcx, r12
mov dword [rsp + 0x70], r13d
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rdx, [rsp + 0x70]
mov rcx, r15
mov dword [rsp + 0x70], r13d
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, r13d
mov rcx, rbx
call fcn.18000d59c
mov r8d, 0x100
mov rdx, rbx
xor ecx, ecx
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x18001312d
mov edx, 0x5c
mov rcx, rbx
call fcn.18001a460
mov rbx, rax
test rax, rax
je 0x18001312d
inc rbx
jne 0x180013134
lea rbx, [0x18002a7b2]
mov rcx, r14
mov dword [r14], __WSAFDIsSet
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [r14 + 4]
mov rcx, rdi
mov dword [0x180044aa0], eax
mov dl, byte [r14 + 4]
call fcn.18000d22c
mov dl, byte [r14 + 8]
mov rcx, rdi
call fcn.18000d22c
movzx edx, word [r14 + 0xc]
mov rcx, rdi
call fcn.18000d2c4
mov rdx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rdi
sar rdx, 0x20
call fcn.18000d294
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rdi
call fcn.18000d294
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rdi
call fcn.18000d294
mov edx, r13d
mov rcx, rdi
call fcn.18000d294
lea r8, str._s_t_s_t_s
mov r9, r15
mov edx, 0x100
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r12
call fcn.180018da4
or rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], 0
jne 0x1800131d2
mov ecx, 0x3a
mov rdx, rsi
cmp eax, ecx
cmovg eax, ecx
mov rcx, rdi
mov r8d, eax
call fcn.18000d24c
mov rcx, rbp
call fcn.180013300
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800139fc
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebx, 1
mov edi, r8d
mov esi, edx
mov dword [rax + 0x20], ebx
mov ebp, ecx
call fcn.18000d5f4
lea r15d, [rbx + 1]
xor r8d, r8d
mov edx, ebx
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
or r14, 0xffffffffffffffff
mov rbx, rax
cmp rax, r14
jne 0x180013a4b
mov rax, r14
jmp 0x180013ab4
movzx ecx, si
mov word [rsp + 0x20], r15w
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x68]
mov edx, 0x8004667e
mov rcx, rbx
mov dword [rsp + 0x24], ebp
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rbx
cmp eax, r14d
jne 0x180013a86
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180013a46
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, rbx
cmp eax, r14d
je 0x180013a7e
mov edx, edi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, r14d
jne 0x180013ab1
mov rcx, rbx
jmp 0x180013a7e
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x180013b1c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180013b64
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
mov rcx, rbx
call fcn.180013e84
test eax, eax
jle 0x180013b50
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180013b3a
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180013f90
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x18003d440]
xor edi, edi
test rbx, rbx
je 0x18001402e
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180013fc1
cmp dword [rbx + 0xc], eax
jne 0x180013fca
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x180013fa3
test eax, eax
jne 0x180013fc1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180013fc1
cmp dword [rbx + 0x10], 0
jne 0x180013ff3
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180014007
cmp dword [rbx + 0x10], 2
je 0x180013fc1
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180014022
mov qword [rdi + 0x28], rax
call fcn.18001828c
mov rbx, qword [rdi + 0x28]
jmp 0x180013fa3
mov qword [0x18003d440], rax
call fcn.18001828c
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180013e84
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r15
sub rsp, 0x20
and dword [rax + 0x10], 0
mov rbx, qword [0x18003d440]
xor edi, edi
cmp qword [0x18003d448], rdi
mov rsi, rcx
jne 0x180013ec3
mov ecx, 0x100000
call fcn.1800182cc
mov qword [0x18003d448], rax
test rbx, rbx
je 0x180013f77
mov r15d, 0xffffc
cmp dword [rbx + 4], 1
jne 0x180013f6a
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_htonl]
lea r8, [rsp + 0x38]
mov edx, 0x4004667f
mov ecx, eax
mov rax, qword [0x18003d448]
mov dword [rax], ecx
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsp + 0x38]
cmp r8d, r15d
cmova r8d, r15d
mov dword [rsp + 0x38], r8d
cmp eax, 0xffffffff
je 0x180013f37
test r8d, r8d
je 0x180013f6a
mov rdx, qword [0x18003d448]
mov rcx, qword [rbx + 0x20]
add rdx, 4
call fcn.18001403c
cmp eax, 0xffffffff
jne 0x180013f4e
mov rcx, qword [0x18003d448]
and dword [rbx + 4], 0
mov edx, 4
mov r8d, edx
call rsi
jmp 0x180013f6a
mov edx, dword [rsp + 0x38]
cmp eax, edx
jne 0x180013f6a
mov rcx, qword [0x18003d448]
add edx, 4
mov r8d, 5
call rsi
inc edi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180013ed2
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x180013f90
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180013b64
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
mov rcx, rbx
call fcn.180013e84
test eax, eax
jle 0x180013b50
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180013b3a
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180013f90
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x18003d440]
xor edi, edi
test rbx, rbx
je 0x18001402e
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180013fc1
cmp dword [rbx + 0xc], eax
jne 0x180013fca
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x180013fa3
test eax, eax
jne 0x180013fc1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180013fc1
cmp dword [rbx + 0x10], 0
jne 0x180013ff3
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180014007
cmp dword [rbx + 0x10], 2
je 0x180013fc1
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180014022
mov qword [rdi + 0x28], rax
call fcn.18001828c
mov rbx, qword [rdi + 0x28]
jmp 0x180013fa3
mov qword [0x18003d440], rax
call fcn.18001828c
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret