joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180019348
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 0x18001939f
mov eax, 0xffffffff
jmp 0x180019443
cmp dword [rsp + 0x38], 0
jbe 0x18001943f
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jae 0x18001943f
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 0x18001943a
mov eax, 0xffffffff
jmp 0x180019443
jmp 0x18001939f
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x18001a564
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 0x18001a5f7
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 0x18001a5de
cmp dword [rsp + 0x34], 0
jne 0x18001a5e5
mov eax, 0xffffffff
jmp 0x18001a60c
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x18001a587
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
je 0x18001a608
mov eax, 0xffffffff
jmp 0x18001a60c
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x18001a614
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 0x18001a6d1
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
cmp eax, 0x2000
jle 0x18001a66a
mov dword [rsp + 0x38], 0x2000
jmp 0x18001a67a
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 0x18001a6bc
mov eax, dword [rsp + 0x34]
jmp 0x18001a6d5
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x18001a63f
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x18001a7e8
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 0x18001a83a
xor eax, eax
jmp 0x18001a8e2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rsp + 0x30]
jae 0x18001a8b2
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 0x18001a879
mov dword [rsp + 0x28], 0
jmp 0x18001a8b2
cmp dword [rsp + 0x24], 0
jle 0x18001a88c
mov dword [rsp + 0x28], 1
jmp 0x18001a8b2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18001a8a6
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18001a8b0
mov dword [rsp + 0x28], 0
jmp 0x18001a8b2
jmp 0x18001a83a
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 0x18001a8de
xor eax, eax
jmp 0x18001a8e2
mov eax, dword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x18001a8e8
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, [0x18001a9d8]
mov qword [rsp + 0x40], rax
lea rax, [0x18001aab8]
mov qword [rsp + 0x48], rax
lea rax, [0x18001a994]
mov qword [rsp + 0x50], rax
lea rax, [0x18001a9d0]
mov qword [rsp + 0x58], rax
lea rax, [0x18001aa88]
mov qword [rsp + 0x60], rax
lea rax, [0x18001a9d0]
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 0x18001ab2c
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 0x18001abb8
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 0x18001ab9d
mov eax, 0xffffffff
jmp 0x18001abcd
cmp dword [rsp + 0x24], 0
jne 0x18001aba6
jmp 0x18001abb8
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x18001ab4f
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
je 0x18001abc9
mov eax, 0xffffffff
jmp 0x18001abcd
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x18001abd4
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 0x18001abf5
mov eax, 1
jmp 0x18001ac21
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 0x18001ac1c
xor eax, eax
jmp 0x18001ac21
mov eax, 1
add rsp, 0x38
ret
Function at 0x18001ae5c
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.18001b0e0
mov qword [rsp + 0x40], rax
mov edx, __WSAFDIsSet
mov rcx, qword [rsp + 0x40]
call fcn.18001b450
mov qword [rsp + 0x48], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x40]
call fcn.18001b450
mov qword [rsp + 0x58], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x40]
call fcn.18001b450
mov qword [rsp + 0x70], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x40]
call fcn.18001b450
mov qword [rsp + 0x68], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x40]
call fcn.18001b450
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.180010da8
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 0x18001af71
mov edx, 0x5c
mov rcx, qword [rsp + 0x78]
call fcn.180041fbc
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x18001af71
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18001af85
lea rax, [0x18006bbb0]
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 [0x180073470], eax
mov rax, qword [rsp + 0x48]
mov dl, byte [rax + 4]
mov rcx, qword [rsp + 0xa0]
call fcn.18000f18c
mov rax, qword [rsp + 0x48]
mov dl, byte [rax + 8]
mov rcx, qword [rsp + 0xa0]
call fcn.18000f18c
mov rax, qword [rsp + 0x48]
movzx edx, word [rax + 0xc]
mov rcx, qword [rsp + 0xa0]
call fcn.18000f280
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.18000f24c
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [rsp + 0xa0]
call fcn.18000f24c
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0xa0]
call fcn.18000f24c
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xa0]
call fcn.18000f24c
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.18004027c
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 0x18001b087
mov rax, qword [rsp + 0x50]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x3a
jle 0x18001b0b7
mov dword [rsp + 0x30], 0x3a
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xa0]
call fcn.18000f1b4
mov rcx, qword [rsp + 0x40]
call fcn.18001b250
add rsp, 0x98
ret
Function at 0x18001bc04
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 0x18001bcf5
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.180010f00
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 0x18001bd6b
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 0x18001be1a
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 0x18001bdc2
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 0x18001be1a
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 0x18001be06
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 0x18001be1a
mov r8d, 0x7530
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
call fcn.18001b868
add rsp, 0x458
pop rdi
pop rsi
ret
Function at 0x18001c3b4
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.180010f00
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 0x18001c40f
mov rax, 0xffffffffffffffff
jmp 0x18001c4cd
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 0x18001c465
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x18001c4cd
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 0x18001c49a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x18001c4cd
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 0x18001c4c8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x18001c4cd
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x18001ce8c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x18006bbb8]
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 0x18001d01e
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0
jne 0x18001cf07
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
jne 0x18001cf07
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 0x18001d019
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0
jne 0x18001d001
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x28]
sub eax, dword [rcx + 0xc]
cmp eax, 0x3e8
jbe 0x18001d001
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 0
jne 0x18001cf4e
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 0x18001cf6d
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 0x18001cfa8
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 2
jne 0x18001cfa8
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 0x18001ceba
cmp qword [rsp + 0x30], 0
jne 0x18001cfd5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [0x18006bbb8], rax
mov rcx, qword [rsp + 0x28]
call fcn.18003ffa4
mov qword [rsp + 0x28], 0
jmp 0x18001cfff
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.18003ffa4
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x18001d019
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 0x18001ceba
add rsp, 0x48
ret
Function at 0x18001d024
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 0x18001d0d1
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 0x18001d0cf
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 0x18001d0d5
jmp 0x18001d051
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x18001d0dc
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 0x18001d2e0
mov dword [rsp + 0x260], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x34], 0
jmp 0x18001d150
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x260]
cmp dword [rsp + 0x34], eax
jae 0x18001d17b
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x480]
mov rcx, qword [rcx + 0x20]
cmp qword [rsp + rax*8 + 0x268], rcx
jne 0x18001d179
jmp 0x18001d17b
jmp 0x18001d146
mov eax, dword [rsp + 0x260]
cmp dword [rsp + 0x34], eax
jne 0x18001d1ba
cmp dword [rsp + 0x260], 0x40
jae 0x18001d1ba
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 0x18001d13c
mov dword [rsp + 0x30], 0
jmp 0x18001d1d8
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
jae 0x18001d1fd
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x480]
mov rcx, qword [rcx + 0x20]
cmp qword [rsp + rax*8 + 0x58], rcx
jne 0x18001d1fb
jmp 0x18001d1fd
jmp 0x18001d1ce
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
jne 0x18001d22d
cmp dword [rsp + 0x50], 0x40
jae 0x18001d22d
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 0x18001d1c4
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 0x18001d272
jmp 0x18001d2e0
lea rdx, [rsp + 0x260]
mov rax, qword [rsp + 0x480]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18001d2db
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 0x18001d2d9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18001d2d9
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18001d2db
jmp 0x18001d2e0
jmp 0x18001d119
add rsp, 0x478
ret
Function at 0x18001feac
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.18001b280
lea rcx, [rsp + 0x30]
call fcn.18001b2c4
mov dword [rsp + 0x20], eax
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, 1
call fcn.18003ceac
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18001ff30
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x18001ff30
jmp 0x18001ff47
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.18003c5fc
add rsp, 0x50
pop rdi
ret
Function at 0x18002037c
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.18003ffe4
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
lea r8, str._s
mov edx, 0x8000
mov rcx, qword [rsp + 0x20]
call fcn.18004027c
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.18003ffa4
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1800203e5
jmp 0x180020503
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
and eax, 0x10
test eax, eax
je 0x1800204c8
mov rax, qword [rsp + 0x48]
add rax, 0x2c
lea rcx, [0x180067654]
sub rcx, rax
mov dl, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x18002041c
inc rax
test dl, dl
jne 0x18002040a
xor eax, eax
jmp 0x180020421
sbb eax, eax
or eax, 1
test eax, eax
je 0x1800204c6
mov rax, qword [rsp + 0x48]
add rax, 0x2c
lea rcx, [0x180067658]
sub rcx, rax
mov dl, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x18002044e
inc rax
test dl, dl
jne 0x18002043c
xor eax, eax
jmp 0x180020453
sbb eax, eax
or eax, 1
test eax, eax
je 0x1800204c6
mov ecx, 0x8000
call fcn.18003ffe4
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x48]
add rax, 0x2c
mov r9, rax
lea r8, [0x18006765c]
mov edx, 0x8000
mov rcx, qword [rsp + 0x20]
call fcn.18004027c
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.180020508
mov r8d, 1
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call fcn.18003ffa4
jmp 0x1800204e0
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 0x1800203e5
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
add rsp, 0x38
ret