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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4f8
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov r15, r9
mov r13, r8
mov r12, rdx
mov qword [rsp + 0x68], rcx
mov r14, qword [rsp + 0x560]
or r8d, 0xffffffff
mov rdx, r14
lea rcx, [rsp + 0x80]
call fcn.1400712d0
mov rbp, rax
or r8d, 0xffffffff
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.1400712d0
mov rsi, rax
or r8d, 0xffffffff
mov rdx, r13
lea rcx, [rsp + 0x78]
call fcn.1400712d0
mov rdi, rax
or r8d, 0xffffffff
mov rdx, r12
lea rcx, [rsp + 0x70]
call fcn.1400712d0
mov rbx, rax
or r8d, 0xffffffff
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.1400712d0
nop
mov r8, qword [rax]
mov rcx, qword [rbp]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsi]
mov qword [rsp + 0x28], rcx
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov r9, qword [rbx]
lea rdx, str._r_nRegSetIP__s__s__s__s__s__r_n
lea rcx, [0x14019c170]
call fcn.14002b694
nop
lea rcx, [rsp + 0x58]
call fcn.14005b520
nop
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
lea rcx, [rsp + 0x78]
call fcn.14005b520
nop
lea rcx, [rsp + 0x60]
call fcn.14005b520
nop
lea rcx, [rsp + 0x80]
call fcn.14005b520
cmp byte [r12], 0x2a
sete bl
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea rcx, [rsp + 0x58]
call fcn.140071140
nop
mov rsi, qword [rsp + 0x68]
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140063320
xor edi, edi
mov r9d, 0x20006
test bl, bl
cmovne r9d, edi
or r9d, 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400731fd
lea rcx, [rsp + 0x58]
call fcn.14005b520
xor eax, eax
jmp 0x1400737b5
cmp byte [r12], 0x2d
jne 0x140073227
mov r8, r14
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140072ea0
mov ebx, eax
lea rcx, [rsp + 0x58]
call fcn.14005b520
mov eax, ebx
jmp 0x1400737b5
test bl, bl
je 0x140073341
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], 0x320
lea rbx, [r12 + 1]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.IPAddress
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [rsp + 0x40]
mov rcx, rbx
call fcn.14005c830
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], 0x320
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.SubnetMask
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [rsp + 0x40]
mov rcx, r13
call fcn.14005c830
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], 0x320
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.DefaultGateway
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [rsp + 0x40]
mov rcx, r15
call fcn.14005c830
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], 0x320
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.NameServer
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop
lea rcx, [rsp + 0x58]
call fcn.14005b520
mov eax, 1
jmp 0x1400737b5
mov byte [rsp + 0x160], dil
xor edx, edx
mov r8d, 0xdb
lea rcx, [rsp + 0x161]
call fcn.14010c6c0
mov byte [rsp + 0x240], dil
xor edx, edx
mov r8d, 0xdb
lea rcx, [rsp + 0x241]
call fcn.14010c6c0
mov byte [rsp + 0x400], dil
xor edx, edx
mov r8d, 0xdb
lea rcx, [rsp + 0x401]
call fcn.14010c6c0
mov byte [rsp + 0x320], dil
xor edx, edx
mov r8d, 0xdb
lea rcx, [rsp + 0x321]
call fcn.14010c6c0
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], 0xc8
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x400]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.IPAddress
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x400]
call fcn.14005c830
mov ebx, eax
shl ebx, 0x10
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], 0xc8
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x320]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.SubnetMask
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x320]
call fcn.14005c830
shl eax, 0x10
add ebx, eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x78], eax
mov byte [rsp + 0x90], dil
xor edx, edx
mov r8d, 0xc7
lea rcx, [rsp + 0x91]
call fcn.14010c6c0
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.EnableDHCP
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [rsp + 0x50], edi
jle 0x1400734ce
add ebx, 0x10000
lea rdx, [0x14013f310]
cmp byte [r12], 0x2d
cmovne rdx, r12
mov r8d, 0xc6
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [0x14013f310]
cmp byte [r13], 0x2d
cmovne rdx, r13
mov r8d, 0xc6
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [0x14013f310]
cmp byte [r15], 0x2d
cmovne rdx, r15
cmp byte [rdx], 0x30
je 0x14007353e
mov r8d, 0xc6
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [rax + 2]
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [rax + 2]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov dword [rsp + 0x60], eax
mov rcx, r12
call qword [0x14019c4c0]
movsxd r11, dword [rsp + 0x60]
mov byte [rsp + r11 + 0x8f], dil
movsxd rcx, ebp
mov byte [rsp + rcx + 0x23f], dil
movsxd rcx, esi
mov byte [rsp + rcx + 0x15f], dil
lea rcx, [rsp + 0x240]
call fcn.14005c800
mov r8d, eax
lea rcx, [rsp + 0x160]
call fcn.14005c800
add eax, ebx
add eax, r8d
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x90]
call fcn.14005c800
mov r8d, edi
test r14, r14
sete r8b
mov dword [rsp + 0x50], r8d
mov rbx, r14
test r14, r14
je 0x140073609
movzx eax, byte [r14]
lea rcx, [0x14013f310]
cmp al, 0x2d
cmovne rcx, rbx
lea rbx, [0x14013f310]
cmp al, 0x30
cmovne rbx, rcx
cmp byte [r12], dil
je 0x14007363b
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x160]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
lea rdx, str.IPAddress
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp byte [r13], dil
je 0x14007366d
mov dword [rsp + 0x28], ebp
lea rax, [rsp + 0x240]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
lea rdx, str.SubnetMask
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp byte [r15], dil
je 0x1400736a2
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
lea rdx, str.DefaultGateway
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp byte [r14], dil
je 0x1400736d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.NameServer
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.EnableDHCP
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [r13], dil
jne 0x140073756
cmp byte [rsp + 0x320], dil
je 0x140073756
movsxd rbx, dword [rsp + 0x78]
mov r8, rbx
lea rdx, [rsp + 0x320]
mov rcx, r13
call fcn.14010cd30
lea r11d, [rbx - 2]
mov rax, rdi
movsxd rcx, r11d
test r11d, r11d
jle 0x140073756
cmp byte [rax + r13], dil
jne 0x14007374e
mov byte [rax + r13], 0x3b
inc rax
cmp rax, rcx
jl 0x140073743
cmp byte [r12], dil
jne 0x1400737a4
cmp byte [rsp + 0x400], dil
je 0x1400737a4
movsxd rbx, dword [rsp + 0x70]
mov r8, rbx
lea rdx, [rsp + 0x400]
mov rcx, r12
call fcn.14010cd30
lea r11d, [rbx - 2]
movsxd rax, r11d
test r11d, r11d
jle 0x1400737a4
nop word [rax + rax]
cmp byte [rdi + r12], 0
jne 0x14007379c
mov byte [rdi + r12], 0x3b
inc rdi
cmp rdi, rax
jl 0x140073790
mov ebx, dword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.14005b520
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.14010bcc0
add rsp, 0x4f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret