Function at 0x1400036f0
Capabilities:
Create service
Delete file
Delete service
Get common file path
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x58], al
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x48], al
jmp 0x140003710
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8d0]
sub rsp, 0x9d0
mov rax, qword [0x140043238]
xor rax, rsp
mov qword [rbp + 0x8c0], rax
mov rax, qword [rbp + 0x930]
mov r12, rdx
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x78]
mov rax, qword [rbp + 0x938]
movzx esi, cl
mov qword [rbp - 0x68], rax
mov r15, r9
mov rax, qword [rbp + 0x940]
mov r13, r8
mov qword [rbp - 0x70], rax
mov rax, qword [rbp + 0x948]
mov byte [rsp + 0x71], cl
lea rcx, [rbp + 0x370]
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x78], 0x104
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov rdx, r12
lea rcx, [rbp + 0x370]
call fcn.140014fa8
xor edi, edi
test eax, eax
jne 0x1400039a5
mov r14b, 1
lea rcx, str.Connecting_to_local_system...
mov byte [rsp + 0x70], r14b
call fcn.140003690
cmp byte [0x140043ff1], dil
jne 0x1400037e0
mov ecx, 0x202
lea rdx, [rbp - 0x50]
call sub.WS2_32.dll_WSAStartup
mov byte [0x140043ff1], r14b
mov edx, 0x104
lea rcx, [rbp + 0x480]
call sub.WS2_32.dll_gethostname
lea rcx, [rbp + 0x480]
call sub.WS2_32.dll_gethostbyname
lea rcx, [rbp - 0x5c]
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
mov rdx, qword [rdx]
call fcn.140008800
mov ecx, dword [rbp - 0x5c]
call sub.WS2_32.dll_inet_ntoa
lea rdx, [rbp + 0x150]
sub rdx, rax
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140003830
movzx ecx, byte [rbp + 0x960]
lea r8, [rbp + 0x150]
mov byte [rsp + 0x50], cl
movzx r9d, r14b
mov rcx, qword [rsp + 0x78]
mov rdx, r12
mov qword [rsp + 0x48], rcx
mov rcx, qword [rbp - 0x70]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rbp - 0x68]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rbp - 0x80]
mov qword [rsp + 0x30], rcx
movzx ecx, sil
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r13
call fcn.140003f20
test al, al
je 0x140003d14
call fcn.140003100
lea rax, str.local_system
test r14b, r14b
mov r8, r12
lea rcx, str._rStarting__s_service_on__s...
cmovne r8, rax
mov rdx, r13
call fcn.140003690
mov r8, qword [rbp - 0x80]
lea rdx, str.__SystemRoot___s
lea rcx, [rbp + 0x590]
call fcn.140004590
xor edx, edx
mov r8d, 0xf003f
mov rcx, r12
mov ebx, 0x10
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
je 0x140003af8
cmp byte [rbp + 0x950], dil
mov r14d, pe_nt_image_headers64
cmove r14d, ebx
nop word [rax + rax]
mov qword [rsp + 0x60], rdi
lea rax, [rbp + 0x590]
mov qword [rsp + 0x58], rdi
mov r9d, 0xf01ff
mov qword [rsp + 0x50], rdi
mov r8, r13
mov qword [rsp + 0x48], rdi
mov rdx, r15
mov qword [rsp + 0x40], rdi
mov rcx, rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
jne 0x140003aa1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
mov ecx, edi
sete cl
test ecx, ecx
jne 0x140003aaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x34
je 0x140003aaa
cmp eax, 0x431
je 0x140003aaa
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140003ad9
xor r14b, r14b
lea rdx, [rbp + 0x150]
mov byte [rsp + 0x70], r14b
sub rdx, r12
mov rcx, r12
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400039c0
mov rdx, r12
lea rcx, str.Connecting_to__s...
call fcn.140003690
mov ebx, dword [rbp + 0x958]
cmp ebx, 0xffffffff
je 0x14000383e
mov ecx, 0x58
call fcn.140014c8c
lea rcx, [rbp + 0x150]
mov qword [rsp + 0x28], rdi
mov r9, rax
mov dword [rsp + 0x20], edi
lea r8, [0x140004250]
xor edx, edx
mov qword [rax + 0x10], rcx
mov rcx, qword [rbp - 0x80]
mov qword [rax + 0x30], rcx
mov rcx, qword [rbp - 0x68]
mov qword [rax + 0x38], rcx
mov rcx, qword [rbp - 0x70]
mov qword [rax + 0x40], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x48], rcx
movzx ecx, byte [rbp + 0x960]
mov byte [rax + 0x50], cl
xor ecx, ecx
mov byte [rax], sil
mov qword [rax + 8], r12
mov byte [rax + 0x18], dil
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r15
call fcn.140016178
imul edx, ebx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140003897
mov ecx, 2
call fcn.14000d318
mov rcx, rax
lea rdx, str._rTimeout_accessing__s._n
mov r8, r12
call fcn.140004540
mov ecx, 0x5b4
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140003d14
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, r15
mov rcx, rsi
call fcn.1400042d0
test al, al
jne 0x140003ad7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x20
je 0x140003910
cmp eax, 0x3e5
je 0x140003910
jmp 0x140003ad9
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x140003bcb
movzx r14d, byte [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp word [0x140044000], di
mov esi, eax
jne 0x140003b24
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [0x140044000]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
lea rcx, [0x140030c94]
call fcn.140003690
movsx eax, word [0x140044000]
mov ebx, edi
dec eax
test eax, eax
jle 0x140003b5b
nop
lea rcx, [0x140030c98]
call fcn.140003690
movsx eax, word [0x140044000]
inc ebx
dec eax
cmp ebx, eax
jl 0x140003b40
lea rcx, [0x140030c94]
call fcn.140003690
cmp esi, 2
jne 0x140003bd2
movzx eax, byte [rbp + 0x960]
lea r8, [rbp + 0x150]
movzx ecx, byte [rsp + 0x71]
movzx r9d, r14b
mov byte [rsp + 0x50], al
mov rdx, r12
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r13
call fcn.140003f20
test al, al
je 0x140003d14
jmp 0x1400038d3
mov al, 1
jmp 0x140003d16
cmp byte [rbp + 0x960], dil
je 0x140003c01
mov ecx, 2
call fcn.14000d318
mov rcx, rax
lea rdx, str._rCould_not_start__s_service_on__s:_n
mov r9, r12
mov r8, r13
call fcn.140004540
mov ecx, esi
call fcn.1400035c0
cmp byte [rsp + 0x71], dil
je 0x140003d0c
xor edx, edx
mov r8d, 0xf003f
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rcx, rax
mov rdx, r15
mov rsi, rax
call fcn.140004410
mov r8d, 0xf01ff
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x140003c57
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x78], 0x104
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov rdx, r12
lea rcx, [rbp + 0x6a0]
call fcn.140014fa8
test eax, eax
jne 0x140003cc3
mov edx, 0x104
lea rcx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, 0x5c
lea rcx, [rbp + 0x260]
call fcn.140016260
lea rdx, str._s_s
lea r8, [rbp + 0x260]
mov byte [rax], dil
jmp 0x140003ccd
lea rdx, str._sADMIN__s
mov r8, r12
mov r9, qword [rbp - 0x80]
lea rcx, [rbp + 0x7b0]
call fcn.140004590
nop dword [rax]
lea rcx, [rbp + 0x7b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140003d0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140003d0c
lea ecx, [rax + 0x5f]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jb 0x140003ce0
mov rcx, r12
call fcn.140003eb0
xor al, al
mov rcx, qword [rbp + 0x8c0]
xor rcx, rsp
call fcn.1400069e0
mov rbx, qword [rsp + 0xa10]
add rsp, 0x9d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret