Function at 0x40479c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e8e2
mov eax, dword fs:[0]
push eax
mov eax, 0x2ffc
call fcn.00441ba0
mov eax, dword [0x4849a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x2fd8]
push eax
mov dword [ebp - 4], 1
call fcn.0040a001
mov byte [ebp - 4], 2
call fcn.0041ef9c
push eax
lea ecx, [ebp - 0x2fe0]
call fcn.00406449
mov byte [ebp - 4], 3
call fcn.0041ef9c
push eax
lea ecx, [ebp - 0x2ffc]
call fcn.00406449
mov byte [ebp - 4], 4
call fcn.0041ef9c
push eax
lea ecx, [ebp - 0x3000]
call fcn.00406449
push ecx
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
mov dword [ebp - 0x2fe8], esp
mov ecx, esp
push eax
call fcn.0040359e
call fcn.0041c499
cmp dword [ebp + 0xc], 0
push ecx
setne al
mov ecx, esp
mov dword [ebp - 0x2fe8], esp
mov edi, str.Settings.conf
push edi
mov byte [0x4894f8], al
call fcn.00403310
mov ebx, 0x4894e0
mov ecx, ebx
call fcn.0041b7ce
lea eax, [ebp - 0x2fdc]
push eax
call fcn.0041c54d
push eax
lea ecx, [ebp - 0x2fe0]
mov byte [ebp - 4], 6
call fcn.004035bc
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2fdc]
add ecx, 0xfffffff0
call fcn.00401109
push str.__k
lea ecx, [ebp - 0x2fe0]
call fcn.00403855
mov eax, dword [ebp + 8]
push dword [eax - 0xc]
lea ecx, [ebp - 0x2fe0]
push eax
call fcn.00403a90
cmp dword [ebp + 0xc], 1
lea eax, [ebp - 0x2fe0]
jne 0x4048cc
push str.__Agent
jmp 0x4048d1
push str.__Viewer
push eax
call fcn.004033ec
push str._showInit_0
lea eax, [ebp - 0x2fe0]
push eax
call fcn.004033ec
cmp dword [esi + 0x48], 1
jne 0x4048ff
push str.__loghere
lea eax, [ebp - 0x2fe0]
push eax
call fcn.004033ec
cmp dword [ebp + 0x14], 0
je 0x404944
push str.__ControlAlwaysKey
lea eax, [ebp - 0x2fe0]
push eax
call fcn.004033ec
lea eax, [ebp - 0x2fdc]
push eax
call fcn.00403d74
push eax
lea ecx, [ebp - 0x2fe0]
mov byte [ebp - 4], 7
call fcn.00403609
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2fdc]
add ecx, 0xfffffff0
call fcn.00401109
push ecx
mov ecx, esp
mov dword [ebp - 0x2fe8], esp
push edi
call fcn.00403310
mov ecx, ebx
call fcn.0041b7ce
mov ebx, dword [ebp - 0x2fe0]
push ebx
push str.args_:__s
call fcn.00409842
call fcn.00416e55
push eax
push str.Admin:_d
call fcn.00409842
push dword [esi + 0x28]
push str.Agent_exe_started.:_s
call fcn.00409842
mov eax, dword [esi + 0x28]
add esp, 0x18
push 1
push eax
push ebx
push str.agent.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push eax
push str.Application_started_with_status_code_:__d
mov dword [ebp - 0x2ff4], eax
call fcn.00409842
pop ecx
pop ecx
mov ecx, esi
call fcn.004051b8
mov dword [ebp - 0x2fe8], eax
call fcn.0041ef9c
push eax
lea ecx, [ebp - 0x2fe4]
call fcn.00406449
push dword [ebp - 0x2ff4]
lea eax, [ebp - 0x2fe4]
push str.Status_code:_d_
push eax
mov byte [ebp - 4], 8
call fcn.00403c8e
add esp, 0xc
push str.ExeName:
lea ecx, [ebp - 0x2fe4]
call fcn.00403855
lea eax, [esi + 0x34]
push eax
lea ecx, [ebp - 0x2fe4]
call fcn.00403609
mov edi, dword [ebp + 0x10]
cmp dword [edi - 0xc], 0
jne 0x404ae1
call fcn.0041ef9c
push eax
lea ecx, [ebp - 0x2fdc]
call fcn.00406449
push str._Track_msg:
lea ecx, [ebp - 0x2fe4]
mov byte [ebp - 4], 9
call fcn.00403855
cmp dword [0x4898b0], 0
je 0x404a70
push ecx
mov ecx, esp
mov dword [ebp - 0x2fec], esp
push str.chrome_launchapp
call fcn.00403310
call fcn.004011d0
push str.Join_exe_got_invoked_through_launch_application
call fcn.00409842
pop ecx
lea eax, [ebp - 0x2fec]
push eax
call fcn.00403d58
mov byte [ebp - 4], 0xa
push dword [eax]
lea eax, [ebp - 0x2fdc]
push str.Join_src_:__s
push eax
call fcn.00403c8e
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2fec]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00401109
mov eax, dword [ebp - 0x2fdc]
push dword [eax - 0xc]
lea ecx, [ebp - 0x2fe4]
push eax
call fcn.00403a90
lea ecx, [ebp - 0x2fdc]
call fcn.00403453
push eax
call fcn.00409842
pop ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2fdc]
add ecx, 0xfffffff0
call fcn.00401109
push str._Msg:
lea ecx, [ebp - 0x2fe4]
call fcn.00403855
push dword [edi - 0xc]
lea ecx, [ebp - 0x2fe4]
push edi
call fcn.00403a90
push dword [ebx - 0xc]
lea ecx, [ebp - 0x2fe4]
push ebx
call fcn.00403a90
push ecx
lea eax, [esi + 0x38]
mov dword [ebp - 0x2fec], esp
mov ecx, esp
push eax
call fcn.0040359e
push ecx
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x2fe4]
mov dword [ebp - 0x2fdc], esp
mov ecx, esp
push eax
call fcn.0040359e
push ecx
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0x3004], esp
push 0x489040
call fcn.00403310
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x2ff8], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xd
call fcn.0040359e
push dword [ebp - 0x2fe8]
mov byte [ebp - 4], 8
call fcn.0040535a
mov dword [ebp - 0x2fec], eax
add esp, 0x14
lea eax, [ebp - 0x2fe8]
push eax
call fcn.00403dac
mov eax, dword [eax]
cmp dword [eax - 0xc], 5
mov ecx, dword [ebp - 0x2fe8]
setg byte [ebp - 0x2fed]
add ecx, 0xfffffff0
call fcn.00401109
cmp byte [ebp - 0x2fed], 0
je 0x404c38
call fcn.0041ef9c
push eax
lea ecx, [ebp - 0x2fdc]
call fcn.00406449
lea eax, [ebp - 0x2fe8]
push eax
mov byte [ebp - 4], 0xe
call fcn.00403dac
mov byte [ebp - 4], 0xf
push dword [eax]
lea eax, [ebp - 0x2fdc]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.ROLE_CHANGE_JOIN_SUCCEEDED__s__role:_d___old_client_id:_s_
push eax
call fcn.00403c8e
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x2fe8]
add esp, 0x14
add ecx, 0xfffffff0
call fcn.00401109
push ecx
lea eax, [ebp - 0x2fdc]
mov dword [ebp - 0x2ff8], esp
mov ecx, esp
push eax
call fcn.0040359e
lea ecx, [ebp - 0x2fd8]
call fcn.0040b3da
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2fdc]
add ecx, 0xfffffff0
call fcn.00401109
cmp dword [ebp - 0x2ff4], 2
jne 0x404cc0
cmp dword [0x4894c4], 0
jne 0x404cc0
mov ebx, dword [0x4894ec]
lea eax, [ebp - 0x2fdc]
push 0x2347
push eax
call fcn.00418e02
mov dword [ebp - 0x2fe8], eax
lea eax, [ebp - 0x2fec]
mov byte [ebp - 4], 0x10
mov ebx, dword [0x4894ec]
push 0x2349
push eax
call fcn.00418e02
mov ecx, dword [ebp - 0x2fe8]
mov ecx, dword [ecx]
mov eax, dword [eax]
add esp, 0x10
push 0
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x2fec]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp - 0x2fdc]
add ecx, 0xfffffff0
call fcn.00401109
mov ebx, dword [ebp - 0x2fe0]
jmp 0x404d10
push ecx
mov ecx, esp
mov dword [ebp - 0x2ff8], esp
push str.Unknown_error
call fcn.00403310
push 2
call fcn.0040cf37
cmp dword [ebp - 0x2ff4], 0x2a
jne 0x404d10
cmp dword [ebp - 0x2fec], 7
push ecx
mov ecx, esp
mov dword [ebp - 0x2ff8], esp
jne 0x404cfc
push str.Connection_Succeeded
jmp 0x404d01
push str.Connection_Succeeded___older_agent__
call fcn.00403310
push 0xc8
call fcn.0040cf37
mov ecx, dword [ebp - 0x2fe4]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp - 0x3000]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp - 0x2ffc]
add ecx, 0xfffffff0
call fcn.00401109
lea ecx, [ebx - 0x10]
call fcn.00401109
lea esi, [ebp - 0x2fd8]
call fcn.0040a10a
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401109
lea ecx, [edi - 0x10]
call fcn.00401109
mov eax, dword [ebp - 0x2ff4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a2d7
leave
ret 0x10