Function at 0x180011420
Capabilities:
Delete file
Delete registry key
Move file
Persist via windows service
Query or enumerate registry key
Query or enumerate registry value
Resolve dns
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xb38]
sub rsp, 0xc10
mov rax, qword [0x180019018]
xor rax, rsp
mov qword [rbp + 0xb00], rax
mov r15, rcx
xor r13d, r13d
mov ebx, 0x208
mov qword [rsp + 0x50], r13
mov r8d, ebx
mov qword [rsp + 0x58], r13
xor edx, edx
lea rcx, [rbp + 0x4d0]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], ebx
mov rsi, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov word [rbp + 0xae], r13w
lea r9d, [r13 + 1]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftClientForNFSCurrentVersion
mov r12d, r13d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x1800114fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [rbp + 0xb00]
xor rcx, rsp
call fcn.180001570
lea r11, [rsp + 0xc10]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, str.PathName
lea rax, [rbp + 0xb0]
mov dword [rsp + 0x68], ebx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x18001154d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x1800114be
mov eax, dword [rsp + 0x68]
and rax, 0xfffffffffffffffe
cmp rax, 0x20a
jae 0x180011c5f
mov rcx, qword [rsp + 0x50]
mov word [rbp + rax + 0xb0], r13w
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, 0x105
lea r8, [rbp + 0xb0]
mov edx, ebx
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
lea r8, [0x1800163f8]
mov edx, ebx
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.msvcrt.dll__wremove]
nop dword [rax + rax]
lea r8, str.dahosts
mov edx, ebx
lea rcx, [rbp + 0xb0]
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
lea rdx, [0x180016420]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.msvcrt.dll__wfopen]
nop dword [rax + rax]
lea rdx, [0x180016424]
mov rdi, rax
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.msvcrt.dll__wfopen]
nop dword [rax + rax]
mov rbx, rax
test rdi, rdi
je 0x18001167c
test rax, rax
je 0x18001167c
jmp 0x18001165f
movzx ecx, word [rbp - 0x40]
cmp cx, 0x23
je 0x18001164c
mov edx, 8
call qword [sym.imp.msvcrt.dll_iswctype]
nop dword [rax + rax]
test eax, eax
je 0x18001165f
mov rdx, rbx
lea rcx, [rbp - 0x40]
call qword [sym.imp.msvcrt.dll_fputws]
nop dword [rax + rax]
mov r8, rdi
lea rcx, [rbp - 0x40]
mov edx, 0x77
call qword [sym.imp.msvcrt.dll_fgetws]
nop dword [rax + rax]
test rax, rax
jne 0x18001162d
lea rax, [rsp + 0x6c]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetServicesNfsClntNFS_LANS
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, rsi
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x180011713
test rbx, rbx
je 0x1800116d6
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_fclose]
nop dword [rax + rax]
test rdi, rdi
je 0x1800114be
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fclose]
nop dword [rax + rax]
jmp 0x1800114be
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp + 0x6e0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x1800117ce
mov rcx, qword [rsp + 0x50]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x60]
mov qword [rsp + 0x30], r13
lea r8, [rbp + 0x6e0]
mov qword [rsp + 0x28], r13
xor edx, edx
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x60], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x1800116f3
mov rcx, qword [rsp + 0x50]
lea rdx, str.SPUpdateMinutes
mov r14d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov r9d, r14d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x80]
lea rax, [rbp + 0x4d0]
xor r8d, r8d
lea rdx, [0x180016428]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1800117ce
mov rsi, qword [r15 + 8]
mov word [rbp + 0x6d6], r13w
jmp 0x180011a0e
test rbx, rbx
je 0x1800117e2
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_fclose]
nop dword [rax + rax]
test rdi, rdi
je 0x180011537
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fclose]
nop dword [rax + rax]
jmp 0x180011537
lea r14, [rsi + 0x418]
test rbx, rbx
je 0x18001184b
mov rax, qword [rsi]
lea r9, str.LAN_t_s_t_s_n
mov edx, 0x78
mov qword [rsp + 0x28], r14
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r8d, [rdx - 1]
call qword [sym.imp.msvcrt.dll__snwprintf_s]
nop dword [rax + rax]
mov rdx, rbx
lea rcx, [rbp - 0x40]
call qword [sym.imp.msvcrt.dll_fputws]
nop dword [rax + rax]
mov rdx, qword [rsi]
lea rax, [rsp + 0x6c]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x180011bb6
mov rcx, qword [rsp + 0x58]
lea r9d, [rax + 4]
lea rax, [rsp + 0x64]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Configure_Mode
mov dword [rsp + 0x64], r13d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], r13w
jne 0x1800118ca
mov rcx, qword [rsp + 0x58]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.SPBroadcastAddr
mov r9d, 1
mov qword [rsp + 0x20], r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rax, [rsi + 0x62c]
mov r14d, 4
lea rdx, str.SPBroadcastRetry
mov dword [rsp + 0x28], r14d
mov r9d, r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rax, [rsi + 0x638]
mov dword [rsp + 0x28], r14d
lea rdx, str.SPBrowseMethod
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rax, [rsi + 0x63c]
mov dword [rsp + 0x28], r14d
lea rdx, str.SPGetHostByAddr
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rax, [rsi + 0x634]
mov dword [rsp + 0x28], r14d
lea rdx, str.SPMaxNodes
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rax, [rsi + 0x630]
mov dword [rsp + 0x28], r14d
lea rdx, str.SPTimeoutSeconds
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsi + 0x640]
test rsi, rsi
jne 0x1800117ff
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x40], rax
lea rdx, [rbp + 0x4d0]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x180011bcc
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x64]
mov dword [rsp + 0x28], r14d
lea rdx, str.Configure_Mode
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x64], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rsi, qword [r15 + 0x10]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x70], 2
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
test rsi, rsi
je 0x180011ba3
mov r14d, 0x104
lea r9, [rsp + 0x78]
xor edx, edx
lea r8, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x180011aed
mov rax, qword [rsp + 0x78]
mov r8, qword [rax + 0x18]
test r8, r8
jne 0x180011af0
mov r8, rsi
mov rdx, r14
lea rcx, [rbp + 0x8f0]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
nop dword [rax + rax]
test rbx, rbx
je 0x180011b54
mov edx, 0x78
mov qword [rsp + 0x20], rsi
lea r9, str.HOST_t_s_n
lea rcx, [rbp - 0x40]
lea r8d, [rdx - 1]
call qword [sym.imp.msvcrt.dll__snwprintf_s]
nop dword [rax + rax]
mov rdx, rbx
lea rcx, [rbp - 0x40]
call qword [sym.imp.msvcrt.dll_fputws]
nop dword [rax + rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r13w
jne 0x180011b58
mov rcx, qword [rsp + 0x58]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [rbp + 0x8f0]
mov r9d, 1
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rsi, qword [rsi + 0x208]
test rsi, rsi
jne 0x180011ac1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x180011bdb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x1800116c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r12d, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test rdi, rdi
je 0x180011c43
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fclose]
nop dword [rax + rax]
test rbx, rbx
je 0x180011c57
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_fclose]
nop dword [rax + rax]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.msvcrt.dll__wremove]
nop dword [rax + rax]
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.msvcrt.dll__wrename]
nop dword [rax + rax]
jmp 0x180011c57
test rbx, rbx
je 0x180011c57
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_fclose]
nop dword [rax + rax]
mov eax, r12d
jmp 0x1800114ca
call fcn.180001748
int3