Function at 0x404305
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c080
mov eax, dword fs:[0]
push eax
mov eax, 0x2ffc
call fcn.0043f990
mov eax, dword [0x4809a0]
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
xor edi, edi
lea eax, [ebp - 0x2fd8]
inc edi
push eax
mov dword [ebp - 4], edi
call fcn.004080d0
mov byte [ebp - 4], 2
call fcn.0041d3b7
push eax
lea ecx, [ebp - 0x2fe4]
call fcn.00403139
mov byte [ebp - 4], 3
call fcn.0041d3b7
push eax
lea ecx, [ebp - 0x2ffc]
call fcn.00403139
mov byte [ebp - 4], 4
call fcn.0041d3b7
push eax
lea ecx, [ebp - 0x3000]
call fcn.00403139
push ecx
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
mov dword [ebp - 0x2ff0], esp
mov ecx, esp
push eax
call fcn.0040315e
call fcn.0041a439
cmp dword [ebp + 0xc], 0
push ecx
setne al
mov ecx, esp
mov dword [ebp - 0x2ff0], esp
mov ebx, str.Settings.conf
push ebx
mov byte [0x485420], al
call fcn.00402eb5
call fcn.0041974c
lea eax, [ebp - 0x2fe8]
push eax
call fcn.0041a4ed
push eax
lea ecx, [ebp - 0x2fe4]
mov byte [ebp - 4], 6
call fcn.0040317c
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2fe8]
add ecx, 0xfffffff0
call fcn.00401109
push str.__k
lea ecx, [ebp - 0x2fe4]
call fcn.0040341f
mov eax, dword [ebp + 8]
push dword [eax - 0xc]
lea ecx, [ebp - 0x2fe4]
push eax
call fcn.0040364f
cmp dword [ebp + 0xc], edi
lea eax, [ebp - 0x2fe4]
jne 0x40442c
push str.__Agent
jmp 0x404431
push str.__Viewer
push eax
call fcn.00402f87
push str._showInit_0
lea eax, [ebp - 0x2fe4]
push eax
call fcn.00402f87
cmp dword [esi + 0x48], edi
jne 0x40445e
push str.__loghere
lea eax, [ebp - 0x2fe4]
push eax
call fcn.00402f87
cmp dword [ebp + 0x14], 0
je 0x4044a3
push str.__ControlAlwaysKey
lea eax, [ebp - 0x2fe4]
push eax
call fcn.00402f87
lea eax, [ebp - 0x2fe8]
push eax
call fcn.00403917
push eax
lea ecx, [ebp - 0x2fe4]
mov byte [ebp - 4], 7
call fcn.004031c9
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2fe8]
add ecx, 0xfffffff0
call fcn.00401109
push ecx
mov ecx, esp
mov dword [ebp - 0x2ff0], esp
push ebx
call fcn.00402eb5
call fcn.0041974c
mov ebx, dword [ebp - 0x2fe4]
push ebx
push str.args_:__s
call fcn.0040750a
call fcn.00414caf
push eax
push str.Admin:_d
call fcn.0040750a
push dword [esi + 0x28]
push str.Agent_exe_started.:_s
call fcn.0040750a
mov eax, dword [esi + 0x28]
add esp, 0x18
push edi
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 - 0x2fe8], eax
call fcn.0040750a
pop ecx
pop ecx
mov ecx, esi
call fcn.00404cb9
mov dword [ebp - 0x2fec], eax
call fcn.0041d3b7
push eax
lea ecx, [ebp - 0x2fe0]
call fcn.00403139
mov byte [ebp - 4], 8
push dword [ebp - 0x2fe8]
lea eax, [ebp - 0x2fe0]
push str.Status_code:_d_
push eax
call fcn.0040384d
add esp, 0xc
push str.ExeName:
lea ecx, [ebp - 0x2fe0]
call fcn.0040341f
lea eax, [esi + 0x34]
push eax
lea ecx, [ebp - 0x2fe0]
call fcn.004031c9
mov edi, dword [ebp + 0x10]
cmp dword [edi - 0xc], 0
jne 0x404611
call fcn.0041d3b7
push eax
lea ecx, [ebp - 0x2fdc]
call fcn.00403139
push str._Track_msg:
lea ecx, [ebp - 0x2fe0]
mov byte [ebp - 4], 9
call fcn.0040341f
cmp dword [0x4857c8], 0
lea ecx, [ebp - 0x2fdc]
je 0x4045d5
push str.JOIN_INVOKED_THROUGH_LAUNCH_APPLICATION
call fcn.00403444
mov eax, dword [ebp - 0x2fdc]
push dword [eax - 0xc]
lea ecx, [ebp - 0x2fe0]
push eax
call fcn.0040364f
push str.join_exe_got_invoked_through_launch_application
jmp 0x4045f9
push str.JOIN_INVOKED_THROUGH_DOWNLOAD
call fcn.00403444
mov eax, dword [ebp - 0x2fdc]
push dword [eax - 0xc]
lea ecx, [ebp - 0x2fe0]
push eax
call fcn.0040364f
push str.join_exe_got_invoked_through_download
call fcn.0040750a
pop ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2fdc]
add ecx, 0xfffffff0
call fcn.00401109
push str._Msg:
lea ecx, [ebp - 0x2fe0]
call fcn.0040341f
push dword [edi - 0xc]
lea ecx, [ebp - 0x2fe0]
push edi
call fcn.0040364f
push dword [ebx - 0xc]
lea ecx, [ebp - 0x2fe0]
push ebx
call fcn.0040364f
push ecx
lea eax, [esi + 0x38]
mov dword [ebp - 0x2ff0], esp
mov ecx, esp
push eax
call fcn.0040315e
push ecx
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2fe0]
mov dword [ebp - 0x2fdc], esp
mov ecx, esp
push eax
call fcn.0040315e
push ecx
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x3004], esp
push 0x484f68
call fcn.00402eb5
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x2ff8], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xc
call fcn.0040315e
push dword [ebp - 0x2fec]
mov byte [ebp - 4], 8
call fcn.00404e5c
mov dword [ebp - 0x2ff0], eax
add esp, 0x14
lea eax, [ebp - 0x2fec]
push eax
call fcn.0040394f
mov eax, dword [eax]
cmp dword [eax - 0xc], 5
mov ecx, dword [ebp - 0x2fec]
setg byte [ebp - 0x2ff1]
add ecx, 0xfffffff0
call fcn.00401109
cmp byte [ebp - 0x2ff1], 0
je 0x404768
call fcn.0041d3b7
push eax
lea ecx, [ebp - 0x2fdc]
call fcn.00403139
lea eax, [ebp - 0x2fec]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040394f
mov byte [ebp - 4], 0xe
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.0040384d
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x2fec]
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.0040315e
lea ecx, [ebp - 0x2fd8]
call fcn.004094a9
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2fdc]
add ecx, 0xfffffff0
call fcn.00401109
cmp dword [ebp - 0x2fe8], 2
jne 0x4047f0
cmp dword [0x4853ec], 0
jne 0x4047f0
mov ebx, dword [0x485414]
lea eax, [ebp - 0x2ff0]
push 0x2347
push eax
call fcn.00416b6a
mov dword [ebp - 0x2fec], eax
lea eax, [ebp - 0x2fdc]
mov byte [ebp - 4], 0xf
mov ebx, dword [0x485414]
push 0x2349
push eax
call fcn.00416b6a
mov ecx, dword [ebp - 0x2fec]
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 - 0x2fdc]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp - 0x2ff0]
add ecx, 0xfffffff0
call fcn.00401109
mov ebx, dword [ebp - 0x2fe4]
jmp 0x404840
push ecx
mov ecx, esp
mov dword [ebp - 0x2ff8], esp
push str.Unknown_error
call fcn.00402eb5
push 2
call fcn.0040b006
cmp dword [ebp - 0x2fe8], 0x2a
jne 0x404840
cmp dword [ebp - 0x2ff0], 7
push ecx
mov ecx, esp
mov dword [ebp - 0x2ff8], esp
jne 0x40482c
push str.Connection_Succeeded
jmp 0x404831
push str.Connection_Succeeded___older_agent__
call fcn.00402eb5
push 0xc8
call fcn.0040b006
mov ecx, dword [ebp - 0x2fe0]
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.004081d9
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401109
lea ecx, [edi - 0x10]
call fcn.00401109
mov eax, dword [ebp - 0x2fe8]
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.004386f5
leave
ret 0x10