Function at 0x140071af4
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4e0
mov r15, qword [rsp + 0x540]
xor r12d, r12d
mov rsi, r9
mov qword [rsp + 0x70], r9
mov r14, r8
mov r13, rdx
mov rdi, rcx
cmp byte [0x14013ccb1], r12b
je 0x140071c12
mov rdx, rcx
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov r8, rbx
call fcn.14006ff54
lea rcx, [rsp + 0x80]
mov r8, rbx
mov rbp, qword [rax]
mov rdx, r15
call fcn.14006ff54
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov rsi, rax
call fcn.14006ff54
lea rcx, [rsp + 0x78]
mov r8, rbx
mov rdx, r14
mov rdi, rax
call fcn.14006ff54
lea rcx, [rsp + 0x68]
or r8, 0xffffffffffffffff
mov rdx, r13
mov rbx, rax
call fcn.14006ff54
lea rdx, str._r_nRegSetIP__s__s__s__s__s__r_n
lea rcx, [0x14013d130]
mov r9, qword [rax]
mov rax, qword [rsi]
mov r8, rbp
mov qword [rsp + 0x30], rax
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
call fcn.140018dd8
lea rcx, [rsp + 0x60]
call fcn.14005aef8
lea rcx, [rsp + 0x68]
call fcn.14005aef8
lea rcx, [rsp + 0x78]
call fcn.14005aef8
lea rcx, [rsp + 0x58]
call fcn.14005aef8
lea rcx, [rsp + 0x80]
call fcn.14005aef8
mov rdi, qword [rsp + 0x520]
mov rsi, qword [rsp + 0x70]
cmp byte [r13], 0x2a
mov bl, r12b
je 0x140071c23
cmp byte [r13], 0x3f
jne 0x140071c27
mov bl, byte [r13]
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea rcx, [rsp + 0x60]
call fcn.14006fed0
lea rcx, [rsp + 0x60]
mov rdx, rdi
call fcn.1400630dc
mov rdx, qword [rsp + 0x60]
mov r11b, bl
neg r11b
lea rax, [rsp + 0x48]
mov rcx, 0xffffffff80000002
sbb r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
not r9d
and r9d, 0x20006
or r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, r12d
jne 0x140071e9f
mov bpl, 0x2d
cmp byte [r13], bpl
jne 0x140071ca5
lea rcx, [rsp + 0x48]
mov r8, r15
mov rdx, rdi
call fcn.140071964
mov r12d, eax
jmp 0x140071e9f
cmp bl, r12b
je 0x140071eb1
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x528]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, str.EnableDHCP
mov edi, 0x320
xor r8d, r8d
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x528], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x58]
cmp eax, r12d
cmovne ecx, r12d
mov dword [rsp + 0x58], ecx
cmp bl, 0x3f
jne 0x140071d11
mov r9d, r12d
cmp ecx, r12d
jne 0x140071d17
mov r9d, 4
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x528], edi
movsxd rdi, r9d
lea rax, [rsp + 0x528]
lea rbp, [0x140000000]
lea rbx, [r13 + 1]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rdx, [rdi + rbp + 0x1269c0]
xor r8d, r8d
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [rsp + 0x528]
mov rcx, rbx
call fcn.14005c958
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x528]
mov qword [rsp + 0x28], rax
lea rdx, [rdi + rbp + 0x1269b0]
lea r9, [rsp + 0x40]
mov ebx, 0x320
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x528], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [rsp + 0x528]
mov rcx, r14
call fcn.14005c958
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x528]
mov qword [rsp + 0x28], rax
lea rdx, [rdi + rbp + 0x126998]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x528], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [rsp + 0x528]
mov rcx, rsi
call fcn.14005c958
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x528]
mov qword [rsp + 0x28], rax
lea rdx, [rdi + rbp + 0x126988]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x528], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x528]
lea r9, [rsp + 0x40]
lea rdx, str.DhcpServer
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x548]
xor r8d, r8d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x528], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r11, qword [rsp + 0x550]
cmp r11, r12
je 0x140071e99
cmp dword [rsp + 0x58], r12d
setne al
add al, 0x30
movsx eax, al
mov word [r11], ax
mov r12d, 1
lea rcx, [rsp + 0x60]
call fcn.14005aef8
mov eax, r12d
jmp 0x140072336
mov ebx, 0xdb
lea rcx, [rsp + 0x241]
xor edx, edx
mov r8, rbx
mov byte [rsp + 0x240], r12b
call fcn.140101f00
lea rcx, [rsp + 0x161]
mov r8, rbx
xor edx, edx
mov byte [rsp + 0x160], r12b
call fcn.140101f00
lea rcx, [rsp + 0x401]
mov r8, rbx
xor edx, edx
mov byte [rsp + 0x400], r12b
call fcn.140101f00
lea rcx, [rsp + 0x321]
mov r8, rbx
xor edx, edx
mov byte [rsp + 0x320], r12b
call fcn.140101f00
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x528]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x400]
lea r9, [rsp + 0x40]
lea rdx, str.IPAddress
mov ebx, 0xc8
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x528], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [rsp + 0x528]
lea rcx, [rsp + 0x400]
call fcn.14005c958
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov edi, eax
mov eax, dword [rsp + 0x528]
lea rdx, str.SubnetMask
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0x528]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x320]
shl edi, 0x10
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x528], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [rsp + 0x528]
lea rcx, [rsp + 0x320]
call fcn.14005c958
lea r8d, [rbx - 1]
lea rcx, [rsp + 0x91]
shl eax, 0x10
xor edx, edx
mov byte [rsp + 0x90], r12b
add edi, eax
mov eax, dword [rsp + 0x528]
mov dword [rsp + 0x58], eax
call fcn.140101f00
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x528]
lea r9, [rsp + 0x40]
lea rdx, str.EnableDHCP
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x528], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [rsp + 0x50], r12d
jle 0x140072054
add edi, 0x10000
cmp byte [r13], bpl
lea rbx, [0x14011d2e8]
lea rcx, [rsp + 0x240]
mov rdx, rbx
mov r8d, 0xc6
cmovne rdx, r13
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [r14], bpl
mov rdx, rbx
lea rcx, [rsp + 0x160]
mov r8d, 0xc6
cmovne rdx, r14
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [rsi], bpl
mov rdx, rbx
cmovne rdx, rsi
cmp byte [rdx], 0x30
je 0x1400720bb
lea rcx, [rsp + 0x90]
mov r8d, 0xc6
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x160]
movsxd rbp, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x90]
movsxd rsi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, r13
movsxd rbx, eax
call qword [0x14013d580]
mov byte [rsp + rbx + 0x91], r12b
mov byte [rsp + rsi + 0x161], r12b
mov byte [rsp + rbp + 0x241], r12b
cmp ebp, r12d
je 0x140072117
add ebp, 2
cmp esi, r12d
je 0x14007211f
add esi, 2
cmp ebx, r12d
je 0x140072126
inc ebx
lea rcx, [rsp + 0x160]
inc ebx
call fcn.14005c92c
lea rcx, [rsp + 0x240]
mov r8d, eax
call fcn.14005c92c
lea rcx, [rsp + 0x90]
add eax, edi
add eax, r8d
mov dword [rsp + 0x68], eax
call fcn.14005c92c
cmp r15, r12
mov r8d, r12d
sete r8b
mov rdi, r15
mov dword [rsp + 0x50], r8d
cmp r15, r12
je 0x140072190
cmp byte [r15], 0x2d
lea rax, [0x14011d2e8]
lea rdi, [0x14011d2e8]
cmovne rax, r15
cmp byte [r15], 0x30
cmovne rdi, rax
cmp byte [r13], r12b
je 0x1400721c2
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x240]
lea rdx, str.IPAddress
mov r9d, 7
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp byte [r14], r12b
je 0x1400721f3
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x160]
lea rdx, str.SubnetMask
mov r9d, 7
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rax, qword [rsp + 0x70]
cmp byte [rax], r12b
je 0x140072229
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x90]
lea rdx, str.DefaultGateway
mov r9d, 7
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp byte [r15], r12b
je 0x14007225e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rdx, str.NameServer
mov r9d, 1
movsxd rcx, eax
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rdx, str.EnableDHCP
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [r14], r12b
jne 0x1400722dc
cmp byte [rsp + 0x320], r12b
je 0x1400722dc
movsxd rbx, dword [rsp + 0x58]
lea rdx, [rsp + 0x320]
mov rcx, r14
mov r8, rbx
call fcn.14001d7d8
lea r11d, [rbx - 2]
mov rax, r12
movsxd rcx, r11d
cmp rcx, r12
jle 0x1400722dc
cmp byte [rax + r14], r12b
jne 0x1400722d4
mov byte [rax + r14], 0x3b
inc rax
cmp rax, rcx
jl 0x1400722c9
cmp byte [r13], r12b
jne 0x140072326
cmp byte [rsp + 0x400], r12b
je 0x140072326
movsxd rbx, dword [rsp + 0x78]
lea rdx, [rsp + 0x400]
mov rcx, r13
mov r8, rbx
call fcn.14001d7d8
lea r11d, [rbx - 2]
mov rax, r12
movsxd rcx, r11d
cmp rcx, r12
jle 0x140072326
cmp byte [rax + r13], r12b
jne 0x14007231e
mov byte [rax + r13], 0x3b
inc rax
cmp rax, rcx
jl 0x140072313
lea rcx, [rsp + 0x60]
call fcn.14005aef8
mov eax, dword [rsp + 0x68]
inc eax
mov rbx, qword [rsp + 0x530]
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret