Function at 0x419548
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490199
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [section..data]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x284], ecx
mov cl, byte [0x4cc84c]
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x28c], edi
test cl, cl
je 0x4195aa
push 0
push str.PrometheusCreateProcess
call fcn.0043a663
add esp, 8
xor eax, eax
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], dx
mov ebx, 8
mov dword [ebp - 4], eax
mov byte [ebp - 0x279], dl
cmp dword [esi + 0x14], ebx
jb 0x4195d3
mov eax, dword [esi]
jmp 0x4195d5
mov eax, esi
mov ecx, dword [0x4c85f8]
push ecx
push eax
call fcn.0040b8ab
add esp, 8
test eax, eax
je 0x41965b
cmp dword [esi + 0x14], ebx
jb 0x4195f2
mov eax, dword [esi]
jmp 0x4195f4
mov eax, esi
mov edx, dword [0x4c85fc]
push edx
push eax
call fcn.0040b8ab
add esp, 8
test eax, eax
je 0x41965b
cmp dword [esi + 0x14], ebx
jb 0x419611
mov eax, dword [esi]
jmp 0x419613
mov eax, esi
mov ecx, dword [0x4c8600]
push ecx
push eax
call fcn.0040b8ab
add esp, 8
test eax, eax
je 0x41965b
cmp dword [esi + 0x14], ebx
jb 0x419630
mov eax, dword [esi]
jmp 0x419632
mov eax, esi
mov edx, dword [0x4c8604]
push edx
push eax
call fcn.0040b8ab
add esp, 8
test eax, eax
jne 0x41966b
call fcn.0040658e
test al, al
je 0x41966b
mov byte [ebp - 0x279], 1
jmp 0x419732
push 0
call fcn.004123b2
add esp, 4
test al, al
jne 0x41964f
jmp 0x419646
push esi
lea eax, [ebp - 0x224]
push 0x49e3c0
push eax
call fcn.0040946c
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403c9c
mov byte [ebp - 4], 0
cmp dword [ebp - 0x210], ebx
jb 0x4196a8
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.00404f07
add esp, 4
mov ecx, dword [ebp - 0x284]
lea edx, [ebp - 0x25c]
push edx
call fcn.00418fb1
push eax
lea eax, [ebp - 0x160]
push str.__from_prome__prome_pipe_token
push eax
mov byte [ebp - 4], 2
call fcn.00419105
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004050a9
cmp dword [ebp - 0x14c], ebx
jb 0x4196fb
mov ecx, dword [ebp - 0x160]
push ecx
call fcn.00404f07
add esp, 4
xor edx, edx
mov dword [ebp - 0x14c], 7
mov dword [ebp - 0x150], 0
mov word [ebp - 0x160], dx
mov byte [ebp - 4], dl
cmp dword [ebp - 0x248], ebx
jb 0x419732
mov eax, dword [ebp - 0x25c]
push eax
call fcn.00404f07
add esp, 4
push esi
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x284]
call fcn.0041a0c7
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
call fcn.00404e0e
xor eax, eax
mov dword [edi], eax
push 0x40
mov dword [edi + 4], eax
push eax
lea ecx, [ebp - 0x2e0]
mov dword [edi + 8], eax
push ecx
mov byte [ebp - 4], 5
mov dword [edi + 0xc], eax
mov dword [ebp - 0x2e4], 0x44
call fcn.00402e70
add esp, 0xc
cmp dword [ebp - 0x280], 0
mov edx, 1
mov dword [ebp - 0x2b8], 1
mov word [ebp - 0x2b4], dx
je 0x419852
cmp byte [ebp - 0x279], 0
jne 0x419852
mov eax, dword [ebp - 0x280]
push eax
lea ecx, [ebp - 0x278]
push ecx
call fcn.00438503
push eax
lea edx, [ebp - 0x1ec]
push str.__prome_prestart_type
push edx
mov byte [ebp - 4], 6
call fcn.00419105
add esp, 0x14
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.004050a9
cmp dword [ebp - 0x1d8], ebx
jb 0x41981a
mov eax, dword [ebp - 0x1ec]
push eax
call fcn.00404f07
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1d8], 7
mov dword [ebp - 0x1dc], 0
mov word [ebp - 0x1ec], cx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x264], ebx
jb 0x419852
mov edx, dword [ebp - 0x278]
push edx
call fcn.00404f07
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
push str._PFMonChildProc
push eax
call fcn.0040648d
add esp, 8
test eax, eax
je 0x419939
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.00424ee2
add esp, 8
mov edi, eax
xor ecx, ecx
push 1
mov word [ebp - 0x80], cx
push 0x4a0bc0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 8
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
call fcn.00403bac
push edi
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x17c]
push eax
mov byte [ebp - 4], 9
call fcn.0041a396
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.004050a9
cmp dword [ebp - 0x168], ebx
jb 0x4198e9
mov ecx, dword [ebp - 0x17c]
push ecx
call fcn.00404f07
add esp, 4
xor edi, edi
xor edx, edx
mov dword [ebp - 0x168], 7
mov dword [ebp - 0x16c], edi
mov word [ebp - 0x17c], dx
cmp dword [ebp - 0x6c], ebx
jb 0x419915
mov eax, dword [ebp - 0x80]
push eax
call fcn.00404f07
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], cx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1f4], ebx
jb 0x4199ae
mov edx, dword [ebp - 0x208]
jmp 0x4199a5
call edi
push str._CreateCmdDb
push eax
call fcn.0040648d
add esp, 8
test eax, eax
je 0x4199ae
push 0xe
xor eax, eax
push str.__create_cmddb
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xdc], 7
mov dword [ebp - 0xe0], 0
mov word [ebp - 0xf0], ax
call fcn.00403bac
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xf0]
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.004050a9
mov byte [ebp - 4], 5
cmp dword [ebp - 0xdc], ebx
jb 0x4199ae
mov edx, dword [ebp - 0xf0]
push edx
call fcn.00404f07
add esp, 4
cmp byte [ebp - 0x279], 0
je 0x419c11
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
call fcn.00418ed3
mov ecx, eax
call fcn.0040c563
mov ecx, eax
call fcn.0040c563
lea ecx, [ebp - 0x29c]
push ecx
mov ecx, eax
call fcn.0040c8ee
push esi
lea edx, [ebp - 0xd4]
push 0x49e3c0
push edx
mov byte [ebp - 4], 0xc
call fcn.0040946c
add esp, 0xc
mov ecx, dword [ebp - 0x298]
sub ecx, dword [ebp - 0x29c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ebp - 4], 0xd
cmp eax, 1
jle 0x419b9b
dec eax
mov edi, 0x1c
mov dword [ebp - 0x280], eax
mov ebx, 8
mov eax, dword [ebp - 0x29c]
add eax, edi
cmp dword [eax + 0x14], ebx
jb 0x419a49
mov eax, dword [eax]
push str._prometheus
push eax
call fcn.0040b8ab
add esp, 8
test eax, eax
je 0x419b8c
mov ecx, dword [ebp - 0xd4]
cmp dword [ebp - 0xc0], ebx
jae 0x419a73
lea ecx, [ebp - 0xd4]
mov edx, dword [ebp - 0x29c]
cmp dword [edi + edx + 0x14], ebx
lea eax, [edi + edx]
jb 0x419a84
mov eax, dword [eax]
push ecx
push eax
call fcn.0040b8ab
add esp, 8
test eax, eax
je 0x419b8c
mov eax, dword [ebp - 0x29c]
add eax, edi
push eax
lea ecx, [ebp - 0x240]
push ecx
call fcn.0041a2e4
add esp, 8
mov esi, eax
push 1
xor edx, edx
push 0x4a0bc0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], 0
mov word [ebp - 0x9c], dx
call fcn.00403bac
push esi
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x198]
push ecx
mov byte [ebp - 4], 0xf
call fcn.0041a396
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
call fcn.004050a9
cmp dword [ebp - 0x184], ebx
jb 0x419b26
mov edx, dword [ebp - 0x198]
push edx
call fcn.00404f07
add esp, 4
xor esi, esi
xor eax, eax
mov dword [ebp - 0x184], 7
mov dword [ebp - 0x188], esi
mov word [ebp - 0x198], ax
cmp dword [ebp - 0x88], ebx
jb 0x419b58
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00404f07
add esp, 4
xor edx, edx
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], esi
mov word [ebp - 0x9c], dx
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x22c], ebx
jb 0x419b8c
mov eax, dword [ebp - 0x240]
push eax
call fcn.00404f07
add esp, 4
add edi, 0x1c
dec dword [ebp - 0x280]
jne 0x419a3a
cmp dword [ebp - 0xc0], 8
jb 0x419bb3
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.00404f07
add esp, 4
mov eax, dword [ebp - 0x29c]
xor edx, edx
mov dword [ebp - 0xc0], 7
mov dword [ebp - 0xc4], 0
mov word [ebp - 0xd4], dx
mov byte [ebp - 4], 5
test eax, eax
je 0x419ec1
mov ecx, dword [ebp - 0x28c]
push ecx
mov ecx, dword [ebp - 0x298]
lea edx, [ebp - 0x290]
push edx
push ecx
push eax
call fcn.0040b679
mov edx, dword [ebp - 0x29c]
push edx
call fcn.00404f07
add esp, 0x14
jmp 0x419ec1
mov ecx, dword [ebp - 0x284]
mov ecx, dword [ecx]
lea eax, [ebp - 0x128]
push eax
call fcn.00418ed3
mov ecx, eax
call fcn.00418ed7
cmp dword [ebp - 0x118], 0
mov byte [ebp - 4], 0x11
je 0x419ea6
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x288], 0
cmp dword [ebp - 0x114], ebx
jae 0x419c5b
lea eax, [ebp - 0x128]
lea edx, [ebp - 0x288]
push edx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x280], eax
test eax, eax
je 0x419ea6
xor ecx, ecx
mov dword [ebp - 0x284], ecx
cmp dword [ebp - 0x288], ecx
jle 0x419e9a
mov ecx, dword [eax + ecx*4]
xor eax, eax
mov word [ebp - 0x10c], ax
mov eax, ecx
mov dword [ebp - 0xf8], 7
mov dword [ebp - 0xfc], 0
lea esi, [eax + 2]
jmp 0x419cb8
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x419cb8
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x10c]
call fcn.00403bac
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x279]
mov byte [ebp - 4], 0x12
call fcn.00424cea
test al, al
sete bl
cmp dword [ebp - 0xf8], 8
mov byte [ebp - 4], 0x11
jb 0x419d0b
mov edx, dword [ebp - 0x10c]
push edx
call fcn.00404f07
add esp, 4
test bl, bl
jne 0x419e7b
mov eax, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x284]
mov ecx, dword [eax + ecx*4]
xor ebx, ebx
xor edx, edx
mov edi, 7
mov eax, ecx
mov word [ebp - 0x144], dx
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x134], ebx
lea edx, [eax + 2]
jmp 0x419d48
mov si, word [eax]
add eax, 2
cmp si, bx
jne 0x419d48
sub eax, edx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x144]
call fcn.00403bac
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x1d0]
push ecx
mov byte [ebp - 4], 0x13
call fcn.0041a2e4
add esp, 8
mov esi, eax
push 1
xor edx, edx
push 0x4a0bc0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], dx
call fcn.00403bac
push esi
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x1b4]
push ecx
mov byte [ebp - 4], 0x15
call fcn.0041a396
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x16
call fcn.004050a9
cmp dword [ebp - 0x1a0], 8
jb 0x419dee
mov edx, dword [ebp - 0x1b4]
push edx
call fcn.00404f07
add esp, 4
xor eax, eax
mov esi, 8
mov dword [ebp - 0x1a0], edi
mov dword [ebp - 0x1a4], ebx
mov word [ebp - 0x1b4], ax
cmp dword [ebp - 0xa4], esi
jb 0x419e1f
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.00404f07
add esp, 4
xor edx, edx
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], dx
cmp dword [ebp - 0x1bc], esi
jb 0x419e4b
mov eax, dword [ebp - 0x1d0]
push eax
call fcn.00404f07
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1bc], edi
mov dword [ebp - 0x1c0], ebx
mov word [ebp - 0x1d0], cx
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x130], esi
jb 0x419e7b
mov edx, dword [ebp - 0x144]
push edx
call fcn.00404f07
add esp, 4
mov ecx, dword [ebp - 0x284]
mov eax, dword [ebp - 0x280]
inc ecx
mov dword [ebp - 0x284], ecx
cmp ecx, dword [ebp - 0x288]
jl 0x419c8b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, 8
mov byte [ebp - 4], 5
cmp dword [ebp - 0x114], ebx
jb 0x419ec1
mov eax, dword [ebp - 0x128]
push eax
call fcn.00404f07
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2a0], 0x20
test ecx, ecx
je 0x419f2b
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, edx
cmp ebx, 8
jae 0x419ee2
lea eax, [ebp - 0x2c]
lea edi, [eax + ecx*2]
mov ecx, edx
cmp ebx, 8
jae 0x419eef
lea ecx, [ebp - 0x2c]
cmp ecx, edi
jae 0x419f2b
jmp 0x419ef8
movzx esi, word [ecx]
mov edx, 1
lea eax, [ebp - 0x2a0]
mov edi, edi
cmp word [eax], si
je 0x419f24
add eax, 2
dec edx
jne 0x419f08
mov eax, dword [ebp - 0x2c]
cmp ebx, 8
jae 0x419f1e
lea eax, [ebp - 0x2c]
sub ecx, eax
sar ecx, 1
jmp 0x419f2e
add ecx, 2
cmp ecx, edi
jb 0x419ef8
or ecx, 0xffffffff
push ecx
push 0
lea ecx, [ebp - 0x2c]
call fcn.0040be9e
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x38]
lea edi, [edx + ecx + 4]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405aff
mov ecx, dword [ebp - 0x2c]
mov esi, eax
mov eax, 8
add esp, 4
cmp dword [ebp - 0x18], eax
jae 0x419f70
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x48]
jae 0x419f7b
lea eax, [ebp - 0x48]
push ecx
push eax
push str.__s___s
push edi
push esi
call fcn.00417c94
mov edi, dword [ebp - 0x28c]
add esp, 0x14
push edi
lea eax, [ebp - 0x2e4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov cl, byte [0x4cc84c]
test eax, eax
setne bl
test cl, cl
je 0x419fcd
push 0
push str.PrometheusCreateProcess
call fcn.0043a674
add esp, 8
mov dl, byte [0x4cc84c]
test dl, dl
je 0x419fe6
push 0
push str.PrometheusClientMainWindowAdded
call fcn.0043a663
add esp, 8
push esi
call fcn.00406e64
add esp, 4
mov esi, 8
test bl, bl
jne 0x41a055
mov dword [edi + 8], 0xffffffff
cmp dword [ebp - 0x34], esi
jb 0x41a010
mov eax, dword [ebp - 0x48]
push eax
call fcn.00404f07
add esp, 4
xor edi, edi
xor ecx, ecx
mov ebx, 7
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], esi
jb 0x41a034
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404f07
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x18], esi
jb 0x41a051
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00404f07
add esp, 4
xor al, al
jmp 0x41a0a9
cmp dword [ebp - 0x34], esi
jb 0x41a066
mov edx, dword [ebp - 0x48]
push edx
call fcn.00404f07
add esp, 4
xor edi, edi
xor eax, eax
mov ebx, 7
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x50], esi
jb 0x41a08a
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00404f07
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x18], esi
jb 0x41a0a7
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f07
add esp, 4
mov al, 1
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.0040330b
mov esp, ebp
pop ebp
ret 0xc