joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180018b48
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 0x180018b9f
mov eax, 0xffffffff
jmp 0x180018c43
cmp dword [rsp + 0x38], 0
jbe 0x180018c3f
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jae 0x180018c3f
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 0x180018c3a
mov eax, 0xffffffff
jmp 0x180018c43
jmp 0x180018b9f
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x180019d6c
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 0x180019dff
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 0x180019de6
cmp dword [rsp + 0x34], 0
jne 0x180019ded
mov eax, 0xffffffff
jmp 0x180019e14
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x180019d8f
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
je 0x180019e10
mov eax, 0xffffffff
jmp 0x180019e14
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x180019e1c
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 0x180019ed9
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
cmp eax, 0x2000
jle 0x180019e72
mov dword [rsp + 0x38], 0x2000
jmp 0x180019e82
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 0x180019ec4
mov eax, dword [rsp + 0x34]
jmp 0x180019edd
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x180019e47
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x180019ff0
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 0x18001a042
xor eax, eax
jmp 0x18001a0ea
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rsp + 0x30]
jae 0x18001a0ba
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 0x18001a081
mov dword [rsp + 0x28], 0
jmp 0x18001a0ba
cmp dword [rsp + 0x24], 0
jle 0x18001a094
mov dword [rsp + 0x28], 1
jmp 0x18001a0ba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18001a0ae
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18001a0b8
mov dword [rsp + 0x28], 0
jmp 0x18001a0ba
jmp 0x18001a042
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 0x18001a0e6
xor eax, eax
jmp 0x18001a0ea
mov eax, dword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x18001a0f0
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, [0x18001a1d8]
mov qword [rsp + 0x40], rax
lea rax, [0x18001a2b8]
mov qword [rsp + 0x48], rax
lea rax, [0x18001a19c]
mov qword [rsp + 0x50], rax
lea rax, [0x180019a90]
mov qword [rsp + 0x58], rax
lea rax, [0x18001a288]
mov qword [rsp + 0x60], rax
lea rax, [0x180019a90]
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 0x18001a32c
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 0x18001a3b8
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 0x18001a39d
mov eax, 0xffffffff
jmp 0x18001a3cd
cmp dword [rsp + 0x24], 0
jne 0x18001a3a6
jmp 0x18001a3b8
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x18001a34f
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
je 0x18001a3c9
mov eax, 0xffffffff
jmp 0x18001a3cd
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x18001a3d4
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 0x18001a3f5
mov eax, 1
jmp 0x18001a421
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 0x18001a41c
xor eax, eax
jmp 0x18001a421
mov eax, 1
add rsp, 0x38
ret
Function at 0x18001b404
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x458
mov qword [rsp + 0x30], 0xffffffffffffffff
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
xor eax, eax
mov word [rsp + 0x20], ax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 1
mov rax, qword [rsp + 0x470]
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x470]
add rax, 4
mov qword [rsp + 0x470], rax
movsxd rax, dword [rsp + 0x478]
sub rax, 4
mov dword [rsp + 0x478], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x470]
movzx eax, word [rax]
mov word [rsp + 0x20], ax
mov rax, qword [rsp + 0x470]
add rax, 2
mov qword [rsp + 0x470], rax
movsxd rax, dword [rsp + 0x478]
sub rax, 2
mov dword [rsp + 0x478], eax
movzx ecx, word [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x20], ax
cmp dword [rsp + 0x478], 0x3ff
jl 0x18001b4f5
mov dword [rsp + 0x478], 0x3ff
movsxd rax, dword [rsp + 0x478]
lea rcx, [rsp + 0x50]
mov rdi, rcx
mov rsi, qword [rsp + 0x470]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x478]
mov byte [rsp + rax + 0x50], 0
call fcn.180010700
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x18001b56b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
mov r8d, 4
mov edx, 4
lea rcx, [rsp + 0x28]
call qword [rsp + 0x480]
jmp 0x18001b61a
mov eax, 2
mov word [rsp + 0x40], ax
xor eax, eax
mov word [rsp + 0x42], ax
mov dword [rsp + 0x44], 0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x18001b5c2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
mov r8d, 4
mov edx, 4
lea rcx, [rsp + 0x28]
call qword [rsp + 0x480]
jmp 0x18001b61a
lea r8, [rsp + 0x3c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xffffffff
jne 0x18001b606
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
mov r8d, 4
mov edx, 4
lea rcx, [rsp + 0x28]
call qword [rsp + 0x480]
jmp 0x18001b61a
mov r8d, 0x7530
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
call fcn.18001b068
add rsp, 0x458
pop rdi
pop rsi
ret
Function at 0x18001bbb4
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.180010700
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 0x18001bc0f
mov rax, 0xffffffffffffffff
jmp 0x18001bccd
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 0x18001bc65
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x18001bccd
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 0x18001bc9a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x18001bccd
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 0x18001bcc8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x18001bccd
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x18001c68c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x18006ab98]
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 0x18001c81e
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0
jne 0x18001c707
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
jne 0x18001c707
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 0x18001c819
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0
jne 0x18001c801
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x28]
sub eax, dword [rcx + 0xc]
cmp eax, 0x3e8
jbe 0x18001c801
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 0
jne 0x18001c74e
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]
cmp dword [rax + 0x10], 4
jne 0x18001c76d
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 0x18001c7a8
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 2
jne 0x18001c7a8
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 0x18001c6ba
cmp qword [rsp + 0x30], 0
jne 0x18001c7d5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [0x18006ab98], rax
mov rcx, qword [rsp + 0x28]
call fcn.18003f804
mov qword [rsp + 0x28], 0
jmp 0x18001c7ff
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.18003f804
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x18001c819
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 0x18001c6ba
add rsp, 0x48
ret
Function at 0x18001c824
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 0x18001c8d1
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 0x18001c8cf
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 0x18001c8d5
jmp 0x18001c851
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x18001c8dc
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x478
mov dword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x7530
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0x64
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rsp + 0x3c]
jae 0x18001cae0
mov dword [rsp + 0x260], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x34], 0
jmp 0x18001c950
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x260]
cmp dword [rsp + 0x34], eax
jae 0x18001c97b
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x480]
mov rcx, qword [rcx + 0x20]
cmp qword [rsp + rax*8 + 0x268], rcx
jne 0x18001c979
jmp 0x18001c97b
jmp 0x18001c946
mov eax, dword [rsp + 0x260]
cmp dword [rsp + 0x34], eax
jne 0x18001c9ba
cmp dword [rsp + 0x260], 0x40
jae 0x18001c9ba
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x480]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + rax*8 + 0x268], rcx
mov eax, dword [rsp + 0x260]
inc eax
mov dword [rsp + 0x260], eax
xor eax, eax
test eax, eax
jne 0x18001c93c
mov dword [rsp + 0x30], 0
jmp 0x18001c9d8
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
jae 0x18001c9fd
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x480]
mov rcx, qword [rcx + 0x20]
cmp qword [rsp + rax*8 + 0x58], rcx
jne 0x18001c9fb
jmp 0x18001c9fd
jmp 0x18001c9ce
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
jne 0x18001ca2d
cmp dword [rsp + 0x50], 0x40
jae 0x18001ca2d
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x480]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + rax*8 + 0x58], rcx
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
xor eax, eax
test eax, eax
jne 0x18001c9c4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x260]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
lea rdx, [rsp + 0x50]
mov rax, qword [rsp + 0x480]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18001ca72
jmp 0x18001cae0
lea rdx, [rsp + 0x260]
mov rax, qword [rsp + 0x480]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18001cadb
xor r9d, r9d
mov r8d, dword [rsp + 0x490]
mov rdx, qword [rsp + 0x488]
mov rax, qword [rsp + 0x480]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xffffffff
jne 0x18001cad9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18001cad9
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18001cadb
jmp 0x18001cae0
jmp 0x18001c919
add rsp, 0x478
ret
Function at 0x18001f6ac
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.18001aa80
lea rcx, [rsp + 0x30]
call fcn.18001aac4
mov dword [rsp + 0x20], eax
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, 1
call fcn.18003c714
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18001f730
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x18001f730
jmp 0x18001f747
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x20]
mov ecx, 0x23
call fcn.18000f6b0
mov rcx, qword [rsp + 0x28]
call fcn.18003be64
add rsp, 0x50
pop rdi
ret
Function at 0x18001fb7c
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, 0x8000
call fcn.18003f844
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
lea r8, str._s
mov edx, 0x8000
mov rcx, qword [rsp + 0x20]
call fcn.18003fadc
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x20]
call fcn.18003f804
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x18001fbe5
jmp 0x18001fd03
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
and eax, 0x10
test eax, eax
je 0x18001fcc8
mov rax, qword [rsp + 0x48]
add rax, 0x2c
lea rcx, [0x180066644]
sub rcx, rax
mov dl, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x18001fc1c
inc rax
test dl, dl
jne 0x18001fc0a
xor eax, eax
jmp 0x18001fc21
sbb eax, eax
or eax, 1
test eax, eax
je 0x18001fcc6
mov rax, qword [rsp + 0x48]
add rax, 0x2c
lea rcx, [0x180066648]
sub rcx, rax
mov dl, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x18001fc4e
inc rax
test dl, dl
jne 0x18001fc3c
xor eax, eax
jmp 0x18001fc53
sbb eax, eax
or eax, 1
test eax, eax
je 0x18001fcc6
mov ecx, 0x8000
call fcn.18003f844
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x48]
add rax, 0x2c
mov r9, rax
lea r8, [0x18006664c]
mov edx, 0x8000
mov rcx, qword [rsp + 0x20]
call fcn.18003fadc
mov rax, qword [rsp + 0x48]
add rax, 0x2c
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.18001fd08
mov r8d, 1
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call fcn.18003f804
jmp 0x18001fce0
mov rax, qword [rsp + 0x48]
add rax, 0x2c
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x18001fbe5
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
add rsp, 0x38
ret
Function at 0x18003c0cc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
cmp dword [0x18006df78], 0
je 0x18003c272
cmp dword [0x18006df74], 1
jne 0x18003c107
cmp qword [0x180072330], 0
jne 0x18003c122
cmp dword [0x18006df74], 2
jne 0x18003c272
cmp qword [0x180072338], 0
je 0x18003c272
cmp qword [rsp + 0xa0], 0
je 0x18003c13c
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x70], rax
jmp 0x18003c147
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
cmp dword [0x18006df74], 1
jne 0x18003c1ce
mov rax, qword [0x180072330]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 1
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x78]
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x68]
call qword [rsp + 0x80]
mov dword [rsp + 0x60], eax
jmp 0x18003c249
mov rax, qword [0x180072338]
mov qword [0x18006df68], rax
mov eax, dword [0x180072340]
mov dword [0x18006df70], eax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 1
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x78]
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x68]
call fcn.18003f712
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x18003c272
mov eax, dword [rsp + 0xc8]
and eax, 4
test eax, eax
jne 0x18003c268
mov rcx, qword [rsp + 0x68]
call fcn.18003cb00
mov rax, qword [rsp + 0x68]
jmp 0x18003c308
cmp qword [rsp + 0xa0], 0
jne 0x18003c2bd
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xc0]
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x18003c308
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
add rsp, 0x98
ret