Function at 0x483db0
Capabilities:
Copy file
Create a process with modified i/o handles and window
Create directory
Create process on windows
Delete directory
Delete registry key
Get common file path
Get installed programs
Query or enumerate registry value
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5f4
mov eax, dword [0x6b0d44]
xor eax, esp
mov dword [esp + 0x5f0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x24], edx
mov edi, ecx
mov dword [esp + 0x20], eax
mov esi, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
call fcn.004831ae
test eax, eax
jne 0x483e0f
push str.Requires_administrator_permissions._r_n
call fcn.004010b4
pop ecx
mov ecx, dword [esp + 0x5fc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0059b3f0
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x483e1a
push str.Performing_uninstall..._r_n
jmp 0x483e1f
push str.Performing_install..._r_n
call fcn.004010b4
pop ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], ebx
push eax
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetServicesMesh_Agent
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x483f0e
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
push 0x7666d8
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x483f04
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x483f04
push ebx
push ebx
xor edx, edx
call fcn.0046c097
pop ecx
pop ecx
mov edi, eax
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ebx
push str.ImagePath
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x40
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 0x44
push ebx
push eax
call fcn.0059de40
add esp, 0xc
mov esi, 0x76c080
push edi
push str._s__exec__try__require_service_manager_.manager.uninstallService_meshagentDiagnostic___require_task_scheduler_.delete_meshagentDiagnostic_periodicStart_.then_function__process.exit_____function__process.exit_______catch_e_process.exit____
push 0x1000
push esi
call fcn.0040112a
add esp, 0x10
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebx
push ebx
push 0x8000000
push 1
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x2c]
call esi
push edi
call fcn.005d0f40
pop ecx
mov esi, ebx
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00483c42
mov edi, ebx
push 0x64
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00483b4f
cmp eax, 3
jne 0x483f30
cmp edi, 0x190
jl 0x483f15
mov ecx, str.Mesh_Agent
call fcn.004839e4
mov ecx, 0x765f50
call fcn.004839e4
push 0x104
lea eax, [esp + 0x2bc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x189]
push eax
push ebx
push ebx
push 0x8026
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, 0x12c
cmp eax, 1
je 0x483fc0
lea eax, [esp + 0x189]
mov byte [esp + 0x188], 0x22
push edi
push eax
call fcn.005d06e0
mov esi, eax
pop ecx
pop ecx
cmp esi, 0x104
ja 0x483fb9
push 0x26
mov edx, edi
lea ecx, [esp + 0x18d]
push str.Mesh_AgentMeshAgent.exe___uninstall
sub edx, esi
add ecx, esi
call section..text
pop ecx
pop ecx
add esi, 0x19
mov dword [esp + 0x14], esi
cmp dword [esp + 0x10], ebx
je 0x484066
cmp esi, dword [esp + 0xc]
jne 0x484066
push esi
lea eax, [esp + 0x18d]
push eax
lea eax, [esp + 0x2c0]
push eax
call fcn.006283b0
add esp, 0xc
test eax, eax
jne 0x484066
lea eax, [esp + 0x4c8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea esi, [esp + 0x4c8]
sub edi, eax
add esi, eax
mov edx, edi
push 0xf
push 0x766818
mov ecx, esi
call section..text
lea eax, [esp + 0x4d0]
push eax
call fcn.005e49e0
add esp, 0xc
lea eax, [esp + 0x4c8]
push ebx
push eax
lea eax, [esp + 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x1e
push str.MeshAgent.exe__fulluninstall
mov edx, edi
mov ecx, esi
call section..text
pop ecx
pop ecx
xor edx, edx
lea ecx, [esp + 0x4c8]
jmp 0x484913
xor edx, edx
lea ecx, [esp + 0x188]
inc edx
call fcn.00483d10
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x766848
push reloc.WS2_32.dll_bind
call esi
push 0x766868
push reloc.WS2_32.dll_accept
call esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallMeshCentralAgent
push reloc.WS2_32.dll_bind
call esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x10], ebx
jne 0x4840d0
cmp esi, dword [esp + 0xc]
jne 0x4840d0
push esi
lea eax, [esp + 0x18d]
push eax
lea eax, [esp + 0x2c0]
push eax
call fcn.006283b0
add esp, 0xc
test eax, eax
je 0x4848cf
mov byte [esp + esi + 0x189], bl
mov esi, ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x189]
inc esi
push eax
call fcn.005e49e0
pop ecx
test eax, eax
je 0x484101
cmp eax, 0xffffffff
je 0x484101
cmp esi, 0x190
jl 0x4840d9
lea eax, [esp + 0x189]
push edi
push eax
call fcn.005d06e0
mov esi, dword [esp + 0x1c]
pop ecx
pop ecx
lea ecx, [eax - 4]
mov dword [esp + 0xc], eax
cmp ecx, 0xff
ja 0x483dfa
push eax
lea eax, [esp + 0x18d]
mov edx, 0x104
push eax
lea ecx, [esp + 0x88]
call section..text
mov eax, dword [esp + 0x14]
mov edx, 0x101
push 4
push 0x766888
sub edx, eax
lea ecx, [esp + eax + 0x8d]
call section..text
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, 0x104
jae 0x48491d
mov byte [esp + eax + 0x80], bl
lea eax, [esp + 0x80]
push eax
call fcn.005e49e0
pop ecx
lea eax, [esp + 0x189]
push edi
push eax
call fcn.005d06e0
pop ecx
pop ecx
mov dword [esp + 0xc], eax
lea ecx, [eax - 4]
cmp ecx, 0xff
ja 0x483dfa
push eax
lea eax, [esp + 0x18d]
mov edx, 0x104
push eax
lea ecx, [esp + 0x88]
call section..text
mov eax, dword [esp + 0x14]
mov edx, 0x101
push 5
push str.mshx
sub edx, eax
lea ecx, [esp + eax + 0x8d]
call section..text
mov eax, dword [esp + 0x1c]
add esp, 0x10
inc eax
cmp eax, 0x104
jae 0x48491d
mov byte [esp + eax + 0x80], bl
lea eax, [esp + 0x80]
push eax
call fcn.005e49e0
pop ecx
lea eax, [esp + 0x189]
push edi
push eax
call fcn.005d06e0
pop ecx
pop ecx
mov dword [esp + 0xc], eax
lea ecx, [eax - 4]
cmp ecx, 0xfd
ja 0x483dfa
push eax
lea eax, [esp + 0x18d]
mov edx, 0x104
push eax
lea ecx, [esp + 0x88]
call section..text
mov eax, dword [esp + 0x14]
mov edx, 0x101
push 6
push 0x766894
sub edx, eax
lea ecx, [esp + eax + 0x8d]
call section..text
mov eax, dword [esp + 0x1c]
add esp, 0x10
add eax, 2
cmp eax, 0x104
jae 0x48491d
mov byte [esp + eax + 0x80], bl
lea eax, [esp + 0x80]
push eax
call fcn.005e49e0
pop ecx
lea eax, [esp + 0x189]
push edi
push eax
call fcn.005d06e0
pop ecx
pop ecx
mov dword [esp + 0xc], eax
lea ecx, [eax - 4]
cmp ecx, 0xff
ja 0x483dfa
push eax
lea eax, [esp + 0x18d]
mov edx, 0x104
push eax
lea ecx, [esp + 0x88]
call section..text
mov eax, dword [esp + 0x14]
mov edx, 0x101
push 4
push 0x76689c
sub edx, eax
lea ecx, [esp + eax + 0x8d]
call section..text
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, 0x104
jae 0x48491d
mov byte [esp + eax + 0x80], bl
lea eax, [esp + 0x80]
push eax
call fcn.005e49e0
pop ecx
lea eax, [esp + 0x189]
push edi
push eax
call fcn.005d06e0
pop ecx
pop ecx
mov dword [esp + 0xc], eax
lea ecx, [eax - 4]
cmp ecx, 0xff
ja 0x483dfa
push eax
lea eax, [esp + 0x18d]
mov edx, 0x104
push eax
lea ecx, [esp + 0x88]
call section..text
mov eax, dword [esp + 0x14]
mov edx, 0x101
push 4
push 0x7668a0
sub edx, eax
lea ecx, [esp + eax + 0x8d]
call section..text
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, 0x104
jae 0x48491d
mov byte [esp + eax + 0x80], bl
lea eax, [esp + 0x80]
push eax
call fcn.005e49e0
pop ecx
lea eax, [esp + 0x189]
push edi
push eax
call fcn.005d06e0
pop ecx
pop ecx
mov dword [esp + 0xc], eax
lea ecx, [eax - 4]
cmp ecx, 0xfc
ja 0x483dfa
push eax
lea eax, [esp + 0x18d]
mov edx, 0x104
push eax
lea ecx, [esp + 0x88]
call section..text
mov eax, dword [esp + 0x14]
mov edx, 0x101
push 3
push 0x7668a4
sub edx, eax
lea ecx, [esp + eax + 0x8d]
call section..text
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, 0x104
jae 0x48491d
mov byte [esp + eax + 0x80], bl
lea eax, [esp + 0x80]
push eax
call fcn.005e49e0
pop ecx
lea eax, [esp + 0x189]
mov byte [esp + esi + 0x17b], bl
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp dword [esp + 0x10], ebx
jne 0x483dfa
push ebx
lea eax, [esp + 0x18d]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x484489
call esi
cmp eax, 5
jne 0x484489
call esi
push eax
push ebx
push 0x319
mov edx, 0x7668a8
mov ecx, 0x7668b8
call fcn.0047145c
add esp, 0xc
call esi
push eax
push str.Access_denied__1_
push 0x7668e0
call fcn.004010b4
add esp, 0xc
jmp 0x483dfa
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov byte [esp + eax + 0x17b], 0x5c
jmp 0x4844c5
call esi
cmp eax, 5
je 0x48468f
mov ecx, dword [esp + 0xc]
mov eax, ecx
inc ecx
mov dword [esp + 0xc], ecx
cmp eax, 5
jg 0x484662
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
lea eax, [esp + 0x18d]
push eax
lea eax, [esp + 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x48449b
mov esi, 0x104
lea eax, [esp + 0x2b8]
push esi
push eax
call fcn.005d06e0
mov dword [esp + 0x14], eax
pop ecx
pop ecx
cmp eax, 4
jl 0x483dfa
push eax
lea eax, [esp + 0x2bc]
mov edx, esi
push eax
lea ecx, [esp + 0x3c8]
call section..text
mov eax, dword [esp + 0x14]
add esi, 0xfffffffd
push 4
mov edx, esi
push 0x7669a4
sub edx, eax
lea ecx, [esp + eax + 0x3cd]
call section..text
lea eax, [esp + 0x199]
push edi
push eax
call fcn.005d06e0
add esp, 0x18
mov dword [esp + 0xc], eax
lea ecx, [eax - 4]
cmp ecx, 0xff
ja 0x483dfa
push eax
lea eax, [esp + 0x18d]
mov edx, 0x104
push eax
lea ecx, [esp + 0x88]
call section..text
mov eax, dword [esp + 0x14]
mov edx, esi
push 4
push 0x7669a8
sub edx, eax
lea ecx, [esp + eax + 0x8d]
call section..text
add esp, 0x10
lea eax, [esp + 0x80]
push 1
push eax
lea eax, [esp + 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [esp + 0x20], ebx
je 0x4846c3
lea eax, [esp + 0x189]
mov dword [esp + 0x10], ebx
push edi
push eax
call fcn.005d06e0
pop ecx
pop ecx
mov dword [esp + 0xc], eax
lea ecx, [eax - 4]
cmp ecx, 0xff
ja 0x483dfa
push eax
lea eax, [esp + 0x18d]
mov edx, 0x104
push eax
lea ecx, [esp + 0x88]
call section..text
mov eax, dword [esp + 0x14]
mov edx, esi
push 4
push 0x7669ac
sub edx, eax
lea ecx, [esp + eax + 0x8d]
call section..text
add esp, 0x10
lea eax, [esp + 0x80]
cmp dword [ebp + 0x10], ebx
jle 0x4846bc
push 0x7669b0
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005cad70
add esp, 0xc
cmp dword [esp + 0x10], ebx
je 0x4846c3
push dword [esp + 0x10]
push dword [ebp + 0x10]
push 1
push dword [esp + 0x2c]
call fcn.005ca2c0
push dword [esp + 0x20]
call fcn.005ac520
add esp, 0x14
jmp 0x4846c3
call esi
push eax
push ebx
push 0x321
mov edx, 0x766940
mov ecx, 0x766950
call fcn.0047145c
add esp, 0xc
call esi
push eax
push str.Error_copying_executable_file
push 0x766990
jmp 0x48447c
call esi
push eax
push ebx
push 0x320
mov edx, 0x7668f4
mov ecx, 0x766904
call fcn.0047145c
add esp, 0xc
call esi
push eax
push str.Access_denied__2_
push 0x76692c
jmp 0x48447c
push eax
call fcn.005e49e0
pop ecx
lea eax, [esp + 0x2b8]
push 0x104
push eax
call fcn.005d06e0
mov esi, eax
pop ecx
pop ecx
cmp esi, 4
jl 0x483dfa
lea eax, [esp + 0x2b8]
mov edx, 0x104
push esi
push eax
lea ecx, [esp + 0x3c8]
call section..text
push 6
mov edx, 0x101
lea ecx, [esp + esi + 0x3c9]
push 0x7669b4
sub edx, esi
call section..text
lea eax, [esp + 0x199]
push edi
push eax
call fcn.005d06e0
mov esi, eax
add esp, 0x18
lea ecx, [esi - 4]
cmp ecx, 0xff
ja 0x483dfa
lea eax, [esp + 0x189]
mov edx, 0x104
push esi
push eax
lea ecx, [esp + 0x88]
call section..text
push 6
mov edx, 0x101
lea ecx, [esp + esi + 0x89]
push 0x7669bc
sub edx, esi
call section..text
mov esi, dword [esp + 0x34]
add esp, 0x10
test esi, esi
je 0x4847c4
cmp dword [ebp + 8], ebx
jle 0x4847c4
push 0x7669c4
lea eax, [esp + 0x84]
mov dword [esp + 0x14], ebx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005cad70
add esp, 0xc
cmp dword [esp + 0x10], ebx
je 0x4848cf
push dword [esp + 0x10]
push dword [ebp + 8]
push 1
push esi
call fcn.005ca2c0
push dword [esp + 0x20]
call fcn.005ac520
add esp, 0x14
jmp 0x4848cf
push 1
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4848cf
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x4848cf
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x30], ebx
je 0x4848b5
push 0x7d0
push dword [esp + 0x34]
mov esi, 0x76c080
mov dword [esp + 0x18], ebx
push 0xfff
lea eax, [esp + 0x30]
push esi
push eax
call fcn.005e1f20
add esp, 0x14
test eax, eax
jne 0x4848af
push 0x7669c8
push esi
call fcn.0059d650
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x48485b
push 0x7669d0
push esi
call fcn.0059d650
pop ecx
add esi, 6
pop ecx
test eax, eax
je 0x484860
mov byte [eax], bl
jmp 0x484860
mov esi, 0x76c080
push 0x7669d4
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005cad70
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x4848af
test esi, esi
je 0x484899
push 0x1000
push esi
call fcn.005d06e0
pop ecx
mov ebx, eax
mov eax, dword [esp + 0x14]
pop ecx
push eax
push ebx
push 1
push esi
call fcn.005ca2c0
push dword [esp + 0x20]
call fcn.005ac520
add esp, 0x14
push dword [esp + 0x30]
call edi
cmp dword [esp + 0x2c], 0
je 0x4848c2
push dword [esp + 0x2c]
call edi
cmp dword [esp + 0x34], 0
je 0x4848cf
push dword [esp + 0x34]
call edi
call fcn.004833db
call fcn.004832a7
lea ebx, [esp + 0x189]
mov esi, str.___install
add ebx, dword [esp + 0x14]
lea ecx, [esp + 0x188]
mov edi, ebx
xor edx, edx
inc edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.00483d10
mov esi, str.___start
lea ecx, [esp + 0x188]
mov edi, ebx
xor edx, edx
inc edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.00483d10
jmp 0x483dfa
call fcn.0059b550
int3