Function at 0x140041700
Capabilities:
Create process on windows
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x650]
sub rsp, 0x750
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rbp + 0x640], rax
lea rdx, [rsp + 0x50]
lea rcx, str.ElevateShim.exe
call fcn.140050a20
test al, al
je 0x14004174e
mov ecx, dword [rsp + 0x50]
call fcn.140051210
lea rdx, [rsp + 0x50]
lea rcx, str.dnp.exe
call fcn.140050a20
test al, al
je 0x14004176c
mov ecx, dword [rsp + 0x50]
call fcn.140051210
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x20]
call fcn.140191ec0
lea rdx, [rbp + 0x20]
lea rcx, str.ElevateShim.exe
call fcn.14005a030
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rbp + 0x20]
mov ecx, 0x13e
call fcn.14003fd00
test eax, eax
je 0x140041c20
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x130]
call fcn.140191ec0
lea rdx, [rbp + 0x130]
lea rcx, str.dnp.exe
call fcn.14005a030
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rbp + 0x130]
mov ecx, VarBstrCmp
call fcn.14003fd00
test eax, eax
je 0x140041c20
mov rbx, qword [0x1401f90b8]
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
mov ecx, 0x20
call fcn.14016aa7c
mov r8, rax
mov qword [rbp], rax
movdqa xmm0, xmmword [reloc.WS2_32.dll_socket]
movdqu xmmword [rbp + 0x10], xmm0
movups xmm0, xmmword [str.AcService.dnp.EnableLog]
movups xmmword [rax], xmm0
mov edx, dword [0x1401a0630]
mov dword [rax + 0x10], edx
movzx edx, word [0x1401a0634]
mov word [rax + 0x14], dx
movzx eax, byte [0x1401a0636]
mov byte [r8 + 0x16], al
mov byte [r8 + 0x17], 0
xor r8d, r8d
lea rdx, [rbp]
mov rcx, rbx
call fcn.140062a30
mov esi, eax
mov rdx, qword [rbp + 0x18]
cmp rdx, 0xf
jbe 0x1400418a8
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400418a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041c50
call fcn.14016aab8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 1
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
mov word [rbp - 0x20], 0x22
lea rax, [rbp + 0x20]
mov rdi, 0xffffffffffffffff
mov rbx, rdi
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400418d3
cmp rbx, 0xe
ja 0x140041901
lea rax, [rbx + 1]
mov qword [rbp - 0x10], rax
mov r8, rbx
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x1f]
call fcn.140191740
mov byte [rbp + rbx - 0x1f], 0
jmp 0x140041919
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.14000d860
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14004194a
lea rax, [rcx + 1]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x20]
cmp rdx, 0xf
cmova rax, qword [rbp - 0x20]
mov word [rax + rcx], 0x22
jmp 0x14004196b
mov qword [rsp + 0x20], 1
lea r9, [0x1401a0638]
xor r8d, r8d
mov edx, 1
lea rcx, [rbp - 0x20]
call fcn.14000d860
test esi, esi
jle 0x1400419d7
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rax, rdx
sub rax, rcx
cmp rax, 6
jb 0x1400419b6
lea rax, [rcx + 6]
mov qword [rbp - 0x10], rax
lea rbx, [rbp - 0x20]
cmp rdx, 0xf
cmova rbx, qword [rbp - 0x20]
add rbx, rcx
mov r8d, 6
lea rdx, str.___log
mov rcx, rbx
call fcn.140191740
mov byte [rbx + 6], 0
jmp 0x1400419d7
mov qword [rsp + 0x20], 6
lea r9, str.___log
xor r8d, r8d
mov edx, 6
lea rcx, [rbp - 0x20]
call fcn.14000d860
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x140041a0d
lea rax, [rcx + 2]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x20]
cmp rdx, 0xf
cmova rax, qword [rbp - 0x20]
mov word [rax + rcx], 0x2220
mov byte [rax + rcx + 2], 0
jmp 0x140041a2e
mov qword [rsp + 0x20], 2
lea r9, [0x1401a0644]
xor r8d, r8d
mov edx, 2
lea rcx, [rbp - 0x20]
call fcn.14000d860
lea rax, [rbp + 0x130]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140041a35
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x140041a81
lea rax, [rdi + rcx]
mov qword [rbp - 0x10], rax
lea rbx, [rbp - 0x20]
cmp rdx, 0xf
cmova rbx, qword [rbp - 0x20]
add rbx, rcx
mov r8, rdi
lea rdx, [rbp + 0x130]
mov rcx, rbx
call fcn.140191740
mov byte [rbx + rdi], 0
jmp 0x140041a9c
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x130]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.14000d860
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140041acd
lea rax, [rcx + 1]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x20]
cmp rdx, 0xf
cmova rax, qword [rbp - 0x20]
mov word [rax + rcx], 0x22
jmp 0x140041aee
mov qword [rsp + 0x20], 1
lea r9, [0x1401a0638]
xor r8d, r8d
mov edx, 1
lea rcx, [rbp - 0x20]
call fcn.14000d860
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
mov dword [rbp - 0x2c], eax
mov dword [rsp + 0x70], WSAGetLastError
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x240]
call fcn.140191ec0
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
mov r8d, 0x3ff
lea rcx, [rbp + 0x240]
call fcn.140170ea0
call fcn.140067ee0
lea r8, [rbp + 0x240]
lea rdx, str.DisableModifyIpTask.startDnp:_cmd_s
mov rcx, rax
call fcn.140067c10
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor edi, edi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x240]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140041bd4
call fcn.140067ee0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rbp + 0x240]
lea rdx, str.DisableModifyIpTask.startDnp:_CreateProcess__s_failed___d
mov rcx, rbx
call fcn.140067c10
jmp 0x140041be4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x58]
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140041c1b
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041c16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041c4a
call fcn.14016aab8
mov rax, rdi
jmp 0x140041c22
xor eax, eax
mov rcx, qword [rbp + 0x640]
xor rcx, rsp
call fcn.14016ab50
lea r11, [rsp + 0x750]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140170de4
int3
call fcn.140170de4
int3