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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509911
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x547770]
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 [0x54e254]
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x28c], edi
test cl, cl
je 0x422b32
push 0
push str.PrometheusCreateProcess
call fcn.004252e0
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 0x422b5b
mov eax, dword [esi]
jmp 0x422b5d
mov eax, esi
mov ecx, dword [0x54e1dc]
push ecx
push eax
call fcn.00415a60
add esp, 8
test eax, eax
je 0x422be3
cmp dword [esi + 0x14], ebx
jb 0x422b7a
mov eax, dword [esi]
jmp 0x422b7c
mov eax, esi
mov edx, dword [0x54e1e0]
push edx
push eax
call fcn.00415a60
add esp, 8
test eax, eax
je 0x422be3
cmp dword [esi + 0x14], ebx
jb 0x422b99
mov eax, dword [esi]
jmp 0x422b9b
mov eax, esi
mov ecx, dword [0x54e1e4]
push ecx
push eax
call fcn.00415a60
add esp, 8
test eax, eax
je 0x422be3
cmp dword [esi + 0x14], ebx
jb 0x422bb8
mov eax, dword [esi]
jmp 0x422bba
mov eax, esi
mov edx, dword [0x54e1e8]
push edx
push eax
call fcn.00415a60
add esp, 8
test eax, eax
jne 0x422bf3
call fcn.00429f70
test al, al
je 0x422bf3
mov byte [ebp - 0x279], 1
jmp 0x422cba
push 0
call fcn.00429ef0
add esp, 4
test al, al
jne 0x422bd7
jmp 0x422bce
push esi
lea eax, [ebp - 0x224]
push 0x5116bc
push eax
call fcn.00405090
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401720
mov byte [ebp - 4], 0
cmp dword [ebp - 0x210], ebx
jb 0x422c30
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.004b9d66
add esp, 4
mov ecx, dword [ebp - 0x284]
lea edx, [ebp - 0x25c]
push edx
call fcn.00422080
push eax
lea eax, [ebp - 0x160]
push str.__from_prome__prome_pipe_token
push eax
mov byte [ebp - 4], 2
call fcn.00405170
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004013f0
cmp dword [ebp - 0x14c], ebx
jb 0x422c83
mov ecx, dword [ebp - 0x160]
push ecx
call fcn.004b9d66
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 0x422cba
mov eax, dword [ebp - 0x25c]
push eax
call fcn.004b9d66
add esp, 4
push esi
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x284]
call fcn.004224a0
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.00401500
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.004bad00
add esp, 0xc
cmp dword [ebp - 0x280], 0
mov edx, 1
mov dword [ebp - 0x2b8], 1
mov word [ebp - 0x2b4], dx
je 0x422dda
cmp byte [ebp - 0x279], 0
jne 0x422dda
mov eax, dword [ebp - 0x280]
push eax
lea ecx, [ebp - 0x278]
push ecx
call fcn.004162e0
push eax
lea edx, [ebp - 0x1ec]
push str.__prome_prestart_type
push edx
mov byte [ebp - 4], 6
call fcn.00405170
add esp, 0x14
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.004013f0
cmp dword [ebp - 0x1d8], ebx
jb 0x422da2
mov eax, dword [ebp - 0x1ec]
push eax
call fcn.004b9d66
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 0x422dda
mov edx, dword [ebp - 0x278]
push edx
call fcn.004b9d66
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
push str._PFMonChildProc
push eax
call fcn.004bc7da
add esp, 8
test eax, eax
je 0x422ec1
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.00422680
add esp, 8
mov edi, eax
xor ecx, ecx
push 1
mov word [ebp - 0x80], cx
push 0x5116b8
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 8
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
call fcn.004021e0
push edi
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x17c]
push eax
mov byte [ebp - 4], 9
call fcn.004051d0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.004013f0
cmp dword [ebp - 0x168], ebx
jb 0x422e71
mov ecx, dword [ebp - 0x17c]
push ecx
call fcn.004b9d66
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 0x422e9d
mov eax, dword [ebp - 0x80]
push eax
call fcn.004b9d66
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 0x422f36
mov edx, dword [ebp - 0x208]
jmp 0x422f2d
call edi
push str._CreateCmdDb
push eax
call fcn.004bc7da
add esp, 8
test eax, eax
je 0x422f36
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.004021e0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xf0]
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.004013f0
mov byte [ebp - 4], 5
cmp dword [ebp - 0xdc], ebx
jb 0x422f36
mov edx, dword [ebp - 0xf0]
push edx
call fcn.004b9d66
add esp, 4
cmp byte [ebp - 0x279], 0
je 0x423199
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
call fcn.00401b30
mov ecx, eax
call fcn.0042a7b0
mov ecx, eax
call fcn.0042a7b0
lea ecx, [ebp - 0x29c]
push ecx
mov ecx, eax
call fcn.00406630
push esi
lea edx, [ebp - 0xd4]
push 0x5116bc
push edx
mov byte [ebp - 4], 0xc
call fcn.00405090
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 0x423123
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 0x422fd1
mov eax, dword [eax]
push str._prometheus
push eax
call fcn.00415a60
add esp, 8
test eax, eax
je 0x423114
mov ecx, dword [ebp - 0xd4]
cmp dword [ebp - 0xc0], ebx
jae 0x422ffb
lea ecx, [ebp - 0xd4]
mov edx, dword [ebp - 0x29c]
cmp dword [edi + edx + 0x14], ebx
lea eax, [edi + edx]
jb 0x42300c
mov eax, dword [eax]
push ecx
push eax
call fcn.00415a60
add esp, 8
test eax, eax
je 0x423114
mov eax, dword [ebp - 0x29c]
add eax, edi
push eax
lea ecx, [ebp - 0x240]
push ecx
call fcn.004170a0
add esp, 8
mov esi, eax
push 1
xor edx, edx
push 0x5116b8
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.004021e0
push esi
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x198]
push ecx
mov byte [ebp - 4], 0xf
call fcn.004051d0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
call fcn.004013f0
cmp dword [ebp - 0x184], ebx
jb 0x4230ae
mov edx, dword [ebp - 0x198]
push edx
call fcn.004b9d66
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 0x4230e0
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004b9d66
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 0x423114
mov eax, dword [ebp - 0x240]
push eax
call fcn.004b9d66
add esp, 4
add edi, 0x1c
dec dword [ebp - 0x280]
jne 0x422fc2
cmp dword [ebp - 0xc0], 8
jb 0x42313b
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.004b9d66
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 0x423449
mov ecx, dword [ebp - 0x28c]
push ecx
mov ecx, dword [ebp - 0x298]
lea edx, [ebp - 0x290]
push edx
push ecx
push eax
call fcn.00402e20
mov edx, dword [ebp - 0x29c]
push edx
call fcn.004b9d66
add esp, 0x14
jmp 0x423449
mov ecx, dword [ebp - 0x284]
mov ecx, dword [ecx]
lea eax, [ebp - 0x128]
push eax
call fcn.00401b30
mov ecx, eax
call fcn.0041ef50
cmp dword [ebp - 0x118], 0
mov byte [ebp - 4], 0x11
je 0x42342e
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x288], 0
cmp dword [ebp - 0x114], ebx
jae 0x4231e3
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 0x42342e
xor ecx, ecx
mov dword [ebp - 0x284], ecx
cmp dword [ebp - 0x288], ecx
jle 0x423422
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 0x423240
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x423240
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x10c]
call fcn.004021e0
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x279]
mov byte [ebp - 4], 0x12
call fcn.00422130
test al, al
sete bl
cmp dword [ebp - 0xf8], 8
mov byte [ebp - 4], 0x11
jb 0x423293
mov edx, dword [ebp - 0x10c]
push edx
call fcn.004b9d66
add esp, 4
test bl, bl
jne 0x423403
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 0x4232d0
mov si, word [eax]
add eax, 2
cmp si, bx
jne 0x4232d0
sub eax, edx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x144]
call fcn.004021e0
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x1d0]
push ecx
mov byte [ebp - 4], 0x13
call fcn.004170a0
add esp, 8
mov esi, eax
push 1
xor edx, edx
push 0x5116b8
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.004021e0
push esi
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x1b4]
push ecx
mov byte [ebp - 4], 0x15
call fcn.004051d0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x16
call fcn.004013f0
cmp dword [ebp - 0x1a0], 8
jb 0x423376
mov edx, dword [ebp - 0x1b4]
push edx
call fcn.004b9d66
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 0x4233a7
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.004b9d66
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 0x4233d3
mov eax, dword [ebp - 0x1d0]
push eax
call fcn.004b9d66
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 0x423403
mov edx, dword [ebp - 0x144]
push edx
call fcn.004b9d66
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 0x423213
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, 8
mov byte [ebp - 4], 5
cmp dword [ebp - 0x114], ebx
jb 0x423449
mov eax, dword [ebp - 0x128]
push eax
call fcn.004b9d66
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2a0], 0x20
test ecx, ecx
je 0x4234b3
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, edx
cmp ebx, 8
jae 0x42346a
lea eax, [ebp - 0x2c]
lea edi, [eax + ecx*2]
mov ecx, edx
cmp ebx, 8
jae 0x423477
lea ecx, [ebp - 0x2c]
cmp ecx, edi
jae 0x4234b3
jmp 0x423480
movzx esi, word [ecx]
mov edx, 1
lea eax, [ebp - 0x2a0]
mov edi, edi
cmp word [eax], si
je 0x4234ac
add eax, 2
dec edx
jne 0x423490
mov eax, dword [ebp - 0x2c]
cmp ebx, 8
jae 0x4234a6
lea eax, [ebp - 0x2c]
sub ecx, eax
sar ecx, 1
jmp 0x4234b6
add ecx, 2
cmp ecx, edi
jb 0x423480
or ecx, 0xffffffff
push ecx
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401120
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.004b896e
mov ecx, dword [ebp - 0x2c]
mov esi, eax
mov eax, 8
add esp, 4
cmp dword [ebp - 0x18], eax
jae 0x4234f8
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x48]
jae 0x423503
lea eax, [ebp - 0x48]
push ecx
push eax
push str.__s___s
push edi
push esi
call fcn.004bbb2a
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 [0x54e254]
test eax, eax
setne bl
test cl, cl
je 0x423555
push 0
push str.PrometheusCreateProcess
call fcn.00425300
add esp, 8
mov dl, byte [0x54e254]
test dl, dl
je 0x42356e
push 0
push str.PrometheusClientMainWindowAdded
call fcn.004252e0
add esp, 8
push esi
call fcn.004b9ad9
add esp, 4
mov esi, 8
test bl, bl
jne 0x4235dd
mov dword [edi + 8], 0xffffffff
cmp dword [ebp - 0x34], esi
jb 0x423598
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b9d66
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 0x4235bc
mov edx, dword [ebp - 0x64]
push edx
call fcn.004b9d66
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 0x4235d9
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b9d66
add esp, 4
xor al, al
jmp 0x423631
cmp dword [ebp - 0x34], esi
jb 0x4235ee
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b9d66
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 0x423612
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b9d66
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 0x42362f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b9d66
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.004ba901
mov esp, ebp
pop ebp
ret 0xc