Function at 0x427b20
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Delete file
Get common file path
Query or enumerate registry value
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4cdc76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x568
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x80]
call fcn.00415f70
mov al, byte [esp + 0x4b]
xor ebx, ebx
mov dword [esp + 0x580], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x14], al
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov edx, dword [0x4e3c54]
mov ecx, dword [str.UpdateECop__]
mov eax, dword [0x4e3c58]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov cl, byte [0x4e3c5c]
lea edx, [esp + 0x474]
push 0x104
push edx
mov byte [esp + 0x588], 1
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], cl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x427bf8
push 0x4e3c3c
lea eax, [ebp + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov edx, dword [ebp]
add esp, 0xc
push 0xf8
mov ecx, dword [0x4d1ed0]
lea eax, [esp + 0x34]
push eax
push ecx
mov ecx, ebp
call dword [edx + 0x10]
push 0xe0000001
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x18]
push edx
jmp 0x428275
mov ecx, dword [str.SOFTWAREBaosightlsagentgeneral]
lea eax, [esp + 0x24]
push eax
push 0x20019
push ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x427c45
mov edx, dword [str.SOFTWAREBaosightlsagentgeneral]
lea eax, [ebp + 0x55]
push edx
push 0x80000002
push 0x4e3c24
push 0xfff
push eax
call fcn.00466ca7
mov edx, dword [ebp]
add esp, 0x14
push 0x101
jmp 0x427bd2
xor eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], eax
lea edx, [esp + 0x50]
mov dword [esp + 0x58], eax
push ecx
mov ecx, dword [str.ecopip]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ebx
mov edi, 1
push ecx
push edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], 0x10
call esi
test eax, eax
je 0x427cb3
push 0x4e3c0c
lea eax, [ebp + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov edx, dword [ebp]
add esp, 0xc
push 0x10d
jmp 0x427bd2
mov eax, 4
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
lea edx, [esp + 0x2c]
push eax
mov eax, dword [str.ecopport]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push ebx
push eax
push ecx
call esi
test eax, eax
je 0x427d30
push 0x4e3bf0
lea edx, [ebp + 0x55]
push 0xfff
push edx
call fcn.00466ca7
mov eax, dword [ebp]
add esp, 0xc
push pe_nt_image_headers32
mov edx, dword [0x4d1ed0]
lea ecx, [esp + 0x34]
push ecx
push edx
mov ecx, ebp
call dword [eax + 0x10]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xe0000001
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x428275
xor edx, edx
lea eax, [esp + 0x28]
mov dword [esp + 0x60], edx
lea ecx, [esp + 0x60]
mov dword [esp + 0x64], edx
push eax
mov eax, dword [str.agentversion]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push ebx
push eax
push ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], 0x10
call esi
test eax, eax
je 0x427d92
push 0x4e3bd0
lea edx, [ebp + 0x55]
push 0xfff
push edx
call fcn.00466ca7
mov eax, dword [ebp]
add esp, 0xc
push 0x125
jmp 0x427cff
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [str.eCop3000LAgent.exe]
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x478]
push ecx
push edx
push str._s_s_s
lea eax, [esp + 0x27c]
push 0x103
push eax
call fcn.00466ca7
add esp, 0x18
lea ecx, [esp + 0x26c]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x427e1e
push 0x4e3bb8
lea ecx, [ebp + 0x55]
push 0xfff
push ecx
call fcn.00466ca7
mov edx, dword [ebp]
add esp, 0xc
push 0x139
jmp 0x427bd2
mov eax, dword [str.eCop3000LAgent.xml]
mov ecx, dword [str._ecop_NetInstall_]
mov edx, dword [esp + 0x44]
push eax
push ecx
mov ecx, dword [str.https:__]
lea eax, [esp + 0x58]
push edx
push eax
push ecx
lea edx, [esp + 0x17c]
push str._s_s:_d_s_s
push edx
call fcn.00467d68
add esp, 0x1c
lea eax, [esp + 0x40]
lea ecx, [esp + 0x168]
push eax
push ecx
lea ecx, [esp + 0x88]
call fcn.00416010
mov esi, eax
mov eax, dword [esp + 0x40]
mov ecx, 0x11
lea edi, [esp + 0x124]
cmp eax, ebx
rep movsd dword es:[edi], dword [esi]
jne 0x427eac
mov edx, dword [str.eCop3000LAgent.xml]
lea eax, [ebp + 0x55]
push edx
push 0x4e3b98
push 0xfff
push eax
call fcn.00466ca7
mov edx, dword [ebp]
add esp, 0x10
push 0x146
jmp 0x427bd2
lea eax, [esp + 0x60]
lea ecx, [esp + 0x124]
push eax
push ecx
call fcn.00473dd0
add esp, 8
test eax, eax
jne 0x427efe
push 0x4e3b7c
lea edx, [ebp + 0x55]
push 0xfff
push edx
call fcn.00466ca7
mov edx, dword [0x4d1ecc]
mov eax, dword [ebp]
add esp, 0xc
lea ecx, [esp + 0x30]
push 0x14f
push ecx
push edx
mov ecx, ebp
call dword [eax + 0x10]
push 0xe0000002
jmp 0x42826a
lea esi, [ebp + 0x55]
push 0x4e3b5c
push 0xfff
push esi
call fcn.00466ca7
mov ecx, dword [0x4d1ecc]
mov edx, dword [ebp]
add esp, 0xc
lea eax, [esp + 0x30]
push 0x156
push eax
push ecx
mov ecx, ebp
call dword [edx + 0x10]
cmp dword [esp + 0xdc], ebx
je 0x4280bb
mov edx, dword [str.eCop3000LAgentScope.xml]
mov eax, dword [str._ecop_NetInstall_]
mov ecx, dword [esp + 0x44]
push edx
push eax
mov eax, dword [str.https:__]
lea edx, [esp + 0x58]
push ecx
push edx
push eax
lea ecx, [esp + 0x17c]
push str._s_s:_d_s_s
push ecx
call fcn.00467d68
add esp, 0x1c
lea edx, [esp + 0x40]
lea eax, [esp + 0x168]
lea ecx, [esp + 0x80]
push edx
push eax
call fcn.004163d0
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x10], ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00428730
cmp dword [esp + 0x40], ebx
jne 0x427fc5
mov edx, dword [str.eCop3000LAgentScope.xml]
push edx
push 0x4e3b98
push 0xfff
push esi
call fcn.00466ca7
mov eax, dword [ebp]
add esp, 0x10
push 0x165
jmp 0x428254
mov ecx, dword [esp + 0x10]
sub esp, 0x14
mov edi, esp
mov dword [esp + 0x60], esp
mov dword [edi], ecx
mov dl, byte [esp + 0x28]
mov byte [edi + 4], dl
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
jne 0x427fe7
xor eax, eax
jmp 0x427ff0
mov eax, dword [esp + 0x30]
sub eax, ecx
sar eax, 3
cmp eax, ebx
jge 0x427ff6
xor eax, eax
shl eax, 3
push eax
call fcn.00467824
mov dword [edi + 8], eax
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add esp, 4
cmp ecx, edx
mov dword [esp + 0x60], edx
je 0x428031
cmp eax, ebx
je 0x428023
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
add ecx, 8
add eax, 8
cmp ecx, edx
jne 0x428015
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
mov ecx, ebp
call fcn.004283b0
cmp eax, ebx
jne 0x42808f
push 0x4e3b40
push 0xfff
push esi
call fcn.00466ca7
mov ecx, dword [0x4d1ecc]
mov edx, dword [ebp]
add esp, 0xc
lea eax, [esp + 0x30]
push 0x16d
push eax
push ecx
mov ecx, ebp
call dword [edx + 0x10]
push 0xe0000002
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x18]
push edx
jmp 0x428275
push 0x4e3b28
push 0xfff
push esi
call fcn.00466ca7
mov edx, dword [0x4d1ecc]
mov eax, dword [ebp]
add esp, 0xc
lea ecx, [esp + 0x30]
push 0x174
push ecx
push edx
mov ecx, ebp
call dword [eax + 0x10]
mov eax, dword [str.eCop3000LAgent.exe]
mov ecx, dword [str._ecop_NetInstall_]
mov edx, dword [esp + 0x44]
push eax
push ecx
mov ecx, dword [str.https:__]
lea eax, [esp + 0x58]
push edx
push eax
push ecx
lea edx, [esp + 0x17c]
push str._s_s:_d_s_s
push edx
call fcn.00467d68
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x38c]
add esp, 0x1c
rep stosd dword es:[edi], eax
mov eax, dword [str.eCop3000LAgent.exe]
lea ecx, [esp + 0x124]
push eax
push ecx
push 0x4df9b4
lea edx, [esp + 0x37c]
push 0x103
push edx
call fcn.00466ca7
add esp, 0x14
lea eax, [esp + 0x370]
lea ecx, [esp + 0x474]
lea edx, [esp + 0x168]
push eax
push ecx
push edx
lea ecx, [esp + 0x8c]
call fcn.00416840
cmp eax, dword [esp + 0x164]
je 0x428173
push 0x4e3b04
push 0xfff
push esi
call fcn.00466ca7
mov eax, dword [ebp]
add esp, 0xc
push 0x183
jmp 0x428254
push 0x4e3ae0
push 0xfff
push esi
call fcn.00466ca7
mov ecx, dword [0x4d1ecc]
mov edx, dword [ebp]
add esp, 0xc
lea eax, [esp + 0x30]
push 0x18a
push eax
push ecx
mov ecx, ebp
call dword [edx + 0x10]
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0xe0]
mov dword [esp + 0x70], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x74], edx
lea eax, [esp + 0x370]
mov dword [esp + 0x78], edx
lea ecx, [esp + 0x474]
push eax
mov dword [esp + 0x80], edx
push ecx
push 0x4df9ac
lea edx, [esp + 0x278]
push 0x103
push edx
mov dword [esp + 0xf4], 0x44
mov dword [esp + 0x120], 1
mov word [esp + 0x124], bx
call fcn.00466ca7
add esp, 0x14
lea eax, [esp + 0x70]
lea ecx, [esp + 0xe0]
lea edx, [esp + 0x26c]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4282a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4e1df0
push 0xfff
push esi
call fcn.00466ca7
mov eax, dword [ebp]
add esp, 0x10
push 0x1a6
mov edx, dword [0x4d1ed0]
lea ecx, [esp + 0x34]
push ecx
push edx
mov ecx, ebp
call dword [eax + 0x10]
push 0xe0000001
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x18]
push eax
call fcn.00463c78
add esp, 4
lea ecx, [esp + 0x80]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x580], 0xffffffff
call fcn.00415fe0
xor eax, eax
jmp 0x4282ed
mov ecx, dword [esp + 0x70]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x74]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call fcn.00463c78
add esp, 4
lea ecx, [esp + 0x80]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x580], 0xffffffff
call fcn.00415fe0
mov eax, 1
mov ecx, dword [esp + 0x578]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x574
ret